summaryrefslogtreecommitdiffstats
path: root/language.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2001-09-07 21:59:58 +0000
committerMatt Wilson <msw@redhat.com>2001-09-07 21:59:58 +0000
commitd240ebd392af2075d856289f77a6cf94db3ac150 (patch)
tree702dfdb2ee5ee7a398ba4bff8356c3127c40e69a /language.py
parent99ad53b85e9d3e4320a540eee72dbe1bd18a7a1c (diff)
downloadanaconda-d240ebd392af2075d856289f77a6cf94db3ac150.tar.gz
anaconda-d240ebd392af2075d856289f77a6cf94db3ac150.tar.xz
anaconda-d240ebd392af2075d856289f77a6cf94db3ac150.zip
set locale after user selects language (#53401)
Diffstat (limited to 'language.py')
-rw-r--r--language.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/language.py b/language.py
index c3e383ca2..4a2df41ee 100644
--- a/language.py
+++ b/language.py
@@ -1,5 +1,6 @@
import os
import string
+import locale
from simpleconfig import SimpleConfigFile
import rpm
from translate import cat
@@ -115,9 +116,9 @@ class InstallTimeLanguage:
self.setRuntimeDefaults(name)
lang = self.langNicks[name]
- os.environ["LC_ALL"] = lang
os.environ["LANG"] = lang
os.environ["LC_NUMERIC"] = 'C'
+ locale.setlocale(locale.LC_ALL, "")
newlangs = [lang]
if len(lang) > 2: