X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.3 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 Date: Wed, 15 Feb 2012 23:14:58 +0100 From: David Sastre Medina To: cygwin AT cygwin DOT com Subject: Re: base-files 4.0-9: LANG is set to the system default, why not the user selection? Message-ID: <20120215221458.GA6842@jethro.local.lan> References: <4F3BBA41 DOT 6050800 AT lysator DOT liu DOT se> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ew6BAiZeqk4r7MaW" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) 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 --ew6BAiZeqk4r7MaW Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Feb 15, 2012 at 02:11:14PM +0000, Andy Koppe wrote: > On 15 February 2012 13:59, Peter Rosin wrote: > > My Windows is Swedish, but I generally like it to show as little as > > possible in Swedish so my "display language" is English. =A0I want > > English, to not suffer from strange translations that don't make > > sense, to be able to search for error messages, etc. > > > > A recent change seems to have LANG set to the output of the system > > default language, but I think that's just wrong, it should be the > > language of the current user. > > > > Please change lang.{c}sh to do "locale -uU" instead of "locale -sU". > > Where is the recommended position to override LANG until such a > > change is made, or if it is not an agreeable change? The files under /etc/profile.d are sourced by /etc/profile, which sets system wide settings. For user-defined values, the place to override a system-wide setting depends on the shell you're using. E.g., for bash, it would be ~/.bash_profile. Check /etc/skel/.bash_profile. It should include these lines: # Set user-defined locale export LANG=3D$(locale -uU) Probably you have a customized ~/.bash_profile, so updating to base-files-4.0-9 didn't replace it. --=20 Huella de clave primaria: AD8F BDC0 5A2C FD5F A179 60E7 F79B AB04 5299 EC56 --ew6BAiZeqk4r7MaW Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iF4EAREIAAYFAk88LmIACgkQ95urBFKZ7FY8WQD/RCwQR2P3ZczgynNHCiOWFO89 u3RQgBUrGpO5WuKHvFIA/3C9qvwZHnzJGzVuc6dYoKxXeEo3VgzIIgghuQYaqx3b =E0sd -----END PGP SIGNATURE----- --ew6BAiZeqk4r7MaW--