diff options
author | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-01-03 05:38:50 +0000 |
---|---|---|
committer | Moriyoshi Koizumi <moriyoshi@php.net> | 2003-01-03 05:38:50 +0000 |
commit | a3330b5ab3d70ecb1c7dc3465418732d751cd7a3 (patch) | |
tree | af6d27e25ba0e533fb68f201794d6ebd852c0cb5 /ext/iconv | |
parent | e1dd919204322436e72e698051c6f1bd70f01b29 (diff) | |
download | php-git-a3330b5ab3d70ecb1c7dc3465418732d751cd7a3.tar.gz |
Fixed iconv_mime_decode() so it would give more awareness to stateful codesets
Diffstat (limited to 'ext/iconv')
-rw-r--r-- | ext/iconv/iconv.c | 5 |
1 files changed, 5 insertions, 0 deletions
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)) { |