Skip to content

Commit ddb6d3f

Browse files
Use real stdin encoding for fake stdin encoding.
this is both more accurate and corrects the spelling from UTF8 to UTF-8
1 parent 471fa82 commit ddb6d3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpython/curtsiesfrontend/repl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def close(self):
220220

221221
@property
222222
def encoding(self):
223-
return "UTF8"
223+
return sys.__stdin__.encoding
224224

225225
# TODO write a read() method?
226226

0 commit comments

Comments
 (0)