Changeset 4970:42016ef5ee21 for charset.c
Legend:
- Unmodified
- Added
- Removed
-
charset.c
r4963 r4970 246 246 char scratch[LONG_STRING]; 247 247 248 if (!ascii_strcasecmp (name, "utf-8")) { 249 strfcpy (dest, name, dlen); 250 goto found_utf8; 251 } 252 248 253 /* catch some common iso-8859-something misspellings */ 249 254 if (!ascii_strncasecmp (name, "8859", 4) && name[4] != '-') … … 268 273 strfcpy (dest, scratch, dlen); 269 274 275 found_utf8: 270 276 /* for cosmetics' sake, transform to lowercase. */ 271 277 for (p = dest; *p; p++)
