From d28e419bb4958e547e740cb46401231b5a41d654 Mon Sep 17 00:00:00 2001 From: Steven Myint Date: Sun, 7 Feb 2016 08:36:28 -0800 Subject: [PATCH] Emulate what "sys.stdout" does for "encoding" This is similar to #293, which was fixed in a similar way. That case was for "sys.stdin". --- bpython/curtsiesfrontend/coderunner.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bpython/curtsiesfrontend/coderunner.py b/bpython/curtsiesfrontend/coderunner.py index 21fdbc18a..bb30f3f30 100644 --- a/bpython/curtsiesfrontend/coderunner.py +++ b/bpython/curtsiesfrontend/coderunner.py @@ -218,3 +218,8 @@ def flush(self): def isatty(self): return True + + @property + def encoding(self): + return 'UTF-8' +