Bug 529332
Summary: | The EncodeUnicode filter no longer works. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Pierre Ossman <ossman> |
Component: | python-cheetah | Assignee: | Mike Bonnet <mikeb> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 11 | CC: | mikeb, tyler |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | 2.2.2-2.fc11 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2009-11-04 12:39:47 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: |
Description
Pierre Ossman
2009-10-16 09:09:46 UTC
The workaround is to not use the EncodeUnicode filter, and use t.respond().encode('utf-8') to generate UTF-8 output. I'm discussing how to handle this in general with the upstream developers. Digging through the tests, I also found this version: unicode(t).encode('utf-8') It's a bit of a problem when a previously working method breaks though. I have a lot of scripts that need to be changed. I also seem to recall that "my" method was the recommended one for handling unicode. :/ Mike and I worked out a resolution for this issue which will definitely be going into the Cheetah 2.4.0 release (next release up, jumping some version numbers ;)) I believe Mike was planning on backporting it to the RedHat v2.2.2 package. *adds self to CC* A fixes have been applied upstream, and a new 2.2.2 build incorporating those fixes is available here: http://koji.fedoraproject.org/koji/buildinfo?buildID=137540 Please test it out and let me know if it solves your problem. python-cheetah-2.2.2-2.fc11 has been submitted as an update for Fedora 11. http://admin.fedoraproject.org/updates/python-cheetah-2.2.2-2.fc11 python-cheetah-2.2.2-2.fc11 has been pushed to the Fedora 11 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update python-cheetah'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-10765 I can confirm that the updated package solves the issue. Thanks for the hard work. python-cheetah-2.2.2-2.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report. |