[yum-commits] Branch 'yum-3_2_X' - yumcommands.py
James Antill
james at osuosl.org
Wed Oct 8 12:44:04 UTC 2008
yumcommands.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit 41e82de38ac39291193abc15725212145b898aa6
Author: James Antill <james at and.org>
Date: Wed Oct 8 08:43:47 2008 -0400
Fix another unicode problem, locale.format("%d", ...) in cs_CZ
diff --git a/yumcommands.py b/yumcommands.py
index 3a8ad88..b87d7f0 100644
--- a/yumcommands.py
+++ b/yumcommands.py
@@ -28,6 +28,7 @@ import operator
import locale
import fnmatch
import time
+from yum.misc import to_unicode
def checkRootUID(base):
"""
@@ -741,7 +742,7 @@ class RepoListCommand(YumCommand):
ui_enabled = ehibeg + _('enabled') + hiend
num = len(repo.sack)
tot_num += num
- ui_num = locale.format("%d", num, True)
+ ui_num = to_unicode(locale.format("%d", num, True))
ui_fmt_num = ": %7s"
if verbose:
ui_size = _repo_size(repo)
@@ -793,7 +794,7 @@ class RepoListCommand(YumCommand):
repo, repo.name, ui_enabled,
ui_fmt_num % ui_num)
- return 0, ['repolist: ' + locale.format("%d", tot_num, True)]
+ return 0, ['repolist: ' +to_unicode(locale.format("%d", tot_num, True))]
def needTs(self, base, basecmd, extcmds):
return False
More information about the Yum-commits
mailing list