From: Ian Jackson Date: Sun, 19 Apr 2015 15:01:04 +0000 (+0100) Subject: LANG, LC_*: Consistently set required LC_* env vars X-Git-Tag: debian/0.30~226 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=commitdiff_plain;h=38b8cc309c7960a312f375b60dad41ef17ba2739 LANG, LC_*: Consistently set required LC_* env vars --- diff --git a/dgit b/dgit index e5c8eab9..3a79bb60 100755 --- a/dgit +++ b/dgit @@ -935,7 +935,7 @@ sub sshpsql ($$$) { my @rows; my @cmd = (access_cfg_ssh, $userhost, access_runeinfo("ssh-psql $runeinfo"). - " export LANG=C;". + " export LC_MESSAGES=C; export LC_CTYPE=C;". " ".shellquote qw(psql -A), $dbname, qw(-c), $sql); printcmd(\*DEBUG,$debugprefix."|",@cmd) if $debug>0; open P, "-|", @cmd or die $!; diff --git a/tests/tests/drs-push-rejects b/tests/tests/drs-push-rejects index f6f88829..df90d22c 100755 --- a/tests/tests/drs-push-rejects +++ b/tests/tests/drs-push-rejects @@ -86,7 +86,7 @@ for h in object type tag; do cat badtag.asc >>badtag set +e - LC_ALL=C git hash-object -w -t tag badtag >badtag.hash 2>badtag.err + LC_MESSAGES=C git hash-object -w -t tag badtag >badtag.hash 2>badtag.err rc=$? set -e diff --git a/tests/tests/push-newpackage b/tests/tests/push-newpackage index 5d23faa8..2bfa5d5a 100755 --- a/tests/tests/push-newpackage +++ b/tests/tests/push-newpackage @@ -8,7 +8,7 @@ cd $p t-refs-same-start t-ref-head -LANG=C t-dgit push 2>&1 \ +LC_MESSAGES=C t-dgit push 2>&1 \ | tee /dev/stderr \ | grep 'package appears to be new in this suite' >/dev/null