Comment 43 for bug 335362

Revision history for this message
methane (songofacandy) wrote : Re: [Bug 335362] Re: [master] UnicodeDecodeError when processing paths that have the non-ascii characters

> This is Simplified Chinese, i don't know if solving the problem for
> Simplified Chinese can also fix it for Traditional Chinese

Ok, Maybe. My patch is use "-W" API. It handles path as utf-16 instead
of codepage.
So I can handle Simplified Chinese name in my Japanese codepage.

> I can't switch my system to Chinese, cause my base system is english...
> maybe a problem is related to that command line of windows... it is not
> unicode...
>
> and i can get an unicode command line alternative of cmd...

CommandLine can output unicode with "WriteConsoleW" API.
Please see below:
http://bitbucket.org/methane/hg-fixutf8-jp/src/50b7e27c2821/win32helper.py

bzrlib.win32helper can wrap stderr with that API.

--
Naoki INADA <email address hidden>