summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--parse.cxx6
2 files changed, 8 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index dd84d0c0..ff8f9e5e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-04-19 Eugene Teo <eteo@redhat.com>
+
+ PR 2014
+ * parse.cxx (lexer::scan): Added \[0-7]* case to preserve
+ octal escape sequences.
+
2006-04-18 Martin Hunt <hunt@redhat.com>
* Makefile.am (install-data-local): Another try.
diff --git a/parse.cxx b/parse.cxx
index f7ea157b..30c59b45 100644
--- a/parse.cxx
+++ b/parse.cxx
@@ -553,13 +553,11 @@ lexer::scan ()
case 'v':
case 'f':
case 'r':
+ case '0' ... '7': // NB: need only match the first digit
case '\\':
// Pass these escapes through to the string value
- // beign parsed; it will "likely" be emitted into
- // a C literal.
- //
- // XXX: verify this assumption.
+ // beign parsed; it will be emitted into a C literal.
n->content.push_back('\\');