From: Gavin Lambert (boost_at_[hidden])
Date: 2022-08-15 22:46:29


On 16/08/2022 07:35, Peter Dimov wrote:
> The usual approach is to put
>
> boost::filesystem::path::imbue( std::locale( std::locale::classic(),
> new boost::filesystem::detail::utf8_codecvt_facet ) );
>
> as the first thing in `main`.

As a library, you cannot assume that the application has done this (nor
can you do it yourself). The code has to act correctly regardless.