How LANG environment variable is set?
Larry Hall (Cygwin)
reply-to-list-only-lh@cygwin.com
Thu Apr 24 21:24:00 GMT 2014
On 04/24/2014 05:13 PM, Angelo Graziosi wrote:
> I remember that some time ago I had, in mintty,
>
> $ echo $LANG
> it_IT.UTF-8
>
> Now LANG is empty ('echo $LANG' prints nothing).
>
> I notice that /etc/profile.d has lang.sh which should set LANG when I start
> mintty. That script contains
>
> test -z "${LC_ALL:-${LC_CTYPE:-$LANG}}" && export LANG=$(/usr/bin/locale -uU)
>
> and at command line, '/usr/bin/locale -uU' prints it_IT.UTF-8...
>
>
> If I start mintty (LANG empty) and the copy/paste the above lang.sh line,
> after an <ENTER> I get
>
> $ echo $LANG
> it_IT.UTF-8
>
> It is as if the script was not executed... or not? but surely I am missing
> something..
WJFFM. What's the shell you're running? Are you setting the local and/or
character set in mintty itself? Is '/etc/profile' or any of the other
profile scripts being run? Perhaps cygcheck output would help if you can't
find out where things are going awry.
--
Larry
_____________________________________________________________________
A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin
mailing list