Hi Nathan,

In short, don't rely on the system locale support then :/
(You can't rely on it even between different versions of glibc, let
alone difference flavours of UNIX).

A win32nls extension is a good idea and a nice candidate for PECL.

Perhaps it would be a good idea to develop a PEAR package that sits on
top of the win32nls and/or UNIX nls functions to provide a portable API
for PHP scripts?

--Wez.

On Fri, 21 Mar 2003, Nathan Fredrickson wrote:

> Hi all,
>
> I have found some problems (and possible solutions) concerning use of the
> gettext extension on multithreaded servers.
 ...
> The alternative then is to call SetThreadLocale() through a new php
> extension.  I think this should be seperate from the gettext extension since
> locales are used more widely than just gettext.  My current idea is to
> create an extension named w32nls.  This would be a win32 only extension that
> would provide access to a collection of the functions in the win32 NLS API
> [1] including Get/SetThreadLocale().
 ...
> The downside however will be increased incompatibility between win32 and
> unix based PHP applications if such an extension is ever widely used.
>
> I welcome any feedback on these ideas before I proceed.
> Thanks, Nathan

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to