delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/04/24/17:13:42

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:content-type:content-transfer-encoding; q=dns; s=default; b=ivg
f8yQ9kTF8AI8wlaJnmMbBXxIGCbVtvHp/cBCrW27GzSXoXrjDezmePhVXEHvigaF
0ACLmA/Cb/DHpxSHwotWatzWZ9kFyX2i503d1330G37rkLMEsWR0WbPVDWdf4xqt
Gi12edUcxU67eDschBY7fDYe3KKPtNYF4s7VbfM8=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:content-type:content-transfer-encoding; s=default; bh=EVrkZCEsM
zj14REzEk7C85nKvI8=; b=Dn4969NNiywRY8HCNR0JcGtA/hI3DxO3Pudsr2H7I
26PXq4CnGVDSJStqjXFJ7ix92sONRUXq3A4n79aEnYivX3du3CQXrWLfGW202xHL
G7zmqBW8TZawzprMpViO8DlCyk9c10GUjRIEXgZmZn2waBC60f3egmh35DaoqPpb
A4=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: smtp201.alice.it
Message-ID: <53597E6B.1080207@alice.it>
Date: Thu, 24 Apr 2014 23:13:15 +0200
From: Angelo Graziosi <angelo DOT graziosi AT alice DOT it>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: How LANG environment variable is set?

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..


Ciao,
  Angelo.

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019