From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1mImy6-0002m7-1w for mharc-grub-devel@gnu.org; Wed, 25 Aug 2021 03:05:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54558) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mImy1-0002fL-2L for grub-devel@gnu.org; Wed, 25 Aug 2021 03:04:57 -0400 Received: from mail-qk1-x72f.google.com ([2607:f8b0:4864:20::72f]:37761) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mImxx-0002WT-AZ for grub-devel@gnu.org; Wed, 25 Aug 2021 03:04:56 -0400 Received: by mail-qk1-x72f.google.com with SMTP id 14so26038092qkc.4 for ; Wed, 25 Aug 2021 00:04:50 -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=DNK9frjwITx+GhdstzN4EwJurNTV5bNQQJwcfBXYtvPZGXS8pKwKaXvJkS00bgVANU B653JazE/tGchhAErlAqrapgmdcHq5iatsFGvmcsv1BMy5jZBo/7GpjanKDj68uYBkd6 YY8fCf9oE6O84Mg+qGLEoDnEwhxcX2Ab4A5ztUTkRMahmwv3loK+4FDFxpN7/d6rS9VY 0rjTnfVC8VTPGFgYGKU2tB7uKDioIwQUoBJ+HDCy0/NDn91XBZhXDZdDxXd5EqGCzIYV Eu9QRhw40I3n+XVMXlKlS+1S0Day/CbKiLXKRcbE1VfxMURl+2Sauvfb+of0mdD/zi8R pPpg== 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=UKZhhaVdIRCfdHdSf6GK24BfY0Z/rQpNDhFkuxMcqzTKhLklpCYuftW8LUH7x6yq2D Og8Fp4gg970MY8wp5MvQ6OayHAGvNMZvlWj07yOzFsd2+m/f6iThjeoA3kQ3E2hN31E6 b1uQWG5YZeyqmAYoRr5sGsiGg3o3LqAkDQy3KcXJNSFzKi2opy8wnFpFyzhFg53KjDOp AOaDzb8qEir/ooz8if7T56204llTB4XUpGcIcQ5a75+ktuI3BITfnJgj3GRA4KSVkK9o dhOc4rX17BPrGghLxad1HpZqvgFNDFc7WrfnrhsClDTFBRNv3shBkHyHb9hwqKCMifiQ hKvg== X-Gm-Message-State: AOAM5325j8D8z72+a2LSEs6ikNicd/6Jq/IujNyf15w7AyEmBv07LVmt KSS8lIKw6YmDO67FUDlNtNTy4VJTzV0Qe5A0 X-Google-Smtp-Source: ABdhPJwvxsqBf/wHOXnlBI3ltwDdEA8jckuRJ0tzC6RistqFDb2MS+3mXj2MVS1sGVUuAVfxC8dnLw== X-Received: by 2002:a05:620a:1aa6:: with SMTP id bl38mr30670591qkb.36.1629875090163; Wed, 25 Aug 2021 00:04:50 -0700 (PDT) Received: from localhost.localdomain ([199.58.83.11]) by smtp.gmail.com with ESMTPSA id g1sm12444585qkd.89.2021.08.25.00.04.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Aug 2021 00:04:49 -0700 (PDT) From: Glenn Washburn To: grub-devel@gnu.org, Daniel Kiper Cc: Glenn Washburn Subject: [PATCH v2 1/8] tests: Make sure LANG is set properly for iso9660_test Date: Wed, 25 Aug 2021 02:03:55 -0500 Message-Id: <17ddccb2ea35790b2effaf6bbe7d9acc4628f48c.1629874373.git.development@efficientek.com> 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::72f; envelope-from=development@efficientek.com; helo=mail-qk1-x72f.google.com X-Spam_score_int: 0 X-Spam_score: 0.0 X-Spam_bar: / X-Spam_report: (0.0 / 5.0 requ) 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: Wed, 25 Aug 2021 07:04:57 -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