WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [XEND] Another attempt at fixing escaping logic in SXP
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 02 Nov 2006 22:08:40 +0000
Delivery-date: Thu, 02 Nov 2006 21:31:47 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [XEND] Another attempt at fixing escaping logic in SXP, Xen patchbot-unstable <=