This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Are there locale functions taking locale_t arg(e.g. btowc_l)?
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Larry Evans <cppljevans at suddenlink dot net>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sun, 13 Feb 2011 23:48:50 +0000
- Subject: Re: Are there locale functions taking locale_t arg(e.g. btowc_l)?
- References: <ij9png$q3q$1@dough.gmane.org>
On 13 February 2011 23:33, Larry Evans wrote:
> Apple has several locale functions suffixed with _l:
>
> http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man3/xlocale.3.html#//apple_ref/doc/man/3/xlocale
>
> which take a locale_t as last argument freeing them from dependence
> on the LOCALE environment, as is the case with the normal
> locale functions (without the _l suffix) (see:
>
> http://www.debian.org/doc/manuals/intro-i18n/ch-locale.en.html )
>
> Is there some gcc library that has these functions for other OS's?
It's outside the scope of GCC.
Glibc provides a few of them, such as strtod_l