diff --git a/externals/boost b/externals/boost index 80a171a179..32f5cd8ebb 160000 --- a/externals/boost +++ b/externals/boost @@ -1 +1 @@ -Subproject commit 80a171a179c1f901e4f8dfc8962417f44865ceec +Subproject commit 32f5cd8ebb35b29ccb3860861bd285f80804bc85 diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt index 7c3e3f841f..f9fb13efba 100644 --- a/src/common/CMakeLists.txt +++ b/src/common/CMakeLists.txt @@ -139,11 +139,6 @@ add_library(citra_common STATIC ) if (MSVC) - target_compile_definitions(citra_common PRIVATE - # The standard library doesn't provide any replacement for codecvt yet - # so we can disable this deprecation warning for the time being. - _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING - ) target_compile_options(citra_common PRIVATE /W4 diff --git a/src/common/string_util.cpp b/src/common/string_util.cpp index c8257a3434..0b5e198586 100644 --- a/src/common/string_util.cpp +++ b/src/common/string_util.cpp @@ -4,12 +4,14 @@ #include #include -#include #include #include #include #include #include + +#include + #include "common/common_paths.h" #include "common/logging/log.h" #include "common/string_util.h" @@ -155,13 +157,11 @@ std::string ReplaceAll(std::string result, const std::string& src, const std::st } std::string UTF16ToUTF8(std::u16string_view input) { - std::wstring_convert, char16_t> convert; - return convert.to_bytes(input.data(), input.data() + input.size()); + return boost::locale::conv::utf_to_utf(input.data(), input.data() + input.size()); } std::u16string UTF8ToUTF16(std::string_view input) { - std::wstring_convert, char16_t> convert; - return convert.from_bytes(input.data(), input.data() + input.size()); + return boost::locale::conv::utf_to_utf(input.data(), input.data() + input.size()); } #ifdef _WIN32