[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/09: gnu: glibc-utf8-locales: Add the C.UTF-8 locale.
From: |
guix-commits |
Subject: |
06/09: gnu: glibc-utf8-locales: Add the C.UTF-8 locale. |
Date: |
Tue, 19 Dec 2023 17:53:18 -0500 (EST) |
civodul pushed a commit to branch core-updates
in repository guix.
commit 10541dca6a621a994f6d7d74d4d9ca9a71867213
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Thu Dec 14 11:07:31 2023 +0100
gnu: glibc-utf8-locales: Add the C.UTF-8 locale.
* gnu/packages/base.scm (%default-utf8-locales): Add "C".
(make-glibc-utf8-locales): Delete "C" from LOCALES for glibc versions
lower than or equal to 2.35.
Change-Id: I6a6faa68dc18bf0f87c372109a17f476d3561278
---
gnu/packages/base.scm | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index d31c0b0772..eab9ff411d 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -1396,7 +1396,8 @@ to the @code{share/locale} sub-directory of this
package.")
(define %default-utf8-locales
;; These are the locales commonly used for tests---e.g., in Guile's i18n
;; tests.
- '("de_DE" "el_GR" "en_US" "fr_FR" "tr_TR"))
+ '("C" "de_DE" "el_GR" "en_US" "fr_FR" "tr_TR"))
+
(define*-public (make-glibc-utf8-locales glibc #:key
(locales %default-utf8-locales)
(name "glibc-utf8-locales"))
@@ -1444,7 +1445,14 @@ to the @code{share/locale} sub-directory of this
package.")
(symlink (string-append locale ".utf8")
(string-append localedir "/"
locale ".UTF-8")))
- '#$locales)))))
+
+ ;; The C.UTF-8 locale was introduced in 2.35 but it
+ ;; fails to build there:
+ ;;
<https://sourceware.org/bugzilla/show_bug.cgi?id=28861>.
+ '#$(if (version>? (package-version this-package)
+ "2.35")
+ locales
+ (delete "C" locales)))))))
(native-inputs (list glibc gzip))
(synopsis (if default-locales?
(P_ "Small sample of UTF-8 locales")
- branch core-updates updated (8161a086ea -> 62e67aa799), guix-commits, 2023/12/19
- 02/09: build-system/gnu: Change default locale to C.UTF-8., guix-commits, 2023/12/19
- 04/09: profiles: Use C.UTF-8 instead of ‘glibc-utf8-locales’ where possible., guix-commits, 2023/12/19
- 05/09: packages: Output and error ports are line-buffered in ‘patch-and-repack’., guix-commits, 2023/12/19
- 01/09: packages: Remove reference to ‘glibc-utf8-locales’ in ‘patch-and-repack’., guix-commits, 2023/12/19
- 03/09: gnu: commencement: Remove ‘glibc-utf8-locales’ from ‘%final-inputs’., guix-commits, 2023/12/19
- 06/09: gnu: glibc-utf8-locales: Add the C.UTF-8 locale.,
guix-commits <=
- 07/09: gnu: glibc: Add patch for ‘ucontext’ on x86_64-gnu (GNU/Hurd)., guix-commits, 2023/12/19
- 08/09: build-system/gnu: Turn PID 1 into an “init”-style process by default., guix-commits, 2023/12/19
- 09/09: gnu: glib: Skip test that fails with glibc 2.38., guix-commits, 2023/12/19