mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-05-27 19:41:50 +02:00
installer: Filter out C.UTF-8 from the list of locales.
* 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. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
committed by
Ludovic Courtès
parent
9f09903aff
commit
d9d25bf517
@@ -93,9 +93,10 @@ optionally, CODESET."
|
|||||||
(define (supported-locales->locales supported-locales)
|
(define (supported-locales->locales supported-locales)
|
||||||
"Given SUPPORTED-LOCALES, a file produced by 'glibc-supported-locales',
|
"Given SUPPORTED-LOCALES, a file produced by 'glibc-supported-locales',
|
||||||
return a list of locales where each locale is an alist."
|
return a list of locales where each locale is an alist."
|
||||||
(map (match-lambda
|
(filter-map (match-lambda
|
||||||
((locale . codeset)
|
(("C.UTF-8" . codeset) #f)
|
||||||
(locale-string->locale locale codeset)))
|
((locale . codeset)
|
||||||
|
(locale-string->locale locale codeset)))
|
||||||
(call-with-input-file supported-locales read)))
|
(call-with-input-file supported-locales read)))
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user