1
0
mirror of https://git.savannah.gnu.org/git/guix.git synced 2026-04-08 22:20:38 +02:00
Files
guix/guix
Ludovic Courtès d7c8a5ff3c guile-launcher: Avoid the “C” locale and try “C.UTF-8”.
This is a followup to ed0cd12a82, which
adds the C.UTF-8 locale to the glibc package, and
ee4e79f871, which changed the default to
“C.UTF-8” for ‘guix’ commands.

Fixes a bug whereby starting ‘guix’ in an environment where the LC_*
variables are unset would start it in the “C” locale:

  echo '(pk (setlocale LC_ALL))' | guix shell -CW coreutils -- guix repl

This would lead to breakage for commands such as ‘guix substitute’ that
need to run in a UTF-8 locale.

* gnu/packages/aux-files/guile-launcher.c (main): Try “C.UTF-8” before
“en_US.UTF-8”.  Do that also when the current locale is “C”.
* guix/ui.scm (install-locale): Likewise.

Change-Id: I36da4db8f898f1083b33760e1ab46c3a257de811
2025-01-04 23:35:40 +01:00
..
2024-12-31 10:56:35 +08:00
2024-09-30 13:38:33 +03:00
2024-04-15 22:36:42 +02:00
2024-01-08 21:04:44 +03:00
2024-11-20 18:01:35 +08:00
2024-04-15 22:36:42 +02:00
2024-04-15 22:36:42 +02:00
2024-07-02 10:19:52 +02:00