This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug time/24394] strptime %Ey mis-parses final year of era
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Mon, 01 Apr 2019 18:25:50 +0000
- Subject: [Bug time/24394] strptime %Ey mis-parses final year of era
- Auto-submitted: auto-generated
- References: <bug-24394-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=24394
--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via e0e4c321c3145b6ac0e8f6e894f87790cf9437ce (commit)
from 993e3107af67edefcfc79a62ae55f7b98aa5151e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=e0e4c321c3145b6ac0e8f6e894f87790cf9437ce
commit e0e4c321c3145b6ac0e8f6e894f87790cf9437ce
Author: DJ Delorie <dj@redhat.com>
Date: Wed Mar 27 17:44:51 2019 -0400
Fix strptime era handling, add more strftime tests [BZ #24394]
Test the transition points between all the currently listed Japanese
era name changes. This includes testing the transition between the
first year date and the second year date. This test will help test
the upcoming Japanese era name change.
Also fixes a fencepost error where the era name isn't properly parsed
by strptime in the last (partial) year of the era.
Example: if an era change happens in Feb 1990, and again in Aug 1995,
that's 5.5 years long, but the 0.5 year wasn't accounted for.
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 7 +
time/Makefile | 2 +-
time/strptime_l.c | 11 +-
time/tst-strftime3.c | 456 ++++++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 473 insertions(+), 3 deletions(-)
create mode 100644 time/tst-strftime3.c
--
You are receiving this mail because:
You are on the CC list for the bug.