[PATCH 0 of 2] win32mbcs: Fix for osutil.listdir() with problematic bytes (updated)

Shun-ichi Goto shunichi.goto at gmail.com
Fri Jul 10 05:34:55 CDT 2009


win32mbcs: Fix for osutil.listdir() with problematic bytes.

(This is updated patch series including suggestion from timeless at gmail.com)

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.


This patch series is 


More information about the Mercurial-devel mailing list