#19836 [Opn->Ana]: setlocale LC_ALL separator
| From: | mfischer@php.net | Date: | Thu, 10 Oct 2002 08:04:49 +0000 |
| Subject: | #19836 [Opn->Ana]: setlocale LC_ALL separator | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-22022@lists.php.net to get a copy of this message | ||
ID: 19836
Updated by: mfischer@php.net
Reported By: msopacua@php.net
-Status: Open
+Status: Analyzed
Bug Type: Strings related
Operating System: AIX 4.3.3
PHP Version: 4CVS-2002-10-09
New Comment:
The PHP setlocale() function only returns what the System setlocale()
function returns.
Previous Comments:
------------------------------------------------------------------------
[2002-10-09 14:46:49] msopacua@php.net
On AIX setlocale(LC_ALL, locale) returns a space separated list of the
locales in effect, instead of a '/'. A little test program explains:
$ ./o
setlocale LC_ALL, "C" returns <C C C C C C>
setlocale LC_CTYPE, "en_US" returns <en_US>
setlocale LC_ALL, NULL returns <C en_US C C C C>
I've taken a look at ext/standard/string.c but can't figure out
how/where
the string is turned into just one character.
This affects (among other things) ext/ctype/tests/002.phpt
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19836&edit=1