gdatetime: Fix ja_JA.eucjp expectations when eras are unsupported
Alternative to !3915 (closed).
/cc @pwithnall @sbacher
-
gdatetime: Fix ja_JA.eucjp expectations when eras are unsupported
I can't read Japanese, but these match the output of:
env TZ=UTC LC_ALL=ja_JP.eucjp date -d2009-10-24T00:00:00Z '+%c' | iconv -f eucjp -t UTF-8 env TZ=UTC LC_ALL=ja_JP.eucjp date -d2009-10-24T00:00:00Z '+%C' | iconv -f eucjp -t UTF-8
which seem like a reasonable thing to use as a reference.
According to Google Translate, 平成 refers to the Heisei era, which was current during 2009, and seems unreasonable to expect as output on a platform where era-based dates are unsupported.
Resolves: #3252 (closed)
-
gdatetime: Exercise %c, %C format placeholders in ja_JP.eucjp
Previously we didn't test these at all, which made it hard to determine whether %Ec, %EC had appropriate output on platforms where era-based dates are unsupported. Now we do, and we can observe that on platforms with no support for era-based dates, %c matches %Ec and %C matches %EC, as desired.