[pan] header-pane.cc: avoid mojibake in Subject
- From: Dominique Dumont <ddumont src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pan] header-pane.cc: avoid mojibake in Subject
- Date: Sun, 14 Nov 2021 17:54:04 +0000 (UTC)
commit 7357c50b448cb36d1be94a6235afc12a59564e84
Author: Dominique Dumont <dod debian org>
Date: Sun Nov 14 18:53:37 2021 +0100
header-pane.cc: avoid mojibake in Subject
There's no need to mess with the encoding of the subject. gmime is able
to decode as needed.
pan/gui/header-pane.cc | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/pan/gui/header-pane.cc b/pan/gui/header-pane.cc
index 22718d3..11e13d8 100644
--- a/pan/gui/header-pane.cc
+++ b/pan/gui/header-pane.cc
@@ -369,10 +369,7 @@ HeaderPane :: render_subject (GtkTreeViewColumn * ,
const Article * a (self->get_article (model, iter));
- char* ret = __g_mime_iconv_strdup(conv, a->subject.c_str());
- std::string res;
- if (ret) res = ret;
- g_free(ret);
+ std::string res = a->subject.c_str();
char buf[512];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]