aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-utils.c
diff options
context:
space:
mode:
authorSuresh Chandrasekharan <suresh.chandrasekharan@sun.com>2004-05-21 04:34:59 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2004-05-21 04:34:59 +0800
commit3205d67d1a715d90a78b79f52d813506eb650408 (patch)
tree1d8b127e15caffcd0a0732d390eaede07829240a /camel/camel-mime-utils.c
parentcbe504718b4f65fd35ac4ae5780728862f7b6e88 (diff)
downloadgsoc2013-evolution-3205d67d1a715d90a78b79f52d813506eb650408.tar.gz
gsoc2013-evolution-3205d67d1a715d90a78b79f52d813506eb650408.tar.zst
gsoc2013-evolution-3205d67d1a715d90a78b79f52d813506eb650408.zip
Fix for #58738 ja_JP.UTF-8: Evolution crashes when certain ASCII/non-ASCII
2004-05-19 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com> Fix for #58738 ja_JP.UTF-8: Evolution crashes when certain ASCII/non-ASCII combination is used in mail subject * camel-mime-utils.c: (camel_header_encode_string) Use camel_mime_is_lwsp for determining word separators, according to rfc822 (which's also same for rfc2047). g_unichar_isspace as word separator is illegal. svn path=/trunk/; revision=26021
Diffstat (limited to 'camel/camel-mime-utils.c')
-rw-r--r--camel/camel-mime-utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c
index 13e9d815ef..43d680012e 100644
--- a/camel/camel-mime-utils.c
+++ b/camel/camel-mime-utils.c
@@ -1331,7 +1331,7 @@ camel_header_encode_string (const unsigned char *in)
continue;
}
- if (g_unichar_isspace (c) && !last_was_space) {
+ if (camel_mime_is_lwsp (c) && !last_was_space) {
/* we've reached the end of a 'word' */
if (word && !(last_was_encoded && encoding)) {
/* output lwsp between non-encoded words */
@@ -1371,11 +1371,11 @@ camel_header_encode_string (const unsigned char *in)
} else if (c >= 256) {
encoding = MAX (encoding, 2);
last_was_space = FALSE;
- } else if (!g_unichar_isspace (c)) {
+ } else if (!camel_mime_is_lwsp (c)) {
last_was_space = FALSE;
}
- if (!g_unichar_isspace (c) && !word)
+ if (!camel_mime_is_lwsp (c) && !word)
word = inptr;
inptr = newinptr;