This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: named locale error checking
- To: Benjamin Kosnik <bkoz at redhat dot com>
- Subject: Re: named locale error checking
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 28 Jun 2001 16:29:26 -0700
- Cc: libstdc++ at gcc dot gnu dot org
- References: <Pine.SOL.3.91.1010628155307.24283A@taarna.cygnus.com>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
Benjamin Kosnik <bkoz@redhat.com> writes:
> Is there a list of "complete" glibc locales?
No. In fact no locale is really complete.
> I've looked through xlocale.h/langinfo.h/locale.h and can't seem to find
> error codes for the numeric bits. Say:
>
> // Named locale.
> _M_decimal_point = *(__nl_langinfo_l(RADIXCHAR, __cloc));
> _M_thousands_sep = *(__nl_langinfo_l(THOUSEP, __cloc));
> _M_grouping = __nl_langinfo_l(GROUPING, __cloc);
>
> How can I find out what is an "failed" call to __nl_langinfo_l for the
> various nl_items?
You cannot. The localedef program provides default values. The
locale specification can miss those definitions in which case the
default values are assumed to be correct. So a locale where this is
not the case is not incomplete but wrong. Nothing you should care
about.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------