Bug #79200 [Ver->Csd]: Some iconv functions cut Windows-1258
| From: | cmb@php.net | Date: | Mon, 23 Mar 2020 13:33:20 +0000 |
| Subject: | Bug #79200 [Ver->Csd]: Some iconv functions cut Windows-1258 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-226235@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
Updated by: cmb@php.net
Reported by: thomas-php at digionline dot de
Summary: Some iconv functions cut Windows-1258
-Status: Verified
+Status: Closed
Type: Bug
Package: ICONV related
Operating System: *
PHP Version: PHP-7.3
Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of cmbecker69@gmx.de
Revision: http://git.php.net/?p=php-src.git;a=commit;h=32a26443052a734f7c24434497a0c9a2210607eb
Log: Fix #79200: Some iconv functions cut Windows-1258
Previous Comments:
------------------------------------------------------------------------
[2020-03-03 10:45:11] cmb@php.net
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
------------------------------------------------------------------------
[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