cvs: ZendEngine2(PHP_5_3) / zend_multibyte.c

From: Date: Wed, 18 Mar 2009 17:44:25 +0000
Subject: cvs: ZendEngine2(PHP_5_3) / zend_multibyte.c
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-7485@lists.php.net to get a copy of this message
moriyoshi Wed Mar 18 17:44:25 2009 UTC Modified files: (Branch: PHP_5_3) /ZendEngine2 zend_multibyte.c Log: - Add support for CP850 encoding (patch by Denis Giffeler) http://cvs.php.net/viewvc.cgi/ZendEngine2/zend_multibyte.c?r1=1.4.2.4.2.1.2.6&r2=1.4.2.4.2.1.2.7&diff_format=u Index: ZendEngine2/zend_multibyte.c diff -u ZendEngine2/zend_multibyte.c:1.4.2.4.2.1.2.6 ZendEngine2/zend_multibyte.c:1.4.2.4.2.1.2.7 --- ZendEngine2/zend_multibyte.c:1.4.2.4.2.1.2.6 Wed Mar 18 17:06:40 2009 +++ ZendEngine2/zend_multibyte.c Wed Mar 18 17:44:25 2009 @@ -17,7 +17,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: zend_multibyte.c,v 1.4.2.4.2.1.2.6 2009/03/18 17:06:40 moriyoshi Exp $ */ +/* $Id: zend_multibyte.c,v 1.4.2.4.2.1.2.7 2009/03/18 17:44:25 moriyoshi Exp $ */ #include "zend.h" #include "zend_compile.h" @@ -453,6 +453,15 @@ 1 }; +static const char *cp850_aliases[] = {"IBM850", NULL}; +static zend_encoding encoding_cp850 = { + NULL, + NULL, + "CP850", + (const char *(*)[])&cp850_aliases, + 1 +}; + static zend_encoding *zend_encoding_table[] = { &encoding_ucs4, &encoding_ucs4be, @@ -501,6 +510,7 @@ &encoding_koi8u, &encoding_armscii8, &encoding_cp1254, + &encoding_cp850, NULL };

« previous php.zend-engine.cvs (#7485) next »