Invalid tm_zone from localtime() when TZ is not set
KOBAYASHI Shinji
koba@jp.fujitsu.com
Thu May 26 17:21:00 GMT 2016
On Thu, 26 May 2016 12:23:03 +0200, Corinna Vinschen wrote:
> > > A proper solution may have to be more like this:
> > > int mapped = wctob(*src);
> > > /* this call is safe now because of how wctob() works: */
> > > if (isupper(mapped)) {
> > > *dst++ = (unsigned char)mapped;
> > > }
> >
> > Thank you for pointing out wctob(). I'm in favor of fixing this way.
> I fixed it already in the repo using explicit testing for
> L'A' <= wchar <= L'Z', see
> https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=030d86d04dbd6ae878ff894256c5a465890d5970
Okay, thanks. I confirmed that the problem does not happen with
current master.
Best regards,
KOBAYASHI Shinji.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list