diff --git a/.github/workflows/ci_tests.yml b/.github/workflows/ci_tests.yml index 38bf859..6683bd5 100644 --- a/.github/workflows/ci_tests.yml +++ b/.github/workflows/ci_tests.yml @@ -66,7 +66,7 @@ jobs: ./b2 link=static toolset=$toolset address-model=64 -j$(nproc) --prefix="$BOOST_ROOT" install cd "$DEP_DIR" # Workaround for "Device or resource busy" error - if ! rm -r build; then sleep 30s; rm -r build; fi + if ! rm -r build; then sleep 30s; rm -r build || true; fi - name: Configure working-directory: build run: cmake .. -DBoost_DEBUG=ON -DCMAKE_BUILD_TYPE=${{matrix.buildType}} -DBUILD_SHARED_LIBS=${{matrix.shared_lib}} -DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/../install -G "${{matrix.generator}}" -DCMAKE_SH="CMAKE_SH-NOTFOUND" -DBoost_NO_BOOST_CMAKE=ON 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