Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1lLcqY-0004Ra-5V for mharc-grub-devel@gnu.org; Sun, 14 Mar 2021 22:20:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40390) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lLcqX-0004Qf-5h for grub-devel@gnu.org; Sun, 14 Mar 2021 22:20:41 -0400 Received: from mail-ot1-x332.google.com ([2607:f8b0:4864:20::332]:42661) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lLcqS-00044U-Vv for grub-devel@gnu.org; Sun, 14 Mar 2021 22:20:40 -0400 Received: by mail-ot1-x332.google.com with SMTP id 31-20020a9d00220000b02901b64b9b50b1so4397660ota.9 for ; Sun, 14 Mar 2021 19:20:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficientek-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=EwnzFyJiznmn8A1Ijvtz10MaQSW20eSRvmWmheyJfco=; b=eNS1sYqlaiGep7Nd4TVIoyrYnvaewoPBbLd+CXB1GjWn0mGPUHQZKguyyegs12/e/Z y5WRQeyu4shsXJ7k7OJMTPn10IinQs0tMOEKDdi1O5X1KolDPio9V3lPhBgLqf1nF18P seOkrraiBdbQHEnhk8jpv8HMP6mYMmKfpf01jIraT0pO0QQ43qtG2RRasItseKM+vqC9 NXIPOfzFbmizwOcJ9n3Z+vDcuKGGyaUfgl32yPkbjj8F1sf+wPgBba1vBUH9LZat64Zp WJ5ejjlhGF52TqzmTW/PFW4hpl0Lo9ZhQ19bKzaeNkRFv+N37RzVbFq2A0hkjpFpaN0J m2Dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=EwnzFyJiznmn8A1Ijvtz10MaQSW20eSRvmWmheyJfco=; b=rJEi91gWJTUjVN19qryOfjl5WHPOsnJcH3/4WdVrS1aY/4rOykjOJ7dWK7pbTQFE/n tWQbms7JlWYhzPenBd/kESEjR2s4/Xfh3EtV7TxOJ4W5P8HdjsZ5F7sienD9Eiz6nU+Z gXBcSfe1QM9+6vQmuCio/7/Um6YUoBjjk7Wf0/Vt5RO2DSdtPMS4+GpHRylb3q38jalQ kqgcGUzdnuc0j2U8jHNULCs4nCWhikcd0GouLC2TnOovUxolCKOMboMmcxankGyu/G8l xxvXd1B91aelJvDJftdiUbi9tzutPaKDL2lEqsFCf1SsNuOV4HqtGNqwGf53ZCLC6a6b fMRw== X-Gm-Message-State: AOAM530YjXfjXqaRg20beb4vQsJ1zwxinGyTH15PKGDyujgY8jNrFuXr Li0BlH9xo0ricKxwWEgL6PBP4N4UbDqUrw== X-Google-Smtp-Source: ABdhPJyxDR8FqKG9Cc8n58IRjHIZNCfImyUYCp4dxNc9hNMg2sTborM4ENmBV2rav1nIKh8/6InAcg== X-Received: by 2002:a05:6830:1241:: with SMTP id s1mr12791678otp.360.1615774834961; Sun, 14 Mar 2021 19:20:34 -0700 (PDT) Received: from localhost.localdomain ([2605:a601:aac5:3700:b5e5:83e3:99ae:e6e8]) by smtp.gmail.com with ESMTPSA id t22sm6733206otl.49.2021.03.14.19.20.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Mar 2021 19:20:34 -0700 (PDT) From: Glenn Washburn To: grub-devel@gnu.org, Daniel Kiper Cc: Glenn Washburn Subject: [PATCH 1/8] tests: Make sure LANG is set properly for iso9660_test Date: Sun, 14 Mar 2021 21:20:16 -0500 Message-Id: X-Mailer: git-send-email 2.27.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::332; envelope-from=development@efficientek.com; helo=mail-ot1-x332.google.com 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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Mar 2021 02:20:41 -0000 LANG must be set to something that supports international characters, otherwise xorriso will refuse to include the file with name having international characters, causing the test to fail. So if LANG is not set, set it to en_US.UTF-8, a very common UTF-8 locale. And if it is set, but does not look like a UTF-8 locale, print a warning so the user will have a clue as to why the iso9660_test might be failing. Signed-off-by: Glenn Washburn --- tests/iso9660_test.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/iso9660_test.in b/tests/iso9660_test.in index 571b938d7..37b1d30af 100644 --- a/tests/iso9660_test.in +++ b/tests/iso9660_test.in @@ -7,6 +7,12 @@ if ! which xorriso >/dev/null 2>&1; then exit 77 fi +if [ -z "$LANG" ]; then + export LANG=en_US.UTF-8 +elif [ -n "${LANG##*UTF*}" ]; then + echo "WARNING: LANG=$LANG appears to not be unicode, international file test may fail." +fi + "@builddir@/grub-fs-tester" joliet "@builddir@/grub-fs-tester" rockridge "@builddir@/grub-fs-tester" rockridge_joliet -- 2.27.0