--- a/mercurial/i18n.py Wed Feb 22 10:14:18 2017 -0800
+++ b/mercurial/i18n.py Mon Feb 20 18:40:42 2017 +0530
@@ -21,7 +21,7 @@
if getattr(sys, 'frozen', None) is not None:
module = pycompat.sysexecutable
else:
- module = __file__
+ module = pycompat.fsencode(__file__)
try:
unicode