--- a/hgext/win32mbcs.py Tue May 09 21:27:06 2017 -0700
+++ b/hgext/win32mbcs.py Fri May 12 11:20:25 2017 -0700
@@ -155,7 +155,8 @@
# These functions are required to be called with local encoded string
# because they expects argument is local encoded string and cause
# problem with unicode string.
-rfuncs = '''mercurial.encoding.upper mercurial.encoding.lower'''
+rfuncs = '''mercurial.encoding.upper mercurial.encoding.lower
+ mercurial.pycompat.bytestr'''
# List of Windows specific functions to be wrapped.
winfuncs = '''os.path.splitunc'''