chiark / gitweb /
LANG, LC_*: Consistently set required LC_* env vars
[dgit.git] / dgit
diff --git a/dgit b/dgit
index e5c8eab9a30cc69292cf912252df615549c236ca..3a79bb60b1a5bd7b884bbc91330908efa36a9a43 100755 (executable)
--- 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 $!;