Boost logo

Boost :

Subject: Re: [boost] [review] Review of Nowide (Unicode)
From: Frédéric Bron (frederic.bron_at_[hidden])
Date: 2017-06-23 09:12:42


>> So probably I need to return the previous locale
>
> which is returned already by boost::filesystem::path::imbue, good?

but then we get:
auto old_loc = boost::nowide::nowide_filesystem(); // by the way, why
repeat nowide?
...
boost::filesystem::imbue(old_loc);

What about the following symmetrical approach:

auto old_loc = boost::filesystem::imbue(boost::nowide::locale());
...
boost::filesystem::imbue(old_loc);

Frédéric


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