summaryrefslogtreecommitdiff
path: root/debian/patches/unicode.patch
blob: 5dd92aa8eecd7cad726e6e4d8621a364939aab19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Make sure input variable is unicode
Author: Luca Falavigna <dktrkranz@ubuntu.com

Index: scons-doc-2.0.1/bin/scons-proc.py
===================================================================
--- scons-doc-2.0.1.orig/bin/scons-proc.py	2011-05-25 20:08:30.011703884 +0000
+++ scons-doc-2.0.1/bin/scons-proc.py	2011-05-25 20:08:42.501703874 +0000
@@ -104,7 +104,7 @@
         content = content.replace('-->\n', '-->')
         input = xml_preamble + content + xml_postamble
         try:
-            saxparser.parse(StringIO(input))
+            saxparser.parse(StringIO(unicode(input)))
         except:
             sys.stderr.write("error in %s\n" % f)
             raise