| Summary: | UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 23: ordinal not in range(128) | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Akira TAGOH <tagoh> |
| Component: | fonts-tweak-tool | Assignee: | James Ni <jni> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 17 | CC: | dueno, i18n-bugs, jni, lijli, petersen, pwu, tagoh |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | fonts-tweak-tool-0.0.5-1.fc17 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-03-24 00:28:04 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Akira TAGOH
2012-03-14 09:03:54 UTC
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.
fonts-tweak-tool-0.0.4-1.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/fonts-tweak-tool-0.0.4-1.fc16 fonts-tweak-tool-0.0.4-1.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/fonts-tweak-tool-0.0.4-1.fc17 Package fonts-tweak-tool-0.0.4-1.fc17: * should fix your issue, * was pushed to the Fedora 17 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing fonts-tweak-tool-0.0.4-1.fc17' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-4204/fonts-tweak-tool-0.0.4-1.fc17 then log in and leave karma (feedback). fonts-tweak-tool-0.0.5-1.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/fonts-tweak-tool-0.0.5-1.fc16 fonts-tweak-tool-0.0.5-1.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/fonts-tweak-tool-0.0.5-1.fc17 fonts-tweak-tool-0.0.5-1.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report. fonts-tweak-tool-0.0.5-1.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report. |