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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user