Subject: bin/37212: Please backport 'cvs diff -r 1.7 -r 1.8 dist/nawk/lex.c' to netbsd-4 branch
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org>
From: None <cheusov@tut.by>
List: netbsd-bugs
Date: 10/25/2007 20:55:00
>Number: 37212
>Category: bin
>Synopsis: Please backport 'cvs diff -r 1.7 -r 1.8 dist/nawk/lex.c' to netbsd-4 branch
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Oct 25 20:55:00 +0000 2007
>Originator: cheusov@tut.by
>Release: NetBSD 4.0_RC3
>Organization:
home
>Environment:
System: NetBSD chen.chizhovka.net 4.0_RC3 NetBSD 4.0_RC3 (GENERIC) #2: Sat Oct 20 21:41:02 EEST 2007 cheusov@chen.chizhovka.net:/srv/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
From cvs log:
revision 1.8
date: 2007/10/25 14:40:33; author: he; state: Exp; lines: +1 -0
Bring back the fix in revision 1.6, apparently accidentally lost
during last merge, to allow escape of a newline in string literals.
>Fix:
cvs diff -r 1.7 -r 1.8 dist/nawk/lex.c:
Index: dist/nawk/lex.c
===================================================================
RCS file: /pub/NetBSD-CVS/src/dist/nawk/lex.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- dist/nawk/lex.c 2 Jul 2005 20:10:34 -0000 1.7
+++ dist/nawk/lex.c 25 Oct 2007 14:40:33 -0000 1.8
@@ -392,6 +392,7 @@
case '\\':
c = input();
switch (c) {
+ case '\n': break;
case '"': *bp++ = '"'; break;
case 'n': *bp++ = '\n'; break;
case 't': *bp++ = '\t'; break;