From 3f4d9093048af1545f78aef3b5236a1e8094fa89 Mon Sep 17 00:00:00 2001 From: Anthony Towns Date: Wed, 5 Dec 2007 07:11:13 +0000 Subject: [PATCH] Don't force-to-latin, just use (and assume) utf8 --- dak/queue_report.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/dak/queue_report.py b/dak/queue_report.py index 18fa867a..a4cee359 100755 --- a/dak/queue_report.py +++ b/dak/queue_report.py @@ -157,7 +157,7 @@ def sortfunc(a,b): def header(): print """ - + Debian NEW and BYHAND Packages @@ -222,11 +222,6 @@ def table_footer(type, source_count, total_count): print "

Package count in %s: %s\n" % (type, source_count) print "
Total Package count: %s

\n" % (total_count) -def force_to_latin(s): - """Forces a string to Latin-1.""" - latin1_s = unicode(s,'utf-8') - return latin1_s.encode('iso8859-1', 'replace') - def table_row(source, version, arch, last_mod, maint, distribution, closes): @@ -250,7 +245,6 @@ def table_row(source, version, arch, last_mod, maint, distribution, closes): print "%s
" % (dist) print "%s" % (tdclass, last_mod) (name, mail) = maint.split(":") - name = force_to_latin(name) print "%s" % (tdclass, mail, name) print "" % (tdclass) -- 2.39.2