GNU bug report logs - #73660
[PATCH] gexp: Improve support of Unicode characters.

Previous Next

Package: guix-patches;

Reported by: Tomas Volf <~@wolfsden.cz>

Date: Sun, 6 Oct 2024 15:44:01 UTC

Severity: normal

Tags: patch

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Tomas Volf <~@wolfsden.cz>
To: 73660 <at> debbugs.gnu.org
Cc: Tomas Volf <~@wolfsden.cz>, Christopher Baines <guix <at> cbaines.net>, Josselin Poiret <dev <at> jpoiret.xyz>, Ludovic Courtès <ludo <at> gnu.org>, Mathieu Othacehe <othacehe <at> gnu.org>, Simon Tournier <zimon.toutoune <at> gmail.com>, Tobias Geerinckx-Rice <me <at> tobias.gr>
Subject: [bug#73660] [PATCH v2 2/3] gexp: Attempt to set LC_CTYPE in compiled-modules.
Date: Thu, 23 Jan 2025 23:57:07 +0100
This allows compiling modules with unicode in their names.

* guix/gexp.scm (compiled-modules): Attempt to set LC_CTYPE to C.UTF-8.

Change-Id: Ie92a57fe1c3b45d1c7a5e8865fcf291c5f590c11
---
 guix/gexp.scm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/guix/gexp.scm b/guix/gexp.scm
index de4afc190c..0e99069a56 100644
--- a/guix/gexp.scm
+++ b/guix/gexp.scm
@@ -1700,6 +1700,9 @@ (define* (compiled-modules modules
                        (system base target)
                        (system base compile))
 
+          ;; Best effort.  The locale is not installed when cross-compiling.
+          (false-if-exception (setlocale LC_CTYPE "C.UTF-8"))
+
           (define modules
             (getenv "modules"))
 
-- 
2.47.1





This bug report was last modified 120 days ago.

Previous Next


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