X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Message-ID: <4B16A22A.4070402@towo.net> Date: Wed, 02 Dec 2009 18:21:46 +0100 From: Thomas Wolff User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Base-Files (was Re: Unset TMP/TEMP in profile?) References: <4B14573C DOT 3040409 AT alice DOT it> <20091201091515 DOT GC30043 AT calimero DOT vinschen DOT de> <89d87180772edf0cb5974b7d21ed1f50 DOT squirrel AT mail DOT morrison DOT mine DOT nu> <20091202093042 DOT GO8059 AT calimero DOT vinschen DOT de> In-Reply-To: <20091202093042.GO8059@calimero.vinschen.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 Corinna Vinschen wrote in another thread about setting LANG: >> ... Andy and Thomas, please work >> out the best solution together. It should work in sh and csh. Then >> post it as reply to http://cygwin.com/ml/cygwin/2009-12/msg00090.html so >> John can put it into the base-files package. Our worked-out proposal is as follows: /etc/profile.d/lang.sh: # if no locale variable is set, indicate terminal charset via LANG test -z "${LC_ALL:-${LC_CTYPE:-$LANG}}" && export LANG=C.UTF-8 /etc/profile.d/lang.csh: # if no locale variable is set, indicate terminal charset via LANG ( test $?LC_ALL = 0 || test -z "$LC_ALL" ) && ( test $?LC_CTYPE = 0 || test -z "$LC_CTYPE" ) && ( test $?LANG = 0 || test -z "$LANG" ) && setenv LANG C.UTF-8 where the details of how lang.sh or lang.csh, resp., are invoked, are up to you. Kind regards, Thomas -- 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