@trgswe
Compiling with C++11 breaks other source parts.
I tried changing the source code to
std::codecvt<wchar_t, char, std::mbstate_t>
But then got following errors:
/amiga/develop/devilutionX/Source/miniwin/misc_msg.cpp:518:98: error: template argument 1 is invalid
518 | std::wstring_convert<std::codecvt<wchar_t, char, std::mbstate_t> convert;
| ^~~~~~~
/amiga/develop/devilutionX/Source/miniwin/misc_msg.cpp:519:52: error: ‘convert’ was not declared in this scope
519 | std::string utf8 = convert.to_bytes(unicode);
| ^~~~~~~
But afaik wstring_convert is also deprecated in C++17 ??
Unfortunately my C++ knowledge is not enough to make the required changes.