From 84c56294bf1bf9e2a9b95bc9e17b6c9d2f70e397 Mon Sep 17 00:00:00 2001 From: Martin Gracik Date: Fri, 17 Feb 2012 11:09:59 +0100 Subject: [PATCH] Change the locale to C (#786833) --- src/pylorax/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pylorax/__init__.py b/src/pylorax/__init__.py index 8ae3077b..203191e2 100644 --- a/src/pylorax/__init__.py +++ b/src/pylorax/__init__.py @@ -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()