--- a/mercurial/util.py Thu Jun 01 08:31:21 2017 -0700
+++ b/mercurial/util.py Sat Jun 03 16:33:28 2017 -0400
@@ -71,6 +71,9 @@
urlreq = pycompat.urlreq
xmlrpclib = pycompat.xmlrpclib
+# workaround for win32mbcs
+_filenamebytestr = pycompat.bytestr
+
def isatty(fp):
try:
return fp.isatty()
@@ -1208,7 +1211,7 @@
for n in path.replace('\\', '/').split('/'):
if not n:
continue
- for c in pycompat.bytestr(n):
+ for c in _filenamebytestr(n):
if c in _winreservedchars:
return _("filename contains '%s', which is reserved "
"on Windows") % c