charsets from KCharset are not valid for mime encoding

Olivier Trichet nive at nivalis.org
Sun Jan 25 16:44:55 GMT 2009


Hello,

In the list of encoding names that KCharset returns, the "ISO-xxx-x" encodings 
are given as "ISO xxxx-x" (note the space).
This leads to issues in both kmail and knode[2] where messages were sent with 
improper charset because the legal charsets[3] for mime part are in the form 
"ISO-xxx-x".
The current fix is a workaround that replace "ISO " with "ISO-"...


The attached patch changes encoding names declared in KCharset to the "ISO-
xxxx-x" form (and to more "official" name for a few others)

Any comments ?

Olivier


[1] https://bugs.kde.org/show_bug.cgi?id=171947
[2] http://bugs.kde.org/show_bug.cgi?id=169411
[3] http://www.iana.org/assignments/character-sets

-------------- next part --------------
A non-text attachment was scrubbed...
Name: iso-encoding_hyphen.diff
Type: text/x-patch
Size: 4917 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20090125/d6b16783/attachment.bin>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-core-devel mailing list