From 2e7e08dee6351507fb7a66f18f961ac62f84bf3b Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Tue, 22 Apr 2014 11:11:59 +0100 Subject: [PATCH] Fix for last fix (bug #984167). Resolves: rhbz#984167 --- hplip-codec.patch | 2 +- hplip.spec | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hplip-codec.patch b/hplip-codec.patch index 52d036d..d01b55d 100644 --- a/hplip-codec.patch +++ b/hplip-codec.patch @@ -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): diff --git a/hplip.spec b/hplip.spec index 2f70165..702020a 100644 --- a/hplip.spec +++ b/hplip.spec @@ -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 - 3.14.4-3 +- Fix for last fix (bug #984167). + * Wed Apr 16 2014 Tim Waugh - 3.14.4-2 - Fixed codec issue (bug #984167).