mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-05 07:01:11 -08:00
On MS-Windows, fflush stderr after newline
Problem reported by Ioannis Kappas (Bug#46388). * src/sysdep.c (errputc) [WINDOWSNT]: Flush stderr after newline.
This commit is contained in:
parent
1d4195856b
commit
b8bf62b60a
1 changed files with 7 additions and 0 deletions
|
|
@ -2670,6 +2670,13 @@ void
|
|||
errputc (int c)
|
||||
{
|
||||
fputc_unlocked (c, errstream ());
|
||||
|
||||
#ifdef WINDOWSNT
|
||||
/* Flush stderr after outputting a newline since stderr is fully
|
||||
buffered when redirected to a pipe, contrary to POSIX. */
|
||||
if (c == '\n')
|
||||
fflush_unlocked (stderr);
|
||||
#endif
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue