X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type:content-transfer-encoding; q=dns; s=default; b=dm5N9UdYlyFzbXzXZ+QaZcjxKrH+KgyUYq1IcbTYh3A XJsBzx26izwwg2fWI3r3Yw2UvbItgAUy1fHNdYjefpS3P0cnHUuMFZ/xk8EPb60I IAHvW4WobqbZqmJtO+QkG1qTEBFK8STZfDdQKJbpuhJVWDhRaHwIIj18SwlPFaTc = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type:content-transfer-encoding; s=default; bh=hHKFRT9T96bH3PBlTLyhMUtBhjA=; b=bqppLjU4I6y9ECeiY Mxz3u2FoJfw2gQzAqx+CaudeIAdxmgS8OungoJHTy41HUP762ItNxhADwjls6xGk p44R+J5PwLugqPqCvNFKF7ro3ERaCt/+QuMxmUReQgtpVqlmpNmWuslPjTmAer/P nX3GOh75kI8bG33ObBztc2+QwQ= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_40,BODY_8BITS,FREEMAIL_FROM,FROM_LOCAL_NOVOWEL,GARBLED_BODY,HK_RANDOM_ENVFROM,HK_RANDOM_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-vc0-f176.google.com X-Received: by 10.220.166.132 with SMTP id m4mr705678vcy.50.1414826036140; Sat, 01 Nov 2014 00:13:56 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1414818040.70941.YahooMailNeo@web122101.mail.ne1.yahoo.com> References: <1414818040 DOT 70941 DOT YahooMailNeo AT web122101 DOT mail DOT ne1 DOT yahoo DOT com> From: Doug Henderson Date: Sat, 1 Nov 2014 01:13:35 -0600 Message-ID: Subject: Re: bug/deficiency in zip: non-ascii chars in file names work, but fail in directory names To: cygwin Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id sA17FGgK015015 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