Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1138703

Summary: [abrt] ttname: cli.py:188:read:UnicodeEncodeError: 'ascii' codec can't encode character u'\u2122' in position 132: ordinal not in range(128)
Product: [Fedora] Fedora Reporter: Parag Nemade <pnemade>
Component: ttnameAssignee: Nils Philippsen <nphilipp>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: nphilipp, tchollingsworth
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/decff15a32d18e52be86bfc572ef70cd5a1acfd1
Whiteboard: abrt_hash:64d8b45236c1629c48c2f9f68f6c991f4079c086
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-04 14:41:14 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 Flags
File: backtrace
none
File: environ none

Description Parag Nemade 2014-09-05 13:28:12 UTC
Description of problem:
I think this happens with any font. Just run "ttname anyfont.ttf" and you will get backtrace.

Version-Release number of selected component:
ttname-1-3.fc21

Additional info:
reporter:       libreport-2.2.3
cmdline:        /usr/bin/python /bin/ttname rpms-unpacked/google-croscore-cousine-fonts-1.23.0-5.fc21.noarch.rpm/usr/share/fonts/google-croscore/Cousine-Italic.ttf
executable:     /bin/ttname
kernel:         3.16.1-301.fc21.x86_64
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
cli.py:188:read:UnicodeEncodeError: 'ascii' codec can't encode character u'\u2122' in position 132: ordinal not in range(128)

Traceback (most recent call last):
  File "/bin/ttname", line 9, in <module>
    load_entry_point('ttname==1', 'console_scripts', 'ttname')()
  File "/usr/lib/python2.7/site-packages/ttname/cli.py", line 48, in __init__
    self.read()
  File "/usr/lib/python2.7/site-packages/ttname/cli.py", line 188, in read
    print '{0}: {1}'.format(info.name(n), n.string)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2122' in position 132: ordinal not in range(128)

Local variables in innermost frame:
self: <ttname.cli.TTNameCLI object at 0x7f0887b4dd50>
names: <generator object getSection at 0x7f0887b81fa0>
n: <ttname.table.TTNameRecord object at 0x7f088757f150>

Comment 1 Parag Nemade 2014-09-05 13:28:16 UTC
Created attachment 934777 [details]
File: backtrace

Comment 2 Parag Nemade 2014-09-05 13:28:19 UTC
Created attachment 934778 [details]
File: environ

Comment 3 Nils Philippsen 2015-11-04 14:41:14 UTC

*** This bug has been marked as a duplicate of bug 1052342 ***

Comment 4 Fedora End Of Life 2015-11-04 15:11:02 UTC
This message is a reminder that Fedora 21 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 21. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '21'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 21 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.