summaryrefslogtreecommitdiffstats
path: root/iw/fdisk.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-02-18 17:52:15 +0000
committerMatt Wilson <msw@redhat.com>2000-02-18 17:52:15 +0000
commit601096ed8edee7adedc774d484c7a1484742be83 (patch)
treedeb9e96bbe074bd42e3ef173caa946afd9750600 /iw/fdisk.py
parent9aa93fb5cf2679017a3a53c58419d51f69d611ec (diff)
downloadanaconda-601096ed8edee7adedc774d484c7a1484742be83.tar.gz
anaconda-601096ed8edee7adedc774d484c7a1484742be83.tar.xz
anaconda-601096ed8edee7adedc774d484c7a1484742be83.zip
use C locale when in japanese for fdisk
Diffstat (limited to 'iw/fdisk.py')
-rw-r--r--iw/fdisk.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/iw/fdisk.py b/iw/fdisk.py
index e04ecd685..868ad08bd 100644
--- a/iw/fdisk.py
+++ b/iw/fdisk.py
@@ -53,8 +53,14 @@ class FDiskWindow (InstallWindow):
isys.makeDevInode(drive, '/tmp/' + drive)
+
if zvt.forkpty() == 0:
- os.execv (path, (path, '/tmp/' + drive))
+ lang = self.ics.getICW().locale
+ env = os.environ
+ if lang[:2] == "ja":
+ env["LC_ALL"] = "C"
+ env["LANG"] = "C"
+ os.execve (path, (path, '/tmp/' + drive), env)
zvt.show ()
self.windowContainer.remove (self.buttonBox)