Change the locale to C (#786833)

This commit is contained in:
Martin Gracik 2012-02-17 11:09:59 +01:00
parent f6876beea6
commit 84c56294bf

View File

@ -34,6 +34,7 @@ import sys
import os
import ConfigParser
import tempfile
import locale
from base import BaseLoraxClass, DataHolder
import output
@ -67,6 +68,9 @@ class Lorax(BaseLoraxClass):
BaseLoraxClass.__init__(self)
self._configured = False
# set locale to C
locale.setlocale(locale.LC_ALL, 'C')
def configure(self, conf_file="/etc/lorax/lorax.conf"):
self.conf = ConfigParser.SafeConfigParser()