Convert the annotate source to UTF8 before parsing.
Mon Sep 19 03:19:14 UTC 2005 Alberto Bertogli <albertogli@telpin.com.ar>
* Convert the annotate source to UTF8 before parsing.
diff -rN -u old-darcsweb/darcsweb.cgi new-darcsweb/darcsweb.cgi
--- old-darcsweb/darcsweb.cgi 2015-10-13 04:01:52.000000000 +0000
+++ new-darcsweb/darcsweb.cgi 2015-10-13 04:01:52.000000000 +0000
@@ -673,7 +673,14 @@
import xml.dom.minidom
annotate = Annotate()
- dom = xml.dom.minidom.parse(src)
+
+ # FIXME: convert the source to UTF8; it _has_ to be a way to let
+ # minidom know the source encoding
+ s = ""
+ for i in src:
+ s += fixu8(i)
+
+ dom = xml.dom.minidom.parseString(s)
file = dom.getElementsByTagName("file")[0]
annotate.fname = file.getAttribute("name")