From 1340cc32351256546e33f07f974fe63fb6c29eaa Mon Sep 17 00:00:00 2001 From: Fabio Rossi Date: Tue, 27 Nov 2018 16:40:04 +0100 Subject: [PATCH] Use TQString for debugging output with unicode strings Signed-off-by: Fabio Rossi --- ktnef/lib/ktnefparser.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ktnef/lib/ktnefparser.cpp b/ktnef/lib/ktnefparser.cpp index 0b374afa..749cb948 100644 --- a/ktnef/lib/ktnefparser.cpp +++ b/ktnef/lib/ktnefparser.cpp @@ -855,7 +855,11 @@ bool KTNEFParser::readMAPIProperties( TQMap& props, KTNEFAtt kdDebug().form( "(tag=%04x) MAPI time%s: %s\n", mapi.tag, mapiname.ascii(), mapi.value.toString().ascii() ); break; case MAPI_TYPE_USTRING: - kdDebug().form( "(tag=%04x) MAPI unicode string%s: size=%d \"%s\"\n", mapi.tag, mapiname.ascii(), mapi.value.toByteArray().size(), mapi.value.toString().ascii() ); + kdDebug() << TQString( "(tag=%1) MAPI unicode string%2: size=%3 \"%4\"\n" ) + .arg( TQString( "%1" ).arg(mapi.tag, 4, 16).replace(" ","0") ) + .arg( mapiname ) + .arg( mapi.value.toByteArray().size() ) + .arg( mapi.value.toString() ); break; case MAPI_TYPE_STRING8: kdDebug().form( "(tag=%04x) MAPI string%s: size=%d \"%s\"\n", mapi.tag, mapiname.ascii(), mapi.value.toByteArray().size(), mapi.value.toString().ascii() );