www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/03/04:39:27

Date: Tue, 3 Feb 1998 11:36:45 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: djgpp AT delorie DOT com
Subject: Bug in Emacs 20 on Windows 95
Message-ID: <Pine.SUN.3.91.980203113013.21682F-100000@is>
MIME-Version: 1.0

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  <eliz AT is DOT elta DOT co DOT il>

	* 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)
      {

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019