[Fedora-i18n-bugs] [Bug 803222] UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 23: ordinal not in range(128)
bugzilla at redhat.com
bugzilla at redhat.com
Thu Mar 15 10:13:44 UTC 2012
Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.
https://bugzilla.redhat.com/show_bug.cgi?id=803222
Daiki Ueno <dueno at redhat.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dueno at redhat.com
--- Comment #1 from Daiki Ueno <dueno at redhat.com> 2012-03-15 06:13:43 EDT ---
It seems that this problem is related to pygobject3 in f17, where
Gtk.TreeModel.get() always returns byte string rather than unicode, even if the
column is set with Python's unicode value like:
for f in self.fontslist[lang][alias]:
self.lists[alias].append([unicode(f, "utf8")])
Try the following script on f16 and f17:
from gi.repository import Gtk
store = Gtk.ListStore(str)
store.append([unicode("foo", "utf8")])
iter = store.get_iter_first()
print store.get(iter, 0)
Results:
f16: (u'foo',)
f17: ('foo',)
I'll prepare a patch for fonts-tweak-tool tomorrow, but if urgent please feel
free to fix it yourself.
--
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the i18n-bugs
mailing list