[PATCH] Fix handling of era in strftime (month off-by-one error)
Corinna Vinschen
vinschen@redhat.com
Fri Dec 16 10:31:00 GMT 2011
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
More information about the Newlib
mailing list