mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-13 09:40:13 +01:00
wx: Remove wxString implicit constructor from std::string
On windows, it uses the current system's character encoding instead of utf-8, which breaks a lot of things. We should avoid it.
This commit is contained in:
1 parent
162a0bbe46
commit
cbcd9b5004
26 files changed
+100
-55
No files matched your search
@@ -31,6 +31,11 @@ __fi wxString fromUTF8(const char* src)
|
||||
return wxString(src, wxMBConvUTF8());
|
||||
}
|
||||
|
||||
__fi wxString fromUTF8(const std::string& str)
|
||||
{
|
||||
return wxString(str.data(), wxMBConvUTF8(), str.size());
|
||||
}
|
||||
|
||||
__fi wxString fromAscii(const char* src)
|
||||
{
|
||||
return wxString::FromAscii(src);
|
||||
|
||||
Reference in new issue
Block a user