[Zope3-checkins] CVS: Products3/z3checkins - message.py:1.19
Marius Gedminas
marius at pov.lt
Wed Sep 17 10:11:06 EDT 2003
Update of /cvs-repository/Products3/z3checkins
In directory cvs.zope.org:/tmp/cvs-serv3888
Modified Files:
message.py
Log Message:
Added a workaround for UnicodeDecodeErrors. I do not have the time to fix it properly at the moment.
=== Products3/z3checkins/message.py 1.18 => 1.19 ===
--- Products3/z3checkins/message.py:1.18 Wed Sep 17 10:01:48 2003
+++ Products3/z3checkins/message.py Wed Sep 17 10:11:05 2003
@@ -642,8 +642,10 @@
if sig:
sig = '<div class="signature">%s</div>' % sig
- return '<pre>%s</pre><div class="log">%s</div><pre>%s%s%s</pre>' \
+ text = '<pre>%s</pre><div class="log">%s</div><pre>%s%s%s</pre>' \
% (intro, log, import_status, diff, sig)
+ # XXX: find out the actual encoding instead of assuming UTF-8
+ return unicode(text, 'UTF-8', 'replace')
def mark_whitespace(self, line, tab=('>', '-'), trail='.'):
"""Mark whitespace in diff lines.
More information about the Zope3-Checkins
mailing list