Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT cygwin DOT com Delivered-To: mailing list cygwin-developers AT cygwin DOT com Date: Thu, 29 Aug 2002 18:48:11 +0400 From: egor duda Reply-To: egor duda Organization: deo X-Priority: 3 (Normal) Message-ID: <17101595696.20020829184811@logos-m.ru> To: Christopher Faylor CC: newlib AT sources DOT redhat DOT com Subject: Re: perl giving setlocale failures with recent cygwin's, Egor please comment? In-Reply-To: <20020829143425.GB26609@redhat.com> References: <20020829030930 DOT GA2779 AT redhat DOT com> <6880518559 DOT 20020829125652 AT logos-m DOT ru> <20020829143425 DOT GB26609 AT redhat DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi! Thursday, 29 August, 2002 Christopher Faylor cgf AT redhat DOT com wrote: CF> On Thu, Aug 29, 2002 at 10:58:47PM +0900, Kazuhiro Fujieda wrote: >>>>> On Thu, 29 Aug 2002 12:56:52 +0400 >>>>> egor duda said: >> >>> Yes, it's definitely so. Previously, setlocale (LC_CTYPE, "") was >>> returning "C", while now, in MB_CAPABLE configuration, it returns NULL. >>> >>> I'm not sure whether it's better to fix it in newlib or in perl, though. >> >>setlocale(category, "") commonly returns "C" when any relevant >>environment variables aren't set. The MB_CAPABLE version of >>setlocale should be fixed. CF> Is it not doing that? AFAICT, that's how it works. It returns "C" for all categories except LC_CTYPE and LC_MESSAGES. For setlocale (LC_CTYPE, ""), it gets to newlib/libc/locale/locale.c:155 and returns NULL. Egor. mailto:deo AT logos-m DOT ru ICQ 5165414 FidoNet 2:5020/496.19