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]

Re: [v4] Fix strptime era handling, add more era tests [BZ #24394]


Hello Carlos-san,

From: Carlos O'Donell <codonell@redhat.com>
Subject: Re: [v4] Fix strptime era handling, add more era tests [BZ #24394]
Date: Sat, 30 Mar 2019 23:03:12 -0400

> > > As Rafal points out I think we could use your help there. If we
> > > accept DJ's patch then you could work on top of that to add a few
> > > more test cases to check invalid tests?
> > 
> > Yes, I can contribute as needed.  Since it is expected that the
> > response to the new era of some systems is delayed, I think that there
> > is a case to parse non-existent date.  According to the Japanese
> > government, the use of "H31.5.1", "H31.8.12", etc. are permitted for a
> > certain period of time.
> 
> I'm sorry I'm not familiar with "H31.5.1", or "H31.8.12", what are they
> and how do they apply?

Sorry.  These above are abbreviations of era and have not yet been
implemented in Glibc.

So, they mean as below:
"Heisei 31 nen 05 gatsu 01 nichi",
"Heisei 31 nen 08 gatsu 12 nichi"

Correctly, these should be:

"(new era) gan nen 05 gatsu 01 nichi",
"(nes era) gan nen 08 gatsu 12 nichi"

Regards,
TAMUKI Shoichi


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