Bug #79200 [PATCH]: Some iconv functions cut Windows-1258
| From: | cmb@php.net | Date: | Tue, 03 Mar 2020 10:45:11 +0000 |
| Subject: | Bug #79200 [PATCH]: Some iconv functions cut Windows-1258 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-225854@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79200&edit=1
ID: 79200
Patch added by: cmb@php.net
Reported by: thomas-php at digionline dot de
Summary: Some iconv functions cut Windows-1258
Status: Verified
Type: Bug
Package: ICONV related
Operating System: *
PHP Version: PHP-7.3
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
The following pull request has been associated:
Patch Name: Fix #79200: Some iconv functions cut Windows-1258
On GitHub: https://github.com/php/php-src/pull/5231
Patch: https://github.com/php/php-src/pull/5231.patch
Previous Comments:
------------------------------------------------------------------------
[2020-03-03 10:42:39] cmb@php.net
Oh, for some reason I didn't get a notification that the bug I've
filed upstream[1] has already been closed as not a bug.
So, it's actually the iconv extension that gets that wrong in multiple
places. Not only iconv_mime_decode() is affected, but at least also
iconv_strlen(), iconv_strpos() and iconv_substr().
[1] <https://savannah.gnu.org/bugs/index.php?57723>
------------------------------------------------------------------------
[2020-02-02 09:20:35] cmb@php.net
This looks like a bug in libiconv. I've filed a bug report[1].
[1] <https://savannah.gnu.org/bugs/index.php?57723>
------------------------------------------------------------------------
[2020-01-31 09:17:28] cmb@php.net
Confirmed: <https://3v4l.org/TKqvd>.
------------------------------------------------------------------------
[2020-01-31 08:59:43] thomas-php at digionline dot de
Description:
------------
iconv_mime_decode() cuts Windows-1258.
Test script:
---------------
echo iconv_mime_decode('=?windows-1258?Q?test=20test?=',0,'UTF-8');
Expected result:
----------------
test test
Actual result:
--------------
test tes
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79200&edit=1