Show More
@@ -93,7 +93,7 b' def _getpreferredencoding():' | |||
|
93 | 93 | try: |
|
94 | 94 | encoding = environ.get("HGENCODING") |
|
95 | 95 | if not encoding: |
|
96 | encoding = locale.getpreferredencoding() or 'ascii' | |
|
96 | encoding = locale.getpreferredencoding().encode('ascii') or 'ascii' | |
|
97 | 97 | encoding = _encodingfixers.get(encoding, lambda: encoding)() |
|
98 | 98 | except locale.Error: |
|
99 | 99 | encoding = 'ascii' |
General Comments 0
You need to be logged in to leave comments.
Login now