Mercurial > hg > xemacs-beta
diff src/print.c @ 282:c42ec1d1cded r21-0b39
Import from CVS: tag r21-0b39
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:33:18 +0200 |
parents | 7df0dd720c89 |
children | 558f606b08ae |
line wrap: on
line diff
--- a/src/print.c Mon Aug 13 10:32:23 2007 +0200 +++ b/src/print.c Mon Aug 13 10:33:18 2007 +0200 @@ -119,7 +119,17 @@ GET_CHARPTR_EXT_DATA_ALLOCA (str + offset, len, fmt, extptr, extlen); if (stream) - fwrite (extptr, 1, extlen, stream); + { + fwrite (extptr, 1, extlen, stream); +#ifdef WINDOWSNT + /* Q122442 says that pipes are "treated as files, not as + devices", and that this is a feature. Before I found that + article, I thought it was a bug. Thanks MS, I feel much + better now. - kkm */ + if (stream == stdout || stream == stderr) + fflush (stream); +#endif + } else { assert (CONSOLE_TTY_P (con));