Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 99062 invoked from network); 2 Mar 2009 15:14:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Mar 2009 15:14:18 -0000 Received: (qmail 13714 invoked by uid 500); 2 Mar 2009 15:14:16 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 13633 invoked by uid 500); 2 Mar 2009 15:14:16 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 13622 invoked by uid 99); 2 Mar 2009 15:14:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2009 07:14:16 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [88.84.142.181] (HELO samaflost.de) (88.84.142.181) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2009 15:14:09 +0000 Received: from localhost (unknown [127.0.0.1]) by samaflost.de (Postfix) with ESMTP id 31454E220014 for ; Mon, 2 Mar 2009 15:13:47 +0000 (UTC) Received: from samaflost.de ([127.0.0.1]) by localhost (v30161.1blu.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32442-07 for ; Mon, 2 Mar 2009 16:13:45 +0100 (CET) Received: by samaflost.de (Postfix, from userid 2525) id 79376E22000A; Mon, 2 Mar 2009 16:13:45 +0100 (CET) To: dev@commons.apache.org Subject: Re: [compress] State of encoding support in ZIP package X-Draft-From: ("nnfolder:mail.jakarta-lib" 122977) References: <49A6A1DA.8090707@ev-i.at> <49A8137B.4050809@ev-i.at> <49AB03EC.5030509@ev-i.at> From: Stefan Bodewig Date: Mon, 02 Mar 2009 16:13:45 +0100 In-Reply-To: <49AB03EC.5030509@ev-i.at> (Wolfgang Glas's message of "Sun\, 01 Mar 2009 22\:53\:48 +0100") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Scanned: amavisd-new at samaflost.de X-Virus-Checked: Checked by ClamAV on apache.org On 2009-03-01, Wolfgang Glas wrote: > My understanding from previous discussion was, that we need a mode, > where file names not encodable by the chosen encoding are encoded in > UTF-8, which is in turn indicated by setting the EFS flag on the > likewise ZIP entry. (That's the way 7-zip handles unicode > filenames...) This is different from what we've currently implemented, but may stiil be useful. > The current implementation of the useEFS flag simply allocs to > disable the creation of the UFS flag in ZIP entries, which are > UTF-8. This approach is not conformant with the specifiations I've > read and I have not seen a single zip implementation, which is > disturbed by the EFS flag. But if there should be one - say zlib on z/OS or some other strange thing, it will be good to have that option available, > My opinion would be to simply drop the possibility to inhibit the > EFS flag in utf-8 encoded files and to introduce a new flag allowing > to switch to utf-8 fallbacks (7-zip mode...). I'm fine with an additional flag that would encode not-encodable file names as UTF-8 (not sure about the name of the flag and I have a long standing history for chosing bad names), but prefer to keep the existing option for the completely orthogonal case of whether we set the EFS at all. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org