--- a/mercurial/util.py Sat May 07 21:12:33 2011 +0200 +++ b/mercurial/util.py Sat May 07 21:12:35 2011 +0200 @@ -772,7 +772,7 @@ makedirs(name, mode) def readfile(path): - fp = open(path) + fp = open(path, 'rb') try: return fp.read() finally: