mercurial/windows.py
changeset 34040 d5b2beca16c0
parent 33657 8cb9e921ef8c
child 34146 0fa781320203
--- a/mercurial/windows.py	Wed Aug 30 14:04:55 2017 -0700
+++ b/mercurial/windows.py	Tue Aug 22 20:03:07 2017 -0400
@@ -137,7 +137,8 @@
         return fp
     except WindowsError as err:
         # convert to a friendlier exception
-        raise IOError(err.errno, '%s: %s' % (name, err.strerror))
+        raise IOError(err.errno, '%s: %s' % (
+            name, encoding.strtolocal(err.strerror)))
 
 # may be wrapped by win32mbcs extension
 listdir = osutil.listdir