GNU bug report logs -
#74956
[PATCH] build: pack: Fix unexpected type in assert-utf8-local.
Previous Next
Reported by: Noé Lopez <noe <at> xn--no-cja.eu>
Date: Thu, 19 Dec 2024 00:15:02 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludo <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 74956 in the body.
You can then email your comments to 74956 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#74956
; Package
guix-patches
.
(Thu, 19 Dec 2024 00:15:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Noé Lopez <noe <at> xn--no-cja.eu>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Thu, 19 Dec 2024 00:15:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
From: Noé Lopez <noelopez <at> free.fr>
getenv returns #f if the environment variable does not exist, causing a type
error since string=? expects a string.
* guix/build/pack.scm (assert-utf8-locale): Handle unset environment variable.
Change-Id: Idbe7a33a4c8453b8f4ffe6245c32c1373020fb06
---
guix/build/pack.scm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/guix/build/pack.scm b/guix/build/pack.scm
index fcb1da2a6c..1b28101469 100644
--- a/guix/build/pack.scm
+++ b/guix/build/pack.scm
@@ -72,7 +72,7 @@ (define* (tar-base-options #:key tar compressor)
(define (assert-utf8-locale)
"Verify the current process is using the en_US.utf8 locale."
- (unless (string=? "unset for tests" (getenv "GUIX_LOCPATH"))
+ (unless (string=? "unset for tests" (or (getenv "GUIX_LOCPATH") ""))
(unless (false-if-exception (setlocale LC_ALL "en_US.utf8"))
(error "environment not configured for en_US.utf8 locale"))))
base-commit: 1a62f687e504c67f26693f3bc60a90e503ab4ea9
--
2.46.0
bug closed, send any further explanations to
74956 <at> debbugs.gnu.org and Noé Lopez <noe <at> xn--no-cja.eu>
Request was from
Ludovic Courtès <ludo <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Mon, 30 Dec 2024 12:49:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 28 Jan 2025 12:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 141 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.