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 v6 0/2] [BZ #16141] strptime %z: fix rounding, extend range


This is V6 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 V5,
to address Mike Frysinger and Carlos O'Donell feedback:

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

  * No changes needed since V5.

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

  * Declare dummy_string as const char [], not const char const *.
  * GNU-style: make conversions between bool and int explicit,
    in both evaluation statements and parameter passing.
  * Remove unnecessary extern for verbose flag.
  * do_test, compare: pass nresult[] array for accumulating counts
    of pass and fail, instead of using globals nfail, npass.

Cheers,
James


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