24 lines
531 B
Plaintext
24 lines
531 B
Plaintext
--- mime.c
|
|
+++ mime.c 2005-10-14 16:28:39.000000000 +0200
|
|
@@ -260,7 +260,19 @@
|
|
else if (isclean & MIME_HIGHBIT) {
|
|
charset = wantcharset ? wantcharset : value("charset");
|
|
if (charset == NULL) {
|
|
- charset = defcharset;
|
|
+ char *t = value("ttycharset");
|
|
+ if (t == NULL || (ascncasecmp("ANSI_X3.4", t, 9) == 0))
|
|
+ charset = defcharset;
|
|
+ else {
|
|
+ int c;
|
|
+ char *ptr;
|
|
+
|
|
+ ptr = charset = sstrdup(t);
|
|
+ while ((c = *ptr)) {
|
|
+ *ptr = lowerconv(c & 0377);
|
|
+ ptr++;
|
|
+ }
|
|
+ }
|
|
}
|
|
} else {
|
|
/*
|