Show More
@@ -47,7 +47,7 b' def getdefaultencoding():' | |||
|
47 | 47 | and usually ASCII. |
|
48 | 48 | """ |
|
49 | 49 | enc = sys.stdin.encoding |
|
50 | if not enc: | |
|
50 | if not enc or enc=='ascii': | |
|
51 | 51 | try: |
|
52 | 52 | # There are reports of getpreferredencoding raising errors |
|
53 | 53 | # in some cases, which may well be fixed, but let's be conservative here. |
General Comments 0
You need to be logged in to leave comments.
Login now