2004-10-14 [colin] 0.9.12cvs126.2
[claws.git] / src / textview.c
index 47ad7b0821c493e5e388dabf70e6da924f68ee22..e23d2a32621e19b4142e2313db14207e8d81a46b 100644 (file)
@@ -1074,10 +1074,11 @@ static void textview_write_line(TextView *textview, const gchar *str,
        buffer = gtk_text_view_get_buffer(text);
        gtk_text_buffer_get_end_iter(buffer, &iter);
 
-       if (!conv)
-               strncpy2(buf, str, sizeof(buf));
-       else if (conv_convert(conv, buf, sizeof(buf), str) < 0)
+       if (!conv) {
                strncpy2(buf, str, sizeof(buf));
+       } else if (conv_convert(conv, buf, sizeof(buf), str) < 0) {
+               conv_localetodisp(buf, sizeof(buf), str);
+       }
 
        strcrchomp(buf);
        if (prefs_common.conv_mb_alnum) conv_mb_alnum(buf);