Boost logo

Boost :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2006-02-28 20:40:09


"Takeshi Mouri" <takeshi.mouri.net_at_[hidden]> wrote in message
news:6AC639D304B615takeshi.mouri.net_at_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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk