threads / patch / 2053

patchtestsuite fails with locale diff output; set locale vars

Subject: [PATCH] testsuite fails with locale diff output; set locale vars

## tl;dr

One message between Oct 10, 2005 and Oct 10, 2005. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Junichi Uekawa· Oct 10, 2005, 04:20 UTC · lore
From: Junichi Uekawa <dancer@debian.org>

git testsuite depends on diff output, which can change depending on LC_MESSAGES.

set LANG and LC_ALL environment vars to allow locale to be set to an expected value of 'C'.

Signed-off-by: Junichi Uekawa <dancer@debian.org>
Show changes to t/Makefile +2 −0
diff --git a/t/Makefile b/t/Makefile
index e71da77..47eea74 100644
--- a/t/Makefile
+++ b/t/Makefile
@@ -8,6 +8,8 @@ SHELL_PATH ?= $(SHELL)
 TAR ?= $(TAR)

 T = $(wildcard t[0-9][0-9][0-9][0-9]-*.sh)
+export LC_ALL=C
+export LANG=C

 all:
        @$(foreach t,$T,echo "*** $t ***"; $(SHELL_PATH) $t $(GIT_TEST_OPTS) || exit; )

← back to recent threads