
"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.
Please see the the attachment.
Thanks Takeshi. I'll give your patch a try tomorrow. Do you have a test case you would like to see added to the regression test? --Beman