Boost logo

Boost :

Subject: Re: [boost] [nowide] Request for interest (nowide unicode support for windows)
From: Beman Dawes (bdawes_at_[hidden])
Date: 2010-06-15 11:59:21


On Tue, Jun 15, 2010 at 10:08 AM, Steven Watanabe <watanabesj_at_[hidden]> wrote:
> AMDG
>
> Artyom wrote:
>>
>> Question:
>>
>> Can I write:
>>
>>  boost::filesystem::fstream f("שלום.txt",std::ios_base::out);
>>
>> When "שלום.txt" is UTF-8 string and Unicode file name will be created?
>> If so, way to go.
>>
>
> In v3, yes.

There are some caveats, but it should work, and there are some fairly
similar test cases passing all compilers. To actually write the string
literal like that, the compiler must accept UTF-8 in string literals,
for example. On windows, the codepage has to be set to UTF-8. Those
are issues that affect any solution, not just filesystem v3.

--Beman


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