Mail Archives: cygwin-developers/2002/08/29/15:58:12
Christopher Faylor wrote:
>
> 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?
>
Not immediate, but I will throw it on my todo list.
BTW: I have checked in a patch for locale.c.
-- Jeff J.
- Raw text -