Skip to contentSkip to conversation

testsuite fails with locale diff output; set locale vars

PATCH New Junichi Uekawa 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 testsuite fails with locale diff output; set locale vars

From: Junichi Uekawa <[email protected]>

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'.

t/Makefile +2 -0
index e71da77..47eea74 100644
@@ -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; )