Re: a problem with message headers

On 2003.02.28 20:01 Denis Rtveliashvili wrote:
> I have a problem with mail I send: when I send mail with "from"
> address or subject which contains russian characters other programs
> display them incorrectly.
> If I send a mail from one of my mailboxes to another and view it with
> Balsa - everythin is OK. But when I send a mail and try to view it
> either through a web-interface or through a program like Outlook
> Express or The Bat every russian character is converted to a sequence
> of 2 characters. So, message subjects' as well as "from" field's
> russian parts become absolutely unreadable.
> To be more preciese, my locale is ru_RU.UTF-8 and message encoding is
> KOI8-R. Now I'm using balsa-2.0.8. As far as I know 2.0.9 is a bugfix
> release which doesn't contain a fix for this bug.

Thanks for the test message. The order in which we tried different 
charsets was wrong. Attached patch that appears to fix it for me has 
already been commited to CVS repository.

Index: libbalsa/libbalsa.c
RCS file: /cvs/gnome/balsa/libbalsa/libbalsa.c,v
retrieving revision 1.56
diff -u -r1.56 libbalsa.c
--- libbalsa/libbalsa.c	27 Feb 2003 16:32:38 -0000	1.56
+++ libbalsa/libbalsa.c	28 Feb 2003 22:35:06 -0000
@@ -165,8 +165,8 @@
     REGCOMP(ReplyRegexp.rx,"^(re([\\[0-9\\]+])*|aw):[ \t]*",0);
     Charset = "UTF-8";
-    /* more likely to least likely or something */
-    SendCharset = "us-ascii:iso-8859-1:iso-8859-15:iso-8859-2:iso-8859-9:iso-8859-13:euc-kr:euc-jp:KOI8-R:UTF-8";    
+    /* more likely to least likely or something: order *is* relevant!  */
+    SendCharset = "us-ascii:iso-8859-1:iso-8859-15:iso-8859-2:iso-8859-9:iso-8859-13:KOI8-R:euc-kr:euc-jp:UTF-8";    

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