Donate Share

Freevo - Home Theatre PC Platform

Tracker: Bugs

5 utf8 exception on Plugin List - ID: 1983965
Last Update: Comment added ( sf-robot )


My sidux (debian/sid) system uses utf-8 as default encoding.
On /help/plugins.rpy I clicked on /help/plugins.rpy?type=global#udpremote
and got this exception:

Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/twisted/protocols/basic.py", line
231, in dataReceived
why = self.lineReceived(line)
File "/usr/lib/python2.5/site-packages/twisted/web/http.py", line 1067,
in lineReceived
self.allContentReceived()
File "/usr/lib/python2.5/site-packages/twisted/web/http.py", line 1108,
in allContentReceived
req.requestReceived(command, path, version)
File "/usr/lib/python2.5/site-packages/twisted/web/http.py", line 626, in
requestReceived
self.process()
--- <exception caught here> ---
File "/usr/lib/python2.5/site-packages/twisted/web/server.py", line 150,
in process
self.render(resrc)
File "/usr/lib/python2.5/site-packages/twisted/web/server.py", line 157,
in render
body = resrc.render(self)
File "/usr/lib/python2.5/site-packages/freevo/www/web_types.py", line 99,
in render
return self._render(request)
File "/usr/share/freevo/htdocs/help/plugins.rpy", line 88, in _render
fv.res += html_info(p[0], [p])
exceptions.UnicodeDecodeError: 'utf8' codec can't decode bytes in position
571-573: invalid data


phobie ( phobie ) - 2008-06-03 23:02

5

Closed

Fixed

Nobody/Anonymous

webserver

1.8.0

Public


Comments ( 2 )

Date: 2008-06-19 02:20
Sender: sf-robotSourceForge.net Site Admin


This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).


Date: 2008-06-04 19:03
Sender: duncanwebbProject Admin


Thanks for the report it was easy to reproduce and fix.

This should now be fixed in svn at r10800 for both rel-1 and rel-1-7
branches

I didn't even know that this existed.

--- src/helpers/plugins.py (revision 10792)
+++ src/helpers/plugins.py (working copy)
@@ -273,7 +273,7 @@
else:
ret += '<br><b>Description</b>:'
ret += '<p>'
- tmp = desc
+ tmp = Unicode(desc)
desc = []
for block in tmp.split('\n\n'):
for line in block.split('\n'):



Attached File ( 1 )

Filename Description Download
plugins.rpy.html plugins.rpy.html Download

Changes ( 6 )

Field Old Value Date By
status_id Pending 2008-06-19 02:20 sf-robot
close_date 2008-06-04 19:03 2008-06-19 02:20 sf-robot
status_id Open 2008-06-04 19:03 duncanwebb
resolution_id None 2008-06-04 19:03 duncanwebb
close_date - 2008-06-04 19:03 duncanwebb
File Added 280067: plugins.rpy.html 2008-06-03 23:02 phobie