Bug 771082
| Summary: | Sudoku fails to load after today's update to 3.0.3-1.f16 (64 bit) | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Bob Agel <cragel> | ||||
| Component: | gnome-games | Assignee: | Ray Strode [halfline] <rstrode> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 16 | CC: | icq, johnp, rstrode, stefan.hoelldampf | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | gnome-games-3.2.1-3.fc16 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2012-01-05 21:05:13 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Bob Agel
2011-12-31 22:35:06 UTC
So a unicode fix broke this. When creating a str column in a TreeStore we are actually creating a gobject string which is always unicode. Previous versions of PyGObject incorrectly reconverted gobject strings back to string instead of unicode which would blow up anytime someone would store unicode (or in the case of user input someone typed in a unicode character). Since unicode is often not used as much as ascii characters this bug went unfixed until 3.0.3. The side effect is that anyone doing if type(var) == str: would now not trigger that conditional. This is a bug in the app as you should almost never check for exact types. The correct code is: if isinstance(var, str): I'll file a bug upstream and patch it for Fedora. I'll attach the patch here in a minute. Created attachment 550287 [details]
check for basestring not str
committed upstream, I'm going to patch this in Fedora gnome-games-3.2.1-3.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/gnome-games-3.2.1-3.fc16 Package gnome-games-3.2.1-3.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing gnome-games-3.2.1-3.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2012-0087/gnome-games-3.2.1-3.fc16 then log in and leave karma (feedback). gnome-games-3.2.1-3.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report. |