This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]