From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RzJcF-00026V-BI for garchives@archives.gentoo.org; Mon, 20 Feb 2012 03:08:39 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EAD8BE0BD1; Mon, 20 Feb 2012 03:08:25 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 5A9D7E0BB1 for ; Mon, 20 Feb 2012 03:08:01 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id E32BE1B4006 for ; Mon, 20 Feb 2012 03:08:00 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Flag: NO X-Spam-Score: -1.58 X-Spam-Level: X-Spam-Status: No, score=-1.58 tagged_above=-999 required=5.5 tests=[AWL=-0.570, BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=no Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 2asJg4re_Umb for ; Mon, 20 Feb 2012 03:07:50 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1CC3364C94 for ; Mon, 20 Feb 2012 03:07:49 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1RzJbL-0005O6-CR for gentoo-dev@gentoo.org; Mon, 20 Feb 2012 04:07:43 +0100 Received: from cpc2-enfi16-2-0-cust659.hari.cable.virginmedia.com ([94.170.82.148]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 Feb 2012 04:07:43 +0100 Received: from kerframil by cpc2-enfi16-2-0-cust659.hari.cable.virginmedia.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 20 Feb 2012 04:07:43 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-dev@lists.gentoo.org From: Kerin Millar Subject: [gentoo-dev] Re: LANG=en_GB.UTF-8 by default Date: Mon, 20 Feb 2012 03:07:33 +0000 Message-ID: References: <201202151258.52431.vivo75@gmail.com> <20120215122252.GA12319@atrus.grandmasfridge.org> <20289.4544.982570.920405@a1i15.kph.uni-mainz.de> <20120220001153.GA1900@linux1> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cpc2-enfi16-2-0-cust659.hari.cable.virginmedia.com User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111224 Thunderbird/9.0.1 In-Reply-To: <20120220001153.GA1900@linux1> X-Archives-Salt: fb4ca66b-ded6-49b2-9f0a-79960e25b7a5 X-Archives-Hash: 52995a89b133126342fb2fdd4ad4b5e3 On 20/02/2012 00:11, William Hubbs wrote: > On Sun, Feb 19, 2012 at 11:56:40PM +0800, Ben wrote: >> On 19 February 2012 23:14, Ulrich Mueller wrote: >>>>>>>> On Sun, 19 Feb 2012, Ben wrote: >>> >>>> In my opinion we should set a default environment with the following >>>> values: >>> >>>> LANG=en_US.UTF-8 >>>> LC_ALL= >>>> LC_COLLATE=C >>> >>>> This offers the best default options to the majority of users, and >>>> is easy to customize for those who wish to use another locale. >>> >>> At least, LC_NUMERIC=C should be added to this, otherwise numbers will >>> be formatted with commas as thousands separators. >>> >>> Also en_US.UTF-8 for LC_MEASUREMENT and LC_PAPER means imperial units >>> and letter paper, which isn't optimal for users outside of the U.S. >>> >>> Ulrich >>> >> >> I think those users (and that includes myself) should then set LANG to >> something more appropriate to their use case. > > According to our localization guide, there is a safe default that forces > UTF-8 characters but doesn't force any language. I have the following > single line in /etc/env.d/02locale: > > LC_CTYPE=en_US.UTF-8 > That looks good but perhaps it should also define LANG=POSIX, which is similar to Ulrich's proposal. Something like: # To configure for your region, set LANG to an appropriate locale, then comment # or remove LC_CTYPE. Run "locale -a" to obtain a list of available locales. LANG=POSIX LC_CTYPE=en_US.utf8 I know that adding LANG=POSIX doesn't do anything in this case but I have a feeling that its presence would be instructive to new users. If a user is asked to configure something which isn't present, it often generates questions which might otherwise be avoided. I've changed "en_US.UTF-8" to "en_US.utf8" there for similar reasons. Not to mention that, if one is curious and searches for "posix locale" via Google, the first link is for the Open Group specification :) I reckon that this, along with some basic information in the handbook, would be a step in the right direction. --Kerin