mercurial/encoding.py
changeset 31774 7d2cbe11ae48
parent 31448 6419cd243017
child 32156 6c0ae9683437
--- a/mercurial/encoding.py	Sun Apr 02 02:29:51 2017 -0400
+++ b/mercurial/encoding.py	Wed Mar 29 21:13:55 2017 +0900
@@ -211,8 +211,8 @@
     strtolocal = unitolocal
     strfromlocal = unifromlocal
 else:
-    strtolocal = str
-    strfromlocal = str
+    strtolocal = pycompat.identity
+    strfromlocal = pycompat.identity
 
 if not _nativeenviron:
     # now encoding and helper functions are available, recreate the environ