Re: Adding LC_* constants to ext/standard...
| From: | Zak Greant | Date: | Fri, 15 Dec 2000 16:26:14 +0000 |
| Subject: | Re: Adding LC_* constants to ext/standard... | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-41506@lists.php.net to get a copy of this message | ||
----- Original Message -----
From: "Jani Taskinen" <sniper@iki.fi>
To: "Zak Greant" <zak@nucleus.com>
Cc: <php-dev@lists.php.net>; "Hartmut Holzgraefe" <hartmut@six.de>
Sent: Friday, December 15, 2000 4:37 AM
Subject: Re: [PHP-DEV] Adding LC_* constants to ext/standard...
> On Thu, 14 Dec 2000, Zak Greant wrote:
>
> >Hartmut suggested that the LC_* constants that I added to the gettext
> >extension should actually be defined in ext/standard and that setlocale()
> >should be modified to use them.
> >
> >This seems like a good idea to me - does anyone have any objections to
this
> >being done?
>
> No, because it's done already. :)
>
> I moved them away from ext/gettext/ into ext/standard/
> but I didn't yet modify setlocale() to use them..I asked
> for comments about it but I seem to have posted it on php-cvs
> and not on php-dev..
>
> Should setlocale() be modified to use only the constants and not
> support the strings anymore? Or support both ways?
I must have missed that message.. :) I would think that setlocale() should
use the strings and the constants - no point in breaking old scripts.
--zak