Added neutral language spec for backwards compatibility

This commit is contained in:
Moriyoshi Koizumi 2002-11-12 19:24:45 +00:00
parent be5e379ec6
commit 268903ce6c
3 changed files with 13 additions and 2 deletions

View File

@ -129,7 +129,17 @@
#include "unicode_table.h"
/* language structure */
static const char *mbfl_language_uni_aliases[] = {"universal", "none", NULL};
static const mbfl_language mbfl_language_neutral = {
mbfl_no_language_neutral,
"neutral",
"neutral",
NULL,
mbfl_no_encoding_utf8,
mbfl_no_encoding_base64,
mbfl_no_encoding_base64
};
static const char *mbfl_language_uni_aliases[] = {"universal", NULL};
static const mbfl_language mbfl_language_uni = {
mbfl_no_language_uni,

View File

@ -94,6 +94,7 @@
enum mbfl_no_language {
mbfl_no_language_invalid = -1,
mbfl_no_language_neutral,
mbfl_no_language_uni,
mbfl_no_language_min,
mbfl_no_language_catalan, /* ca */

View File

@ -721,7 +721,7 @@ static PHP_INI_MH(OnUpdate_mbstring_encoding_translation)
/* {{{ php.ini directive registration */
PHP_INI_BEGIN()
PHP_INI_ENTRY("mbstring.language", "none", PHP_INI_SYSTEM | PHP_INI_PERDIR, OnUpdate_mbstring_language)
PHP_INI_ENTRY("mbstring.language", "neutral", PHP_INI_SYSTEM | PHP_INI_PERDIR, OnUpdate_mbstring_language)
PHP_INI_ENTRY("mbstring.detect_order", NULL, PHP_INI_ALL, OnUpdate_mbstring_detect_order)
PHP_INI_ENTRY("mbstring.http_input", "pass", PHP_INI_ALL, OnUpdate_mbstring_http_input)
PHP_INI_ENTRY("mbstring.http_output", "pass", PHP_INI_ALL, OnUpdate_mbstring_http_output)