Subject: [bug#70280] [PATCH 2/5] system: ‘operating-system-locale-definitions’ includes the OS’ locale.

From: "pelzflorian (Florian Pelz)" <[email-masked]>
Date: Wed, 10 Apr 2024 11:09:04 +0200

Hello Ludo, with a clearer mind now:

Ludovic Courtès <[email-masked]> writes:
> * gnu/system.scm (<operating-system>)[locale-definitions]: Mark as
> thunked.  Default to (operating-system-default-locale-definitions os).
> (operating-system-default-locale-definitions): New procedure.
> (operating-system-locale-directory): Remove logic to add the OS
> ‘locale’, instead assuming (operating-system-locale-directory os) has
> everything.
> * doc/guix.texi (operating-system Reference): Adjust accordingly.

This is a regression.  I have in my /run/current-system/configuration.scm

 (locale "de_DE.utf8")
 (locale-definitions
  (cons* (locale-definition
          (name "ar_SY.utf8") (source "ar_SY"))
         (locale-definition
          (name "bn_BD.utf8") (source "bn_BD"))
         (locale-definition
          (name "hu_HU.utf8") (source "hu_HU"))
         (locale-definition
          (name "ka_GE.utf8") (source "ka_GE"))
         (locale-definition
          (name "lt_LT.utf8") (source "lt_LT"))
         (locale-definition
          (name "oc_FR.utf8") (source "oc_FR"))
         (locale-definition
          (name "pt_BR.utf8") (source "pt_BR"))
         (locale-definition
          (name "si_LK.utf8") (source "si_LK"))
         (locale-definition
          (name "sk_SK.utf8") (source "sk_SK"))
         (locale-definition
          (name "sr_RS.utf8") (source "sr_RS"))
         %default-locale-definitions))

but de_DE.utf8 is not available and
“export LC_ALL=de_DE.utf8” gives an error.

scheme@(guix-user)> ,use (gnu system locale)
scheme@(guix-user)> %default-locale-definitions
$1 = (#<<locale-definition> name: "ar_DZ.utf8" source: "ar_DZ" charset: "UTF-8"> #<<locale-definition> name: "ar_JO.utf8" source: "ar_JO" charset: "UTF-8"> #<<locale-definition> name: "en_GB.utf8" source: "en_GB" charset: "UTF-8"> #<<locale-definition> name: "en_US.utf8" source: "en_US" charset: "UTF-8"> #<<locale-definition> name: "es_AR.utf8" source: "es_AR" charset: "UTF-8"> #<<locale-definition> name: "es_ES.utf8" source: "es_ES" charset: "UTF-8"> #<<locale-definition> name: "fr_CA.utf8" source: "fr_CA" charset: "UTF-8"> #<<locale-definition> name: "fr_FR.utf8" source: "fr_FR" charset: "UTF-8"> #<<locale-definition> name: "ru_RU.utf8" source: "ru_RU" charset: "UTF-8"> #<<locale-definition> name: "zh_CN.utf8" source: "zh_CN" charset: "UTF-8">)

Regards,
Florian