summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdgit2
-rwxr-xr-xtests/tests/drs-push-rejects2
-rwxr-xr-xtests/tests/push-newpackage2
3 files changed, 3 insertions, 3 deletions
diff --git a/dgit b/dgit
index e5c8eab..3a79bb6 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 f6f8882..df90d22 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 5d23faa..2bfa5d5 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