Boost logo

Boost :

Subject: Re: [boost] boost filesystem path as utf-8?
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2012-01-23 17:15:58


On Mon, Jan 23, 2012 at 4:47 AM, Beman Dawes <bdawes_at_[hidden]> wrote:
> On Mon, Jan 23, 2012 at 4:46 AM, Yakov Galka <ybungalobill_at_[hidden]> wrote:
>> As Artyom said you can imbue whatever locale you want to specify the
>> conversion form narrow to wide strings. It will make almost all the
>> conversions transparent, except that the path will still be stored as
>> UTF-16 on windows.
>
> So far, so good.
>
>> Unfortunately it boils to the interface whence you can
>> get a c_str() to a UTF-16 string only.
>
> That's not correct.
>
> If you have a path p, and the imbued codecvt if UTF-8

How exactly do I imbue UTF-8 codecvt in a path? I Googled around and
couldn't find anything.

Emil Dotchevski
Reverge Studios, Inc.
http://www.revergestudios.com/reblog/index.php?n=ReCode


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