diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2011-02-04 21:08:59 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2011-02-04 21:08:59 +0000 |
commit | 3419422c239758fc6002e56e6be3c034bc8dbe8e (patch) | |
tree | f91ff8f85ce788d7208d6ecedf950d5b00ad0447 /rbutil/rbutilqt | |
parent | a2e4a518256dda97ad502f7dee2c9009758bf4aa (diff) |
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
Diffstat (limited to 'rbutil/rbutilqt')
-rw-r--r-- | rbutil/rbutilqt/systrace.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/systrace.cpp b/rbutil/rbutilqt/systrace.cpp index 03ba730c9b..5600eb042b 100644 --- a/rbutil/rbutilqt/systrace.cpp +++ b/rbutil/rbutilqt/systrace.cpp @@ -99,8 +99,7 @@ void SysTrace::debug(QtMsgType type, const char* msg) if(lastmessage != msg) { lastmessage = msg; flush(); - debugbuffer.append(msg); - debugbuffer.append("\n"); + debugbuffer.append(QString::fromLocal8Bit(msg) + "\n"); #if !defined(NODEBUG) fprintf(stderr, "%s\n", msg); #endif |