Testing of coreutils on NetBSD 5.1 revealed two NetBSD libc bugs: Localization does not behave as specified by POSIX. See <https://lists.gnu.org/archive/html/coreutils/2012-01/msg00046.html>.
I'm only updating the doc now. 2012-01-05 Bruno Haible <br...@clisp.org> doc: Mention NetBSD bugs. * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug. * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug. --- doc/posix-functions/dprintf.texi.orig Thu Jan 5 19:06:39 2012 +++ doc/posix-functions/dprintf.texi Thu Jan 5 19:06:21 2012 @@ -29,6 +29,10 @@ Portability problems not fixed by Gnulib: @itemize @item +When formatting an integer with grouping flag, this function inserts thousands +separators even in the "C" locale on some platforms: +NetBSD 5.1. +@item On some platforms, this function does not set @code{errno} or the stream error indicator on attempts to write to a read-only stream: Cygwin 1.7.9. --- doc/posix-functions/fprintf.texi.orig Thu Jan 5 19:06:40 2012 +++ doc/posix-functions/fprintf.texi Thu Jan 5 19:06:22 2012 @@ -87,6 +87,10 @@ Portability problems not fixed by Gnulib: @itemize @item +When formatting an integer with grouping flag, this function inserts thousands +separators even in the "C" locale on some platforms: +NetBSD 5.1. +@item Attempting to write to a read-only stream fails with @code{EOF} but does not set the error flag for @code{ferror} on some platforms: glibc 2.13, cygwin 1.7.9. --- doc/posix-functions/fwprintf.texi.orig Thu Jan 5 19:06:40 2012 +++ doc/posix-functions/fwprintf.texi Thu Jan 5 19:06:22 2012 @@ -19,6 +19,10 @@ On AIX and Windows platforms, @code{wchar_t} is a 16-bit type and therefore cannot accommodate all Unicode characters. @item +When formatting an integer with grouping flag, this function inserts thousands +separators even in the "C" locale on some platforms: +NetBSD 5.1. +@item On some platforms, this function does not set @code{errno} or the stream error indicator on attempts to write to a read-only stream: Cygwin 1.7.9. --- doc/posix-functions/nl_langinfo.texi.orig Thu Jan 5 19:06:40 2012 +++ doc/posix-functions/nl_langinfo.texi Thu Jan 5 18:59:44 2012 @@ -41,4 +41,9 @@ 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. + +@item +On NetBSD 5.1, in the "C" locale, the results of +@code{nl_langinfo(ABMON_1)} ... @code{nl_langinfo(ABMON_12)} are full month +names, not abbreviated month names. @end itemize --- doc/posix-functions/printf.texi.orig Thu Jan 5 19:06:40 2012 +++ doc/posix-functions/printf.texi Thu Jan 5 19:06:22 2012 @@ -87,6 +87,10 @@ Portability problems not fixed by Gnulib: @itemize @item +When formatting an integer with grouping flag, this function inserts thousands +separators even in the "C" locale on some platforms: +NetBSD 5.1. +@item Attempting to write to a read-only stream fails with @code{EOF} but does not set the error flag for @code{ferror} on some platforms: glibc 2.13, cygwin 1.7.9. --- doc/posix-functions/snprintf.texi.orig Thu Jan 5 19:06:40 2012 +++ doc/posix-functions/snprintf.texi Thu Jan 5 19:06:22 2012 @@ -94,4 +94,8 @@ Portability problems not fixed by Gnulib: @itemize +@item +When formatting an integer with grouping flag, this function inserts thousands +separators even in the "C" locale on some platforms: +NetBSD 5.1. @end itemize --- doc/posix-functions/sprintf.texi.orig Thu Jan 5 19:06:40 2012 +++ doc/posix-functions/sprintf.texi Thu Jan 5 19:06:22 2012 @@ -69,4 +69,8 @@ Portability problems not fixed by Gnulib: @itemize +@item +When formatting an integer with grouping flag, this function inserts thousands +separators even in the "C" locale on some platforms: +NetBSD 5.1. @end itemize --- doc/posix-functions/swprintf.texi.orig Thu Jan 5 19:06:40 2012 +++ doc/posix-functions/swprintf.texi Thu Jan 5 19:06:22 2012 @@ -23,4 +23,8 @@ accommodate all Unicode characters. @item On Windows, this function does not take a buffer size as second argument. +@item +When formatting an integer with grouping flag, this function inserts thousands +separators even in the "C" locale on some platforms: +NetBSD 5.1. @end itemize --- doc/posix-functions/vdprintf.texi.orig Thu Jan 5 19:06:40 2012 +++ doc/posix-functions/vdprintf.texi Thu Jan 5 19:06:22 2012 @@ -43,6 +43,10 @@ Portability problems not fixed by Gnulib: @itemize @item +When formatting an integer with grouping flag, this function inserts thousands +separators even in the "C" locale on some platforms: +NetBSD 5.1. +@item On some platforms, this function does not set @code{errno} or the stream error indicator on attempts to write to a read-only stream: Cygwin 1.7.9. --- doc/posix-functions/vfprintf.texi.orig Thu Jan 5 19:06:40 2012 +++ doc/posix-functions/vfprintf.texi Thu Jan 5 19:06:22 2012 @@ -87,6 +87,10 @@ Portability problems not fixed by Gnulib: @itemize @item +When formatting an integer with grouping flag, this function inserts thousands +separators even in the "C" locale on some platforms: +NetBSD 5.1. +@item Attempting to write to a read-only stream fails with @code{EOF} but does not set the error flag for @code{ferror} on some platforms: glibc 2.13, cygwin 1.7.9. --- doc/posix-functions/vfwprintf.texi.orig Thu Jan 5 19:06:40 2012 +++ doc/posix-functions/vfwprintf.texi Thu Jan 5 19:06:22 2012 @@ -19,6 +19,10 @@ On AIX and Windows platforms, @code{wchar_t} is a 16-bit type and therefore cannot accommodate all Unicode characters. @item +When formatting an integer with grouping flag, this function inserts thousands +separators even in the "C" locale on some platforms: +NetBSD 5.1. +@item On some platforms, this function does not set @code{errno} or the stream error indicator on attempts to write to a read-only stream: Cygwin 1.7.9. --- doc/posix-functions/vprintf.texi.orig Thu Jan 5 19:06:40 2012 +++ doc/posix-functions/vprintf.texi Thu Jan 5 19:06:22 2012 @@ -87,6 +87,10 @@ Portability problems not fixed by Gnulib: @itemize @item +When formatting an integer with grouping flag, this function inserts thousands +separators even in the "C" locale on some platforms: +NetBSD 5.1. +@item Attempting to write to a read-only stream fails with @code{EOF} but does not set the error flag for @code{ferror} on some platforms: glibc 2.13, cygwin 1.7.9. --- doc/posix-functions/vsnprintf.texi.orig Thu Jan 5 19:06:40 2012 +++ doc/posix-functions/vsnprintf.texi Thu Jan 5 19:06:22 2012 @@ -91,4 +91,8 @@ Portability problems not fixed by Gnulib: @itemize +@item +When formatting an integer with grouping flag, this function inserts thousands +separators even in the "C" locale on some platforms: +NetBSD 5.1. @end itemize --- doc/posix-functions/vsprintf.texi.orig Thu Jan 5 19:06:40 2012 +++ doc/posix-functions/vsprintf.texi Thu Jan 5 19:06:22 2012 @@ -69,4 +69,8 @@ Portability problems not fixed by Gnulib: @itemize +@item +When formatting an integer with grouping flag, this function inserts thousands +separators even in the "C" locale on some platforms: +NetBSD 5.1. @end itemize --- doc/posix-functions/vswprintf.texi.orig Thu Jan 5 19:06:40 2012 +++ doc/posix-functions/vswprintf.texi Thu Jan 5 19:06:22 2012 @@ -20,4 +20,8 @@ accommodate all Unicode characters. @item On Windows, this function does not take a buffer size as second argument. +@item +When formatting an integer with grouping flag, this function inserts thousands +separators even in the "C" locale on some platforms: +NetBSD 5.1. @end itemize --- doc/posix-functions/vwprintf.texi.orig Thu Jan 5 19:06:40 2012 +++ doc/posix-functions/vwprintf.texi Thu Jan 5 19:06:22 2012 @@ -23,6 +23,10 @@ On AIX and Windows platforms, @code{wchar_t} is a 16-bit type and therefore cannot accommodate all Unicode characters. @item +When formatting an integer with grouping flag, this function inserts thousands +separators even in the "C" locale on some platforms: +NetBSD 5.1. +@item On some platforms, this function does not set @code{errno} or the stream error indicator on attempts to write to a read-only stream: Cygwin 1.7.9. --- doc/posix-functions/wprintf.texi.orig Thu Jan 5 19:06:40 2012 +++ doc/posix-functions/wprintf.texi Thu Jan 5 19:06:22 2012 @@ -23,6 +23,10 @@ On AIX and Windows platforms, @code{wchar_t} is a 16-bit type and therefore cannot accommodate all Unicode characters. @item +When formatting an integer with grouping flag, this function inserts thousands +separators even in the "C" locale on some platforms: +NetBSD 5.1. +@item On some platforms, this function does not set @code{errno} or the stream error indicator on attempts to write to a read-only stream: Cygwin 1.7.9.