jhbuild r2516 - in trunk: . jhbuild/frontends
- From: fpeters svn gnome org
- To: svn-commits-list gnome org
- Subject: jhbuild r2516 - in trunk: . jhbuild/frontends
- Date: Fri, 14 Nov 2008 13:09:29 +0000 (UTC)
Author: fpeters
Date: Fri Nov 14 13:09:28 2008
New Revision: 2516
URL: http://svn.gnome.org/viewvc/jhbuild?rev=2516&view=rev
Log:
* jhbuild/frontends/tinderbox.py: be more robust against improper
unicode in program outputs. (closes: #560579)
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 Fri Nov 14 13:09:28 2008
@@ -147,11 +147,13 @@
return None
def escape(string):
+ string = string.replace('&', '&')
if type(string) is not unicode:
- string = unicode(string, _encoding)
- return string.replace('&','&').replace('<','<').replace(
+ string = unicode(string, _encoding, 'xmlcharrefreplace')
+ string = string.replace('<','<').replace(
'>','>').replace('\n','<br/>').replace(
'\t',' ')
+ return string
class TinderboxBuildScript(buildscript.BuildScript):
help_url = 'http://live.gnome.org/JhbuildIssues/'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]