[Konversation-devel] [Bug 122038] Crash with SIGSEGV (sending messages in UTF-7)

Shintaro Matsuoka shin at shoegazed.org
Thu May 18 08:17:18 CEST 2006


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=122038         
shin shoegazed org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From shin shoegazed org  2006-05-18 08:17 -------
SVN commit 542059 by shin:

Remove ucs2 and utf7 from the encodings list because they are not supported on IRC.
Thank you for the report.

BUG: 122038

 M  +9 -3      irccharsets.cpp  


--- trunk/extragear/network/konversation/src/irccharsets.cpp #542058:542059
 @ -1,5 +1,5  @
 // A wrapper for KCharsets
-// Copyright (C) 2004 Shintaro Matsuoka <shin shoegazed org>
+// Copyright (C) 2004, 2006 Shintaro Matsuoka <shin shoegazed org>
 
 /*
   This program is free software; you can redistribute it and/or modify
 @ -147,9 +147,15  @
         while ( it != m_descriptiveNames.end() )
         {
             QString encodingName = KGlobal::charsets()->encodingForName( *it );
-            // exclude utf16 and ucs2
-            if ( encodingName == "utf16" || encodingName == "iso-10646-ucs-2" )
+            kdDebug() << encodingName << endl;
+            // exclude encodings which are not supported on IRC
+            if ( encodingName == "iso-10646-ucs-2" ||
+                 encodingName == "ucs2" ||
+                 encodingName == "utf16" ||
+                 encodingName == "utf7" )
+            {
                 it = m_descriptiveNames.remove( it );
+            }
             else
             {
                 m_shortNames.append( encodingName );


More information about the Konversation-devel mailing list