diff options
author | Matt Wilson <msw@redhat.com> | 2000-02-18 17:52:15 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2000-02-18 17:52:15 +0000 |
commit | 601096ed8edee7adedc774d484c7a1484742be83 (patch) | |
tree | deb9e96bbe074bd42e3ef173caa946afd9750600 /iw | |
parent | 9aa93fb5cf2679017a3a53c58419d51f69d611ec (diff) | |
download | anaconda-601096ed8edee7adedc774d484c7a1484742be83.tar.gz anaconda-601096ed8edee7adedc774d484c7a1484742be83.tar.xz anaconda-601096ed8edee7adedc774d484c7a1484742be83.zip |
use C locale when in japanese for fdisk
Diffstat (limited to 'iw')
-rw-r--r-- | iw/fdisk.py | 8 |
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) |