Show
Ignore:
Timestamp:
2001-02-13 15:07:48 (8 years ago)
Author:
Thomas Roessler <roessler@…>
Branch:
HEAD
Message:

Add more possibly-interesting character set names.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • charset.c

    r2290 r2291  
    223223 
    224224  /* catch some common iso-8859-something misspellings */ 
    225   if (!mutt_strncasecmp (name, "iso8859", 7) && name[7] != '-') 
     225  if (!mutt_strncasecmp (name, "8859", 4) && name[4] != '-') 
     226    snprintf (scratch, sizeof (scratch), "iso-8859-%s", name +4); 
     227  else if (!mutt_strncasecmp (name, "8859-", 5)) 
     228    snprintf (scratch, sizeof (scratch), "iso-8859-%s", name + 5); 
     229  else if (!mutt_strncasecmp (name, "iso8859", 7) && name[7] != '-') 
    226230    snprintf (scratch, sizeof (scratch), "iso_8859-%s", name + 7); 
    227231  else if (!mutt_strncasecmp (name, "iso8859-", 8))