Boost logo

Boost :

From: Eric MALENFANT (Eric.Malenfant_at_[hidden])
Date: 2008-01-29 10:04:38


Alexei Alexandrov, le 29 janvier 2008 01:07:
> Eric MALENFANT wrote:
>> Alexei Alexandrov wrote:
>>> I mean, I'm the only one who reported this problem or
>>> just nobody used wchar_t with standard codecvt on Linux so far?
>>
>> We use boost::filesystem::wpaths on Linux without problems (that I'm
>> aware of).
>
> Additional question: are you sure you use fs::wpaths with environment
> locale? Not boost UTF-8 codecvt facet (this is what is done in
> libs/filesystem/test/wide_test.cpp). Because boost UTF-8
> codecvt facet
> works fine for me too, but I want to get system locale
> working - I don't
> want to rely on system locale encoding being UTF-8.
>
> > Also, IIUC, explicitely imbue()-ing the environment locale
> > (std::locale("")) is not necessary,
> > as it seems to be the default (look at
> libs/filesystem/src/path.cpp)
>
> This is true. So you don't imbue anything at all and it works
> for you?
> I'd really appreciate this clarification.

I just made a full search for "imbue" on our entire codebase, and the only occurences I found were on iostreams.
So yes, we don't imbue anything, and it works for us.

Éric Malenfant
---------------------------------------------
In business, if two people always agree, one of them is unnecessary.


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