From: "Ludovic Courtès" <ludo@gnu.org>
To: 70280@debbugs.gnu.org
Cc: "Ludovic Courtès" <ludo@gnu.org>
Subject: [bug#70280] [PATCH 3/5] locale: Shrink ‘%default-locale-definitions’ from 34 to 10 locales.
Date: Mon, 8 Apr 2024 16:24:33 +0200 [thread overview]
Message-ID: <c3d39296e091348f32ccfee671cf2918b5752424.1712585810.git.ludo@gnu.org> (raw)
In-Reply-To: <cover.1712585810.git.ludo@gnu.org>
This reduces the default set of locales from 92 MiB to 28 MiB.
* gnu/system/locale.scm (%default-locale-definitions): Reduce to 10
locales.
Change-Id: I3c092604301d69db591957bcfd62a062c3ac5ab0
---
gnu/system/locale.scm | 56 ++++++++++++-------------------------------
1 file changed, 15 insertions(+), 41 deletions(-)
diff --git a/gnu/system/locale.scm b/gnu/system/locale.scm
index 4ea82e24d5..00eb902702 100644
--- a/gnu/system/locale.scm
+++ b/gnu/system/locale.scm
@@ -153,9 +153,10 @@ (define %default-locale-libcs
(list glibc)))
(define %default-locale-definitions
- ;; Arbitrary set of locales that are built by default. They are here mostly
- ;; to facilitate first-time use to some people, while others may have to add
- ;; a specific <locale-definition>.
+ ;; Arbitrary set of locales that are built by default. They come as a
+ ;; "bonus" in addition to that specified in the 'locale' field of the
+ ;; operating system, for the user's convenience, so they shouldn't take too
+ ;; much space.
(letrec-syntax ((utf8-locale (syntax-rules ()
((_ name*)
(locale-definition
@@ -167,44 +168,17 @@ (define %default-locale-definitions
(utf8-locales (syntax-rules ()
((_ name ...)
(list (utf8-locale name) ...)))))
- ;; Add "en_US.UTF-8" for compatibility with Guix 0.8.
- (cons (locale-definition
- (name "en_US.UTF-8")
- (source "en_US")
- (charset "UTF-8"))
- (utf8-locales "ca_ES"
- "cs_CZ"
- "da_DK"
- "de_DE"
- "el_GR"
- "en_AU"
- "en_CA"
- "en_GB"
- "en_US"
- "es_AR"
- "es_CL"
- "es_ES"
- "es_MX"
- "fi_FI"
- "fr_BE"
- "fr_CA"
- "fr_CH"
- "fr_FR"
- "ga_IE"
- "it_IT"
- "ja_JP"
- "ko_KR"
- "nb_NO"
- "nl_NL"
- "pl_PL"
- "pt_PT"
- "ro_RO"
- "ru_RU"
- "sv_SE"
- "tr_TR"
- "uk_UA"
- "vi_VN"
- "zh_CN"))))
+ ;; The six UN official languages, with at most two variants per language.
+ (utf8-locales "ar_DZ"
+ "ar_JO"
+ "en_GB"
+ "en_US"
+ "es_AR"
+ "es_ES"
+ "fr_CA"
+ "fr_FR"
+ "ru_RU"
+ "zh_CN")))
\f
;;;
--
2.41.0
next prev parent reply other threads:[~2024-04-08 14:26 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-08 14:22 [bug#70280] [PATCH 0/5] Reducing system size: locales and initrd Ludovic Courtès
2024-04-08 14:24 ` [bug#70280] [PATCH 1/5] system: Remove ‘glibc-2.33’ from ‘%default-locale-libcs’ Ludovic Courtès
2024-04-08 14:24 ` [bug#70280] [PATCH 2/5] system: ‘operating-system-locale-definitions’ includes the OS’ locale Ludovic Courtès
2024-04-10 9:09 ` pelzflorian (Florian Pelz)
2024-04-10 9:52 ` pelzflorian (Florian Pelz)
2024-04-15 16:23 ` Ludovic Courtès
2024-04-15 22:51 ` pelzflorian (Florian Pelz)
2024-04-17 15:16 ` Ludovic Courtès
2024-04-08 14:24 ` Ludovic Courtès [this message]
2024-04-09 19:38 ` [bug#70280] [PATCH 3/5] locale: Shrink ‘%default-locale-definitions’ from 34 to 10 locales pelzflorian (Florian Pelz)
2024-04-15 16:22 ` Ludovic Courtès
2024-04-15 22:32 ` pelzflorian (Florian Pelz)
2024-04-17 15:20 ` Ludovic Courtès
2024-04-29 22:30 ` bug#70280: " Ludovic Courtès
2024-04-08 14:24 ` [bug#70280] [PATCH 4/5] services: build-vm: Provide only one locale Ludovic Courtès
2024-04-08 14:24 ` [bug#70280] [PATCH 5/5] linux-initrd: Further strip the static Guile Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c3d39296e091348f32ccfee671cf2918b5752424.1712585810.git.ludo@gnu.org \
--to=ludo@gnu.org \
--cc=70280@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.