Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!us.feeder.erje.net!feeder.erje.net!eu.feeder.erje.net!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.031 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'jesse': 0.05; 'cc:addr :python-list': 0.11; 'jan': 0.12; 'archive': 0.14; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'cc:addr:python.org': 0.22; 'file.': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'received:google.com': 0.35; 'thanks': 0.36; 'subject:?': 0.36; 'should': 0.36; 'even': 0.60; 'zip': 0.64; '2015': 0.84; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=cTx6vTmkvxsV+L75otFLzJFvze3QCZWmdOyCdwLQGC0=; b=DViGYCeC7riML2QqulHfH1q9PIyefgHkRqDg1hPydncvQVUHV2PaxwMgKVDnGYWSl/ LVAgP5TOT7Anxrz1Fe+OOG46u8YqvzMiQFejEQQIq5IyZW5OVEtAPNeLbpdThvRiUAHJ nJue80vJfRhg/oMh8//Ym7B0g8ok72tdWECxKOBovs6I2oHpXJGzV5RSkSddrRjDXHq4 Mj36axqZw01MrzcTeuZmGj17lsjmmn2LPOemrDPCsoN+zqfix1JorHggHq3GqnJIzQVH uHVIV3kz9AuIK2TsXrA/EJVIcA7PjmoLgy90KzrAAq7N4+rSVJQrbUeKhLizA0srkn0O T1WQ== MIME-Version: 1.0 X-Received: by 10.42.95.12 with SMTP id d12mr5545797icn.12.1422481008383; Wed, 28 Jan 2015 13:36:48 -0800 (PST) In-Reply-To: References: Date: Thu, 29 Jan 2015 08:36:48 +1100 Subject: Re: why zip64_limit defined as 1<<31 -1? From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 14 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1422481011 news.xs4all.nl 2926 [2001:888:2000:d::a6]:39297 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:84784 On Thu, Jan 29, 2015 at 5:53 AM, jesse wrote: > should not it be 1<<32 -1(4g)? > > normal zip archive format should be able to support 4g file. > > thanks 1<<31-1 is the limit for a signed 32-bit integer. You'd have to look into the details of the zip file format to see whether that's the official limit or not; it might simply be that some (un)archivers have problems with >2GB files, even if the official stance is that it's unsigned. ChrisA