[pan] header-pane.cc: avoid mojibake in headers
- From: Dominique Dumont <ddumont src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pan] header-pane.cc: avoid mojibake in headers
- Date: Sun, 14 Nov 2021 17:48:10 +0000 (UTC)
commit bf184479e0deed0770e0901ce44c33835088f93c
Author: Dominique Dumont <dod debian org>
Date: Sun Nov 14 18:43:38 2021 +0100
header-pane.cc: avoid mojibake in headers
There's no need to mess with the encoding of the author. gmime is able
to decode as needed.
pan/gui/header-pane.cc | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/pan/gui/header-pane.cc b/pan/gui/header-pane.cc
index f9a4cb0..08973b0 100644
--- a/pan/gui/header-pane.cc
+++ b/pan/gui/header-pane.cc
@@ -271,12 +271,10 @@ HeaderPane :: render_author (GtkTreeViewColumn * ,
const Article * a (self->get_article (model, iter));
- char* ret = __g_mime_iconv_strdup(conv, a->author.c_str());
- if (ret) g_object_set (renderer, "text", ret,
+ g_object_set (renderer, "text", a->author.c_str() ,
"background", self->_bg.c_str(),
"foreground", self->_fg.c_str(),
NULL);
- g_free(ret);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]