FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 02-17-2012, 09:10 AM
Martin Gracik
 
Default Change the locale to C (#786833)

---
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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 02-17-2012, 01:38 PM
Chris Lumens
 
Default Change the locale to C (#786833)

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

Sure.

- Chris

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

Thread Tools




All times are GMT. The time now is 11:12 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org