From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1oaGtI-0004an-4o for mharc-grub-devel@gnu.org; Mon, 19 Sep 2022 09:32:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47528) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oaGtG-0004XN-PN for grub-devel@gnu.org; Mon, 19 Sep 2022 09:32:50 -0400 Received: from mx.mylinuxtime.de ([195.201.174.144]:51208) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oaGtE-0000Nn-SM for grub-devel@gnu.org; Mon, 19 Sep 2022 09:32:50 -0400 Received: from leda.eworm.de (unknown [194.36.25.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mx.mylinuxtime.de (Postfix) with ESMTPSA id 723E31F25B2; Mon, 19 Sep 2022 15:32:44 +0200 (CEST) Received: by leda.eworm.de (Postfix, from userid 1000) id 02BE618714C; Mon, 19 Sep 2022 15:32:43 +0200 (CEST) From: Christian Hesse To: grub-devel Cc: Christian Hesse Subject: [PATCH 1/1] templates: filter C.UTF-8 locale for translation Date: Mon, 19 Sep 2022 15:31:28 +0200 Message-Id: <20220919133128.67173-1-list@eworm.de> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=195.201.174.144; envelope-from=eworm@leda.eworm.de; helo=mx.mylinuxtime.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Sep 2022 13:32:51 -0000 From: Christian Hesse In addition to C locale there is also C.UTF-8 locale now. Filter that as well, by using ${grub_lang}, which contains a stripped value. This fixes the following message and resulting boot failure: error: file `/boot/grub/locale/C.gmo' not found. Signed-off-by: Christian Hesse --- util/grub.d/00_header.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/grub.d/00_header.in b/util/grub.d/00_header.in index f74c2a4c6..6a316a5ba 100644 --- a/util/grub.d/00_header.in +++ b/util/grub.d/00_header.in @@ -191,7 +191,7 @@ EOF EOF # Gettext variables and module -if [ "x${LANG}" != "xC" ] && [ "x${LANG}" != "xPOSIX" ] && [ "x${LANG}" != "x" ]; then +if [ "x${grub_lang}" != "xC" ] && [ "x${LANG}" != "xPOSIX" ] && [ "x${LANG}" != "x" ]; then cat << EOF set locale_dir=\$prefix/locale set lang=${grub_lang} -- 2.37.3