|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79200 Some iconv functions cut Windows-1258
Submitted: 2020-01-31 08:59 UTC Modified: 2020-03-03 10:42 UTC
From: thomas-php at digionline dot de Assigned: cmb (profile)
Status: Closed Package: ICONV related
PHP Version: PHP-7.3 OS: *
Private report: No CVE-ID: None
 [2020-01-31 08:59 UTC] thomas-php at digionline dot de
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


Add a Patch

Pull Requests

Pull requests:

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-01-31 09:17 UTC]
-Status: Open +Status: Verified -Operating System: Debian 9 + Debian 10 +Operating System: * -PHP Version: Irrelevant +PHP Version: PHP-7.3
 [2020-01-31 09:17 UTC]
Confirmed: <>.
 [2020-02-02 09:20 UTC]
-Status: Verified +Status: Suspended
 [2020-02-02 09:20 UTC]
This looks like a bug in libiconv.  I've filed a bug report[1].

[1] <>
 [2020-03-03 10:42 UTC]
-Status: Suspended +Status: Verified -Assigned To: +Assigned To: cmb
 [2020-03-03 10:42 UTC]
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] <>
 [2020-03-03 10:42 UTC]
-Summary: iconv_mime_decode() cuts Windows-1258 +Summary: Some iconv functions cut Windows-1258
 [2020-03-03 10:45 UTC]
The following pull request has been associated:

Patch Name: Fix #79200: Some iconv functions cut Windows-1258
On GitHub:
 [2020-03-23 13:33 UTC]
Automatic comment on behalf of
Log: Fix #79200: Some iconv functions cut Windows-1258
 [2020-03-23 13:33 UTC]
-Status: Verified +Status: Closed
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Sep 30 01:01:24 2023 UTC