From a3330b5ab3d70ecb1c7dc3465418732d751cd7a3 Mon Sep 17 00:00:00 2001 From: Moriyoshi Koizumi Date: Fri, 3 Jan 2003 05:38:50 +0000 Subject: [PATCH] Fixed iconv_mime_decode() so it would give more awareness to stateful codesets --- ext/iconv/iconv.c | 5 +++++ 1 file changed, 5 insertions(+) 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)) { -- 2.50.1