glibc/time
TAMUKI Shoichi b22eed3710 strftime: Set the default width of "%Ey" to 2 [BZ #23758]
In Japanese locales, strftime's alternative year format (%Ey) produces
a year numbered within a time period called an _era_.  A new era
typically begins when a new emperor is enthroned.  The result of "%Ey"
is therefore usually a one- or two-digit number.

Many programs that display Japanese era dates assume that the era year
is two digits wide.  To improve how these programs display dates
during the first nine years of a new era, change "%Ey" to pad one-
digit numbers on the left with a zero.  This change applies to all
locales.  It is expected to be harmless for other locales that use the
alternative year format (e.g. lo_LA and th_TH, in which "%Ey" produces
the year of the Buddhist calendar) as those calendars' year numbers
are already more than two digits wide, and this is not expected to
change.

This change needs to be in place before 2019-05-01 CE, as a new era is
scheduled to begin on that date.

Reviewed-by: Zack Weinberg <zackw@panix.com>
Reviewed-by: Rafal Luzynski <digitalfreak@lingonborough.com>

ChangeLog:

	[BZ #23758]
	* manual/time.texi (strftime): Document "%Ey".
	* time/strftime_l.c (__strftime_internal): Set the default width
	padding with zero of "%Ey" to 2.
2019-01-24 23:00:53 +09:00
..
bits/types Use _STRUCT_TIMESPEC as guard in <bits/types/struct_timespec.h> [BZ #23349] 2018-06-28 13:12:16 +02:00
sys Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
adjtime.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
alt_digit.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
asctime.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
bug-asctime_r.c
bug-asctime.c
bug-getdate1.c
bug-mktime1.c
bug-mktime4.c mktime: new test for mktime failure 2018-11-15 22:59:33 +01:00
clock.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
clocktest.c
ctime_r.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ctime.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
datemsk
Depend
difftime.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
dysize.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
era.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
ftime.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
getdate.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
getitimer.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
gettimeofday.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
gmtime.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
lc-time-cleanup.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
localtime.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
Makefile Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
mktime-internal.h Fix mktime localtime offset confusion 2018-09-19 17:09:08 -07:00
mktime.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
offtime.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
setitimer.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
settimeofday.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
stime.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strftime_l.c strftime: Set the default width of "%Ey" to 2 [BZ #23758] 2019-01-24 23:00:53 +09:00
strftime.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
strptime_l.c Fix a few typos in comments 2019-01-12 13:44:51 +00:00
strptime.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
test_time.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
time.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
time.h Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
timegm.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
timespec_get.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
tst_wcsftime.c
tst-ftime_l.c
tst-ftime.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
tst-getdate.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
tst-mktime2.c time/tst-mktime2: Improve test error reporting 2018-10-23 11:25:05 +02:00
tst-mktime3.c
tst-mktime.c
tst-posixtz.c
tst-strftime.c
tst-strptime2.c
tst-strptime3.c
tst-strptime-whitespace.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
tst-strptime.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
tst-tzname.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
tst-y2039.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
tzfile.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
tzset.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
Versions
wcsftime_l.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00
wcsftime.c Update copyright dates with scripts/update-copyrights. 2019-01-01 00:11:28 +00:00