Fix handling non-ASCII format strings in UTF-8 build

Constructing wxString from "char*" format string was wrong as it
interpreted it in the current locale encoding which could be different
from UTF-8.

(cherry picked from commit 5a9e433524020dc6b653183bdd338bb3647902a9)
This commit is contained in:
Vadim Zeitlin 2023-03-28 17:09:46 +01:00
parent 2c2d9fd909
commit ecc0b2fde3

View File

@ -1976,7 +1976,7 @@ int wxString::DoPrintfUtf8(const char *format, ...)
va_list argptr; va_list argptr;
va_start(argptr, format); va_start(argptr, format);
int iLen = PrintfV(format, argptr); int iLen = PrintfV(wxString::FromUTF8(format), argptr);
va_end(argptr); va_end(argptr);