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.
master
Heikki Hokkanen 2012-05-28 21:42:14 +03:00
parent 464bee6a11
commit 4438d41363
1 changed files with 2 additions and 0 deletions

View File

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