[PATCH v5 0/2] [BZ #16141] strptime %z: fix rounding, extend range

James Perkins james@loowit.net
Sat Aug 15 19:43:00 GMT 2015


This is V5 of the patchset which fixes rounding errors and range
limits in the GNU libc strptime function's %z format specifier,
and reworks the test case to test against the full input range.

The patch set consists of these patches and differences since V4:

[PATCH 1/2] [BZ #16141] strptime %z: fix rounding, extend range to

  * ChangeLog: correct path of time/tst-strptime2.c

[PATCH 2/2] time/tst-strptime2.c: test full input range +/- 0-9999

  * fix GNU-style formatting issues
  * add a --verbose option
  * add test input strings for -0 zone offsets
  * mkbuf: snprintf truncation replaces switch/case
  * compare: remove unnecessary cast
  * do_test: nested loops replace duplicated code

strptime passes all tests after patch 1 alone and after patch 1+2.
tst-strptime2 produces correct output with and without --verbose.

Cheers,
James



More information about the Libc-alpha mailing list