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:reply-to:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=JXpKxGw5DPMJdKB7 QlAIjsr7vvSIta98O/pQhckE6XaM0TrgxAyioD947FM776c3MbU2eIYR7ndOiVL8 4XAmKpg+LpKgmEXaXGkBpURBNP0NK/TBlalOdL695fUTjnH9fXoIXmU0v589IIBB Csc30R9RdTnPylC6MMPEA2/vrdk= 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:reply-to:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; s=default; bh=njAduNwqc02y/YuiWB2aEc ROhFA=; b=unnUlz60YUOg3OqJgl86EOc3qB/CXTM0JCgr2tSgOsvxhRoST9Z4ci NjSFoP8cKWBh7YySEqpeCc7ot/ThCuJis8Pdz1CGXYBiO3FSsnWcWNRwC4eLPeDZ iQzDljSpQoAQiX5eBsk+fwtCw7aVDhe+dTqpErsAOxnpWQysmXbLs= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: vms173017pub.verizon.net Message-id: <53598101.8050701@cygwin.com> Date: Thu, 24 Apr 2014 17:24:17 -0400 From: "Larry Hall (Cygwin)" Reply-to: cygwin AT cygwin DOT com User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: How LANG environment variable is set? References: <53597E6B DOT 1080207 AT alice DOT it> In-reply-to: <53597E6B.1080207@alice.it> Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit 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 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