Comment 123 for bug 580961

Revision history for this message
Dmitry Frolov (frol) wrote :

@Lasee: It's fault of the debian/patches/04-unzip60-alt-iconv-utf8 patch that contains the following:

[...]
+/* A mapping of local <-> archive charsets used by default to convert filenames
+ * of DOS/Windows Zip archives. Currently very basic. */
+static CHARSET_MAP dos_charset_map[] = {
+ { "ANSI_X3.4-1968", "CP850" },
+ { "ISO-8859-1", "CP850" },
+ { "CP1252", "CP850" },
+ { "UTF-8", "CP866" },
+ { "KOI8-R", "CP866" },
+ { "KOI8-U", "CP866" },
+ { "ISO-8859-5", "CP866" }
+};
[...]

Althouth it's simple to add missing mappings to that table, the patch is broken because it doesn't take language into account, which may cause problems if user's charset is UTF-8 and the language is not russian.