From baf19dc56c601b3e36d486c2e6bf7b5cd7fe4524 Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Mon, 10 Feb 2020 15:12:08 +0100 Subject: [PATCH] Return old locale from nowide_filesystem --- include/boost/nowide/integration/filesystem.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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