From: Stefan Seefeld (seefeld_at_[hidden])
Date: 2003-09-14 16:04:07
Adrian Michel wrote:
> I was trying to use some of the functionality in boost::filesystem in a
> Windows app but could not find a way to create a path object from a Unicode
> string. The constructors accept const char*, std::string but no const
> wchar*. Is there any other way I could use Unicode for file/path names?
wchar * != unicode.
Just using wchar_t is by far not enough to expect unicode support.
You generally need to know what encoding a string is in. In particular,
some encodings such as utf-8 don't even have a fixed-width representation.
You really need a unicode library to deal with these issues. A unicode-enabled
path manipulation library would have to depend on it. Of course, one could
provide a templates based interface, where you plug in the unicode support
in terms of string and trait type parameters.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk