Package: jack / 3.1.1+cvs20050801-31

66_rename_unicode.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
When renaming directories, make sure both the old and the new dir are
Unicode strings; also make this more robust; see Debian #338816 and
#339879.


Depends on 60_utf8_support.patch

diff -urN jack-3.1.1~/jack_freedb.py jack-3.1.1/jack_freedb.py
--- jack-3.1.1~/jack_freedb.py	2005-12-01 01:03:55.000000000 +0000
+++ jack-3.1.1/jack_freedb.py	2005-12-01 01:06:20.000000000 +0000
@@ -84,7 +84,7 @@
             if jack_utils.check_path(dirs_created, old_dirs) and not jack_utils.check_path(dirs_created, new_dirs):
                 jack_utils.rename_path(dirs_created, new_dirs)
                 print "Info: cwd now", os.getcwd()
-                jack_functions.progress("all", 'ren', dir_created + "-->" + unicode(new_dir, cf['_charset']))
+                jack_functions.progress("all", 'ren', unicode(dir_created + "-->" + new_dir, cf['_charset'], "replace"))
 
     if not err:
         names_available = 1