[PATCH] Fix for Issue1260
Shun-ichi GOTO
shunichi.goto at gmail.com
Fri Aug 15 15:51:39 UTC 2008
2008/8/15 Adrian Buehlmann <adrian at cadifra.com>:
> --- a/mercurial/statichttprepo.py
> +++ b/mercurial/statichttprepo.py
> @@ -24,7 +24,7 @@
>
> def opener(base):
> """return a function that opens files over http"""
> - p = base
> + p = base.replace('\\', '/')
> def o(path, mode="r"):
> f = "/".join((p, urllib.quote(path)))
> return rangereader(f)
Please use util.pconvert(base) or util.normpath(base) instead of using
string.replace() directly.
This is due to MBCS issue (regarding to hgext/win32mbcs.py).
--
Shun-ichi GOTO
More information about the Mercurial-devel
mailing list