Commits

Anonymous committed 03bdb47

run_testcase.py: set locale to 'C'

  • Participants
  • Parent commits 1f20075

Comments (0)

Files changed (2)

File hachoir-metadata/run_testcase.py

 from hachoir_core.compatibility import all
 from hachoir_metadata import extractMetadata
 import datetime
+from locale import setlocale, LC_ALL
 import os
 import sys
 
     return True
 
 def main():
+    setlocale(LC_ALL, "C")
     if len(sys.argv) != 2:
         print >>sys.stderr, "usage: %s testcase_directory" % sys.argv[0]
         sys.exit(1)

File hachoir-parser/tests/run_testcase.py

 from hachoir_core.stream import InputStreamError
 from hachoir_parser import createParser
 from hachoir_core.compatibility import all
+from locale import setlocale, LC_ALL
 import os
 import sys
 
     return True
 
 def main():
+    setlocale(LC_ALL, "C")
     if len(sys.argv) != 2:
         print >>sys.stderr, "usage: %s testcase_directory" % sys.argv[0]
         sys.exit(1)