POSIX:2024 (page 1193, line 40734) specifies that the LANGUAGE environment variable should be ignored if its value is empty. NetBSD's *gettext() functions don't do this.
2024-07-19 Bruno Haible <br...@clisp.org> doc: Mention a bug in NetBSD's *gettext functions. * doc/glibc-functions/gettext.texi: Mention buggy handling of empty LANGUAGE environment variable. * doc/glibc-functions/dgettext.texi: Likewise. * doc/glibc-functions/dcgettext.texi: Likewise. * doc/glibc-functions/ngettext.texi: Likewise. * doc/glibc-functions/dngettext.texi: Likewise. * doc/glibc-functions/dcngettext.texi: Likewise. diff --git a/doc/glibc-functions/dcgettext.texi b/doc/glibc-functions/dcgettext.texi index f6e76e963c..9fa436b220 100644 --- a/doc/glibc-functions/dcgettext.texi +++ b/doc/glibc-functions/dcgettext.texi @@ -31,4 +31,9 @@ @item This function is missing on some platforms: macOS 14, FreeBSD 14.0, OpenBSD 6.7, Minix 3.1.8, HP-UX 11, Cygwin 2.9, mingw, MSVC 14, Android 9.0. +@item +This function does not treat a @code{LANGUAGE} environment variable +with an empty value like an unset @code{LANGUAGE} environment variable +on some platforms: +NetBSD 10.0. @end itemize diff --git a/doc/glibc-functions/dcngettext.texi b/doc/glibc-functions/dcngettext.texi index 32bb3f8666..24b420c867 100644 --- a/doc/glibc-functions/dcngettext.texi +++ b/doc/glibc-functions/dcngettext.texi @@ -31,4 +31,9 @@ @item This function is missing on some platforms: macOS 14, FreeBSD 14.0, OpenBSD 6.7, Minix 3.1.8, HP-UX 11, Cygwin 2.9, mingw, MSVC 14, Android 9.0. +@item +This function does not treat a @code{LANGUAGE} environment variable +with an empty value like an unset @code{LANGUAGE} environment variable +on some platforms: +NetBSD 10.0. @end itemize diff --git a/doc/glibc-functions/dgettext.texi b/doc/glibc-functions/dgettext.texi index b7cbbb0bd9..5d06c8fc80 100644 --- a/doc/glibc-functions/dgettext.texi +++ b/doc/glibc-functions/dgettext.texi @@ -31,4 +31,9 @@ @item This function is missing on some platforms: macOS 14, FreeBSD 14.0, OpenBSD 6.7, Minix 3.1.8, HP-UX 11, Cygwin 2.9, mingw, MSVC 14, Android 9.0. +@item +This function does not treat a @code{LANGUAGE} environment variable +with an empty value like an unset @code{LANGUAGE} environment variable +on some platforms: +NetBSD 10.0. @end itemize diff --git a/doc/glibc-functions/dngettext.texi b/doc/glibc-functions/dngettext.texi index db9a4389c9..a8acedf55d 100644 --- a/doc/glibc-functions/dngettext.texi +++ b/doc/glibc-functions/dngettext.texi @@ -31,4 +31,9 @@ @item This function is missing on some platforms: macOS 14, FreeBSD 14.0, OpenBSD 6.7, Minix 3.1.8, HP-UX 11, Cygwin 2.9, mingw, MSVC 14, Android 9.0. +@item +This function does not treat a @code{LANGUAGE} environment variable +with an empty value like an unset @code{LANGUAGE} environment variable +on some platforms: +NetBSD 10.0. @end itemize diff --git a/doc/glibc-functions/gettext.texi b/doc/glibc-functions/gettext.texi index ec9a81f341..8c11136b42 100644 --- a/doc/glibc-functions/gettext.texi +++ b/doc/glibc-functions/gettext.texi @@ -31,4 +31,9 @@ @item This function is missing on some platforms: macOS 14, FreeBSD 14.0, OpenBSD 6.7, Minix 3.1.8, HP-UX 11, Cygwin 2.9, mingw, MSVC 14, Android 9.0. +@item +This function does not treat a @code{LANGUAGE} environment variable +with an empty value like an unset @code{LANGUAGE} environment variable +on some platforms: +NetBSD 10.0. @end itemize diff --git a/doc/glibc-functions/ngettext.texi b/doc/glibc-functions/ngettext.texi index 13bb1f8dac..8aa5869597 100644 --- a/doc/glibc-functions/ngettext.texi +++ b/doc/glibc-functions/ngettext.texi @@ -31,4 +31,9 @@ @item This function is missing on some platforms: macOS 14, FreeBSD 14.0, OpenBSD 6.7, Minix 3.1.8, HP-UX 11, Cygwin 2.9, mingw, MSVC 14, Android 9.0. +@item +This function does not treat a @code{LANGUAGE} environment variable +with an empty value like an unset @code{LANGUAGE} environment variable +on some platforms: +NetBSD 10.0. @end itemize