home *** CD-ROM | disk | FTP | other *** search
- From emx-list@mail.physics.utah.edu Tue May 12 20:31:28 1992
- Received: from tuminfo2.informatik.tu-muenchen.de ([131.159.0.81])
- by hphalle0.informatik.tu-muenchen.de
- with SMTP id <133699>; Tue, 12 May 92 20:31:24 +0100
- Received: from mail.physics.utah.edu ([128.110.200.44])
- by tuminfo2.informatik.tu-muenchen.de
- with SMTP id <16919>; Tue, 12 May 92 20:30:56 +0200
- Received: from localhost by mail.physics.utah.edu (AIX 3.1/UCB 5.61/4.03)
- id AA07225; Tue, 12 May 92 12:29:11 -0600
- Date: Tue, 12 May 92 20:29:11 +0100
- Message-Id: <9204281046.AA19919@azu.informatik.uni-stuttgart.de>
- Comment:
- Originator: emx-list@mail.physics.utah.edu
- Errors-To: gchunt@mail.physics.utah.edu
- Reply-To: <emx-list@mail.physics.utah.edu>
- Sender: emx-list@mail.physics.utah.edu
- Version: 5.41 -- Copyright (c) 1991/92, Anastasios Kotsikonas
- From: Eberhard Mattes <mattes@azu.informatik.uni-stuttgart.de>
- To: rommel@informatik.tu-muenchen.de
- Subject: Bug in my Emacs patches
- Status: RO
-
- There's a bug in the GNU Emacs patches I put into the
- soft/incoming/pc/emacs-em directory of rusinfo.rus.uni-stuttgart.de.
- The bug causes CR/LF pairs which are on a 64 KB boundary in an input
- file to be translated to CR instead of LF. Here's a patch:
-
- *** fileio.c~ Sun Apr 19 17:47:06 1992
- --- fileio.c Sat Apr 25 11:02:46 1992
- ***************
- *** 1752,1773 ****
- break;
- }
- #ifdef OS2
- ! else /* cr/lf -> lf */
- ! {
- ! crlf_ptr = &FETCH_CHAR (point + inserted - 1) + 1;
- ! crlf_dst = crlf_src = 0;
- ! if (this > 0 && cr_flag && crlf_ptr[0] == '\n')
- ! ++crlf_src;
- ! while (crlf_src < this)
- ! {
- ! if (crlf_ptr[crlf_src] == '\r' && crlf_src + 1 < this
- ! && crlf_ptr[crlf_src + 1] == '\n')
- ! ++crlf_src;
- ! crlf_ptr[crlf_dst++] = crlf_ptr[crlf_src++];
- ! }
- ! cr_flag = (crlf_ptr[this-1] == '\r');
- ! this -= crlf_src - crlf_dst;
- ! }
- #endif
-
- GPT += this;
- --- 1752,1774 ----
- break;
- }
- #ifdef OS2
- ! /* CR/LF -> LF */
- ! crlf_ptr = &FETCH_CHAR (point + inserted - 1) + 1;
- ! crlf_dst = crlf_src = 0;
- ! if (cr_flag && crlf_ptr[0] == '\n')
- ! {
- ! ++crlf_src;
- ! crlf_ptr[-1] = '\n'; /* replace CR with LF */
- ! }
- ! while (crlf_src < this)
- ! {
- ! if (crlf_ptr[crlf_src] == '\r' && crlf_src + 1 < this
- ! && crlf_ptr[crlf_src + 1] == '\n')
- ! ++crlf_src;
- ! crlf_ptr[crlf_dst++] = crlf_ptr[crlf_src++];
- ! }
- ! cr_flag = (crlf_ptr[this-1] == '\r');
- ! this -= crlf_src - crlf_dst;
- #endif
-
- GPT += this;
-
- Eberhard Mattes (mattes@azu.informatik.uni-stuttgart.de)
-
-
-