Fix for last fix (bug #984167).

Resolves: rhbz#984167
This commit is contained in:
Tim Waugh 2014-04-22 11:11:59 +01:00
parent c2c3f5e90b
commit 2e7e08dee6
2 changed files with 5 additions and 2 deletions

View File

@ -6,7 +6,7 @@ diff -up hplip-3.14.4/base/utils.py.codec hplip-3.14.4/base/utils.py
def commafy(val):
- return locale.format("%d", val, grouping=True).decode(locale.getpreferredencoding())
+ return locale.format("%d", val, grouping=True).decode(locale.getlocale(locale.LC_NUMERIC()[1]))
+ return locale.format("%d", val, grouping=True).decode(locale.getlocale(locale.LC_NUMERIC)[1])
def format_bytes(s, show_bytes=False):

View File

@ -7,7 +7,7 @@
Summary: HP Linux Imaging and Printing Project
Name: hplip
Version: 3.14.4
Release: 2%{?dist}
Release: 3%{?dist}
License: GPLv2+ and MIT
Url: http://hplip.sourceforge.net/
@ -474,6 +474,9 @@ rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/hplip-systray.desktop
%postun libs -p /sbin/ldconfig
%changelog
* Tue Apr 22 2014 Tim Waugh <twaugh@redhat.com> - 3.14.4-3
- Fix for last fix (bug #984167).
* Wed Apr 16 2014 Tim Waugh <twaugh@redhat.com> - 3.14.4-2
- Fixed codec issue (bug #984167).