commit 703fdba15a3e46f0e38f623e4609bd7d622e5aa0 parent ec4bd3ebc2190dab7ac3fe30875cf4724d566941 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:
| M | src/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++;