delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2002/08/29/11:07:52

Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT cygwin DOT com>
List-Help: <mailto:cygwin-developers-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT cygwin DOT com
Delivered-To: mailing list cygwin-developers AT cygwin DOT com
Date: Thu, 29 Aug 2002 11:07:46 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: cygwin-developers AT cygwin DOT com, newlib AT sources DOT redhat DOT com
Subject: Re: perl giving setlocale failures with recent cygwin's, Egor please comment?
Message-ID: <20020829150746.GH26609@redhat.com>
Reply-To: cygwin-developers AT cygwin DOT com
Mail-Followup-To: cygwin-developers AT cygwin DOT com,
newlib AT sources DOT redhat DOT com
References: <20020829030930 DOT GA2779 AT redhat DOT com> <6880518559 DOT 20020829125652 AT logos-m DOT ru> <s1sit1tvka0 DOT fsf AT jaist DOT ac DOT jp> <20020829143425 DOT GB26609 AT redhat DOT com> <17101595696 DOT 20020829184811 AT logos-m DOT ru> <3D6E3855 DOT 748C2FFF AT redhat DOT com>
Mime-Version: 1.0
In-Reply-To: <3D6E3855.748C2FFF@redhat.com>
User-Agent: Mutt/1.3.23.1i

On Thu, Aug 29, 2002 at 11:05:57AM -0400, J. Johnston wrote:
>egor duda wrote:
>> 
>> 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 <deo AT logos-m DOT ru> 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.
>> 
>
>This is wrong.  I will fix this.

Any plans to make setlocale honor environment variables, Jeff?

cgf

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019