diff --git a/include/boost/nowide/integration/filesystem.hpp b/include/boost/nowide/integration/filesystem.hpp index e06c688..2dd1ccc 100644 --- a/include/boost/nowide/integration/filesystem.hpp +++ b/include/boost/nowide/integration/filesystem.hpp @@ -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()); - boost::filesystem::path::imbue(tmp); + return boost::filesystem::path::imbue(tmp); } } // namespace nowide } // namespace boost