##// END OF EJS Templates
merge with crew-stable
Dirkjan Ochtman -
r9593:c358f3e7 merge default
parent child Browse files
Show More
@@ -16,7 +16,9 b' try:'
16 16 # On darwin, getpreferredencoding ignores the locale environment and
17 17 # always returns mac-roman. We override this if the environment is
18 18 # not C (has been customized by the user).
19 locale.setlocale(locale.LC_CTYPE, '')
19 lc = locale.setlocale(locale.LC_CTYPE, '')
20 if lc == 'UTF-8':
21 locale.setlocale(locale.LC_CTYPE, 'en_US.UTF-8')
20 22 encoding = locale.getlocale()[1]
21 23 if not encoding:
22 24 encoding = locale.getpreferredencoding() or 'ascii'
General Comments 0
You need to be logged in to leave comments. Login now