Bug 1064083 - UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 2
Summary: UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 2
Keywords:
Status: CLOSED DUPLICATE of bug 1063022
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 20
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-02-12 00:50 UTC by Heldwin
Modified: 2014-02-12 07:46 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-12 07:46:00 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Heldwin 2014-02-12 00:50:38 UTC
Description of problem:
Since the last update of dnf, I get a traceback in /var/log/messages, when dnf is making his cache.

Version-Release number of selected component (if applicable):
dnf-0.4.13-2.fc20.noarch

How reproducible:
Always

Steps to Reproduce:
1. systemctl start dnf-makecache
2. look in /var/log/messages
3.

Actual results:
Feb 12 01:41:29 rodin-666 systemd: Starting dnf makecache...
Feb 12 01:41:29 rodin-666 dnf: Config time: 0.007
Feb 12 01:41:29 rodin-666 dnf: cachedir: /var/cache/dnf/x86_64/20
Feb 12 01:41:29 rodin-666 dnf: dnf version: 0.4.13
Feb 12 01:41:29 rodin-666 dnf: Traceback (most recent call last):
Feb 12 01:41:29 rodin-666 dnf: File "/usr/lib64/python2.7/logging/__init__.py", line 874, in emit
Feb 12 01:41:29 rodin-666 dnf: stream.write(fs % msg.encode("UTF-8"))
Feb 12 01:41:29 rodin-666 dnf: File "/usr/lib/python2.7/site-packages/dnf/i18n.py", line 38, in write
Feb 12 01:41:29 rodin-666 dnf: self.stream.write(s.decode(self.encoding, 'replace'))
Feb 12 01:41:29 rodin-666 dnf: UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 2: ordinal not in range(128)
Feb 12 01:41:29 rodin-666 dnf: Logged from file commands.py, line 760
Feb 12 01:41:29 rodin-666 dnf: Metadata cache refreshed recently.
Feb 12 01:41:29 rodin-666 systemd: Started dnf makecache.

Additional info:
I have my system in fr_CH.utf-8
u'\xe9' is probably 'é'

Comment 1 Parag Nemade 2014-02-12 06:34:21 UTC
Just changing current locale to fr_CH.utf-8 and using the steps to reproduce, I am unable to reproduce this bug. I find no traceback for me in messages file.

The only related change commit I find in the source code from 0.4.12 to 0.4.13 release is this https://github.com/akozumpl/dnf/commit/aa74c305622557c7b77308a76992b6f3e385c653

Comment 2 Radek Holy 2014-02-12 07:46:00 UTC
Hello, thank you for the report.

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


Note You need to log in before you can comment on or make changes to this bug.