delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:message-id:from:to:subject:in-reply-to | |
:references:mime-version:content-type; q=dns; s=default; b=axjsR | |
C4Mr1TJGkmuohVkxjGVjD8COsWt6TT0GuC5rYlR/pN3mOa72Nw2O+fcbygDC6vKj | |
03M6WhiYYPX6QtuaFVLX5E+gGvfYree317nHH7n/PLo3qEWOjsUXPW1YCgzAXDiq | |
wF7rFEJ+PwXrKI6HZhmeOGjSfplRXiJffRpMrw= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:date:message-id:from:to:subject:in-reply-to | |
:references:mime-version:content-type; s=default; bh=ET6QzN1KZVZ | |
m4vQKk2R8M9y8crI=; b=mhsQ895Hq7ikwdPEkyvsRQs+hVsNbs3Tjh0kel0rxNB | |
NI1TgslXGez0685acPnJ3RlN7d2lU9RV3WVduZ7e2J9XZreNDORFWVJ+oPimZp77 | |
zrrgB4E837zmssQ6SuupiEb0k/JkD60UENTEq/5oBa6PPbI19bEOnPqXuO+iNclA | |
= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Virus-Found: | No |
X-Spam-SWARE-Status: | No, score=-3.3 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:727 |
X-HELO: | mgwym01.jp.fujitsu.com |
X-SecurityPolicyCheck: | OK by SHieldMailChecker v2.2.3 |
X-SHieldMailCheckerPolicyVersion: | FJ-ISEC-20140219-2 |
Date: | Thu, 26 May 2016 21:11:42 +0900 |
Message-ID: | <o8xa8jdvx1d.wl-koba@jp.fujitsu.com> |
From: | KOBAYASHI Shinji <koba AT jp DOT fujitsu DOT com> |
To: | <cygwin AT cygwin DOT com> |
Subject: | Re: Invalid tm_zone from localtime() when TZ is not set |
In-Reply-To: | <20160526102303.GD8416@calimero.vinschen.de> |
References: | <o8xeg8x7e2r DOT wl-koba AT jp DOT fujitsu DOT com> <932D033F-9DA4-4901-9158-328AA929FEC8 AT etr-usa DOT com> <o8x8tz573zs DOT wl-koba AT jp DOT fujitsu DOT com> <CAEhDDbA-ATpAtVggR7cfqn58AHw0sPK_Y3mNSJ8UO29sg2ZpuA AT mail DOT gmail DOT com> <o8x37pd6nlm DOT wl-koba AT jp DOT fujitsu DOT com> <o8xposa6fcl DOT wl-koba AT jp DOT fujitsu DOT com> <20160525084430 DOT GA17601 AT calimero DOT vinschen DOT de> <2eddaaf6-4e37-cd9b-aa9d-8a87234d0cf9 AT t-online DOT de> <o8xh9dltilz DOT wl-koba AT jp DOT fujitsu DOT com> <20160526102303 DOT GD8416 AT calimero DOT vinschen DOT de> |
User-Agent: | Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.8 EasyPG/1.0.0 Emacs/24.5 (x86_64-unknown-cygwin) MULE/6.0 (HANACHIRUSATO) |
MIME-Version: | 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") |
X-TM-AS-MML: | disable |
X-IsSubscribed: | yes |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |