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.
This commit is contained in:
Martin v. Löwis 2003-06-22 07:52:56 +00:00
parent faa697a5c9
commit bcc651a1f9
2 changed files with 15 additions and 4 deletions

View file

@ -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)