[PATCH 0 of 4] Fix win32mbcs and some functions to work

Shun-ichi Goto shunichi.goto at gmail.com
Thu Jul 9 13:57:34 UTC 2009


Fix some functions to work with win32mbcs correctly.

1st, fix win32mbcs which is broken in 8491:bd45047afaeb. This patch
is originaly posted from brodie (see issue1729) and additional fix
of function names to wrap.

2nd, fix listdir() in osutil.c not to remove '\' character in MBCS 2nd
byte.  Note that this change uses win32 api MultiByteToWideChar() to
detect and tested on Japanese (Shift_JIS) environment only.

3rd, windows.statfiles() not to use string.split(os.sep) which may
splits at MBCS 2nd byte.

4th, also wrap windows.pconvert().


More information about the Mercurial-devel mailing list