summaryrefslogtreecommitdiff
path: root/debian/patches/66_rename_unicode.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/66_rename_unicode.patch')
-rw-r--r--debian/patches/66_rename_unicode.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/debian/patches/66_rename_unicode.patch b/debian/patches/66_rename_unicode.patch
new file mode 100644
index 0000000..ce86002
--- /dev/null
+++ b/debian/patches/66_rename_unicode.patch
@@ -0,0 +1,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