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:subject:to:references:from:message-id:date | |
:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; q=dns; s=default; b=rY0cDkbdJmbn74h5 | |
sJN2HqJe/euHeujxxCL1cw2Dpe15rNN6ZLEWvWUmWfsZF3IRYSQJHp2DFdXUvJw2 | |
S5phMWa9IKE16LkMzb8NleclmjSQ+q0FxS/CUCjQDZKN3JyE3YZLCUk5rV+LBn8/ | |
ccclfRFNsxZfZ4z6oFWZIkbHsz8= | |
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:subject:to:references:from:message-id:date | |
:mime-version:in-reply-to:content-type | |
:content-transfer-encoding; s=default; bh=dcahDiqTh2+RcIoU5WFgL7 | |
coJ6M=; b=MlKtCBCrv3PDbedyKgVfjfDYPoKCQR/tNRmbsWUK3uOLAon1ea54mZ | |
5gS3Vuh0/pdTkXSXIRGsnLl0qaxrGUkjVTfwPng/T70cNkLwmSZXV4x6BjrQqjNV | |
N3o/CxeE9IG18mTec4capAulLmrS2b3StByZDYqxBAvFKuytydD6k= | |
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=-2.1 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 |
X-HELO: | limerock04.mail.cornell.edu |
X-CornellRouted: | This message has been Routed already. |
Subject: | Re: Bug in collation functions? |
To: | cygwin AT cygwin DOT com |
References: | <56321815 DOT 7000203 AT cornell DOT edu> <20151029153516 DOT GJ5319 AT calimero DOT vinschen DOT de> <56323F2E DOT 4030807 AT cornell DOT edu> <56324598 DOT 9060604 AT cornell DOT edu> <56324E82 DOT 7000402 AT redhat DOT com> <563268A4 DOT 6000005 AT cornell DOT edu> <56329462 DOT 2090206 AT cornell DOT edu> <56329BE8 DOT 808 AT cornell DOT edu> <20151030120320 DOT GO5319 AT calimero DOT vinschen DOT de> <56337996 DOT 2000400 AT cornell DOT edu> <20151030191440 DOT GP5319 AT calimero DOT vinschen DOT de> |
From: | Ken Brown <kbrown AT cornell DOT edu> |
Message-ID: | <5633F8A0.50107@cornell.edu> |
Date: | Fri, 30 Oct 2015 19:09:20 -0400 |
User-Agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
MIME-Version: | 1.0 |
In-Reply-To: | <20151030191440.GP5319@calimero.vinschen.de> |
X-IsSubscribed: | yes |
On 10/30/2015 3:14 PM, Corinna Vinschen wrote: > On Oct 30 10:07, Ken Brown wrote: >> What about the other issue I raised: Should setlocale return null to >> indicate an error if it's given an invalid locale name like en_DE.UTF-8? > > Huh. Interesting. You're runing Windows10, right? Yes > After some digging > it turns out there's a bug in W10. LocaleNameToLCID() does *not* fail > and return with an error if it doesn't know a locale. That would be too > simple I guess. Rather, it returns a value LOCALE_CUSTOM_UNSPECIFIED, > 0x1000. So all unknown locales are now treated as custom locale. Duh! > I fear the answer when trying to report this. Probably it's a feature... > > I applied a patch to workaround this feature. Confirmed. Thanks. Ken -- 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 |