bash and the current locale implementation

Corinna Vinschen
Thu Oct 1 15:19:00 GMT 2009

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 Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

More information about the Cygwin-developers mailing list