[Konversation-devel] [Bug 97951] Actions are not displayed under UTF-8

ismail donmez ( cartman ) ismail at kde.org
Thu Jul 1 15:58:16 CEST 2010


https://bugs.kde.org/show_bug.cgi?id=97951





--- Comment #2 from ismail ( cartman ) donmez <ismail kde org>  2010-07-01 15:58:14 ---
commit 6ce39f15d1c60af2f0c4bac6955fecf7e047b27b
Author: İsmail Dönmez <ismail at kde.org>
Date:   Wed Feb 2 20:06:41 2005 +0000

    Make unicode work in actions again. Needed to revert Dirk's patch. Because
if KStringHandler::isUtf8() returns
    false it doesn't mean string is necessarily not unicode. So instead of
reverting to ISO-8859-1 ourselves, use
    channel encoding specified by user or identity codec.
    BUG:97951

    svn path=/trunk/kdeextragear-2/konversation/; revision=385497

diff --git a/konversation/server.cpp b/konversation/server.cpp
index 1d952b6..3528f82 100644
--- a/konversation/server.cpp
+++ b/konversation/server.cpp
@@ -1062,11 +1062,6 @@ void Server::incoming()
       if(!channelEncoding.isEmpty())
         codec = IRCCharsets::codecForName(channelEncoding);

-
-      // if channel encoding is utf-8 and the string is definitely not utf-8
-      // then try latin-1
-      if ( !isUtf8 && codec->mibEnum() == 106 )
-        codec = QTextCodec::codecForMib( 4 /* iso-8859-1 */ );
       inputBuffer << codec->toUnicode(qcsBufferLines.front());
     }
     qcsBufferLines.pop_front();

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Konversation-devel mailing list