poll tests: Avoid test failure on BSD and Solaris systems.
[gnulib.git] / doc / posix-functions / nl_langinfo.texi
blob6aa35544f0f1c79f890ff49e2e43c1f651367211
1 @node nl_langinfo
2 @section @code{nl_langinfo}
3 @findex nl_langinfo
5 POSIX specification:@* @url{https://pubs.opengroup.org/onlinepubs/9699919799/functions/nl_langinfo.html}
7 Gnulib module: nl_langinfo
9 Portability problems fixed by Gnulib:
10 @itemize
11 @item
12 This function is missing on some platforms:
13 Minix 3.1.8, mingw, MSVC 14, Android 7.1.
14 @item
15 The constant @code{CODESET} is not supported on some platforms:
16 OpenBSD 3.8.
17 @item
18 The constants @code{ALTMON_1} to @code{ALTMON_12} are not defined on some
19 platforms:
20 glibc 2.26, musl libc, Mac OS X 10.13, NetBSD 8.0, OpenBSD 6.7, AIX 7.2, HP-UX 11.31, IRIX 6.5, Solaris 11.4, Haiku, Cygwin 2.9.
21 @item
22 The constants @code{ERA}, @code{ERA_D_FMT}, @code{ERA_D_T_FMT},
23 @code{ERA_T_FMT}, @code{ALT_DIGITS} are not supported on some platforms:
24 OpenBSD 6.7.
25 @item
26 The constants @code{YESEXPR} and @code{NOEXPR} do not return a valid
27 string on some platforms:
28 IRIX 6.5.
29 @item
30 This function is not multithread-safe on some platforms:
31 Solaris 11.3.
32 @end itemize
34 Portability problems not fixed by Gnulib:
35 @itemize
36 @item
37 On Cygwin 1.5.x, which doesn't have locales, @code{nl_langinfo(CODESET)} always
38 returns @code{"US-ASCII"}.
40 @item
41 On Cygwin 1.7.0, only the charset portion of a locale designation is honored.
43 @item
44 On NetBSD 5.0, in some locales, @code{nl_langinfo(CRNCYSTR)} returns the
45 empty string, although the local currency symbol, as returned by
46 @code{localeconv()->currency_symbol}, is non-empty.
48 @item
49 On NetBSD 5.1, in the "C" locale, the results of
50 @code{nl_langinfo(ABMON_1)} ... @code{nl_langinfo(ABMON_12)} are full month
51 names, not abbreviated month names.
52 @end itemize