From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8885 invoked by alias); 17 Mar 2006 18:37:25 -0000 Received: (qmail 8876 invoked by uid 22791); 17 Mar 2006 18:37:24 -0000 X-Spam-Check-By: sourceware.org Received: from mpv1.TIS.CWRU.Edu (HELO mpv1.tis.cwru.edu) (129.22.105.36) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 17 Mar 2006 18:37:21 +0000 Received: from [192.168.1.100] (h135.244.40.69.ip.alltel.net [69.40.244.135]) by mpv1.tis.cwru.edu (MOS 3.6.4-CR) with ESMTP id APX03659 (AUTH cpr); Fri, 17 Mar 2006 13:36:59 -0500 (EST) Message-ID: <441B01C7.7000206@case.edu> Date: Fri, 17 Mar 2006 19:37:00 -0000 From: Chet Ramey Reply-To: chet.ramey@case.edu User-Agent: Thunderbird 1.5 (Macintosh/20051201) MIME-Version: 1.0 To: Denis PILAT CC: Eli Zaretskii , gdb-patches@sources.redhat.com, bash-maintainers@gnu.org, chet@case.edu Subject: Re: [patch-readline] history file generation on minGW host References: <44196BC6.4050503@st.com> <441ACF76.5010106@st.com> In-Reply-To: <441ACF76.5010106@st.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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-03/txt/msg00229.txt.bz2 Denis PILAT wrote: >> However, I think there's a better fix: teach readline to always remove >> any CRs before an LF character, even on Posix platforms. That way, >> even if the history file was edited by some Windows editor that >> doesn't honor the end-of-line format, it can still be read on any OS. >> And as a bonus, we might get a cleaner code, without ugly OS-dependent >> #ifdef's. >> >> Unless Chet and others disagree, would you like to prepare a patch >> along these lines? >> > Yes, good idea, I'll prepare that for next week. I'll wait for that one, then. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ( ``Discere est Dolere'' -- chet ) Live Strong. No day but today. Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/