GNU bug report logs - #75007
[PATCH] guile-launcher: Avoid the “C” locale and try “C.UTF-8”.

Previous Next

Package: guix-patches;

Reported by: Ludovic Courtès <ludo <at> gnu.org>

Date: Sat, 21 Dec 2024 10:45:02 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 75007-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: 75007-done <at> debbugs.gnu.org
Cc: Tobias Geerinckx-Rice <me <at> tobias.gr>, Christopher Baines <guix <at> cbaines.net>,
 Josselin Poiret <dev <at> jpoiret.xyz>, Simon Tournier <zimon.toutoune <at> gmail.com>,
 Mathieu Othacehe <othacehe <at> gnu.org>
Subject: Re: [bug#75007] [PATCH] guile-launcher: Avoid the “C” locale and try “C.UTF-8”.
Date: Sat, 04 Jan 2025 23:38:55 +0100
Ludovic Courtès <ludo <at> gnu.org> skribis:

> This is a followup to ed0cd12a82b429bc5058f693a0f75f2ba0ee47c4, which
> adds the C.UTF-8 locale to the glibc package, and
> ee4e79f871bc2f848ce4b4a176bb725ab71e3cd6, 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

Pushed as d7c8a5ff3c76461d469364e920ec4f09f9e3c126.




This bug report was last modified 140 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.