[Debian-l10n-commits] [translate-toolkit] 04/15: Drop unneeded patch

Stuart Prescott stuart at moszumanska.debian.org
Sun Feb 23 14:02:16 UTC 2014


This is an automated email from the git hooks/post-receive script.

stuart pushed a commit to branch master
in repository translate-toolkit.

commit a0247e4defefdbcaf1cefbd92f03a78aaae77e4d
Author: Stuart Prescott <stuart at debian.org>
Date:   Mon Feb 24 00:16:20 2014 +1100

    Drop unneeded patch
---
 debian/patches/zip-encoding.patch | 28 ----------------------------
 1 file changed, 28 deletions(-)

diff --git a/debian/patches/zip-encoding.patch b/debian/patches/zip-encoding.patch
deleted file mode 100644
index 6fd6536..0000000
--- a/debian/patches/zip-encoding.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-Description: Fix encoding of filename parts in zip files
- Depending on the construction of the zip file, UTF-8 filenames may cause
- crashes. This patch uses the correctly encoded filename.
-Author: Stuart Prescott <stuart at debian.org>
-Bug-Debian: http://bugs.debian.org/643008
-Forwarded: http://bugs.locamotion.org/show_bug.cgi?id=2810
---- a/translate/misc/zipfileext.py
-+++ b/translate/misc/zipfileext.py
-@@ -108,16 +108,17 @@
-                 dt = zinfo.date_time
-                 dosdate = (dt[0] - 1980) << 9 | dt[1] << 5 | dt[2]
-                 dostime = dt[3] << 11 | dt[4] << 5 | (dt[5] // 2)
-+                filename, zinfo.flag_bits = zinfo._encodeFilenameFlags()
-                 centdir = struct.pack(structCentralDir,
-                   stringCentralDir, zinfo.create_version,
-                   zinfo.create_system, zinfo.extract_version, zinfo.reserved,
-                   zinfo.flag_bits, zinfo.compress_type, dostime, dosdate,
-                   zinfo.CRC, zinfo.compress_size, zinfo.file_size,
--                  len(zinfo.filename), len(zinfo.extra), len(zinfo.comment),
-+                  len(filename), len(zinfo.extra), len(zinfo.comment),
-                   0, zinfo.internal_attr, zinfo.external_attr,
-                   zinfo.header_offset)
-                 self.fp.write(centdir)
--                self.fp.write(zinfo.filename)
-+                self.fp.write(filename)
-                 self.fp.write(zinfo.extra)
-                 self.fp.write(zinfo.comment)
-             pos2 = self.fp.tell()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-l10n/translate-toolkit.git



More information about the Debian-l10n-commits mailing list