Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 12875 invoked from network); 2 Mar 2009 15:37:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Mar 2009 15:37:23 -0000 Received: (qmail 61727 invoked by uid 500); 2 Mar 2009 15:37:22 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 61661 invoked by uid 500); 2 Mar 2009 15:37:21 -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 61650 invoked by uid 99); 2 Mar 2009 15:37:21 -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:37:21 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of wolfgang.glas@ev-i.at designates 85.125.54.67 as permitted sender) Received: from [85.125.54.67] (HELO mail.ev-i.at) (85.125.54.67) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2009 15:37:15 +0000 Received: from [192.168.17.105] (fw.intra.ev-i.at [192.168.17.254]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mail.ev-i.at (Postfix) with ESMTP id F196E5D9 for ; Mon, 2 Mar 2009 16:36:51 +0100 (CET) Message-ID: <49ABFD13.8060303@ev-i.at> Date: Mon, 02 Mar 2009 16:36:51 +0100 From: Wolfgang Glas User-Agent: Thunderbird 2.0.0.19 (X11/20090105) MIME-Version: 1.0 To: Commons Developers List Subject: Re: [compress] State of encoding support in ZIP package References: <49A6A1DA.8090707@ev-i.at> <49A8137B.4050809@ev-i.at> <49AB03EC.5030509@ev-i.at> In-Reply-To: X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Stefan Bodewig schrieb: > 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, OK, agreed, let's keep this flag ;-) >> 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. OK, I will introduce an additional flag, let's call it 'setFallbackToUtf8(boolean)'. I will prepare a patch right after you've review and (possibly) committed my latest encoding refatoring patch. Best regards, Wolfgang --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org