glibc/time
TAMUKI Shoichi 2f1d61552d time/tst-strftime2.c: Make the file easier to maintain
Express the years as full Gregorian years (e.g., 1988 instead of 88)
and months with natural numbers (1-12 rather than 0-11).

Compare actual dates rather than indexes when selecting the era name.

Declare the local variable era as a string character pointer rather
than an array of chars where the actual string is copied which might
lead to potential buffer overflows in future.

Co-authored-by: Rafal Luzynski <digitalfreak@lingonborough.com>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>

ChangeLog:

	* time/tst-strftime2.c (date_t): Explicitly define the type.
	(dates): Use natural month and year numbers to express a date.
	(is_before): New function to compare dates.
	(mkreftable): Minor improvements to simplify maintenance.
	(do_test): Reflect the changes in dates array.
2019-04-02 16:37:03 +09:00
..
bits/types
sys Break some lines before not after operators. 2019-02-22 01:32:36 +00:00
adjtime.c
alt_digit.c Break some lines before not after operators. 2019-02-22 01:32:36 +00:00
asctime.c Break some lines before not after operators. 2019-02-22 01:32:36 +00:00
bug-asctime_r.c
bug-asctime.c
bug-getdate1.c
bug-mktime1.c
bug-mktime4.c
clock.c
clocktest.c
ctime_r.c
ctime.c
datemsk
Depend
difftime.c
dysize.c
era.c
ftime.c
getdate.c
getitimer.c
gettimeofday.c
gmtime.c
lc-time-cleanup.c
localtime.c
Makefile Fix strptime era handling, add more strftime tests [BZ #24394] 2019-04-01 14:19:16 -04:00
mktime-internal.h
mktime.c * time/mktime.c: Update obsolete URL in comment. 2019-03-17 16:26:07 -07:00
offtime.c
setitimer.c
settimeofday.c
stime.c
strftime_l.c Fix a few whitespace arrangement inconsistencies in time/strftime_l.c 2019-02-11 12:13:55 +09:00
strftime.c
strptime_l.c Fix strptime era handling, add more strftime tests [BZ #24394] 2019-04-01 14:19:16 -04:00
strptime.c
test_time.c Add some spaces before '('. 2019-02-27 13:55:45 +00:00
time.c
time.h
timegm.c
timespec_get.c
tst_wcsftime.c
tst-ftime_l.c
tst-ftime.c
tst-getdate.c
tst-mktime2.c
tst-mktime3.c
tst-mktime.c
tst-posixtz.c
tst-strftime2.c time/tst-strftime2.c: Make the file easier to maintain 2019-04-02 16:37:03 +09:00
tst-strftime3.c Fix strptime era handling, add more strftime tests [BZ #24394] 2019-04-01 14:19:16 -04:00
tst-strftime.c
tst-strptime2.c
tst-strptime3.c
tst-strptime-whitespace.c
tst-strptime.c
tst-tzname.c
tst-y2039.c
tzfile.c Break more lines before not after operators. 2019-02-25 13:19:19 +00:00
tzset.c
Versions
wcsftime_l.c
wcsftime.c