fix bug 4384, 'U+00AD (soft hyphen) changed to space in Subject'
[claws.git] / src / common / utils.c
index 848f0ce8690c27bde1bd1f035c6241552da0fb6d..52a0eb3f561658af51f9eb7f535d50582259f7ab 100644 (file)
@@ -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++;