This is the mail archive of the cygwin-developers@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: perl giving setlocale failures with recent cygwin's, Egor please comment?


On Thu, Aug 29, 2002 at 10:34:25AM -0400, Chris Faylor wrote:
> 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@logos-m.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.
> 
> Is it not doing that?  AFAICT, that's how it works.

AFAICS, it doesn't init itself by getting the env. vars settings.
In the special case of setlocale(LC_ALL, "") it initializes itself
to the "C" locale instead.  But all other setlocale(LC_xxx, "")
return NULL.

Corinna

-- 
Corinna Vinschen
Cygwin Developer
Red Hat, Inc.
mailto:vinschen@redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]