londiste repair: force LC_ALL=C to get sane sorting
authorMarko Kreen <markokr@gmail.com>
Wed, 3 Feb 2010 16:17:05 +0000 (16:17 +0000)
committerMarko Kreen <markokr@gmail.com>
Wed, 3 Feb 2010 16:17:05 +0000 (16:17 +0000)
python/londiste/repair.py

index 4d9bc9248b9e2ebf55ac6dcc952a6a429cc76feb..544396c89c757b52dd18c6d40baba55854f9069b 100644 (file)
@@ -77,9 +77,9 @@ class Repairer(Syncer):
             args = "-S 30%"
         else:
             args = ""
-        os.system("sort %s -T . -o %s.sorted %s" % (args, dump_src, dump_src))
+        os.system("LC_ALL=C sort %s -T . -o %s.sorted %s" % (args, dump_src, dump_src))
         self.log.info("Sorting dst table: %s" % tbl)
-        os.system("sort %s -T . -o %s.sorted %s" % (args, dump_dst, dump_dst))
+        os.system("LC_ALL=C sort %s -T . -o %s.sorted %s" % (args, dump_dst, dump_dst))
 
         self.dump_compare(tbl, dump_src + ".sorted", dump_dst + ".sorted")