#7733 BLOC 8.2.0 (: Cannot install Wikipedia-10.xo
Zarro Boogs per Child
bugtracker at laptop.org
Wed Aug 13 17:39:46 EDT 2008
#7733: Cannot install Wikipedia-10.xo
------------------------+---------------------------------------------------
Reporter: tomeu | Owner: tomeu
Type: defect | Status: new
Priority: blocker | Milestone: 8.2.0 (was Update.2)
Component: sugar | Version: Git as of bug date
Resolution: | Keywords: 8.2.0:? blocks?:8.2.0 relnote
Next_action: diagnose | Verified: 0
Blockedby: | Blocking:
------------------------+---------------------------------------------------
Comment(by cscott):
marco: nope, not relevant. The UTF-8 forcing is being done by dbus; see
http://dbus.freedesktop.org/doc/dbus-specification.html#message-protocol-
signatures which specifies only UTF-8 encoding for type STRING, and
http://dbus.freedesktop.org/doc/dbus-python/doc/tutorial.html#byte-arrays-
and-utf8-strings which discusses how the python bindings will decode the
UTF-8 and give you a unicode by default unless you pass in the
utf8_strings=True keyword option (in which case you get a UTF-8 encoded
'str' object, which is what we want). Another alternative would be to
declare all sugar methods which take a filename as taking a byte array as
argument (which the python binding will also return as a 'str'), but I
think we can live with a UTF-8 restriction on filenames (although it's
worth noting that I had to fix the olpc-update manifest format once upon a
time to *not* assume valid UTF-8, because our library content was rife
with misencoded filenames).
I'm working on a patch.
--
Ticket URL: <http://dev.laptop.org/ticket/7733#comment:15>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system
More information about the Bugs
mailing list