
"Takeshi Mouri" <takeshi.mouri.net@green.ocn.ne.jp> wrote in message news:6AC639D304B615takeshi.mouri.net@green.ocn.ne.jp...
Hi Beman,
PS: I'd like to hear from programmers using wide character file names. Are they working OK? Are they meeting your needs?
I tested directory_iterator and fstream for Chinese file names on Windows XP Japanese edition. directory_iterator worked correctly, but fstream didn't.
In detail::narrow_path_api(), GetShortPathNameW() is used for getting the short 8.3 form names. This function returns an Unicode string which contains non-ASCII characters. So, mapping from Unicode to ANSI is necessary.
This is a tough one for me; the test cases you sent separately work fine on my Win XP SP2 English edition. The differences in test results may have more to do with codepage differences that edition differences. In any case, I applied your patch to CVS. Thank you very much for helping! It is very useful to have reports from someone with real-world experience in Asian languages. --Beman