[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
trigraph quoting patch for Bison lib/quotearg.c
From: |
Paul Eggert |
Subject: |
trigraph quoting patch for Bison lib/quotearg.c |
Date: |
Sat, 2 Nov 2002 23:06:30 -0800 (PST) |
I installed the following patch to work around an obvious glitch in
the trigraph quoting code. At some point I'll merge this stuff
back into gnulib.
2002-11-02 Paul Eggert <address@hidden>
* lib/quotearg.c (quotearg_buffer_restyled): Fix off-by-two
bug in trigraph handling.
Index: quotearg.c
===================================================================
RCS file: /cvsroot/bison/bison/lib/quotearg.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -p -u -r1.6 -r1.7
--- quotearg.c 12 Aug 2002 14:10:23 -0000 1.6
+++ quotearg.c 3 Nov 2002 07:03:53 -0000 1.7
@@ -330,8 +330,8 @@ quotearg_buffer_restyled (char *buffer,
case '<': case '=': case '>':
/* Escape the second '?' in what would otherwise be
a trigraph. */
- i += 2;
c = arg[i + 2];
+ i += 2;
STORE ('?');
STORE ('\\');
STORE ('?');
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- trigraph quoting patch for Bison lib/quotearg.c,
Paul Eggert <=