diff options
author | Moriyoshi Koizumi <moriyoshi@php.net> | 2009-03-18 17:44:25 +0000 |
---|---|---|
committer | Moriyoshi Koizumi <moriyoshi@php.net> | 2009-03-18 17:44:25 +0000 |
commit | 8ae17615d7177006358696e2a6ba0f10fd5f2391 (patch) | |
tree | ead77a4394d23a55606856b387c2412d7fb55900 /Zend/zend_multibyte.c | |
parent | 115b041861e0a8b62098dc40ab1d41e56d09f8d6 (diff) | |
download | php-git-8ae17615d7177006358696e2a6ba0f10fd5f2391.tar.gz |
- Add support for CP850 encoding (patch by Denis Giffeler)
Diffstat (limited to 'Zend/zend_multibyte.c')
-rw-r--r-- | Zend/zend_multibyte.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Zend/zend_multibyte.c b/Zend/zend_multibyte.c index a057c6995a..2f39c172ef 100644 --- a/Zend/zend_multibyte.c +++ b/Zend/zend_multibyte.c @@ -453,6 +453,15 @@ static zend_encoding encoding_armscii8 = { 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 @@ static zend_encoding *zend_encoding_table[] = { &encoding_koi8u, &encoding_armscii8, &encoding_cp1254, + &encoding_cp850, NULL }; |