[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [XEND] Another attempt at fixing escaping logic in SXP



# HG changeset patch
# User Alastair Tse <atse@xxxxxxxxxxxxx>
# Node ID 6f0b467a92c61b74c663668f1eaf9c8463f39303
# Parent  8728365bac33d5454e5a3f708522d470da589a68
[XEND] Another attempt at fixing escaping logic in SXP

Signed-off-by: Alastair Tse <atse@xxxxxxxxxxxxx>
---
 tools/python/xen/xend/sxp.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r 8728365bac33 -r 6f0b467a92c6 tools/python/xen/xend/sxp.py
--- a/tools/python/xen/xend/sxp.py      Thu Oct 05 19:13:52 2006 +0100
+++ b/tools/python/xen/xend/sxp.py      Thu Oct 05 20:02:50 2006 +0100
@@ -267,12 +267,13 @@ class Parser:
         elif c == 'x':
             self.state.fn = self.state_hex
             self.state.val = 0
-        elif c == '0':
+        elif c in string.octdigits:
             self.state.fn = self.state_octal
             self.state.val = 0
             self.input_char(c)
         else:
             # ignore escape if it doesn't match anything we know
+            self.state.parent.buf += '\\'
             self.pop_state()
 
     def state_octal(self, c):

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.