projects
/
skytools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b00f41
)
londiste repair: force LC_ALL=C to get sane sorting
author
Marko Kreen
<markokr@gmail.com>
Wed, 3 Feb 2010 16:17:05 +0000
(16:17 +0000)
committer
Marko Kreen
<markokr@gmail.com>
Wed, 3 Feb 2010 16:17:05 +0000
(16:17 +0000)
python/londiste/repair.py
patch
|
blob
|
blame
|
history
diff --git
a/python/londiste/repair.py
b/python/londiste/repair.py
index 4d9bc9248b9e2ebf55ac6dcc952a6a429cc76feb..544396c89c757b52dd18c6d40baba55854f9069b 100644
(file)
--- 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")