Hash :
c6fb743c
Author :
Date :
2010-12-31T11:42:21
nl_langinfo: fix YESEXPR on Irix 6.5 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug. * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it. * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document it. Signed-off-by: Eric Blake <eblake@redhat.com>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
@node nl_langinfo
@section @code{nl_langinfo}
@findex nl_langinfo
POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/nl_langinfo.html}
Gnulib module: nl_langinfo
Portability problems fixed by Gnulib:
@itemize
@item
This function is missing on some platforms:
mingw, BeOS.
@item
The constant @code{CODESET} is not supported on some platforms:
glibc 2.0.6, OpenBSD 3.8.
@item
The constants @code{ERA}, @code{ERA_D_FMT}, @code{ERA_D_T_FMT},
@code{ERA_T_FMT}, @code{ALT_DIGITS} are not supported on some platforms:
OpenBSD 3.8.
@item
The constants @code{T_FMT_AMPM}, @code{YESEXPR}, @code{NOEXPR} are not
supported on some platforms:
IRIX 5.3.
@item
The constants @code{YESEXPR} and @code{NOEXPR} do not return a valid
string on some platforms:
Irix 6.5.
@end itemize
Portability problems not fixed by Gnulib:
@itemize
@item
On Cygwin 1.5.x, which doesn't have locales, @code{nl_langinfo(CODESET)} always
returns @code{"US-ASCII"}.
@item
On Cygwin 1.7.0, only the charset portion of a locale designation is honored.
@item
On NetBSD 5.0, in some locales, @code{nl_langinfo(CRNCYSTR)} returns the
empty string, although the local currency symbol, as returned by
@code{localeconv()->currency_symbol}, is non-empty.
@end itemize