Changeset 2112:17afd1d39c1b for charset.c
Legend:
- Unmodified
- Added
- Removed
-
charset.c
r2111 r2112 233 233 } 234 234 235 int mutt_is_utf8 (const char *s) 236 { 237 char buffer[8]; 238 239 if (!s) 240 return 0; 235 int mutt_chscmp (const char *s, const char *chs) 236 { 237 char buffer[STRING]; 238 239 if (!s) return 0; 241 240 242 241 mutt_canonical_charset (buffer, sizeof (buffer), s); 243 return !mutt_strc mp (buffer, "utf-8");242 return !mutt_strcasecmp (buffer, chs); 244 243 } 245 244
