Bug 803222

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-toolAssignee: James Ni <jni>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: 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
Description of problem:
When adding VL PGothic to ans-serif, the exception in summary happens.

Version-Release number of selected component (if applicable):
fonts-tweak-tool-0.0.3-1.fc17.noarch

How reproducible:
always

Steps to Reproduce:
1.run fonts-tweak-tool in LANG=ja_JP.UTF-8
2.add Japanese
3.select VL Pゴシック for sans-serif
  
Actual results:
the exception occurs.

Expected results:
no exception.

Additional info:

Comment 1 Daiki Ueno 2012-03-15 10:13:43 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.

Comment 2 Fedora Update System 2012-03-19 13:49:19 UTC
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

Comment 3 Fedora Update System 2012-03-19 13:49:40 UTC
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

Comment 4 Fedora Update System 2012-03-20 06:04:03 UTC
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).

Comment 5 Fedora Update System 2012-03-20 09:42:48 UTC
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

Comment 6 Fedora Update System 2012-03-20 09:43:09 UTC
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

Comment 7 Fedora Update System 2012-03-24 00:28:04 UTC
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.

Comment 8 Fedora Update System 2012-04-12 03:45:10 UTC
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.