Menu

#38 [Cannot convert us-ascii to UTF8] isn't correct

closed-rejected
nobody
None
5
2008-04-19
2008-03-24
No

Forward bug report to upstream: https://bugs.launchpad.net/ubuntu/+bug/161831

For some mails the gnome panel applet is unable to show a preview of the mailtext. It just displays "[Cannot convert us-ascii to UTF8]" instead.

the problem is not that gnubiff cannot convert us-ascii to UTF-8 but that the conversion fails because the original message isn't in the charset it claims to be (in that case us-ascii).

You can see more information about that in downstream bug report at launchpad. :-)

Overview about other gnubiff-bugs:
https://bugs.launchpad.net/ubuntu/+source/gnubiff/

Discussion

  • Robert Sowada

    Robert Sowada - 2008-04-19
    • status: open --> closed-rejected
     
  • Robert Sowada

    Robert Sowada - 2008-04-19

    Logged In: YES
    user_id=1134063
    Originator: NO

    Obviously this is not a bug in gnubiff but a bug in the application that creates the message in a wrong character set.
    BTW: In the development CVS version 2.3.0 there is an option "popup_convert_strip_non_ascii" (by default switched on) that provides a fallback when the conversion fails (stripping all non ascii characters and displaying the resulting text which should work pretty well for texts in languages that us mostly the characters "a" to "z").

     
  • Nobody/Anonymous

    Logged In: NO

    Thanks for the patch in CVS. I merged it with my 2.2.10 branch and it works fine!

    Maybe you could use static_cast instead of C-like casts in gnubiff because it would give an error at compile-time for things like this:
    http://gnubiff.cvs.sourceforge.net/gnubiff/gnubiff/src/decoding.cc?r1=1.29&r2=1.30

     

Log in to post a comment.