cvsps: convert encoding name to sysstr
Differential Revision: https://phab.mercurial-scm.org/D3489
--- a/hgext/convert/cvsps.py Wed May 09 13:46:31 2018 -0700
+++ b/hgext/convert/cvsps.py Fri Apr 27 01:32:21 2018 -0400
@@ -510,7 +510,8 @@
comment = entry.comment
for e in encodings:
try:
- entry.comment = comment.decode(e).encode('utf-8')
+ entry.comment = comment.decode(
+ pycompat.sysstr(e)).encode('utf-8')
if ui.debugflag:
ui.debug("transcoding by %s: %s of %s\n" %
(e, revstr(entry.revision), entry.file))