Bug 919792 - [abrt] hplip-3.12.11-1.fc18: utils.py:421:commafy:UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 3: ordinal not in range(128)
Summary: [abrt] hplip-3.12.11-1.fc18: utils.py:421:commafy:UnicodeDecodeError: 'ascii'...
Keywords:
Status: CLOSED DUPLICATE of bug 984167
Alias: None
Product: Fedora
Classification: Fedora
Component: hplip
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:315c8b7940eb788acad5d0cb707...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-10 05:29 UTC by Kuznetsov Vyacheslav
Modified: 2013-07-15 13:31 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-07-15 13:31:25 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (674 bytes, text/plain)
2013-03-10 05:29 UTC, Kuznetsov Vyacheslav
no flags Details
File: core_backtrace (291 bytes, text/plain)
2013-03-10 05:29 UTC, Kuznetsov Vyacheslav
no flags Details
File: environ (1.66 KB, text/plain)
2013-03-10 05:29 UTC, Kuznetsov Vyacheslav
no flags Details
File: smolt_data (3.23 KB, application/octet-stream)
2013-03-10 05:29 UTC, Kuznetsov Vyacheslav
no flags Details

Description Kuznetsov Vyacheslav 2013-03-10 05:29:32 UTC
Version-Release number of selected component:
hplip-3.12.11-1.fc18

Additional info:
cmdline:        /usr/bin/python /usr/bin/hp-plugin -u --required --reason 1 To_install_plugin_for_HP_Device
dso_list:       hplip-gui-3.12.11-1.fc18.x86_64
executable:     /usr/bin/hp-plugin
kernel:         3.7.4-204.fc18.x86_64
uid:            0

Truncated backtrace:
utils.py:421:commafy:UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 3: ordinal not in range(128)

Traceback (most recent call last):
  File "/usr/share/hplip/ui4/plugindialog.py", line 339, in NextButton_clicked
    if d.downloadFirmware():
  File "/usr/share/hplip/base/device.py", line 2602, in downloadFirmware
    log.debug("%s bytes downloaded." % utils.commafy(bytes_written))
  File "/usr/share/hplip/base/utils.py", line 421, in commafy
    return unicode(locale.format("%d", val, grouping=True))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 3: ordinal not in range(128)

Local variables in innermost frame:
val: 128999

Comment 1 Kuznetsov Vyacheslav 2013-03-10 05:29:39 UTC
Created attachment 707722 [details]
File: backtrace

Comment 2 Kuznetsov Vyacheslav 2013-03-10 05:29:41 UTC
Created attachment 707723 [details]
File: core_backtrace

Comment 3 Kuznetsov Vyacheslav 2013-03-10 05:29:44 UTC
Created attachment 707724 [details]
File: environ

Comment 4 Kuznetsov Vyacheslav 2013-03-10 05:29:46 UTC
Created attachment 707725 [details]
File: smolt_data

Comment 5 Jiri Popelka 2013-03-11 11:54:36 UTC
What's the output of 'locale' command ?

What's the output of the following command ?
python -c 'import locale; val=128999; l=locale.format("%d", val, grouping=True); u=unicode(l); print u'

Comment 6 Kuznetsov Vyacheslav 2013-03-12 17:53:10 UTC
Hi Jiri Popelka,

Here is the info you request.

> What's the output of 'locale' command  ?

% locale
LANG=ru_RU.utf8
LC_CTYPE="ru_RU.utf8"
LC_NUMERIC="ru_RU.utf8"
LC_TIME="ru_RU.utf8"
LC_COLLATE="ru_RU.utf8"
LC_MONETARY="ru_RU.utf8"
LC_MESSAGES="ru_RU.utf8"
LC_PAPER="ru_RU.utf8"
LC_NAME="ru_RU.utf8"
LC_ADDRESS="ru_RU.utf8"
LC_TELEPHONE="ru_RU.utf8"
LC_MEASUREMENT="ru_RU.utf8"
LC_IDENTIFICATION="ru_RU.utf8"
LC_ALL=

> What's the output of the following command ?
> python -c 'import locale; val=128999; l=locale.format("%d", val, grouping=True); u=unicode(l); print u'

% python -c 'import locale; val=128999; l=locale.format("%d", val, grouping=True); u=unicode(l); print u'
128999

Comment 7 Jiri Popelka 2013-07-15 13:31:25 UTC

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


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