mirror of
https://github.com/python/cpython.git
synced 2025-10-14 18:59:46 +00:00
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:
parent
faa697a5c9
commit
bcc651a1f9
2 changed files with 15 additions and 4 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue