mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 15:45:38 +00:00
(Windows) Fixed an issue where wide string conversions were not done correctly
This commit is contained in:
parent
51ee70c676
commit
3b62dc6ee7
|
@ -621,7 +621,7 @@ namespace Utils
|
|||
|
||||
std::wstring stringToWideString(const std::string& stringArg)
|
||||
{
|
||||
std::wstring_convert<std::codecvt_utf8<wchar_t>, wchar_t> stringConverter;
|
||||
std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>, wchar_t> stringConverter;
|
||||
try {
|
||||
return stringConverter.from_bytes(stringArg);
|
||||
}
|
||||
|
@ -636,7 +636,7 @@ namespace Utils
|
|||
|
||||
std::string wideStringToString(const std::wstring& stringArg)
|
||||
{
|
||||
std::wstring_convert<std::codecvt_utf8<wchar_t>, wchar_t> stringConverter;
|
||||
std::wstring_convert<std::codecvt_utf8_utf16<wchar_t>, wchar_t> stringConverter;
|
||||
try {
|
||||
return stringConverter.to_bytes(stringArg);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue