Re: [patch] treatment of wrongly encoded 8-bit messages



On 2003.02.15 19:12, Albrecht Dreß wrote:
> Here is my 2nd approach to improve the handling of broken 8-bit 
> messages with missing MIME headers in balsa 2 (against today's cvs; 
> see details below...). It now offers some flexibility, but it's not a 
> one-liner anymore...
> 
> Basically, there is a new config option (in display->message) to 
> select either the current method (replace all 8-bit chars by "?") or 
> to assume a codeset like west european, east european, etc. If a 
> broken message is displayed, the contents is checked for characters 
> in the range 0x80..0x9f which indicate a winbloze (not iso) codeset 
> (thanks again to Jeffrey Stedfast for his hints!!). The text is then 
> converted to utf8 using the "best" encoding for the selected codeset. 
> If this fails, balsa falls back to the "?" method.
> 
> In any case, a warning is emitted using the libbalsa_information() 
> methods.

When I try to such misformatted message, I get loads of

(balsa:9949): Gtk-CRITICAL **: file gtktextbuffer.c: line 543 
(gtk_text_buffer_emit_insert): assertion `g_utf8_validate (text, len, 
NULL)' failed

Pawel



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]