From: Moriyoshi Koizumi Date: Fri, 3 Jan 2003 05:38:50 +0000 (+0000) Subject: Fixed iconv_mime_decode() so it would give more awareness to stateful codesets X-Git-Tag: PHP_5_0_dev_before_13561_fix~510 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a3330b5ab3d70ecb1c7dc3465418732d751cd7a3;p=php Fixed iconv_mime_decode() so it would give more awareness to stateful codesets --- diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c index 00a3d20494..d6674c59ce 100644 --- a/ext/iconv/iconv.c +++ b/ext/iconv/iconv.c @@ -1438,6 +1438,11 @@ static php_iconv_err_t _php_iconv_mime_decode(smart_str *pretval, const char *st } } + if (cd != (iconv_t)(-1)) { + if ((err = _php_iconv_appendl(pretval, NULL, 0, cd)) != PHP_ICONV_ERR_SUCCESS) { + goto out; + } + } smart_str_0(pretval); out: if (cd != (iconv_t)(-1)) {