Bug 1082335 - units_cur fails
Summary: units_cur fails
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: units
Version: 20
Hardware: All
OS: All
unspecified
high
Target Milestone: ---
Assignee: Kamil Dudka
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1151997
TreeView+ depends on / blocked
 
Reported: 2014-03-30 12:57 UTC by Martin Tarenskeen
Modified: 2014-10-13 09:54 UTC (History)
1 user (show)

Fixed In Version: units-2.02-3.fc20
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1151997 (view as bug list)
Environment:
Last Closed: 2014-04-15 15:34:20 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
patch to fix units_cur script from units-2.02 (655 bytes, patch)
2014-03-30 12:57 UTC, Martin Tarenskeen
no flags Details | Diff

Description Martin Tarenskeen 2014-03-30 12:57:57 UTC
Created attachment 880311 [details]
patch to fix units_cur script from units-2.02

Description of problem:
running units_cur (as root) gives error

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

How reproducible:
always

Steps to Reproduce:
as root run "units_cur" in a terminal

Actual results:
Traceback (most recent call last):
  File "/bin/units_cur", line 88, in <module>
    outfile.write(outstr)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 2428: ordinal not in range(128)


Expected results:
units_cur is a python script in /usr/bin that is supposed to update the file /usr/share/currency.units with the latest exchange rates

Additional info:
I have created a patch that fixes this error. At the same time it fixes another error message that was revealed after the script was working again: an error message saying "unknown unit 'usdollar'"
My patch version of units_cur requires python-django to work.  

P.S. Can someone report all this upstream?

Comment 1 Kamil Dudka 2014-03-31 11:58:08 UTC
Thank you for reporting the bug!

(In reply to Martin Tarenskeen from comment #0)
> P.S. Can someone report all this upstream?

It seems to be already fixed upstream.  I will backport it for Fedora 20.

Comment 2 Fedora Update System 2014-03-31 13:20:33 UTC
units-2.02-3.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/units-2.02-3.fc20

Comment 3 Fedora Update System 2014-04-02 09:07:46 UTC
Package units-2.02-3.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing units-2.02-3.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-4619/units-2.02-3.fc20
then log in and leave karma (feedback).

Comment 4 Fedora Update System 2014-04-15 15:34:20 UTC
units-2.02-3.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 5 Martin Tarenskeen 2014-10-12 07:24:11 UTC
units_cur seems to have disappeared in units-2.11 (Fedora 20 21 22) ???


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