Skip to content

Commit 7a2d8ea

Browse files
rscharfegitster
authored andcommitted
t/lib-httpd: pass LANG and LC_ALL to Apache
t5411 starts a web server with no explicit language setting, so it uses the system default. Ten of its tests expect it to return error messages containing the prefix "fatal: ", emitted by die(). This prefix can be localized since a1fd2cf (i18n: mark message helpers prefix for translation, 2022-06-21), however. As a result these ten tests break for me on a system with LANG="de_DE.UTF-8" because the web server sends localized messages with "Schwerwiegend: " instead of "fatal: ". Fix these tests by passing LANG and LC_ALL to the web server, which are set to "C" by t/test-lib.sh, to get untranslated messages on both sides. Helped-by: Junio C Hamano <[email protected]> Signed-off-by: René Scharfe <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 359da65 commit 7a2d8ea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

t/lib-httpd/apache.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ PassEnv LSAN_OPTIONS
8080
PassEnv GIT_TRACE
8181
PassEnv GIT_CONFIG_NOSYSTEM
8282
PassEnv GIT_TEST_SIDEBAND_ALL
83+
PassEnv LANG
84+
PassEnv LC_ALL
8385

8486
Alias /dumb/ www/
8587
Alias /auth/dumb/ www/auth/dumb/

0 commit comments

Comments
 (0)