Doc #53783 [NEW]: Meaning of mbstring "auto" encoding depends on mbstring.language
| From: | kentaro at ranvis dot com | Date: | Wed, 19 Jan 2011 02:21:58 +0000 |
| Subject: | Doc #53783 [NEW]: Meaning of mbstring "auto" encoding depends on mbstring.language | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-5833@lists.php.net to get a copy of this message | ||
From:
Operating system:
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Meaning of mbstring "auto" encoding depends on mbstring.language
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 bug report at http://bugs.php.net/bug.php?id=53783&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53783&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53783&r=trysnapshot53
Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53783&r=trysnapshottrunk
Fixed in SVN: http://bugs.php.net/fix.php?id=53783&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53783&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=53783&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=53783&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=53783&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=53783&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=53783&r=support
Expected behavior: http://bugs.php.net/fix.php?id=53783&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=53783&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=53783&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=53783&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53783&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=53783&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=53783&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=53783&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=53783&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=53783&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=53783&r=mysqlcfg