Re: Some reply bugs [was Re: New mails in mailboxlist]



Am 07.06.05 21:51 schrieb(en) Misu Moldovan:
Romanian locale settings is "Sîmbătă", short form "Sî". This short form is missing from the "Date" field in the mailbox view and replying to such a mail is not really possible, I get an empty window when trying to reply :(

Can you try the attached little patch? It should ensure that the date is in utf-8 before it is fed into pango, but I don't know if the charset is guessed properly.

Cheers, Albrecht.


--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Albrecht Dreß  -  Johanna-Kirchner-Straße 13  -  D-53123 Bonn (Germany)
       Phone (+49) 228 6199571  -  mailto:albrecht dress arcor de
   GnuPG public key:  http://home.arcor.de/dralbrecht.dress/pubkey.asc
_________________________________________________________________________
--- balsa/libbalsa/libbalsa.c	2005-05-30 19:32:34.613992672 +0200
+++ balsa-build/libbalsa/libbalsa.c	2005-06-07 22:55:36.880016344 +0200
@@ -347,6 +347,7 @@
 {
     struct tm footime;
     gchar rettime[128];
+    gchar * retval;
 
     g_return_val_if_fail(date != NULL, NULL);
     g_return_val_if_fail(date_string != NULL, NULL);
@@ -354,8 +355,9 @@
     localtime_r(date, &footime);
 
     strftime(rettime, sizeof(rettime), date_string, &footime);
-
-    return g_strdup(rettime);
+    retval = g_strdup(rettime);
+    libbalsa_utf8_sanitize(&retval, TRUE, NULL);
+    return retval;
 }
 
 LibBalsaMessageStatus

Attachment: pgpaqlcYi1W5m.pgp
Description: PGP signature



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