From 7afe6d11c793ecf5131f0ec52f023e01ca63e0ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Mon, 4 Jun 2001 21:55:14 +0000 Subject: [PATCH] Reverting r1.242 - WM_NAME is ICCCM, not NET_WM , and it's not UTF8. svn path=/trunk/kdebase/kwin/; revision=100452 --- client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client.cpp b/client.cpp index d53f72713b..4b8f1f3b52 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::fromUtf8( (const char*) tp.value ); + s = QString::fromLocal8Bit( (const char*) tp.value ); else if ( XmbTextPropertyToTextList( qt_xdisplay(), &tp, &text, &count) == Success && text != NULL && count > 0 ) { - s = QString::fromUtf8( text[0] ); + s = QString::fromLocal8Bit( text[0] ); XFreeStringList( text ); } XFree( tp.value );