mirror of
https://github.com/boostorg/nowide.git
synced 2026-02-21 15:12:30 +00:00
Merge pull request #67 from boostorg/return_old_locale
Return old locale from nowide_filesystem
This commit is contained in:
2
.github/workflows/ci_tests.yml
vendored
2
.github/workflows/ci_tests.yml
vendored
@@ -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
|
||||
|
||||
@@ -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