From unknown Fri Jun 20 07:19:05 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#38260 <38260@debbugs.gnu.org> To: bug#38260 <38260@debbugs.gnu.org> Subject: Status: 26.3.50; zip archive mode adds new entry instead of updating file Reply-To: bug#38260 <38260@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:19:05 +0000 retitle 38260 26.3.50; zip archive mode adds new entry instead of updating = file reassign 38260 emacs submitter 38260 jeffcoat@alumni.rice.edu severity 38260 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 18 13:45:09 2019 Received: (at submit) by debbugs.gnu.org; 18 Nov 2019 18:45:09 +0000 Received: from localhost ([127.0.0.1]:46246 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWm1M-0000am-EF for submit@debbugs.gnu.org; Mon, 18 Nov 2019 13:45:09 -0500 Received: from lists.gnu.org ([209.51.188.17]:45062) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iWlsx-0000Nn-J0 for submit@debbugs.gnu.org; Mon, 18 Nov 2019 13:36:28 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:39534) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iWlsw-00057Q-1V for bug-gnu-emacs@gnu.org; Mon, 18 Nov 2019 13:36:27 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iWlsu-0006kD-LR for bug-gnu-emacs@gnu.org; Mon, 18 Nov 2019 13:36:25 -0500 Received: from mail-io1-xd2a.google.com ([2607:f8b0:4864:20::d2a]:33743) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iWlsu-0006jO-Dr for bug-gnu-emacs@gnu.org; Mon, 18 Nov 2019 13:36:24 -0500 Received: by mail-io1-xd2a.google.com with SMTP id j13so19985690ioe.0 for ; Mon, 18 Nov 2019 10:36:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:from:date:message-id:subject:to; bh=T91y3UoSTiXG0fx4KWqQuy59G1UYMOw+yrppGldB7Ts=; b=f9cQcX0U23iEgv3easc9ylejBpapAE94INYT7jmnv/hK754IILr90DWdlBUem9QvYK LvRJiiGw0ZsskN/kWliu4EeitWx4nwwvNh9CK0ZTnGJyYaLagSOX8HXAZpW6MsfBai4R XOusejC/8f0oygxdWpXtxy7ZK1tntt3+Bm+EM4ZsPK6PzTZ3oLZareljyVpqabccBWNj UHeEr9uoYzAACLNqqrBfyYBAWpHFqR2XjbsguyivGDVrcpXoVWlwYLlYAqTTYiwQryJM JgvfyXdVD5xYnc5y6lCHH5ASXqPxQ/j2Smwa+HGxhbs0Fp9rniNWhwvnT2wtsrxHy9pT pm9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:from:date:message-id :subject:to; bh=T91y3UoSTiXG0fx4KWqQuy59G1UYMOw+yrppGldB7Ts=; b=AUsTyazIfS/p/sXCoROoyjT73JTvUzRv+xumB641WzAVNS80+X+QuQ9EUTMnTAUqVm QsyiPuxMILXignDlwsrx4FKnUdafrcw4MMLE0EW3i1JDsQ23+Tpq18W+7yU3VssrP6lJ NyUmdmFmM6oOo1kkynfaTcUyXtcm7/rHSETpEmuz5fr3RuCbwwqQU5YngCcZnDXzTHpH eKhYOPRr3mK89alSWsNo6W0qsRQCh32rnQzuLMnEv/2ox+LDCH8pS1BhXpd3QvJQZSrd JVf/owlxHkRjMSf67uUOn4N6j3s8HWxHrAg3dBWtCoDVWlC6s8OQp/EGMy8f1aaFiGZw SV1Q== X-Gm-Message-State: APjAAAUnDV1j4XpBo2lnb98qZh9QWNhPs22YxU1NB/kmHdfVRWYVpxZa Nh8gWSlRIQbR+EF2mOftNbNZPPlt3jBddSjtN76alTTMHyw= X-Google-Smtp-Source: APXvYqyM/S/O6L+NQp90tnYE1oK+TGnUmrifT/UDpqcGZptJp725aXuOZlJiVv0Vc5Lz8xfV2MEWXrLn71t6HIa4GLo= X-Received: by 2002:a6b:6f15:: with SMTP id k21mr15052682ioc.292.1574102182457; Mon, 18 Nov 2019 10:36:22 -0800 (PST) MIME-Version: 1.0 From: Mark Jeffcoat Date: Mon, 18 Nov 2019 12:36:20 -0600 Message-ID: Subject: 26.3.50; zip archive mode adds new entry instead of updating file To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset="UTF-8" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::d2a X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 18 Nov 2019 13:45:06 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: jeffcoat@alumni.rice.edu Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) My steps to reproduce assume you're working with this zip file, which is publicly available: https://aeronav.faa.gov/Upload_313-d/cifp/CIFP_191205.zip Open with emacs -Q CIFP_191205.zip The fifth file entry is 'cifp_201913/faacifp18' (I don't know why it's the only entry not capitalized; that doesn't match what I see with 'unzip -t'.) on faacifp18 to open it, again to add a blank line at the top, C-x C-s to save. Go back to the original Zip-Archive buffer. The original 'cifp_201913/faacifp18' is unchanged, my edit was not saved. Instead, a new entry 'cifp_201/faacifp1' has been added to the end of the zip archive. This is not what I wanted to happen, and doesn't match what happens on other zip archives. This isn't a critical bug; it's easy enough to work around by manually extracting and re-building the zip. Thank you for your help. In GNU Emacs 26.3.50 (build 1, x86_64-pc-linux-gnu) of 2019-11-18 built on behenian Repository revision: 55dcd32ad2209dc34bfb6b713bf73be9bf4c4cb2 Windowing system distributor 'The X.Org Foundation', version 11.0.12004000 System Description: Debian GNU/Linux bullseye/sid Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. File CIFP_191205.zip is large (14.8M), really open? (y or n) y Parsing archive file...done. Configured using: 'configure --without-sound --with-mailutils --with-x-toolkit=no --with-modules --with-x' Configured features: XPM JPEG TIFF GIF PNG RSVG DBUS GSETTINGS GLIB NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE XFT ZLIB OLDXMENU X11 XDBE XIM MODULES THREADS LIBSYSTEMD LCMS2 Important settings: value of $LANG: en_US.utf8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Zip-Archive Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils arc-mode archive-mode elec-pair time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting x multi-tty make-network-process emacs) Memory information: ((conses 16 96767 8499) (symbols 48 20508 1) (miscs 40 56 143) (strings 32 28949 1338) (string-bytes 1 764767) (vectors 16 14233) (vector-slots 8 497432 11168) (floats 8 54 105) (intervals 56 255 11) (buffers 992 12)) From debbugs-submit-bounces@debbugs.gnu.org Tue Nov 19 10:52:05 2019 Received: (at 38260-done) by debbugs.gnu.org; 19 Nov 2019 15:52:05 +0000 Received: from localhost ([127.0.0.1]:48256 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iX5nQ-0007lI-PZ for submit@debbugs.gnu.org; Tue, 19 Nov 2019 10:52:04 -0500 Received: from eggs.gnu.org ([209.51.188.92]:45239) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iX5nP-0007kn-BD for 38260-done@debbugs.gnu.org; Tue, 19 Nov 2019 10:52:03 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49533) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iX5nK-0002Mr-1G; Tue, 19 Nov 2019 10:51:58 -0500 Received: from [176.228.60.248] (port=3780 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iX5nJ-0001tb-GB; Tue, 19 Nov 2019 10:51:57 -0500 Date: Tue, 19 Nov 2019 17:52:02 +0200 Message-Id: <83a78r3lul.fsf@gnu.org> From: Eli Zaretskii To: jeffcoat@alumni.rice.edu In-reply-to: (message from Mark Jeffcoat on Mon, 18 Nov 2019 12:36:20 -0600) Subject: Re: bug#38260: 26.3.50; zip archive mode adds new entry instead of updating file References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 38260-done Cc: 38260-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Mark Jeffcoat > Date: Mon, 18 Nov 2019 12:36:20 -0600 > > https://aeronav.faa.gov/Upload_313-d/cifp/CIFP_191205.zip > > Open with > emacs -Q CIFP_191205.zip > > The fifth file entry is > 'cifp_201913/faacifp18' > > (I don't know why it's the only entry not capitalized; that > doesn't match what I see with 'unzip -t'.) Because it's the only file whose name is all-caps. > on faacifp18 to open it, again to add a blank > line at the top, C-x C-s to save. Go back to the original > Zip-Archive buffer. > > The original 'cifp_201913/faacifp18' is unchanged, my > edit was not saved. > > Instead, a new entry 'cifp_201/faacifp1' has been added > to the end of the zip archive. This is not what I wanted > to happen, and doesn't match what happens on other zip > archives. Turns out we were updating the zip archives in a mode that only makes sense on MS-DOS, or for zip files that came from MS-DOS. I changed the default value of archive-zip-case-fiddle to be more in line with the current practices, and that fixed the problem. Thanks. From unknown Fri Jun 20 07:19:05 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 18 Dec 2019 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator