NetBSD Problem Report #6957

Received: (qmail 1022 invoked from network); 7 Feb 1999 12:45:54 -0000
Message-Id: <199902071246.NAA01011@rvc1.informatik.ba-stuttgart.de>
Date: Sun, 7 Feb 1999 13:46:13 +0100 (CET)
From: Wolfgang Helbig <helbig@Informatik.BA-Stuttgart.DE>
Reply-To: helbig@Informatik.BA-Stuttgart.DE
To: gnats-bugs@gnats.netbsd.org
Subject: libedit changes CR and LF control characters (patch supplied)
X-Send-Pr-Version: 3.95

>Number:         6957
>Category:       bin
>Synopsis:       libedit changes CR and LF control characters (patch supplied)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    christos
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 07 04:50:00 +0000 1999
>Closed-Date:    Sun Feb 07 14:34:49 +0000 1999
>Last-Modified:  Sun Feb 07 14:35:04 +0000 1999
>Originator:     Wolfgang Helbig
>Release:        NetBSD-current Fri Feb  5 17:29:06 UTC 1999
>Organization:

>Environment:
>Description:
	libedit's tty.c switches ^M and ^J.
>How-To-Repeat:
	sh uses libedit, so you can see the bug by entering:
		/bin/sh
		set -V
	enter:
		^V^J
	will print:
		^M
	and enter:
		^V^M
	will print
		^J
>Fix:
	Here is a patch I committed to FreeBSD's lib/libedit/tty.c
	in January 1998 (rev 1.4).
--- /usr/src/lib/libedit/tty.c	Mon Sep 28 13:07:54 1998
+++ tty.c	Sun Feb  7 13:21:30 1999
@@ -84,7 +84,7 @@
 		     C_SH(C_PGOFF)|C_SH(C_PAGE)|C_SH(C_STATUS)), 0 }
     },
     {
-	{ "iflag:", 0, IXON | IXOFF },
+	{ "iflag:", 0, IXON | IXOFF | INLCR | ICRNL },
 	{ "oflag:", 0, 0 },
 	{ "cflag:", 0, 0 },
 	{ "lflag:", 0, ISIG | IEXTEN },
@@ -803,7 +803,7 @@
 tty_rawmode(el)
     EditLine *el;
 {
-    if (el->el_tty.t_mode == ED_IO)
+    if (el->el_tty.t_mode == ED_IO || el->el_tty.t_mode == QU_IO)
 	return (0);

     if (tty_getty(el, &el->el_tty.t_ts) == -1) {
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: bin-bug-people->christos 
Responsible-Changed-By: lukem 
Responsible-Changed-When: Sun Feb 7 05:16:28 PST 1999 
Responsible-Changed-Why:  
because christos is Mr. LibEdit. (i.e, i dunno enough about the tty stuff 
to know if the fix is correct. it looks ok, but christos should confirm it) 
State-Changed-From-To: open->closed 
State-Changed-By: christos 
State-Changed-When: Sun Feb 7 09:34:49 EST 1999 
State-Changed-Why:  
Fixed, thanks 
>Unformatted:
 System: NetBSD rvc1 1.3I NetBSD 1.3I (RVC1) #4: Sun Feb 7 10:59:47 CET 1999 helbig@rvc1:/usr/src/sys/arch/i386/compile/RVC1 i386

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.