summaryrefslogtreecommitdiff
path: root/gnu/system
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2024-04-08 15:28:20 +0200
committerLudovic Courtès <ludo@gnu.org>2024-04-29 22:52:08 +0200
commit6228a2b8bac30b502e69cfd372554103492ff96a (patch)
treef3e118bf3ff2d3f570449120484dc1ac96cbb847 /gnu/system
parent0575933ac24ad6b9a101dd762405b0cc002e9a53 (diff)
locale: Shrink ‘%default-locale-definitions’ from 34 to 10 locales.
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
Diffstat (limited to 'gnu/system')
-rw-r--r--gnu/system/locale.scm59
1 files changed, 17 insertions, 42 deletions
diff --git a/gnu/system/locale.scm b/gnu/system/locale.scm
index 4ea82e24d56..b8910e1e425 100644
--- a/gnu/system/locale.scm
+++ b/gnu/system/locale.scm
@@ -1,5 +1,5 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2014-2017, 2019-2021, 2023 Ludovic Courtès <ludo@gnu.org> 2;;; Copyright © 2014-2017, 2019-2021, 2023-2024 Ludovic Courtès <ludo@gnu.org>
3;;; Copyright © 2018 Mark H Weaver <mhw@netris.org> 3;;; Copyright © 2018 Mark H Weaver <mhw@netris.org>
4;;; Copyright © 2023 Janneke Nieuwenhuizen <jannek@gnu.org> 4;;; Copyright © 2023 Janneke Nieuwenhuizen <jannek@gnu.org>
5;;; 5;;;
@@ -153,9 +153,10 @@ data format changes between libc versions."
153 (list glibc))) 153 (list glibc)))
154 154
155(define %default-locale-definitions 155(define %default-locale-definitions
156 ;; Arbitrary set of locales that are built by default. They are here mostly 156 ;; Arbitrary set of locales that are built by default. They come as a
157 ;; to facilitate first-time use to some people, while others may have to add 157 ;; "bonus" in addition to that specified in the 'locale' field of the
158 ;; a specific <locale-definition>. 158 ;; operating system, for the user's convenience, so they shouldn't take too
159 ;; much space.
159 (letrec-syntax ((utf8-locale (syntax-rules () 160 (letrec-syntax ((utf8-locale (syntax-rules ()
160 ((_ name*) 161 ((_ name*)
161 (locale-definition 162 (locale-definition
@@ -167,44 +168,18 @@ data format changes between libc versions."
167 (utf8-locales (syntax-rules () 168 (utf8-locales (syntax-rules ()
168 ((_ name ...) 169 ((_ name ...)
169 (list (utf8-locale name) ...))))) 170 (list (utf8-locale name) ...)))))
170 ;; Add "en_US.UTF-8" for compatibility with Guix 0.8. 171 ;; The six UN official languages plus Portuguese, with at most two
171 (cons (locale-definition 172 ;; variants per language.
172 (name "en_US.UTF-8") 173 (utf8-locales "ar_DZ"
173 (source "en_US") 174 "en_GB"
174 (charset "UTF-8")) 175 "en_US"
175 (utf8-locales "ca_ES" 176 "es_AR"
176 "cs_CZ" 177 "es_ES"
177 "da_DK" 178 "fr_FR"
178 "de_DE" 179 "pt_BR"
179 "el_GR" 180 "pt_PT"
180 "en_AU" 181 "ru_RU"
181 "en_CA" 182 "zh_CN")))
182 "en_GB"
183 "en_US"
184 "es_AR"
185 "es_CL"
186 "es_ES"
187 "es_MX"
188 "fi_FI"
189 "fr_BE"
190 "fr_CA"
191 "fr_CH"
192 "fr_FR"
193 "ga_IE"
194 "it_IT"
195 "ja_JP"
196 "ko_KR"
197 "nb_NO"
198 "nl_NL"
199 "pl_PL"
200 "pt_PT"
201 "ro_RO"
202 "ru_RU"
203 "sv_SE"
204 "tr_TR"
205 "uk_UA"
206 "vi_VN"
207 "zh_CN"))))
208 183
209 184
210;;; 185;;;