# HG changeset patch # User mpm@selenic.com # Date 1118281126 28800 # Node ID 09364bcebdf0af2a237937a7571addd7196ab652 # Parent 2c4f2be05587187c55d32566edc454ba2b52b7fc Make most file opening binary -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Make most file opening binary This should make Windows happier manifest hash: 4a906f7c55d8af4e962385c645852d0b3d858b42 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCp52mywK+sNU5EO8RAtOzAJwK8MOtl3B0MDAXyJDnDFt9mHNINwCfVdRG 8z35hXvIJhz3sRo0ogdUZ0s= =eM45 -----END PGP SIGNATURE----- diff --git a/mercurial/hg.py b/mercurial/hg.py --- a/mercurial/hg.py +++ b/mercurial/hg.py @@ -279,7 +279,9 @@ def opener(base): f = os.path.join(p, path) - if mode != "r": + mode += "b" # for that other OS + + if mode[0] != "r": try: s = os.stat(f) except OSError: