Date: Tue, 3 Feb 1998 11:36:45 +0200 (IST) From: Eli Zaretskii To: djgpp AT delorie DOT com Subject: Bug in Emacs 20 on Windows 95 Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk People who use Emacs 20 compiled with DJGPP on Windows 95 please note that there is a bug in an obscure function that causes Emacs to enter an endless loop when you press `M-!' and `M-|' to run shell commands from within Emacs. (Ctrl-BREAK will break out of that loop.) The telltale sign of the bug is that `M-!' works only every other time. The patch below corrects this problem. Note that the bug is not restricted neither to Windows 95 nor to the above two commands, but somehow it was only spotted in these circumstances. 1998-01-29 Eli Zaretskii * coding.c (encode_eol): Set consumed to zero when src_bytes is non-positive. *** src/coding.c~0 Tue Sep 9 00:43:54 1997 --- src/coding.c Thu Jan 29 18:55:58 1998 *************** encode_eol (coding, source, destination, *** 2172,2178 **** int produced; if (src_bytes <= 0) ! return 0; switch (coding->eol_type) { --- 2172,2181 ---- int produced; if (src_bytes <= 0) ! { ! *consumed = 0; ! return 0; ! } switch (coding->eol_type) {