[Commits] [SCM] claws branch, master, updated. 3.17.6-26-g3183c9349

paul at claws-mail.org paul at claws-mail.org
Fri Sep 25 08:32:36 CEST 2020


The branch, master has been updated
       via  3183c9349a44313436d7ee300f5a05f44d25ac25 (commit)
      from  2b4c50c9800fefb5f2f11491985dc215d7e34ead (commit)

Summary of changes:
 src/common/utils.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


- Log -----------------------------------------------------------------
commit 3183c9349a44313436d7ee300f5a05f44d25ac25
Author: Paul <paul at claws-mail.org>
Date:   Fri Sep 25 07:32:32 2020 +0100

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

diff --git a/src/common/utils.c b/src/common/utils.c
index 848f0ce86..52a0eb3f5 100644
--- 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++;

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list