Doc #53783 [Opn->Csd]: Meaning of mbstring "auto" encoding depends on mbstring.language
| From: | vrana@php.net | Date: | Thu, 10 Feb 2011 12:52:58 +0000 |
| Subject: | Doc #53783 [Opn->Csd]: Meaning of mbstring "auto" encoding depends on mbstring.language | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-5949@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=53783&edit=1
ID: 53783
Updated by: vrana@php.net
Reported by: kentaro at ranvis dot com
Summary: Meaning of mbstring "auto" encoding depends on
mbstring.language
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: vrana
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation
better.
Previous Comments:
------------------------------------------------------------------------
[2011-02-10 13:52:49] vrana@php.net
Automatic comment from SVN on behalf of vrana
Revision: http://svn.php.net/viewvc/?view=revision&revision=308187
Log: 'auto' depends on mbstring.language (doc bug #53783)
------------------------------------------------------------------------
[2011-01-19 03:21:57] kentaro at ranvis dot com
Description:
------------
The following documents says that the "auto" encoding for
mbstring always expands to "ASCII, JIS, UTF-8, EUC-JP, SJIS".
But according to ext/mbstring/mbstring.c,
"auto" actually expands to php_mb_default_identify_list_*
which the current mbstring.language value corresponds to.
doc-en/en/reference/mbstring/functions/mb-convert-encoding.xml
doc-en/en/reference/mbstring/functions/mb-detect-encoding.xml
doc-en/en/reference/mbstring/functions/mb-detect-order.xml
doc-en/en/reference/mbstring/ini.xml
The correct behavior is only described in:
doc-en/en/reference/mbstring/supported-encodings.xml
which says:
If "auto" is set, it is expanded to
the list of encodings defined per the NLS.
For instance, if the NLS is set to Japanese,
the value is assumed to be
"ASCII,JIS,UTF-8,EUC-JP,SJIS".
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=53783&edit=1