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

1 messages from 2005-10-10 to 2005-10-10. Participants: Junichi Uekawa.
Thread: https://gitlist.dev/t/2053

## Junichi Uekawa, 2005-10-10 04:20

Subject: [PATCH] testsuite fails with locale diff output; set locale vars
Message-ID: <87slvaroig.dancerj%dancer@netfort.gr.jp>
URL: https://gitlist.dev/e/87slvaroig.dancerj%25dancer%40netfort.gr.jp

```
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>

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; )

```
