This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: missing API for locale_t in <locale.h>
- From: Roland McGrath <roland at redhat dot com>
- To: Bruno Haible <bruno at clisp dot org>
- Cc: libc-alpha at sources dot redhat dot com
- Date: Tue, 22 Mar 2005 14:26:19 -0800
- Subject: Re: missing API for locale_t in <locale.h>
> In short, I'm asking for __current_locale_name to be made public. Or for
> nl_langinfo_l to be extended to support _NL_ADDRESS_NAME, _NL_CTYPE_NAME,
> _NL_MESSAGES_NAME, etc.
I'm inclined to add to nl_langinfo for this rather than adding a new entry
point. Perhaps:
#define _NL_LOCALE(category) _NL_ITEM (category, 0xffff)
so you use nl_langinfo (_NL_LOCALE (LC_MESSAGES)).