From 1167c296bc272b18659855c58980a929d7c8ae97 Mon Sep 17 00:00:00 2001 From: Torsten Werner Date: Sat, 26 Mar 2011 16:52:33 +0100 Subject: [PATCH] Fix unicode issue in show-deferred. Signed-off-by: Torsten Werner --- dak/show_deferred.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dak/show_deferred.py b/dak/show_deferred.py index 6307bd38..dce80987 100755 --- a/dak/show_deferred.py +++ b/dak/show_deferred.py @@ -242,8 +242,9 @@ def list_uploads(filelist, rrd_dir): Delayed-Until: %s Delay-Remaining: %s"""%(time.strftime("%Y-%m-%d %H:%M:%S", time.gmtime(time.time()+u[0])),u[2]) print >> f, fields - print >> f, str(u[5]).rstrip() - open(os.path.join(Cnf["Show-Deferred::LinkPath"],u[1]),"w").write(str(u[5])+fields+'\n') + encoded = unicode(u[5]).encode('utf-8') + print >> f, encoded.rstrip() + open(os.path.join(Cnf["Show-Deferred::LinkPath"],u[1]),"w").write(encoded+fields+'\n') print >> f f.close() os.rename(os.path.join(Cnf["Show-Deferred::LinkPath"],'.status.tmp'), -- 2.39.5