From: Marko Kreen Date: Wed, 3 Feb 2010 16:17:05 +0000 (+0000) Subject: londiste repair: force LC_ALL=C to get sane sorting X-Git-Tag: skytools_2_1_11~1 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=8de45d87d0b7af6cba4cb74dc003d3e6a3b64074;p=skytools.git londiste repair: force LC_ALL=C to get sane sorting --- diff --git a/python/londiste/repair.py b/python/londiste/repair.py index 4d9bc924..544396c8 100644 --- a/python/londiste/repair.py +++ b/python/londiste/repair.py @@ -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")