Show
Ignore:
Timestamp:
2000-09-27 07:28:35 (8 years ago)
Author:
Thomas Roessler <roessler@…>
Branch:
HEAD
Message:

Catch another error condition which may be caused by a broken
nl_langinfo() function.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • charset.c

    r2131 r2133  
    201201   
    202202  /* finally, set $charset */ 
    203   Charset = safe_strdup (buff); 
     203  if (!(Charset = safe_strdup (buff))) 
     204    Charset = safe_strdup ("iso-8859-1"); 
    204205} 
    205206 
     
    214215  /* catch some common iso-8859-something misspellings */ 
    215216  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); 
    217220  else 
    218221    strfcpy (scratch, NONULL(name), sizeof (scratch));