[Bugs] #3961 sugar-toolkit-gtk3 UNSP: sugar-toolkit-gtk3: utf8 srings in gtk3 apps conflict
Sugar Labs Bugs
bugtracker-noreply at sugarlabs.org
Wed Sep 26 08:02:31 EDT 2012
#3961: sugar-toolkit-gtk3: utf8 srings in gtk3 apps conflict
------------------------------------------+---------------------------------
Reporter: godiard | Owner: erikos
Type: defect | Status: new
Priority: Unspecified by Maintainer | Milestone: 0.98
Component: sugar-toolkit-gtk3 | Version: Unspecified
Severity: Unspecified | Keywords: olpc-test-pending
Distribution: Unspecified | Status_field: Unconfirmed
------------------------------------------+---------------------------------
Pygi does not set the default encoding anymore as the old GTK+ did. This
change does break activities ported to GTK+3.
This topic was discussed in sugar-devel [1]
The change in GTK+ has been discussed upstream here [2].
The sugar-toolkit-gtk3 patch was pushed as
5fdad9481ba7079a6a718159ebe7eb8e5367c46e
[1] http://lists.sugarlabs.org/archive/sugar-devel/2012-August/038993.html
[2] https://bugzilla.gnome.org/show_bug.cgi?id=681915
TestCase:
1) Set Sugar language to Spanish
2) Open GetBooks (Obtener Libros)
3) Select any catalog and one book.
Without the patch in sugar-toolkit-gtk3, the book description at the
bottom of the screen is not displayed. This is because the translation of
"Title" is "Título".
In the activity log, you can see:
Traceback (most recent call last):
File "/home/gonzalo/Activities/GetBooks.activity/GetIABooksActivity.py",
line 646, in selection_cb
self.show_book_data()
File "/home/gonzalo/Activities/GetBooks.activity/GetIABooksActivity.py",
line 657, in show_book_data
book_data = _('Title:\t\t') + self.selected_title + '\n'
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1:
ordinal not in range(128)
With the patch applied in sugar-toolkit-gtk3 the description is displayed
ok.
--
Ticket URL: <http://bugs.sugarlabs.org/ticket/3961>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list