Package: jack / 3.1.1+cvs20050801-31

67_progress_utf8_vs_filenames.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Even though jack.progress is always UTF-8 encoded, use the local encoding
for filenames mentioned in jack.progress, otherwise jack thinks it has to
rip/encode files again which already exist.  Debian #338816.

diff -urN jack-3.1.1~/jack_prepare.py jack-3.1.1/jack_prepare.py
--- jack-3.1.1~/jack_prepare.py	2005-12-01 01:03:55.000000000 +0000
+++ jack-3.1.1/jack_prepare.py	2005-12-01 01:48:56.000000000 +0000
@@ -403,7 +403,7 @@
                 if status[i]['names'][-1] == names[0]:
                     status[i]['names'].append(names[1])
             if type(i) == types.IntType:
-                tracknum[i][NAME] = status[i]['names'][-1]
+                tracknum[i][NAME] = unicode(status[i]['names'][-1], "utf-8", "replace").encode(cf['_charset'], "replace")
         del status[i]['ren']
 
     # status info for the whole CD is treated separately