This is the mail archive of the
cygwin-developers
mailing list for the Cygwin project.
Re: bash and the current locale implementation
On Oct 1 17:12, Thomas Wolff wrote:
>
>> setenv (locale_var);
>> if (locale_var == "LANG" || "LC_ALL")
>> setlocale (LC_ALL, "");
>> else if (locale_var == "LC_CTYPE")
>> setlocale (LC_CTYPE, "");
>>
> Irrespective of the discussion whether or when some such invocations
> should be applied,
> I am a little bit confused about this code itself.
> Does it suggest that LANG would take precedence over LC_CTYPE? That
> would be wrong.
No. There's a setenv call and the followup code checks which of the
variables has just been set. There's no order problem.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat