summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib/run.py
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2003-06-22 07:52:56 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2003-06-22 07:52:56 (GMT)
commitbcc651a1f954bad7a14d93d41e95728072e48ea0 (patch)
tree92941fd13a92cf19a27aaf974db4398d5d03290e /Lib/idlelib/run.py
parentfaa697a5c9f36ee410599740deb047b8b8c56482 (diff)
downloadcpython-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.py3
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)