chiark / gitweb /
sshpsql archive query method passes LANG=C. Closes:#729788.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 17 Nov 2013 14:29:08 +0000 (14:29 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 24 Nov 2013 16:59:01 +0000 (16:59 +0000)
debian/changelog
dgit

index dc1f1d3..eef1f78 100644 (file)
@@ -1,3 +1,10 @@
+dgit (0.18.1) unstable; urgency=low
+
+  Bugfixes:
+  * sshpsql archive query method passes LANG=C.  Closes:#729788.
+
+ --
+
 dgit (0.18) unstable; urgency=low
 
   Major new feature:
diff --git a/dgit b/dgit
index 2a5e26b..088f5d2 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -655,7 +655,7 @@ sub sshpsql ($$) {
     my ($userhost,$dbname) = ($`,$'); #';
     my @rows;
     my @cmd = (access_cfg_ssh, $userhost,
-              shellquote qw(psql -A), $dbname, qw(-c), $sql);
+              "export LANG=C; ".shellquote qw(psql -A), $dbname, qw(-c), $sql);
     printcmd(\*DEBUG,$debugprefix."|",@cmd) if $debug>0;
     open P, "-|", @cmd or die $!;
     while (<P>) {