Subject: bug#22572: closed (Re: bug#22572: Handling of system 'locale' field needs improvement)

From: [email-masked] (GNU bug Tracking System)
Date: Wed, 10 Feb 2016 14:21:02 +0000

Your bug report

#22572: Handling of system 'locale' field needs improvement

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
22572: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22572
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#22572: Handling of system 'locale' field needs improvement
From: [email-masked] (Ludovic Courtès)
To: Mark H Weaver <[email-masked]>
Cc: [email-masked]
Date: Wed, 10 Feb 2016 15:20:37 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

[email-masked] (Ludovic Courtès) skribis:

> Mark H Weaver <[email-masked]> 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’t always work (the locale name is supposed
> to use the normalized name, like “utf8”, whereas the real name is, say,
> “UTF-8”), but it should cover 90% of the use cases.

I pushed an improved version of the patch as f5582b2.

Ludo’.

Subject: Handling of system 'locale' field needs improvement
From: Mark H Weaver <[email-masked]>
To: [email-masked]
Date: Sat, 06 Feb 2016 09:22:14 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

Multiple users on #guix have been bitten by the following error message:

  guix system: error: system locale lacks a definition

and even several seasoned developers on #guix didn't know the answer.

At minimum, the error message should be improved to point to the
relevant documentation.

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'.

    Regards,
      Mark