diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2003-06-22 07:52:56 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2003-06-22 07:52:56 (GMT) |
commit | bcc651a1f954bad7a14d93d41e95728072e48ea0 (patch) | |
tree | 92941fd13a92cf19a27aaf974db4398d5d03290e /Lib/idlelib/run.py | |
parent | faa697a5c9f36ee410599740deb047b8b8c56482 (diff) | |
download | cpython-bcc651a1f954bad7a14d93d41e95728072e48ea0.zip cpython-bcc651a1f954bad7a14d93d41e95728072e48ea0.tar.gz cpython-bcc651a1f954bad7a14d93d41e95728072e48ea0.tar.bz2 |
Idlefork patch #682347: convert Unicode strings from readline to
IOBinding.encoding. Also set sys.std{in,out,err}.encoding, for both
the local and the subprocess case.
Diffstat (limited to 'Lib/idlelib/run.py')
-rw-r--r-- | Lib/idlelib/run.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/idlelib/run.py b/Lib/idlelib/run.py index be91d54..4e6345c 100644 --- a/Lib/idlelib/run.py +++ b/Lib/idlelib/run.py @@ -210,6 +210,9 @@ class MyHandler(rpc.RPCHandler): sys.stdin = self.console = self.get_remote_proxy("stdin") sys.stdout = self.get_remote_proxy("stdout") sys.stderr = self.get_remote_proxy("stderr") + import IOBinding + sys.stdin.encoding = sys.stdout.encoding = \ + sys.stderr.encoding = IOBinding.encoding self.interp = self.get_remote_proxy("interp") rpc.RPCHandler.getresponse(self, myseq=None, wait=0.05) |