From patchwork Mon Apr 24 19:59:04 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josselin Poiret X-Patchwork-Id: 49472 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 5EB0B27BBEA; Mon, 24 Apr 2023 21:00:22 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FROM_SUSPICIOUS_NTLD,MAILING_LIST_MULTI,PDS_OTHER_BAD_TLD, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id EEFF527BBE2 for ; Mon, 24 Apr 2023 21:00:21 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pr2M4-0006v6-Bk; Mon, 24 Apr 2023 16:00:08 -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 1pr2Lz-0006uf-Re for guix-patches@gnu.org; Mon, 24 Apr 2023 16:00:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pr2Lz-0008Ru-H1 for guix-patches@gnu.org; Mon, 24 Apr 2023 16:00:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pr2Ly-0007t7-Q8 for guix-patches@gnu.org; Mon, 24 Apr 2023 16:00:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63057] [PATCH core-updates 2/3] installer: Filter out C.UTF-8 from the list of locales. Resent-From: Josselin Poiret Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 24 Apr 2023 20:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63057 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Josselin Poiret , 63057@debbugs.gnu.org Received: via spool by 63057-submit@debbugs.gnu.org id=B63057.168236634930213 (code B ref 63057); Mon, 24 Apr 2023 20:00:02 +0000 Received: (at 63057) by debbugs.gnu.org; 24 Apr 2023 19:59:09 +0000 Received: from localhost ([127.0.0.1]:50377 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pr2L7-0007rE-Dr for submit@debbugs.gnu.org; Mon, 24 Apr 2023 15:59:09 -0400 Received: from jpoiret.xyz ([206.189.101.64]:41752) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pr2L5-0007qu-KU for 63057@debbugs.gnu.org; Mon, 24 Apr 2023 15:59:08 -0400 Received: from authenticated-user (jpoiret.xyz [206.189.101.64]) by jpoiret.xyz (Postfix) with ESMTPA id C814F184F6B; Mon, 24 Apr 2023 19:59:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpoiret.xyz; s=dkim; t=1682366347; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Boq/LHfzEEST1EUcRMSikfegKuK+VOPOfyzZ6jwdFzo=; b=vH+TqkVi7waoZER5QvAhLkAlRb0LeCwF2sLYnHvH+dyLZxPWZPpS5fQlj9BpxeKcBpwkQH cySL1eT4tnzyfCB1/2CCIYC5sIMTBGJ56gt/vW8hc/efn0AEc4qAjDy58HLdXFlSCQC5K3 uONGUXmKq45dEBXGSakJTO7G/o09BJHWiI7Qht/2rd8PAwaLVl/8GHGxRxxA1aD9tNoA8L +cx+9c/WtehB96+EKN59zW/IjZsVeXHhO+qB01t5uR3PNWGPHGewa6uPRquPQv0GYrVkBP ViZl/dNz4FHShxL9dN4CMLXaHFBuc9XSzpsLgf5J+b72igAT+t4m7V3zvzv2Kw== Date: Mon, 24 Apr 2023 21:59:04 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Spamd-Bar: / Authentication-Results: jpoiret.xyz; auth=pass smtp.auth=jpoiret@jpoiret.xyz smtp.mailfrom=dev@jpoiret.xyz 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: , Reply-to: Josselin Poiret X-ACL-Warn: , Josselin Poiret via Guix-patches X-Patchwork-Original-From: Josselin Poiret via Guix-patches via From: Josselin Poiret Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * 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. --- gnu/installer/locale.scm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/gnu/installer/locale.scm b/gnu/installer/locale.scm index ccffb6d8ef..2ec0598abb 100644 --- a/gnu/installer/locale.scm +++ b/gnu/installer/locale.scm @@ -93,9 +93,10 @@ (define (locale->locale-string locale) (define (supported-locales->locales supported-locales) "Given SUPPORTED-LOCALES, a file produced by 'glibc-supported-locales', return a list of locales where each locale is an alist." - (map (match-lambda - ((locale . codeset) - (locale-string->locale locale codeset))) + (filter-map (match-lambda + (("C.UTF-8" . codeset) #f) + ((locale . codeset) + (locale-string->locale locale codeset))) (call-with-input-file supported-locales read)))