systrace: convert input strings using local codepage.

The message handler uses C strings so no information about encoding is
present. Since an 8 bit encoding is used convert them to make the
systrace window show non-ASCII characters properly.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29206 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Riebeling 2011-02-04 21:08:59 +00:00
parent a2e4a51825
commit 3419422c23

View file

@ -99,8 +99,7 @@ void SysTrace::debug(QtMsgType type, const char* msg)
if(lastmessage != msg) { if(lastmessage != msg) {
lastmessage = msg; lastmessage = msg;
flush(); flush();
debugbuffer.append(msg); debugbuffer.append(QString::fromLocal8Bit(msg) + "\n");
debugbuffer.append("\n");
#if !defined(NODEBUG) #if !defined(NODEBUG)
fprintf(stderr, "%s\n", msg); fprintf(stderr, "%s\n", msg);
#endif #endif