Patch for fixsgml (kdesdk/poxml)

Ben Burton bab at debian.org
Mon Oct 13 13:39:52 BST 2003


Hi.  Anyone mind if I commit the following patch to
kdesdk/poxml/fixsgml?


--- /usr/bin/fixsgml.orig       2003-09-06 13:53:58.000000000 +0000
+++ /usr/bin/fixsgml    2003-09-06 13:54:41.000000000 +0000
@@ -1,4 +1,5 @@
 #! /usr/bin/python
+# -*- coding: ISO-8859-1 -*-
 
 import re, sys, os, string
 


It eliminates a runtime warning (shown below).  I've tested it, and
backquotes (the character causing the warning) are still transformed
correctly.

bab at skaro:~> fixsgml foo.xml
sys:1: DeprecationWarning: Non-ASCII character '\xb4' in file
/usr/bin/fixsgml on line 70, but no encoding declared; see
http://www.python.org/peps/pep-0263.html for details
bab at skaro:~>

Ben. :)




More information about the kde-core-devel mailing list