diff --git a/mercurial/util.py b/mercurial/util.py --- a/mercurial/util.py +++ b/mercurial/util.py @@ -772,7 +772,7 @@ def makedirs(name, mode=None): makedirs(name, mode) def readfile(path): - fp = open(path) + fp = open(path, 'rb') try: return fp.read() finally: