This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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: [PATCH] Fix handling of era in strftime (month off-by-one error)


On Dec 10 17:33, Akio Idehara wrote:
> Hi, All.
> 
> I found a bug in the handling of era in strftime (month off-by-one error).
> 
> In the era info database (lc_era.h in cygwin),
> the range of the month part is from 1 to 12.
> (Ex: the era format in lc_era.h is like "1989/12/31")
> But the range of tm_mon is from 0 to 11,
> and strftime doesn't treat it.

Thanks for the patch.  I just applied it.


Corinna

-- 
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat


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