GNU bug report logs -
#63057
[PATCH core-updates 0/3] Some installer fixes
Previous Next
Reported by: Josselin Poiret <dev <at> jpoiret.xyz>
Date: Mon, 24 Apr 2023 19:43:01 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 #8 received at 63057 <at> debbugs.gnu.org (full text, mbox):
* gnu/installer/locale.scm (supported-locales->locales): Filter out C.UTF-8. It
doesn't follow the other locales' format, and doesn't have a corresponding
iso639 code.
---
gnu/installer/locale.scm | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/gnu/installer/locale.scm b/gnu/installer/locale.scm
index ccffb6d8ef..2ec0598abb 100644
--- a/gnu/installer/locale.scm
+++ b/gnu/installer/locale.scm
@@ -93,9 +93,10 @@ (define (locale->locale-string locale)
(define (supported-locales->locales supported-locales)
"Given SUPPORTED-LOCALES, a file produced by 'glibc-supported-locales',
return a list of locales where each locale is an alist."
- (map (match-lambda
- ((locale . codeset)
- (locale-string->locale locale codeset)))
+ (filter-map (match-lambda
+ (("C.UTF-8" . codeset) #f)
+ ((locale . codeset)
+ (locale-string->locale locale codeset)))
(call-with-input-file supported-locales read)))
--
2.39.2
This bug report was last modified 2 years and 73 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.