##// END OF EJS Templates
py3: decode encoding literal before passing to .decode()...
Denis Laxalde -
r43638:910827a2 stable
parent child Browse files
Show More
@@ -342,6 +342,7 b' def _encode(ui, s, charsets):'
342 s.decode('ascii')
342 s.decode('ascii')
343 except UnicodeDecodeError:
343 except UnicodeDecodeError:
344 for ics in (encoding.encoding, encoding.fallbackencoding):
344 for ics in (encoding.encoding, encoding.fallbackencoding):
345 ics = pycompat.sysstr(ics)
345 try:
346 try:
346 u = s.decode(ics)
347 u = s.decode(ics)
347 except UnicodeDecodeError:
348 except UnicodeDecodeError:
General Comments 0
You need to be logged in to leave comments. Login now