* doc/posix-functions/fputc.texi: Document a bug found in msvcrt.
* doc/posix-functions/putc.texi: Likewise.
* doc/posix-functions/fwrite.texi: Document another bug found in msvcrt.
+2025-09-16 Bruno Haible <bruno@clisp.org>
+
+ Document msvcrt (native Windows) bugs regarding console output.
+ * doc/posix-functions/fputc.texi: Document a bug found in msvcrt.
+ * doc/posix-functions/putc.texi: Likewise.
+ * doc/posix-functions/fwrite.texi: Document another bug found in msvcrt.
+
2025-09-16 Bruno Haible <bruno@clisp.org>
strerror_r: Ensure a trailing NUL when truncating.
On Windows platforms (excluding Cygwin), this function does not set @code{errno}
upon failure.
@item
+This function fails and produces garbled output
+when invoked twice, for outputting a non-ASCII character in double-byte encoding,
+corresponding to the locale, on some platforms:
+mingw in combination with msvcrt,
+when the output goes to a Windows console.
+@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.
On Windows platforms (excluding Cygwin), this function does not set @code{errno}
upon failure.
@item
+This function fails and produces no output
+when the argument string starts with a non-ASCII character in double-byte encoding,
+corresponding to the locale, on some platforms:
+mingw in combination with msvcrt,
+when the output goes to a Windows console.
+@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.
On Windows platforms (excluding Cygwin), this function does not set @code{errno}
upon failure.
@item
+This function fails and produces garbled output
+when invoked twice, for outputting a non-ASCII character in double-byte encoding,
+corresponding to the locale, on some platforms:
+mingw in combination with msvcrt,
+when the output goes to a Windows console.
+@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.