Subject: Re: [boost] [filesystem]Extracting path as string from wpath
From: Johan Torp (johan.torp_at_[hidden])
Date: 2008-10-18 06:51:29
Beman Dawes wrote:
>> How do convert a boost::filesystem::wpath to a known encoding in the
>> filesystem's path representation?
>> Specifically I want to convert a boost::filesystem::wpath to a third
>> string (CFString from Carbon). In order to do that I must know the
>> of wpath.string() or wpath.external_file_string() on Mac, which is
>> "implementation defined".
> wpath.external_file_string() returns the type and encoding required by the
> platform. For Mac OS X, the type is std::string, and the Apple web site
> the encoding is Unicode. I assume that means UTF-8, although I couldn't
> that stated explicitly.
>> Interfacing boost::filesystem::wpath with 3rd party APIs seems like
> Sure. That's why external_file_string is exposed.
> Internationalization should be a bit easier with Boost.Filesystem Version
> that I'm working on, because there is a single path type.
Sounds interesting, looking forward to it! For V3, I would appreciate
comprehensive documentation on the format of external_file_string() for each
Thanks for an excellent library.
-- View this message in context: http://www.nabble.com/-filesystem-Extracting-path-as-string-from-wpath-tp20031413p20045896.html Sent from the Boost - Dev mailing list archive at Nabble.com.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk