#45086 [NEW]: Incorrect default names for chinese charsets

From: Date: Sat, 24 May 2008 05:38:12 +0000
Subject: #45086 [NEW]: Incorrect default names for chinese charsets
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-125227@lists.php.net to get a copy of this message
From:             petr dot hroudny at gmail dot com
Operating system: 
PHP version:      5.2.6
PHP Bug Type:     mbstring related
Bug description:  Incorrect default names for chinese charsets

Description:
------------
MBstring uses incorrect default names for two chinese charsets:

1) Official IANA name is GB2312, but MBstring uses EUC-CN
2) Official IANA name is GBK, but MBstrings uses CP936

Reproduce code:
---------------
mb_list_encodings()

Expected result:
----------------
mb_list_encodings()  should return official IANA names (GB2312, GBK)

Actual result:
--------------
mb_list_encodings()  returns EUC-CN and CP936

-- 
Edit bug report at http://bugs.php.net/?id=45086&edit=1
-- 
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45086&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45086&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45086&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=45086&r=fixedcvs
Fixed in release:             http://bugs.php.net/fix.php?id=45086&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=45086&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=45086&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=45086&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=45086&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=45086&r=notwrong
Not enough info:              http://bugs.php.net/fix.php?id=45086&r=notenoughinfo
Submitted twice:              http://bugs.php.net/fix.php?id=45086&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=45086&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=45086&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=45086&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=45086&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=45086&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=45086&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=45086&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=45086&r=mysqlcfg



Thread (4 messages)

« previous php.bugs (#125227) next »