Skip to content

Commit c828fad

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 b30efb8 commit c828fad

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
@@ -210,7 +210,7 @@ def close(self):
210210

211211
@property
212212
def encoding(self):
213-
return 'UTF8'
213+
return sys.__stdin__.encoding
214214

215215
# TODO write a read() method?
216216

0 commit comments

Comments
 (0)