[patch] uzip support for non-unix attributes
- From: Jindrich Makovicka <makovick kmlinux fjfi cvut cz>
- To: MC Devel <mc-devel gnome org>
- Subject: [patch] uzip support for non-unix attributes
- Date: Wed, 09 Feb 2005 20:12:10 +0100
Hello,
I have problems with uzip & zipinfo 2.41 on Debian unstable as this
version of zipinfo displays file attributes in zip files created under
DOS or Windows as 7 character strings instead of 10. Consequently, the
regular expression used in current uzip refuses all the lines with such
attributes. This means all zip files show as empty. The attached patch
allows 7 to 10 character wide attribute fields in Zipinfo output, which
fixes the problem.
Regards,
--
Jindrich Makovicka
diff -ur vanilla/mc/vfs/extfs/uzip.in mc/vfs/extfs/uzip.in
--- vanilla/mc/vfs/extfs/uzip.in 2004-12-14 11:24:08.000000000 +0100
+++ mc/vfs/extfs/uzip.in 2004-12-30 15:26:23.000000000 +0100
@@ -36,7 +36,7 @@
# -rw-r--r-- 2.2 unx 2891 tx 1435 defN 20000330.211927 ./edit.html
# (perm) (?) (?) (size) (?) (zippedsize) (method) (yyyy)(mm)(dd)(HH)(MM) (fname)
-my $regex_zipinfo_line = qr"^(\S{10})\s+(\d+\.\d+)\s+(\S+)\s+(\d+)\s+(\S\S)\s+(\d+)\s+(\S{4})\s+(\d{4})(\d\d)(\d\d)\.(\d\d)(\d\d)(\d\d)\s(.*)$";
+my $regex_zipinfo_line = qr"^(\S{7,10})\s+(\d+\.\d+)\s+(\S+)\s+(\d+)\s+(\S\S)\s+(\d+)\s+(\S{4})\s+(\d{4})(\d\d)(\d\d)\.(\d\d)(\d\d)(\d\d)\s(.*)$";
# 2891 Defl:N 1435 50% 03-30-00 21:19 50cbaaf8 ./edit.html
# (size) (method) (zippedsize) (zipratio) (mm)(dd)(yy)(HH)(MM) (cksum) (fname)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]