Change the locale to C (#786833)
This commit is contained in:
parent
04ac7e7e9e
commit
2879908cde
@ -34,6 +34,7 @@ import sys
|
|||||||
import os
|
import os
|
||||||
import ConfigParser
|
import ConfigParser
|
||||||
import tempfile
|
import tempfile
|
||||||
|
import locale
|
||||||
|
|
||||||
from base import BaseLoraxClass, DataHolder
|
from base import BaseLoraxClass, DataHolder
|
||||||
import output
|
import output
|
||||||
@ -67,6 +68,9 @@ class Lorax(BaseLoraxClass):
|
|||||||
BaseLoraxClass.__init__(self)
|
BaseLoraxClass.__init__(self)
|
||||||
self._configured = False
|
self._configured = False
|
||||||
|
|
||||||
|
# set locale to C
|
||||||
|
locale.setlocale(locale.LC_ALL, 'C')
|
||||||
|
|
||||||
def configure(self, conf_file="/etc/lorax/lorax.conf"):
|
def configure(self, conf_file="/etc/lorax/lorax.conf"):
|
||||||
self.conf = ConfigParser.SafeConfigParser()
|
self.conf = ConfigParser.SafeConfigParser()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user