Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1kqZGY-0006WO-Nc for mharc-grub-devel@gnu.org; Sat, 19 Dec 2020 05:15:10 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:45394) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kqZGW-0006Ti-4T for grub-devel@gnu.org; Sat, 19 Dec 2020 05:15:08 -0500 Received: from mail-il1-x131.google.com ([2607:f8b0:4864:20::131]:33295) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kqZGU-0001yP-66 for grub-devel@gnu.org; Sat, 19 Dec 2020 05:15:07 -0500 Received: by mail-il1-x131.google.com with SMTP id n9so4569563ili.0 for ; Sat, 19 Dec 2020 02:15:05 -0800 (PST) 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=Z992A6CC0OBszh7ocWqjjv3MIfQJC+W381LC24QyOKKIJ/MMJyr7J76VTYIPRO+a6L xe8ahknpOkWlZYU510vJCm+uyVFE7OiJ9E8AhU/a8O2drR5SjYdMqX5ZQ7XgRdG8A5mA 9eZ5MSYEpxDqavlfhsaE0GgbXEEy5cvrSTzROA7tC5kKYdp3kv01QHJfluY1sOVSSpFH iQ8HQm6RoMQ2rPI5LtmH0ytNgazr/JGTmlD6QPkxy8NLGPupdjdPWObXi9xJYtmwLdbi pTcd/vX7URblEjd3XznP/xUiXFVEyfeFm8oRlyovqENMM/5yz9Hl8WukFxg3aCLrUF14 bOmA== 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=g062CBbaAcLRgZkg8FcXPvg9I41NbpkEJsWPxWFFfOpDts+M014xPI8zyQK/KTKB1F 1JQkKq4bQQkoDAgCcuIMKYIwhc1FHyveCISrnYgbzoMYHPpv912OcLCwHvJZZO016NlE yZhJb3EdzReh9X1eNHqbMBq9GdWuIT7GQrXq5bHZtQQ2v6mg44LBs+Pg8Fg02vd8ZuET 3ew30Ej2BFL7WcRkK+OHSkfbUEn1zfhRiJfOcs6t4+L+vlzL/cXKGDRsP2sswS/MOBSQ wEAf67ak2upBnw35Wca1QWRWk3er01bcnEuyT6EnKDuOd7R8/BEFDyRK4VqqoiMko64+ vPeg== X-Gm-Message-State: AOAM530JEHqACOT/xA7S+uLaWyjz08sR9NFkRRGD3kdZZoU3U3eh6ypR L2OetYHZndq4aq03hsUrLiYOdDxP7xEpew== X-Google-Smtp-Source: ABdhPJxlwQUbU94wxh3CkXXjQN3ONu+YL9YK0Zq4JTB9LMaMO9MJyWrpUctYchRMmMdMjCO/E1XBPw== X-Received: by 2002:a05:6e02:1a8e:: with SMTP id k14mr8630788ilv.275.1608372905060; Sat, 19 Dec 2020 02:15:05 -0800 (PST) Received: from localhost.localdomain ([136.49.211.192]) by smtp.gmail.com with ESMTPSA id o195sm8821542ila.38.2020.12.19.02.15.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Dec 2020 02:15:04 -0800 (PST) From: Glenn Washburn To: grub-devel@gnu.org Cc: Daniel Kiper , Glenn Washburn Subject: [PATCH 2/5] tests: Make sure LANG is set properly for iso9660_test Date: Sat, 19 Dec 2020 04:14:37 -0600 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::131; envelope-from=development@efficientek.com; helo=mail-il1-x131.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: Sat, 19 Dec 2020 10:15:08 -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