Re: locale info?
| From: | Stephen Langasek | Date: | Tue, 20 Jul 1999 20:05:57 +0000 |
| Subject: | Re: locale info? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-8803@lists.php.net to get a copy of this message | ||
On Tue, 20 Jul 1999, Andrey Zmievski wrote:
> Is there a way in C to find out what locale is currently set, "C" or some
> other one?
According to the glibc 2.1 manpage for setlocale(3) says that calling
setlocale() with "" (zero-length string) will set the locale to the
appropriate value based on environment variables, and returns a string which
describes this locale.
HTH,
-Steve Langasek
postmodern programmer