Re: bug 18556 - tolower & locales
| From: | Stas Malyshev | Date: | Wed, 11 Jul 2012 16:16:05 +0000 |
| Subject: | Re: bug 18556 - tolower & locales | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-61125@lists.php.net to get a copy of this message | ||
Hi!
> I would make the Zend engine use the ROOT Locale for PHP's language parsing
> (in Java it's called Locale.ROOT, in C it’s the Locale named ""), so its
> invariant to local settings but works correct for all of Unicode. In theory,
Yeah, right, in theory we need full unicode support. In practice,
however, Zend engine does not support Unicode and never did. It uses
system-level tolower(), which depends on current locale and is not
reliable since locales have all kinds of weird rules. This patch is not
meant to introduce full Unicode support, this patch is meant to remove
dependency of the engine on the current locale which leads to all kinds
of weird effects.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227