Browse Source

Set LC_ALL to 'C'.

Parsing of some git outputs relies on the english language being used, so
explicitly set the locale before running any of them.
Heikki Hokkanen 13 years ago
parent
commit
4438d41363
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      gitstats

+ 2
- 0
gitstats View File

@@ -14,6 +14,8 @@ import sys
14 14
 import time
15 15
 import zlib
16 16
 
17
+os.environ['LC_ALL'] = 'C'
18
+
17 19
 GNUPLOT_COMMON = 'set terminal png transparent size 640,240\nset size 1.0,1.0\n'
18 20
 ON_LINUX = (platform.system() == 'Linux')
19 21
 WEEKDAYS = ('Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun')