Package: jack / 3.1.1+cvs20050801-31

63_date_unicode.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Fixes a bug when strftime returns UTF-8 because of the locale name.
http://bugs.debian.org/471843

--- a/jack~	2008-03-21 16:03:07.000000000 +0100
+++ b/jack	2008-03-21 16:07:00.000000000 +0100
@@ -277,7 +277,7 @@
 jack_tag.tag(freedb_rename)
 
 if jack_functions.progress_changed:
-    jack_functions.progress("all", "done", time.strftime("%b %2d %H:%M:%S", time.localtime(time.time())))
+    jack_functions.progress("all", "done", unicode(time.strftime("%b %2d %H:%M:%S", time.localtime(time.time())), locale.getpreferredencoding(), "replace"))
 
 if cf['_remove_files']:
     print "cleaning up in", os.getcwd()