[lorax] Change the locale to C (#786833)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 src/pylorax/__init__.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/pylorax/__init__.py b/src/pylorax/__init__.py
index a376866..d842b0f 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()
 
-- 
1.7.5.4

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux