##// END OF EJS Templates
encoding: alias cp65001 to utf-8 on Windows...
Yuya Nishihara -
r38633:44302901 stable
parent child Browse files
Show More
@@ -72,6 +72,11 b' else:'
72 '646': lambda: 'ascii',
72 '646': lambda: 'ascii',
73 'ANSI_X3.4-1968': lambda: 'ascii',
73 'ANSI_X3.4-1968': lambda: 'ascii',
74 }
74 }
75 # cp65001 is a Windows variant of utf-8, which isn't supported on Python 2.
76 # No idea if it should be rewritten to the canonical name 'utf-8' on Python 3.
77 # https://bugs.python.org/issue13216
78 if pycompat.iswindows and not pycompat.ispy3:
79 _encodingfixers['cp65001'] = lambda: 'utf-8'
75
80
76 try:
81 try:
77 encoding = environ.get("HGENCODING")
82 encoding = environ.get("HGENCODING")
General Comments 0
You need to be logged in to leave comments. Login now