Bug 1223653

Summary: python-cheetah: UnicodeEncodeError when compile a utf-8 attribute
Product: [Fedora] Fedora EPEL Reporter: Marius Žalinauskas <marius.zalinauskas>
Component: python-cheetahAssignee: Mike Bonnet <mikeb>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: epel7CC: mikeb, ovasik
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: python-cheetah-2.4.4-5.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-09-26 03:08:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Marius Žalinauskas 2015-05-21 06:54:49 UTC
Description of problem:

Looks like a fix from https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=584966 has not reached EPEL dispite python-cheetah having the same version number 2.4.4 both in Debian and EPEL.


Version-Release number of selected component (if applicable):

python-cheetah-2.4.4-5.el7.centos.x86_64


How reproducible:

$ echo "#encoding UTF-8" > test.tmpl; echo "#attr langs_desc={'nb': 'Norwegian (Bokmål)'}" >> test.tmpl; cheetah-compile test; python test.py


Actual results:

UnicodeEncodeError: 'ascii' codec can't encode character u'\xe5' in position 35: ordinal not in range(128)


Expected results:

Normal template compile
Additional info:

Comment 1 Marius Žalinauskas 2015-05-21 06:56:48 UTC
Debian commit to Cheetah's git repo: 073876f66e35501e289cc5dd1d60672e88c893f2

Comment 2 Fedora Update System 2019-09-10 02:25:10 UTC
FEDORA-EPEL-2019-a4155f715e has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-a4155f715e

Comment 3 Fedora Update System 2019-09-11 04:20:12 UTC
python-cheetah-2.4.4-5.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2019-a4155f715e

Comment 4 Fedora Update System 2019-09-26 03:08:04 UTC
python-cheetah-2.4.4-5.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.