2
0
mirror of https://github.com/boostorg/nowide.git synced 2026-02-21 15:12:30 +00:00

Return old locale from nowide_filesystem

This commit is contained in:
Alexander Grund
2020-02-10 15:12:08 +01:00
parent 514d027ba7
commit baf19dc56c

View File

@@ -18,10 +18,10 @@ namespace nowide {
///
/// Install utf8_codecvt facet into boost::filesystem::path such all char strings are interpreted as utf-8 strings
///
inline void nowide_filesystem()
inline std::locale nowide_filesystem()
{
std::locale tmp = std::locale(std::locale(), new boost::nowide::utf8_codecvt<wchar_t>());
boost::filesystem::path::imbue(tmp);
return boost::filesystem::path::imbue(tmp);
}
} // namespace nowide
} // namespace boost