Changeset 2133:359f29acce9d for charset.c
Legend:
- Unmodified
- Added
- Removed
-
charset.c
r2131 r2133 201 201 202 202 /* finally, set $charset */ 203 Charset = safe_strdup (buff); 203 if (!(Charset = safe_strdup (buff))) 204 Charset = safe_strdup ("iso-8859-1"); 204 205 } 205 206 … … 214 215 /* catch some common iso-8859-something misspellings */ 215 216 if (!mutt_strncasecmp (name, "iso8859", 7) && name[7] != '-') 216 snprintf (scratch, sizeof (scratch), "iso_8859-%s", name + 8); 217 snprintf (scratch, sizeof (scratch), "iso_8859-%s", name + 7); 218 else if (!mutt_strncasecmp (name, "iso8859-", 8)) 219 snprintf (scratch, sizeof (scratch), "iso8859-%s", name + 8); 217 220 else 218 221 strfcpy (scratch, NONULL(name), sizeof (scratch));
