Re: adding GB18030 support for mbstring
| From: | Moriyoshi Koizumi | Date: | Mon, 01 Feb 2010 10:32:53 +0000 |
| Subject: | Re: adding GB18030 support for mbstring | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-46923@lists.php.net to get a copy of this message | ||
2010/2/1 KITAZAKI Shigeru <shigeru_kitazaki@cybozu.co.jp>:
> * php_syslog.patch
> syslog() function cannot properly send UTF-8 strings to event log on
> Windows. This patch changes the internal API. We, however, must set
> UTF-8 on 'mbstring.internal_incoding'.
> In addition, this changes the severity of 'LOG_ERR' from eventlog's
> warning to eventlog's error.
It seems this doesn't relies on any mbstring settings, but just
changed syslog() to take strings encoded in UTF-8 instead of the
system's default encoding. It'd look good to me if it had a new flag
causing syslog() to switch to the new behaviour.
Regards,
Moriyoshi