15 Aug
2022
15 Aug
'22
10:46 p.m.
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.