diff options
author | S.ÃaÄlar Onur <caglar@uludag.org.tr> | 2004-12-01 11:03:09 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2004-12-01 11:03:09 +0800 |
commit | b53f63d528ae0b1f4567b997d7a74552c370640f (patch) | |
tree | 861c3caf4afc0fc5f144e7cdb70529323a7a7a01 /camel/camel-mime-utils.c | |
parent | 218b3bf88cfa2576e79b1a3a548d6d46493d982f (diff) | |
download | gsoc2013-evolution-b53f63d528ae0b1f4567b997d7a74552c370640f.tar.gz gsoc2013-evolution-b53f63d528ae0b1f4567b997d7a74552c370640f.tar.zst gsoc2013-evolution-b53f63d528ae0b1f4567b997d7a74552c370640f.zip |
** See bug #69446.
2004-11-28 S.ÃaÄlar Onur <caglar@uludag.org.tr>
** See bug #69446.
* evolution-2.0.2/camel/camel-charset-map.c (camel_charset_iso_to_windows)
* evolution-2.0.2/camel/camel-filter-search.c (check_header)
* evolution-2.0.2/camel/camel-folder-search.c (check_header)
* evolution-2.0.2/camel/camel-folder-summary.c (message_info_new,summary_build_content_info,camel_system_flag)
* evolution-2.0.2/camel/camel-html-parser.c (camel_html_parser_attr)
* evolution-2.0.2/camel/camel-mime-filter-enriched.c (param_parse,camel_mime_filter_enriched_init)
* evolution-2.0.2/camel/camel-mime-parser.c (folder_scan_step,main)
* evolution-2.0.2/camel/camel-mime-utils.c (camel_header_param,camel_header_set_param,camel_content_type_is,camel_transfer_encoding_from_string,camel_conten
t_type_format,camel_content_type_simple,camel_header_decode_date,header_raw_find_node)
* evolution-2.0.2/camel/camel-sasl-digest-md5.c (decode_data_type)
* evolution-2.0.2/camel/providers/imap/camel-imap-command.c (camel_imap_response_free)
* evolution-2.0.2/camel/providers/imap/camel-imap-folder.c (camel_imap_folder_new,camel_imap_folder_selected,imap_refresh_info,camel_imap_folder_new,camel_i
map_folder_selected)
* evolution-2.0.2/camel/providers/imap/camel-imap-store.c (imap_get_capability,imap_connect_online,get_folder_online,get_folder_offline,get_subscribed_folde
rs,folder_hash,get_folders)
* evolution-2.0.2/camel/providers/pop3/camel-pop3-store.c (get_folder)
* evolution-2.0.2/camel/tests/lib/folders.c: (test_folder_message_ops)
some strcasecmp() calls changed with g_ascii_strcasecmp() for Turkish
character conversiton problems [ http://www.i18nguy.com/unicode/turkish-i18n.html ]
svn path=/trunk/; revision=28019
Diffstat (limited to 'camel/camel-mime-utils.c')
-rw-r--r-- | camel/camel-mime-utils.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c index 4a7b867b52..8fe1cc240f 100644 --- a/camel/camel-mime-utils.c +++ b/camel/camel-mime-utils.c @@ -1929,7 +1929,7 @@ rfc2184_decode (const char *in, size_t len) char * camel_header_param (struct _camel_header_param *p, const char *name) { - while (p && strcasecmp (p->name, name) != 0) + while (p && g_ascii_strcasecmp (p->name, name) != 0) p = p->next; if (p) return p->value; @@ -1946,7 +1946,7 @@ camel_header_set_param (struct _camel_header_param **l, const char *name, const while (p->next) { pn = p->next; - if (!strcasecmp (pn->name, name)) { + if (!g_ascii_strcasecmp (pn->name, name)) { g_free (pn->value); if (value) { pn->value = g_strdup (value); @@ -2005,14 +2005,14 @@ camel_content_type_is(CamelContentType *ct, const char *type, const char *subtyp /* no type == text/plain or text/"*" */ if (ct==NULL || (ct->type == NULL && ct->subtype == NULL)) { return (!strcasecmp(type, "text") - && (!strcasecmp(subtype, "plain") + && (!g_ascii_strcasecmp(subtype, "plain") || !strcasecmp(subtype, "*"))); } return (ct->type != NULL - && (!strcasecmp(ct->type, type) + && (!g_ascii_strcasecmp(ct->type, type) && ((ct->subtype != NULL - && !strcasecmp(ct->subtype, subtype)) + && !g_ascii_strcasecmp(ct->subtype, subtype)) || !strcasecmp("*", subtype)))); } @@ -2789,7 +2789,7 @@ camel_transfer_encoding_from_string (const char *string) if (string != NULL) { for (i = 0; i < sizeof (encodings) / sizeof (encodings[0]); i++) - if (!strcasecmp (string, encodings[i])) + if (!g_ascii_strcasecmp (string, encodings[i])) return i; } @@ -3028,7 +3028,7 @@ header_encode_param (const unsigned char *in, gboolean *encoded) else charset = "iso-8859-1"; - if (g_ascii_strcasecmp(charset, "UTF-8") != 0 + if (strcasecmp(charset, "UTF-8") != 0 && (outbuf = header_convert(charset, "UTF-8", in, strlen(in)))) { inptr = outbuf; } else { @@ -3240,7 +3240,7 @@ camel_content_type_format (CamelContentType *ct) w(g_warning ("Content-Type with no main type")); } else if (ct->subtype == NULL) { w(g_warning ("Content-Type with no sub type: %s", ct->type)); - if (!strcasecmp (ct->type, "multipart")) + if (!g_ascii_strcasecmp (ct->type, "multipart")) g_string_append_printf (out, "%s/mixed", ct->type); else g_string_append_printf (out, "%s", ct->type); @@ -3263,7 +3263,7 @@ camel_content_type_simple (CamelContentType *ct) return g_strdup ("text/plain"); } else if (ct->subtype == NULL) { w(g_warning ("Content-Type with no sub type: %s", ct->type)); - if (!strcasecmp (ct->type, "multipart")) + if (!g_ascii_strcasecmp (ct->type, "multipart")) return g_strdup_printf ("%s/mixed", ct->type); else return g_strdup (ct->type); @@ -3449,7 +3449,7 @@ camel_header_decode_date(const char *in, int *saveoffset) foundmonth = FALSE; if (monthname) { for (i=0;i<sizeof(tz_months)/sizeof(tz_months[0]);i++) { - if (!strcasecmp(tz_months[i], monthname)) { + if (!g_ascii_strcasecmp(tz_months[i], monthname)) { tm.tm_mon = i; foundmonth = TRUE; break; @@ -3501,7 +3501,7 @@ camel_header_decode_date(const char *in, int *saveoffset) if (tz) { for (i=0;i<sizeof(tz_offsets)/sizeof(tz_offsets[0]);i++) { - if (!strcasecmp(tz_offsets[i].name, tz)) { + if (!g_ascii_strcasecmp(tz_offsets[i].name, tz)) { offset = tz_offsets[i].offset; break; } @@ -3671,7 +3671,7 @@ header_raw_find_node(struct _camel_header_raw **list, const char *name) l = *list; while (l) { - if (!strcasecmp(l->name, name)) + if (!g_ascii_strcasecmp(l->name, name)) break; l = l->next; } @@ -3723,7 +3723,7 @@ camel_header_raw_remove(struct _camel_header_raw **list, const char *name) p = (struct _camel_header_raw *)list; l = *list; while (l) { - if (!strcasecmp(l->name, name)) { + if (!g_ascii_strcasecmp(l->name, name)) { p->next = l->next; header_raw_free(l); l = p->next; |