[Bugs] #2830 Browse LOW: Browse unable to handle strange unicode characters

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Tue Jun 19 08:17:38 EDT 2012


#2830: Browse unable to handle strange unicode characters
----------------------------+-----------------------------------------------
    Reporter:  m_anish      |          Owner:  lucian         
        Type:  defect       |         Status:  new            
    Priority:  Low          |      Milestone:  0.96           
   Component:  Browse       |        Version:                 
    Severity:  Minor        |       Keywords:  dx2, dx3, patch
Distribution:  Unspecified  |   Status_field:  Unconfirmed    
----------------------------+-----------------------------------------------

Comment(by manuq):

 Discussion at pygobject mailing list: https://mail.gnome.org/archives
 /python-hackers-list/2012-June/msg00012.html

 In Python 3, the strings are well handled: "all string arguments accept a
 "str" Python
 data type (what used to be "unicode" in Python 2) and also return str."

 "But for Python 2, pygobject always takes and returns python 2's "str"
 data type, which is an UTF-8 bytestring. Methods generally accept
 "unicode" values as well and pygobject converts them to "str" on the fly,
 but not the return values."

 Related bug: https://bugzilla.gnome.org/show_bug.cgi?id=663610

 Because of this discussion, a new wiki page was created: http://python-
 gtk-3-tutorial.readthedocs.org/en/latest/unicode.html

 So humitos patch seems to be the [http://python-
 gtk-3-tutorial.readthedocs.org/en/latest/unicode.html#unicode-in-gtk right
 thing to do in Python 2].

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/2830#comment:9>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list