From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26247 invoked by alias); 9 Oct 2006 19:28:06 -0000 Received: (qmail 26239 invoked by uid 22791); 9 Oct 2006 19:28:05 -0000 X-Spam-Check-By: sourceware.org Received: from heller.inter.net.il (HELO heller.inter.net.il) (192.114.186.73) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 09 Oct 2006 19:28:04 +0000 Received: from HOME-C4E4A596F7 (IGLD-80-230-34-198.inter.net.il [80.230.34.198]) by heller.inter.net.il (MOS 3.7.3a-GA) with ESMTP id ARE39317 (AUTH halo1); Mon, 9 Oct 2006 20:27:50 +0200 (IST) Date: Mon, 09 Oct 2006 19:28:00 -0000 Message-Id: From: Eli Zaretskii To: Denis PILAT CC: gdb-patches@sourceware.org In-reply-to: <452A6905.1040308@st.com> (message from Denis PILAT on Mon, 09 Oct 2006 17:21:41 +0200) Subject: Re: [TUI] correctly display windows source files Reply-to: Eli Zaretskii References: <452A6905.1040308@st.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-10/txt/msg00080.txt.bz2 > Date: Mon, 09 Oct 2006 17:21:41 +0200 > From: Denis PILAT > > The TUI displays windows source files with and extra blank line between > each source line. > Line number are wrong and changes when source is moved up and down. > > This patch fixes this problem and should take the case of MAC OS > end-of-line into account. This is okay with me, but please be sure to test the code near the end of the file, because, according to my references, an attempt to ungetc EOF is ignored. What happens with a file that ends in a sole `\r'?