mercurial/hgweb/common.py
changeset 34022 d5b2beca16c0
parent 31790 62f9679df1f2
child 34511 67873ec0f4ce
--- a/mercurial/hgweb/common.py	Wed Aug 30 14:04:55 2017 -0700
+++ b/mercurial/hgweb/common.py	Tue Aug 22 20:03:07 2017 -0400
@@ -178,7 +178,8 @@
         if err.errno == errno.ENOENT:
             raise ErrorResponse(HTTP_NOT_FOUND)
         else:
-            raise ErrorResponse(HTTP_SERVER_ERROR, err.strerror)
+            raise ErrorResponse(HTTP_SERVER_ERROR,
+                                encoding.strtolocal(err.strerror))
 
 def paritygen(stripecount, offset=0):
     """count parity of horizontal stripes for easier reading"""