#26699 [Asn->Csd]: mbstring doesn't identify "binary" as a valid encoding name
| From: | moriyoshi@php.net | Date: | Mon, 26 Jan 2004 00:29:58 +0000 |
| Subject: | #26699 [Asn->Csd]: mbstring doesn't identify "binary" as a valid encoding name | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-53879@lists.php.net to get a copy of this message | ||
ID: 26699
Updated by: moriyoshi@php.net
-Summary: MB String Encoding types does not include "binary"
Reported By: nirva-php at ishiboo dot com
-Status: Assigned
+Status: Closed
Bug Type: Feature/Change Request
Operating System: Solaris 8
PHP Version: 4.3.3
Assigned To: moriyoshi
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2003-12-22 18:39:35] nirva-php at ishiboo dot com
Description:
------------
in ext/mbstring/mbfilter.c, the mbfl_encoding_8bit variable should most
likely have a alias for "binary"
im using the mailparse library, and it uses mbstring to decode
Content-Transfer-Encoding: binary, and it fails.
i believe binary == 8bit, so the simplest solution is probably to add
an alias there.
static const char *mbfl_encoding_8bit_aliases[] = {"binary", NULL};
static const mbfl_encoding mbfl_encoding_8bit = {
mbfl_no_encoding_8bit,
"8bit",
"8bit",
(const char *(*)[])&mbfl_encoding_8bit_aliases,
NULL,
MBFL_ENCTYPE_SBCS
};
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26699&edit=1