KCharsets::codecForName bug

Martin Koller kollix at aon.at
Sat Aug 8 19:11:16 BST 2009


I'm checking a report from kmail saying that not all codecs are shown as in some
older KDE version. Epsecially I'm seeing that ISO-8859-1 is not shown.

Debugging from where that comes from, I find a strange thing in KCharsets
and hope someone can tell me if this is really a bug or something:

kmail calls KGlobal::charsets()->availableEncodingNames();
end then loops over all names and calls  KGlobal::charsets()->codecForName(*it, ok);

Now I found that the name "ISO 10646-UCS-2" does return the iso-8859-1 codec as the
ok argument given returns false ...
The same problem goes for "ucs2" and "utf7".

Why ?
Best regards/Schöne Grüße

Martin    ()  ascii ribbon campaign - against html mail 
          /\                        - against microsoft attachments

Geschenkideen, Accessoires, Seifen, Kulinarisches: www.bibibest.at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20090808/355338ab/attachment.sig>

More information about the kde-core-devel mailing list