From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 18 11:49:55 2013 Received: (at submit) by debbugs.gnu.org; 18 Jun 2013 15:49:55 +0000 Received: from localhost ([127.0.0.1]:53331 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UoyAM-0006T5-M4 for submit@debbugs.gnu.org; Tue, 18 Jun 2013 11:49:55 -0400 Received: from eggs.gnu.org ([208.118.235.92]:53692) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UouQK-0003h8-4v for submit@debbugs.gnu.org; Tue, 18 Jun 2013 07:50:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UouQB-0003jx-3O for submit@debbugs.gnu.org; Tue, 18 Jun 2013 07:50:02 -0400 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, HTML_MESSAGE,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:36959) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UouQB-0003jt-0e for submit@debbugs.gnu.org; Tue, 18 Jun 2013 07:49:59 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55375) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UouQ7-0002Yj-Ll for bug-gnu-emacs@gnu.org; Tue, 18 Jun 2013 07:49:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UouQ4-0003iT-GF for bug-gnu-emacs@gnu.org; Tue, 18 Jun 2013 07:49:55 -0400 Received: from mail-ob0-x22e.google.com ([2607:f8b0:4003:c01::22e]:36242) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UouQ4-0003iP-AG for bug-gnu-emacs@gnu.org; Tue, 18 Jun 2013 07:49:52 -0400 Received: by mail-ob0-f174.google.com with SMTP id wd20so4475260obb.33 for ; Tue, 18 Jun 2013 04:49:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=oX07gaKf7/YPjN/LR6Qg/NYYggA6Z5sIzJ3TNwilyL4=; b=XU/CRrLjFg+5eBQhKH6K9ePVy+8frWTFMHUohA5JkXcyyhZSjEhbPI6eV9gIedn+ne B7DsgR+KFaVxDgfI35qrDuAGQk5iEkdR5cnrHS09PSLq32LBYX3sQiMpbncop7YoRoP5 lzRYnLlHrs+yvNZGpYXyv4wDyc2lcqocDblqR4e4zl7qWQimQTGwIItR06KpBufILaBs qMW2Odk/V7/zO8xkkLa84hrUaf8GR4Dckl3X4Hn0HTR+VkhgKYXJ4X0VaiZ678CpuyiJ EhQEtow2PNhmkwhvUnqhc2yx/pasqXf/D08547/pWYDKZlHcwbbbKvC4xZ3Ze585JglP 3Bkw== MIME-Version: 1.0 X-Received: by 10.182.120.196 with SMTP id le4mr11901432obb.57.1371556191491; Tue, 18 Jun 2013 04:49:51 -0700 (PDT) Received: by 10.76.115.169 with HTTP; Tue, 18 Jun 2013 04:49:51 -0700 (PDT) Date: Tue, 18 Jun 2013 13:49:51 +0200 Message-ID: Subject: 24.3; ZIP files corrupted when saved via tramp From: JuanLeon Lahoz To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary=089e013a282c95636d04df6c4feb X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 18 Jun 2013 11:49:53 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -4.3 (----) --089e013a282c95636d04df6c4feb Content-Type: text/plain; charset=ISO-8859-1 Dear Emacs maintainers, I start emacs with emacs -Q. Then I open two remote files (foo.tgz and foo.zip). I modify a file within both of them. I save them. foo.tgz gets upated correctly and foo.zip gets corrupted (same happens with jar files, btw, since they are zipped). [ For reproducing the issue, you don't need the foo.tgz file, I just mention that to point that other compressed formats work fine for me ]. The remote files are in a system available via SSH, so that is what tramp uses. The funny thing is that when I modify the zip file locally, it works fine and emacs does not remind me I need to save the zip file (emacs reminds me to do it with the tgz file), but remotely emacs reminds me to save the zip file. When I do, it gets corrupted. I was not sure if the problem lies within tramp or in the emacs code that deals with zip files, so I filed a bug report to tramp. Here is their answer: I would say it is due to arc-mode.el. I've checked the code shortly; it uses `call-process' internally, which is not prepared for remote files. Replacing all such calls by `process-file' was not reasonable, at least handling of temporary files must be improved as well. I recommend to file a bug report towards Emacs, by "M-x report-emacs-bug". (I would appreciate very much a way to get a patch for fixing this, if/when available) Configured using: `configure '--with-x-toolkit=gtk3'' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Minor modes in effect: tooltip-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 line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) --089e013a282c95636d04df6c4feb Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Dear Emacs maintainers,

I start emacs wit= h emacs -Q.=A0 Then I open two remote files (foo.tgz and
foo.zip).=A0 I = modify a file within both of them.=A0 I save them.=A0 foo.tgz gets
upate= d correctly and foo.zip gets corrupted (same happens with jar files, btw, since they are zipped).

[ For reproducing the issue, you don't n= eed the foo.tgz file, I just mention that
to point that other= compressed formats work fine for me ].

The remote files = are in a system available via SSH, so that is what tramp uses.

The funny thing is that when I modify the zip file locally, = it works
fine and emacs does not remind me I need to save the zip file (= emacs
reminds me to do it with the tgz file), but remotely emacs reminds= me to
save the zip file.=A0 When I do, it gets corrupted.

I was not sure i= f the problem lies within tramp or in the emacs code that deals
with zip= files, so I filed a bug report to tramp.=A0 Here is their answer:

= =A0=A0 I would say it is due to arc-mode.el. I've checked the code shor= tly; it uses
=A0=A0 `call-process' internally, which is not prepared for remote file= s. Replacing
=A0=A0 all such calls by `process-file' was not reasona= ble, at least handling of
=A0=A0 temporary files must be improved as wel= l.

=A0=A0 I recommend to file a bug report towards Emacs, by "M-x report-= emacs-bug".

(I would appreciate very much a way to get a patch = for fixing this, if/when
available)

Configured using:
=A0`conf= igure '--with-x-toolkit=3Dgtk3''

Important settings:
=A0 value of $LANG: en_US.UTF-8
=A0 locale-co= ding-system: utf-8-unix
=A0 default enable-multibyte-characters: t
Minor modes in effect:
=A0 tooltip-mode: t
=A0 mouse-wheel-mode: t<= br>=A0 tool-bar-mode: t
=A0 menu-bar-mode: t
=A0 file-name-shadow-mode: t
=A0 global-font-loc= k-mode: t
=A0 font-lock-mode: t
=A0 blink-cursor-mode: t
=A0 auto-= composition-mode: t
=A0 auto-encryption-mode: t
=A0 auto-compression-= mode: t
=A0 line-number-mode: t
=A0 transient-mark-mode: t

Load-path shadows:
None found.

= Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec = rfc822 mml
easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc= 2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-u= til mail-prsvr mail-utils time-date tooltip ediff-hook vc-hooks
lisp-flo= at-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt
fringe = tabulated-list newcomment lisp-mode register page menu-bar
rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax
face= menu font-core frame cham georgian utf-8-lang misc-lang vietnamese
tibet= an thai tai-viet lao korean japanese hebrew greek romanian slovak
czech = european ethiopic indian cyrillic chinese case-table epa-hook
jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces
cus-fa= ce macroexp files text-properties overlay sha1 md5 base64 format
env cod= e-pages mule custom widget hashtable-print-readable backquote
make-netwo= rk-process dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)

--089e013a282c95636d04df6c4feb-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 20 08:02:27 2013 Received: (at 14652) by debbugs.gnu.org; 20 Jun 2013 12:02:27 +0000 Received: from localhost ([127.0.0.1]:57929 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UpdZK-0003u4-LF for submit@debbugs.gnu.org; Thu, 20 Jun 2013 08:02:26 -0400 Received: from mout.gmx.net ([212.227.17.22]:49436) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UpdZI-0003tp-HG for 14652@debbugs.gnu.org; Thu, 20 Jun 2013 08:02:25 -0400 Received: from mailout-de.gmx.net ([10.1.76.27]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0MEHTC-1V50iX44ka-00FPou for <14652@debbugs.gnu.org>; Thu, 20 Jun 2013 14:02:18 +0200 Received: (qmail invoked by alias); 20 Jun 2013 12:02:17 -0000 Received: from p5B298A7C.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [91.41.138.124] by mail.gmx.net (mp027) with SMTP; 20 Jun 2013 14:02:17 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1810OsFfPI19Fk6mCiMu+jEb6q7wT/txQ/HQWgkGv qT/03ZzqfCGtDf From: Michael Albinus To: JuanLeon Lahoz Subject: Re: bug#14652: 24.3; ZIP files corrupted when saved via tramp References: Date: Thu, 20 Jun 2013 14:02:10 +0200 In-Reply-To: (JuanLeon Lahoz's message of "Tue, 18 Jun 2013 13:49:51 +0200") Message-ID: <87k3lpyoql.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 14652 Cc: 14652@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: 0.0 (/) JuanLeon Lahoz writes: > Dear Emacs maintainers, Hi, > The funny thing is that when I modify the zip file locally, it works > fine and emacs does not remind me I need to save the zip file (emacs > reminds me to do it with the tgz file), but remotely emacs reminds me > to save the zip file. When I do, it gets corrupted. > > I was not sure if the problem lies within tramp or in the emacs code > that deals with zip files, so I filed a bug report to tramp. Here is > their answer: > > I would say it is due to arc-mode.el. I've checked the code shortly; > it uses `call-process' internally, which is not prepared for remote > files. Replacing all such calls by `process-file' was not reasonable, > at least handling of temporary files must be improved as well. I have checked arc-mode.el in detail; the usage of `call-process' is not a problem, because it is applied on local copies of the archive. Archives could be marked as "remote". In that case, the archive is not saved by intention when it is modified, but the message mentioned above appears. However, the following patch I have committed to the trunk allows to save the archive by "C-x C-s" (this is `save-buffer'), without corrupting the archive: --8<---------------cut here---------------start------------->8--- *** ~/src/emacs/lisp/arc-mode.el.~113092~ 2013-06-20 13:56:09.298495645 +0200 --- ~/src/emacs/lisp/arc-mode.el 2013-06-20 13:40:03.496925664 +0200 *************** *** 689,697 **** (setq revert-buffer-function 'archive-mode-revert) (auto-save-mode 0) ! ;; Remote archives are not written by a hook. ! (if archive-remote nil ! (add-hook 'write-contents-functions 'archive-write-file nil t)) (make-local-variable 'require-final-newline) (setq require-final-newline nil) --- 689,695 ---- (setq revert-buffer-function 'archive-mode-revert) (auto-save-mode 0) ! (add-hook 'write-contents-functions 'archive-write-file nil t) (make-local-variable 'require-final-newline) (setq require-final-newline nil) --8<---------------cut here---------------end--------------->8--- > (I would appreciate very much a way to get a patch for fixing this, > if/when available) Could you, please, check whether the patch works for you? Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 20 08:45:56 2013 Received: (at 14652) by debbugs.gnu.org; 20 Jun 2013 12:45:56 +0000 Received: from localhost ([127.0.0.1]:57985 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UpeFP-00069j-1a for submit@debbugs.gnu.org; Thu, 20 Jun 2013 08:45:55 -0400 Received: from mail-ob0-f174.google.com ([209.85.214.174]:59986) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UpeFI-000696-MY for 14652@debbugs.gnu.org; Thu, 20 Jun 2013 08:45:49 -0400 Received: by mail-ob0-f174.google.com with SMTP id wd20so7199279obb.33 for <14652@debbugs.gnu.org>; Thu, 20 Jun 2013 05:45:42 -0700 (PDT) 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:to :cc:content-type; bh=vPjql9sinEsBrHeoHzS6IZB/a7qCD1NJCp0UHl2sOds=; b=QgmqP7M2oa1IW1KMrT28LlJ/P/e6VgIVOMXkoJAK1nNIW8/dNjW9kaV+QoQpxJD76V mI+rjamQKjdFKcZYftsbpG+bdWzIXY6DeHk8TeNpMz8q2xNdZKAUcCSYa7yuoy4Kt06m cNaV7xW6jzSu+9zbdqH/Q72Hn/EWTkHmQ4cYUwzc4aMnh3oL3VhzCA2D01eBrlIjd7Lq hrhBmaUDksT79sxEn2+bv5v/THMecc9fYlGl//7I5E98EG7514qdLoc/xsREon9aAh7Q OPHWvpwWcwnhUrNZQkzhw8jG4MCNbkmN8GS3Tx/KNuw5CDPFDEpTwK8Puu2ntykdDqaV lLdw== MIME-Version: 1.0 X-Received: by 10.182.120.196 with SMTP id le4mr1430877obb.57.1371732342513; Thu, 20 Jun 2013 05:45:42 -0700 (PDT) Received: by 10.76.115.169 with HTTP; Thu, 20 Jun 2013 05:45:42 -0700 (PDT) In-Reply-To: <87k3lpyoql.fsf@gmx.de> References: <87k3lpyoql.fsf@gmx.de> Date: Thu, 20 Jun 2013 14:45:42 +0200 Message-ID: Subject: Re: bug#14652: 24.3; ZIP files corrupted when saved via tramp From: JuanLeon Lahoz To: Michael Albinus Content-Type: multipart/alternative; boundary=089e013a282c00a91b04df9553b5 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 14652 Cc: 14652@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: -0.7 (/) --089e013a282c00a91b04df9553b5 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Jun 20, 2013 at 2:02 PM, Michael Albinus wrote: > JuanLeon Lahoz writes: > > (I would appreciate very much a way to get a patch for fixing this, > > if/when available) > > Could you, please, check whether the patch works for you? > > Best regards, Michael. > Patch is working fine for me :-) Thanks! juanleon --089e013a282c00a91b04df9553b5 Content-Type: text/html; charset=ISO-8859-1

On Thu, Jun 20, 2013 at 2:02 PM, Michael Albinus <michael.albinus@gmx.de> wrote:
JuanLeon Lahoz <juanleon.lahoz@gmail.com> writes:
> (I would appreciate very much a way to get a patch for fixing this,
> if/when available)

Could you, please, check whether the patch works for you?

Best regards, Michael.

Patch is working fine for me :-)

Thanks!
juanleon
--089e013a282c00a91b04df9553b5-- From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 20 08:51:57 2013 Received: (at 14652-done) by debbugs.gnu.org; 20 Jun 2013 12:51:57 +0000 Received: from localhost ([127.0.0.1]:58001 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UpeLD-0006RA-UB for submit@debbugs.gnu.org; Thu, 20 Jun 2013 08:51:56 -0400 Received: from mout.gmx.net ([212.227.15.19]:59469) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UpeLA-0006QP-EU for 14652-done@debbugs.gnu.org; Thu, 20 Jun 2013 08:51:53 -0400 Received: from mailout-de.gmx.net ([10.1.76.10]) by mrigmx.server.lan (mrigmx001) with ESMTP (Nemesis) id 0Ljfl8-1UIVNh3ymG-00baKF for <14652-done@debbugs.gnu.org>; Thu, 20 Jun 2013 14:51:45 +0200 Received: (qmail invoked by alias); 20 Jun 2013 12:51:45 -0000 Received: from p5B298A7C.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [91.41.138.124] by mail.gmx.net (mp010) with SMTP; 20 Jun 2013 14:51:45 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/5ibA39MT5pZ465MMSnISpToOVWroJC1ewu3DEOJ VAzlAwZgd30K+g From: Michael Albinus To: JuanLeon Lahoz Subject: Re: bug#14652: 24.3; ZIP files corrupted when saved via tramp References: <87k3lpyoql.fsf@gmx.de> Date: Thu, 20 Jun 2013 14:51:36 +0200 In-Reply-To: (JuanLeon Lahoz's message of "Thu, 20 Jun 2013 14:45:42 +0200") Message-ID: <87ehbxlzc7.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 14652-done Cc: 14652-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 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: 0.0 (/) JuanLeon Lahoz writes: > Patch is working fine for me :-) Thanks for testing. I'm closing the bug. > Thanks! > juanleon Best regards, Michael. From unknown Sun Jun 22 11:33:33 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 19 Jul 2013 11:24:04 +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