diff -r 789b69d597cc -r 73e4a02e6d23 hg --- a/hg Tue May 27 21:02:16 2014 -0700 +++ b/hg Mon Jun 23 09:33:07 2014 -0400 @@ -10,6 +10,11 @@ import os import sys +if os.environ.get('HGUNICODEPEDANTRY', False): + reload(sys) + sys.setdefaultencoding("undefined") + + libdir = '@LIBDIR@' if libdir != '@' 'LIBDIR' '@':