From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#22572: Handling of system 'locale' field needs improvement Date: Wed, 10 Feb 2016 15:20:37 +0100 Message-ID: <87k2mclk96.fsf@gnu.org> References: <87k2mhudex.fsf@netris.org> <871t8orzf5.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36271) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTVdh-0003uo-O6 for bug-guix@gnu.org; Wed, 10 Feb 2016 09:21:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTVde-0005S0-IH for bug-guix@gnu.org; Wed, 10 Feb 2016 09:21:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:53441) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTVde-0005Rd-Eo for bug-guix@gnu.org; Wed, 10 Feb 2016 09:21:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aTVde-0007JA-Ag for bug-guix@gnu.org; Wed, 10 Feb 2016 09:21:02 -0500 Sender: "Debbugs-submit" Resent-To: bug-guix@gnu.org Resent-Message-ID: In-Reply-To: <871t8orzf5.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sun, 07 Feb 2016 22:19:42 +0100") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: Mark H Weaver Cc: 22572-done@debbugs.gnu.org ludo@gnu.org (Ludovic Court=C3=A8s) skribis: > Mark H Weaver skribis: > >> Better yet, the value of the 'locale' field should be automatically >> added to the default value of 'locale-definitions' if it's not already >> there. The overwhelming majority of users set their 'locale' and have >> no interest in 'locale-definitions'. > > What about this? This is not ideal in that it guesses the charset based > on the locale name, which won=E2=80=99t always work (the locale name is s= upposed > to use the normalized name, like =E2=80=9Cutf8=E2=80=9D, whereas the real= name is, say, > =E2=80=9CUTF-8=E2=80=9D), but it should cover 90% of the use cases. I pushed an improved version of the patch as f5582b2. Ludo=E2=80=99.