mercurial/i18n.py
changeset 30301 8321b083a83d
parent 30085 2bde971474d2
child 30639 d524c88511a7
--- a/mercurial/i18n.py	Sun Nov 06 03:12:40 2016 +0530
+++ b/mercurial/i18n.py	Sun Nov 06 12:18:23 2016 +0900
@@ -49,6 +49,7 @@
 _ugettext = None
 
 def setdatapath(datapath):
+    datapath = pycompat.fsdecode(datapath)
     localedir = os.path.join(datapath, pycompat.sysstr('locale'))
     t = gettextmod.translation('hg', localedir, _languages, fallback=True)
     global _ugettext