Boost logo

Boost :

From: Jan Hermelink (Jan.Hermelink_at_[hidden])
Date: 2005-07-25 10:16:33


Beman Dawes wrote:
> At 04:42 AM 7/20/2005, Jan Hermelink wrote:
>
> >Replacing the current implementation thru a simple narrow conversion
> >helps as workaround.
>
> My understanding (which could be faulty) is that there is no general
> way to do such a wide to narrow conversion that always works.

I don't know. It works with filenames with german characters but I can't
say for filenames with e.g. CJK characters.

Another idea:
- Get a WIN32 file handle with CreateFileW()
- Get filename from handle:
http://msdn.microsoft.com/library/en-us/fileio/fs/obtaining_a_file_name_
from_a_file_handle.asp
- use thereby the "Ansi" function to get the "ansi" filename
(GetMappedFileNameA())

However I have not tested this...

Jan


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