t/lib-httpd: pass LANG and LC_ALL to Apache
commit7a2d8ea47e8127676adc5dc39fef853aae572e66
authorRené Scharfe <l.s.r@web.de>
Thu, 6 Oct 2022 15:33:07 +0000 (6 17:33 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 6 Oct 2022 16:16:26 +0000 (6 09:16 -0700)
treef961788b8a317314b7d74fc4f824ee14719034cb
parent359da658ae32d9a7e5e93ac173fc221352b62917
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 a1fd2cf8cd (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 <gitster@pobox.com>
Signed-off-by: René Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/lib-httpd/apache.conf