jhbuild r2524 - in trunk: . jhbuild/frontends
- From: fpeters svn gnome org
- To: svn-commits-list gnome org
- Subject: jhbuild r2524 - in trunk: . jhbuild/frontends
- Date: Sun, 16 Nov 2008 22:58:49 +0000 (UTC)
Author: fpeters
Date: Sun Nov 16 22:58:48 2008
New Revision: 2524
URL: http://svn.gnome.org/viewvc/jhbuild?rev=2524&view=rev
Log:
* jhbuild/frontends/tinderbox.py: handle unicode errors with 'replace'
instead of 'xmlcharrefreplace' in tinderbox output.  (closes: #560579,
thanks Theppitak Karoonboonyanan for the debugging)
Modified:
   trunk/ChangeLog
   trunk/jhbuild/frontends/tinderbox.py
Modified: trunk/jhbuild/frontends/tinderbox.py
==============================================================================
--- trunk/jhbuild/frontends/tinderbox.py	(original)
+++ trunk/jhbuild/frontends/tinderbox.py	Sun Nov 16 22:58:48 2008
@@ -147,10 +147,9 @@
     return None
 
 def escape(string):
-    string = string.replace('&', '&')
     if type(string) is not unicode:
-        string = unicode(string, _encoding, 'xmlcharrefreplace')
-    string = string.replace('<','<').replace(
+        string = unicode(string, _encoding, 'replace')
+    string = string.replace('&', '&').replace('<','<').replace(
             '>','>').replace('\n','<br/>').replace(
             '\t','    ')
     return string
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]