[Kde-pim] Re: Review Request: Fix non-ascii symbols in From and To symbols replaced to "?" when sending email

Thomas McGuire mcguire at kde.org
Sat Apr 16 22:06:40 BST 2011


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/101109/#review2688
-----------------------------------------------------------


A fixed the bug now, in a different way: When attempting to encode an RFC2047 string in KMime that can't be encoded with the selected charset, use UTF-8 as a fallback.
See http://commits.kde.org/kdepimlibs/7b75f8a769ef0e40e59dedb1327ff0ed51e63ba9

This should fix the problem without needing the hacks in composeFinalStep(), I assume the same hacks would be needed in other places as well.

BTW, the encoding charset gets lost in Content::parse(). Conceptually, that even makes sense, since a header can contain multiple different encodings, i.e. each word or comment might use a different charset, so parsing a header can't recover the "ultimate" charset.

Please test.

- Thomas


On April 14, 2011, 6:03 a.m., Cristian OneČ› wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/101109/
> -----------------------------------------------------------
> 
> (Updated April 14, 2011, 6:03 a.m.)
> 
> 
> Review request for KDEPIM.
> 
> 
> Summary
> -------
> 
> As stated in the bug report this might not be the cleanest fix that bug can have but since no kdepim developer has yet stepped up to fix the bugI submitted this review request hoping to draw some attention to this issue.
> 
> The bug report also contains the description of the source of the bug so there is no point in duplicating it here.
> 
> 
> This addresses bug 263761.
>     http://bugs.kde.org/show_bug.cgi?id=263761
> 
> 
> Diffs
> -----
> 
>   messagecomposer/composer.cpp ec3cd2f 
>   messagecomposer/skeletonmessagejob.cpp 2e708f1 
>   messagecomposer/tests/composertest.cpp 6e71c4a 
> 
> Diff: http://git.reviewboard.kde.org/r/101109/diff
> 
> 
> Testing
> -------
> 
> Run kmail2 and add contacts with non-ascii characters in their name. Save as a draft or send the mail and observe that the non-ascii characters are successfully preserved.
> 
> 
> Thanks,
> 
> Cristian
> 
>

_______________________________________________
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-pim mailing list