Re: setlocale
| From: | Markus Fischer | Date: | Sat, 13 Apr 2002 04:16:12 +0000 |
| Subject: | Re: setlocale | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-82728@lists.php.net to get a copy of this message | ||
Interesting, I noticed this too.
I would favour first to check why Microsoft uses a '-'
instead of '_' and if the mapping to the locales really is
always the same except the '-'.
- Markus
ps: I don't think this sort of check/hack belongs into PHP;
not without further investigation at least.
On Sat, Apr 13, 2002 at 12:04:55AM -0400, fabwash wrote :
> Hi all,
>
> my browser (IE6) sends en-us in the HTTP_ACCEPT_LANGUAGE instead of the usual en_US. Would it
> be a good idea to modify setlocale (in ext/standard/string.c) so that it upshifts what is after the
> "-" before calling the local setlocale, or do you think that should be done by the user?
>
> Fab.
--
Please always Cc to me when replying to me on the lists.
GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
"Mind if I MFH ?" "What QA did you do on it?" "the usual?" "ah...
none :)"