talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 3183c9349a44313436d7ee300f5a05f44d25ac25
parent 2b4c50c9800fefb5f2f11491985dc215d7e34ead
Author: Paul <paul@claws-mail.org>
Date:   Fri, 25 Sep 2020 07:32:32 +0100

fix bug 4384, 'U+00AD (soft hyphen) changed to space in Subject'

Diffstat:
Msrc/common/utils.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/common/utils.c b/src/common/utils.c @@ -896,8 +896,8 @@ void unfold_line(gchar *str) len = g_unichar_to_utf8(c, NULL); - if (!g_unichar_isdefined(c) || !g_unichar_isprint(c) || - g_unichar_isspace(c)) { + if ((!g_unichar_isdefined(c) || !g_unichar_isprint(c) || + g_unichar_isspace(c)) && c != 173) { /* replace anything bad or whitespacey with a single space */ *ch = ' '; ch++;