X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <20120216200538.GA9451@jethro.local.lan> References: <4F3BBA41 DOT 6050800 AT lysator DOT liu DOT se> <20120215221458 DOT GA6842 AT jethro DOT local DOT lan> <4F3C99B2 DOT 9000507 AT lysator DOT liu DOT se> <4F3CD659 DOT 7070109 AT lysator DOT liu DOT se> <4F3CE52C DOT 70409 AT gmail DOT com> <4F3CFEB0 DOT 3040307 AT lysator DOT liu DOT se> <4F3D06A9 DOT 5000602 AT gmail DOT com> <4F3D11AF DOT 4090005 AT lysator DOT liu DOT se> <20120216200538 DOT GA9451 AT jethro DOT local DOT lan> Date: Fri, 17 Feb 2012 09:17:14 +0000 Message-ID: Subject: Re: base-files 4.0-9: LANG is set to the system default, why not the user selection? From: Andy Koppe To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On 16 February 2012 20:05, David Sastre Medina wrote: > For the first, I apologize. WRT the second, here's a new attempt: > 'locale' is set system-wide in /etc/profile.d/tzset.* to provide > a new functionality, that, IIRC, was included in the announcement of > the base-files' release. > Also, 'locale' _can_ be set at a user-defined level, to provide the > user the ability to set 'locale' despite system-wide setting, wich > could be needed in multi-user environments, for instance. What's the reason for setting LANG to the system language in /etc/profile though? /etc/profile may be a system-wide file, but it is always sourced in a particular user context. There are several problems with relying on ~/.bash_profile to set it to the user's language: 1. It incurs an extra fork. 2. As Peter pointed out, it only works for new users. Existing users can't reasonably be expected to merge /etc/skel/.bash_profile changes into their own file. 3. The override in ~/.bash_profile is unconditional, which means that LANG settings in mintty's options, in cygwin.bat, or the user's Windows environment are ignored. Therefore, please consider changing /etc/profile.d/lang.[c]sh to use `locale -uU` and dropping the LANG setting from /etc/skel/.bash_profile. Regards, Andy -- 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