This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: bug/deficiency in zip: non-ascii chars in file names work, but fail in directory names
- From: Doug Henderson <djndnbvg at gmail dot com>
- To: cygwin <cygwin at cygwin dot com>
- Date: Sat, 1 Nov 2014 01:13:35 -0600
- Subject: Re: bug/deficiency in zip: non-ascii chars in file names work, but fail in directory names
- Authentication-results: sourceware.org; auth=none
- References: <1414818040 dot 70941 dot YahooMailNeo at web122101 dot mail dot ne1 dot yahoo dot com>
On 31 October 2014 23:00, Brent wrote:
>
>
> It seems that cygwin's zip can archive files whose name includes non-ascii (unicode) chars just fine, but if you try to archive a directory whose name includes such chars, it fails.
> $ zip test.zip ÃÃÃÃÃ
> adding: ÃÃÃÃÃ/ (stored 0%)
You need to add the -r option to recurse into directories:
$ zip -r test.zip ÃÃÃÃÃ
adding: ÃÃÃÃÃ/ (stored 0%)
adding: ÃÃÃÃÃ/ãäéïï.txt (stored 0%)
$ mkdir tmp2 ; cd tmp2 ; unzip -l ../test2.zip
Archive: ../test2.zip
Length Date Time Name
--------- ---------- ----- ----
0 11-01-2014 01:00 ??????????/
28 11-01-2014 01:00 ??????????/???????????????.txt
--------- -------
28 2 files
$ ls -lR
.:
total 0
drwxr-xr-x+ 1 Doug None 0 Nov 1 01:00 ÃÃÃÃÃ/
./ÃÃÃÃÃ:
total 1.0K
-rw-r--r-- 1 Doug None 28 Nov 1 01:00 ãäéïï.txt
So, it appears to me that zip/unzip do not fail when you use the -r option.
Doug
--
Doug Henderson, Calgary, Alberta, Canada
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple