Show More
@@ -47,7 +47,7 b' def getdefaultencoding():' | |||||
47 | and usually ASCII. |
|
47 | and usually ASCII. | |
48 | """ |
|
48 | """ | |
49 | enc = sys.stdin.encoding |
|
49 | enc = sys.stdin.encoding | |
50 | if not enc: |
|
50 | if not enc or enc=='ascii': | |
51 | try: |
|
51 | try: | |
52 | # There are reports of getpreferredencoding raising errors |
|
52 | # There are reports of getpreferredencoding raising errors | |
53 | # in some cases, which may well be fixed, but let's be conservative here. |
|
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