From b16109eb075d3ea22777e17e18a7235af2304101 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Wed, 30 May 2001 09:38:18 +0000 Subject: [PATCH] NET_WM saves in utf-8: - s = QString::fromLocal8Bit( (const char*) tp.value ); + s = QString::fromUtf8( (const char*) tp.value ); svn path=/trunk/kdebase/kwin/; revision=99426 --- client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client.cpp b/client.cpp index 4b8f1f3b52..d53f72713b 100644 --- a/client.cpp +++ b/client.cpp @@ -827,10 +827,10 @@ void Client::fetchName() int count; if ( XGetTextProperty( qt_xdisplay(), win, &tp, XA_WM_NAME) != 0 && tp.value != NULL ) { if ( tp.encoding == XA_STRING ) - s = QString::fromLocal8Bit( (const char*) tp.value ); + s = QString::fromUtf8( (const char*) tp.value ); else if ( XmbTextPropertyToTextList( qt_xdisplay(), &tp, &text, &count) == Success && text != NULL && count > 0 ) { - s = QString::fromLocal8Bit( text[0] ); + s = QString::fromUtf8( text[0] ); XFreeStringList( text ); } XFree( tp.value );