[PATCH 0 of 2] win32mbcs: Fix for osutil.listdir() with problematic bytes
Shun-ichi Goto
shunichi.goto at gmail.com
Fri Jul 10 06:57:10 UTC 2009
win32mbcs: Fix for osutil.listdir() with problematic bytes.
The osutil.listdir() is not unicode aware and its filename
manupilation is not good with problematic encodings. So we hook it to
ensure the 'path' argument ends with os.sep to prevent mishandling
in osutils.listdir().
1st patch is change wrapper to support keyword argument and dict
return value. The keyword arguments are also decoded by wrapper.
2nd patch adds new wrapper for osutil.listdir() and change wrapname()
to specify wrapper to use.
More information about the Mercurial-devel
mailing list