projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b4c50c
)
fix bug 4384, 'U+00AD (soft hyphen) changed to space in Subject'
author
Paul
<paul@claws-mail.org>
Fri, 25 Sep 2020 06:32:32 +0000
(07:32 +0100)
committer
Paul
<paul@claws-mail.org>
Fri, 25 Sep 2020 06:32:32 +0000
(07:32 +0100)
src/common/utils.c
patch
|
blob
|
history
diff --git
a/src/common/utils.c
b/src/common/utils.c
index 848f0ce8690c27bde1bd1f035c6241552da0fb6d..52a0eb3f561658af51f9eb7f535d50582259f7ab 100644
(file)
--- 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++;