fix unicode <=> utf-8 conversion issue
This commit is contained in:
parent
f2f9a938a7
commit
a12ecd49bd
|
@ -448,7 +448,8 @@ void Command::doCommand(DoCmd_Type eType, const char* sCmd, ...)
|
||||||
const QString cmd = s.vsprintf(sCmd, ap);
|
const QString cmd = s.vsprintf(sCmd, ap);
|
||||||
va_end(ap);
|
va_end(ap);
|
||||||
|
|
||||||
QByteArray format = cmd.toLatin1();
|
// 'vsprintf' expects a utf-8 string for '%s'
|
||||||
|
QByteArray format = cmd.toUtf8();
|
||||||
|
|
||||||
#ifdef FC_LOGUSERACTION
|
#ifdef FC_LOGUSERACTION
|
||||||
Base::Console().Log("CmdC: %s\n", format.constData());
|
Base::Console().Log("CmdC: %s\n", format.constData());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user