This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch-readline] history file generation on minGW host
- From: Chet Ramey <chet dot ramey at case dot edu>
- To: Denis PILAT <denis dot pilat at st dot com>
- Cc: Eli Zaretskii <eliz at gnu dot org>, gdb-patches at sources dot redhat dot com, bash-maintainers at gnu dot org, chet at case dot edu
- Date: Fri, 17 Mar 2006 13:36:55 -0500
- Subject: Re: [patch-readline] history file generation on minGW host
- References: <44196BC6.4050503@st.com> <uirqdpd2r.fsf@gnu.org> <441ACF76.5010106@st.com>
- Reply-to: chet dot ramey at case dot edu
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/