Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1lCw1T-00060p-5E for mharc-grub-devel@gnu.org; Thu, 18 Feb 2021 22:00:03 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38032) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCw1P-0005yv-Iu for grub-devel@gnu.org; Thu, 18 Feb 2021 21:59:59 -0500 Received: from mail-qk1-x72b.google.com ([2607:f8b0:4864:20::72b]:34410) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lCw1N-0005Q4-Qq for grub-devel@gnu.org; Thu, 18 Feb 2021 21:59:59 -0500 Received: by mail-qk1-x72b.google.com with SMTP id t63so4373857qkc.1 for ; Thu, 18 Feb 2021 18:59:57 -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=zPYF1nc19+Tcx2BomnbNoYYtjQxtYoNYfa4CwKk48sphXon2gKi2GOX4fLxHvfhUZ4 5nPVT83y06WRNFxnz2eY9ELiDfQhueogUsb7N1/fuUu+EfCLZVexGCsnPBEEyEn8VBoT EOBDhmlhzMXu7F+rD3yRh5AKYVJrCfIL7T40/bA7zIYn13QBJdmeplrJBKOWLLXyaBfD jtX39iBkRHL+kCFxYdgGWfn7RedPbaeBrBalNLN5Xuv94YsDbTttznMsmFREN09LUlYe 04t6hzf9nv1p8cSZ0o3M6Xk7GYqNRsQpOvQMLFSQotYkWuemI9QpeRrvSkz1HW1oC/Gy BpOQ== 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=oQ7jINtDkwnoXw9rVZByX8/yzV83GIa2HknWolRBO6/YzeSiAZJRmT+t2MGXB6BpEh yxPgre17Wn/rl84RHP/QdwDOREXXr4c4wcDaHdnBlayNNeIMKpDCdVJ9OT3h3E9bPSs5 yKZazeFXAkhWUUVe3uMkdzrIMDUgjqEba2nZ3MFCRd4aQ3ooKRG5apTXOE76e53Z1SZm t2EwUlZ1292XLl9lbcQiLf88uIpQInX9ozccuWITehqXTEcE4LbeKi3w68Lri0tfY9QY C6tKkCOPxK30MR/2hytDrRiv2nTnW+qtP4DneJPp0YnZaAnD9aVn0RdT32xnFOO5WiU8 GUkw== X-Gm-Message-State: AOAM532fWhkk9LzR356qrht0mNUtE9Wxu7Vor8YOK6bIZlkL2z/cwQqV 8NMQAiVF2BpkNH9XfikXHvhv7I9ozFcM5w== X-Google-Smtp-Source: ABdhPJwdVeEpj+g8zE8SyoDhHN8xqLM5jwljUbBChlw/TFQzotczDEzdtV6/ppAwx8v77br8c5xHJQ== X-Received: by 2002:a37:6ca:: with SMTP id 193mr7453132qkg.436.1613703596923; Thu, 18 Feb 2021 18:59:56 -0800 (PST) Received: from localhost.localdomain ([2605:a601:aac5:3700:c323:c101:d96b:34f1]) by smtp.gmail.com with ESMTPSA id b17sm2468294qtq.56.2021.02.18.18.59.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Feb 2021 18:59:56 -0800 (PST) From: Glenn Washburn To: grub-devel@gnu.org Cc: Daniel Kiper , Glenn Washburn Subject: [CI 01/17] tests: Make sure LANG is set properly for iso9660_test Date: Thu, 18 Feb 2021 20:59:20 -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::72b; envelope-from=development@efficientek.com; helo=mail-qk1-x72b.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: Fri, 19 Feb 2021 02:59:59 -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