X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fmhparse.c;h=8cfa89980ee9e37d8fee9a61104ab107124f5aaa;hb=b5f46f4ba364af010a7ef5afb20b667fcbe9b136;hp=25bbad753ab7cd923069b8d85056b675c2ee636c;hpb=2c9ef70f084977c3a34a64072adcb2d474aff44a;p=mmh diff --git a/uip/mhparse.c b/uip/mhparse.c index 25bbad7..8cfa899 100644 --- a/uip/mhparse.c +++ b/uip/mhparse.c @@ -46,11 +46,7 @@ struct k2v SubText[] = { { NULL, TEXT_UNKNOWN } /* this one must be last! */ }; -struct k2v Charset[] = { - { "us-ascii", CHARSET_USASCII }, - { "iso-8859-1", CHARSET_LATIN }, - { NULL, CHARSET_UNKNOWN } /* this one must be last! */ -}; +/* Charset[] removed -- yozo. Mon Oct 8 01:03:41 JST 2012 */ /* * Structures for MULTIPART messages @@ -1077,14 +1073,8 @@ InitText (CT ct) /* check if content specified a character set */ if (*ap) { - /* match character set or set to CHARSET_UNKNOWN */ - for (kv = Charset; kv->kv_key; kv++) { - if (!mh_strcasecmp (*ep, kv->kv_key)) { - chset = *ep; - break; - } - } - t->tx_charset = kv->kv_value; + chset = *ep; + t->tx_charset = CHARSET_SPECIFIED; } else { t->tx_charset = CHARSET_UNSPECIFIED; }