From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id OJgtIIz+E2akjwAA62LTzQ:P1 (envelope-from ) for ; Mon, 08 Apr 2024 16:26:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id OJgtIIz+E2akjwAA62LTzQ (envelope-from ) for ; Mon, 08 Apr 2024 16:26:20 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gnu.org header.s=fencepost-gnu-org header.b=TRe35b0X; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1712586380; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=7sYQyWxQU8hgZa1K/ea1XdY6FDpRMmGculseBYHm0sM=; b=WR3oB102MaeAp7hUvgBP8cJjQIiNuSNnmow4vLt7NbOPwpj9OHJtrzbPU4SnxrSFbObc6R a6FtxvEgRFGgoh4BRzsxD72NY3ccIPKre2aeHfj5WnT1hWsCEVOnDjsKKr5NE0G0+rkxku TW1wkmb9y1l9RcwWY6eB6yG1rt/pMzaEIxLLbUP6Eu8XyjFkQknouwcA1G6lUDSJlVINkG GNOFhoYUoGnpO6QfUxEabXwDPen/v3LXrIoVLw/dGIpJoU09OmCPBUGuDRP/szAB37zU87 R53NcNRy/p2zs+tM/Zjcn71vq8snfprzqDcY1/GsjXmt7uLMErllF8EwUfoqYA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712586380; a=rsa-sha256; cv=none; b=k+wwpB6HzDbViptg9xUw3GOrHQjIg9NRzjI8MDXhb/D0OgguZR1UyBHiOpmBN8HVr5xbjn wxUkx8nZtCMnIfubnomL0dXdnD8AU70uPzMCZwnwE0kJwaXtB2QIh98/udFzvWvfnpsW3O 19pPuPamM4mSWxoZ9zcMCUZ7aaIaaZHydOEL6x5IfW4mCBtoKAg/ICsjf26/Yd9ScnVa3s sCNfHBqUKy7LNGdsPxKDgLmzP7O4Wd4cMkP7jFgfffJuEvEKZQQYNA4Qfj+xItw3y60iY9 qD4VaW9np37R1j3NpMHJyGRxQIWB/WCcGYIEexGK9X4CyXSL6kl+pDaQteWLRg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gnu.org header.s=fencepost-gnu-org header.b=TRe35b0X; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 727CE23794 for ; Mon, 8 Apr 2024 16:26:20 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rtpwq-0006oR-Fw; Mon, 08 Apr 2024 10:26:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rtpwi-0006Z6-0A for guix-patches@gnu.org; Mon, 08 Apr 2024 10:26:04 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rtpwb-0004iF-JY for guix-patches@gnu.org; Mon, 08 Apr 2024 10:25:59 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rtpwi-0000um-UF for guix-patches@gnu.org; Mon, 08 Apr 2024 10:26:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70280] [PATCH 3/5] locale: Shrink =?UTF-8?Q?=E2=80=98%default-locale-definitions=E2=80=99?= from 34 to 10 locales. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 08 Apr 2024 14:26:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70280 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70280@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 70280-submit@debbugs.gnu.org id=B70280.17125863083093 (code B ref 70280); Mon, 08 Apr 2024 14:26:04 +0000 Received: (at 70280) by debbugs.gnu.org; 8 Apr 2024 14:25:08 +0000 Received: from localhost ([127.0.0.1]:47334 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rtpvo-0000ng-1n for submit@debbugs.gnu.org; Mon, 08 Apr 2024 10:25:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35988) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rtpvi-0000lm-Au for 70280@debbugs.gnu.org; Mon, 08 Apr 2024 10:25:03 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rtpvV-0004HW-J3; Mon, 08 Apr 2024 10:24:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:References:In-Reply-To:Date:Subject:To: From; bh=nUc4gjExsWwKUIKNxmJidVYmj7Emp/nATzr6VgU4jsk=; b=TRe35b0XPgNfgS2AuoKx /BqLsurAWIu5Q/LWolNn+8sm9tp5uyGsZwFuaMFGNgOqgHbc02I/OUKDcDwDFARrm54wf8EniB30N HXblxajYfHvAQ9+F+wUk7JhdRj0QNJk0lVnPa/9Pv4S39hji3LZwNqtiCOtt3A+j31qcf0eY6/cif 2i/yPsbhWpNzpu1oEl/QiZN19+T+aG9pgXsbm+Y4CYO2UxwzWgceFL3CL312CmlAMvMFWS3cmsTy2 cd9djUtXcoRts2eo6dLOPXZKHIdL4gBf9TmALfkGIswV5qgbUeKfYMU+oan0vyqBRoAzhrZexgzqf EZq4I88Rb8vYug==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Mon, 8 Apr 2024 16:24:33 +0200 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.07 X-Spam-Score: -6.07 X-Migadu-Queue-Id: 727CE23794 X-Migadu-Scanner: mx12.migadu.com X-TUID: 8cg2wzRPvVU2 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 . + ;; 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"))) ;;; -- 2.41.0