From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dan McCarthy Newsgroups: gmane.emacs.bugs Subject: bug#55166: 28.1; tar-mode doesn't re-compress when saving remote files Date: Thu, 28 Apr 2022 11:43:36 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000a901ec05ddb8ca95" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8302"; mail-complaints-to="usenet@ciao.gmane.io" To: 55166@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 28 17:51:07 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nk6Q6-0001y9-VO for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Apr 2022 17:51:07 +0200 Original-Received: from localhost ([::1]:37110 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nk6Q5-0003iB-Pj for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Apr 2022 11:51:05 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37396) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nk6JG-0001yL-Ij for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2022 11:44:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55766) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nk6JG-0000KF-82 for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2022 11:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nk6JG-0005HO-6X for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2022 11:44:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dan McCarthy Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Apr 2022 15:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55166 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.165116063820273 (code B ref -1); Thu, 28 Apr 2022 15:44:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Apr 2022 15:43:58 +0000 Original-Received: from localhost ([127.0.0.1]:49663 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nk6JB-0005Gu-Ri for submit@debbugs.gnu.org; Thu, 28 Apr 2022 11:43:58 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:59316) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nk6JA-0005Gn-1J for submit@debbugs.gnu.org; Thu, 28 Apr 2022 11:43:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37260) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nk6J9-0001hW-Of for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2022 11:43:55 -0400 Original-Received: from mail-il1-x132.google.com ([2607:f8b0:4864:20::132]:42660) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nk6J5-0000G9-Dk for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2022 11:43:55 -0400 Original-Received: by mail-il1-x132.google.com with SMTP id r17so2236255iln.9 for ; Thu, 28 Apr 2022 08:43:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=63mUSj9As0hrzX3vnildaId7223B47QOHkb6ggCFKNw=; b=RQ5X9EH71U9/7BY58zAnYxX6W0wiPH/GJnuTxybBAsKa3t3YbeeXp0N9gPwth/xK1v 7kxceUqRxqCgRI2y6gHIOqgj9O8gHdQH19qwsR9rlT1dVQGy0uy/npI3pdS7quNF9WSH mx/On6YmqZfoQg5ZVo6D83urfnMAe61W4sEqHnNtvFCy4gn31KyzmGitUEBzv13XwawP u8LL+EQZX49N00OHxpaWCbNeoJzFukyZ4tgyKhxEj2r193PnfD5HZpnwOs1Y0hJDxksi M2u7/7Ni2iqNT1IjVWtnwq7IwgcWbnKcI/g1Xk4o3jAzTAPJriSoGzNDyfFCE2XCikA5 c9JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=63mUSj9As0hrzX3vnildaId7223B47QOHkb6ggCFKNw=; b=zhaRic7pTTdPXp1ytfCFR3iMJ8uuhndLeQSMetkyXosMOPO1i9zFBxTWxNaELtDJwG 9RQL6e+gMlTmieNmhxzFl9hBcj12k8m4KaqDTEhdimTdIR7GlUxnopfQ7bE1hRsTY0RB 6CaLg3AmktjpYEomqaNxaE/PBXYYvnXLRAzSp+Z7Ph10h5aZVqAtsOcwFam90Ael+/1V kj1hHvib/zIHopQlypUFqJCHK2MIKK4+zUHL66R7FHXSBWIiSrM+N9KPnWZv8TKTznGT xKz+SpMJYkNiINutu3HV3ivP8zizc+1TbojPa4W9jiZ/wvdrB71qRNKNasj/fLKslz1S I6TA== X-Gm-Message-State: AOAM532CpPfU9gIJNgmQqeewb2tmcXyVEvjxb3SdscdL7oy8RvNn3zpk V6mJ3zu48TY5IhhYWOdT+BtazEVJV1uZGakBPLUVnxpB6fo= X-Google-Smtp-Source: ABdhPJyWCuM21IpS7w9F4pX43eGHkmgA/WLfw785HTOrMzgDoCY+5JmQmfbvKum7Nn3zrBH9ozs3QlXfUxqHfIHFmXo= X-Received: by 2002:a05:6e02:1c0c:b0:2cc:1757:ebbe with SMTP id l12-20020a056e021c0c00b002cc1757ebbemr12950319ilh.205.1651160627346; Thu, 28 Apr 2022 08:43:47 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::132; envelope-from=daniel.c.mccarthy@gmail.com; helo=mail-il1-x132.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:230890 Archived-At: --000000000000a901ec05ddb8ca95 Content-Type: text/plain; charset="UTF-8" On a remote machine: dan@solstice:/tmp$ touch a b c dan@solstice:/tmp$ tar cf test.tar a b c dan@solstice:/tmp$ bzip2 -z test.tar dan@solstice:/tmp$ file test.tar.bz2 test.tar.bz2: bzip2 compressed data, block size = 900k If you visit that remote file and save it, the result will have the .bz2 extension but won't actually be compressed: dan@solstice:/tmp$ file test.tar.bz2 test.tar.bz2: POSIX tar archive (GNU) This doesn't happen with compressed remote files which aren't tar archives. In GNU Emacs 28.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.31, cairo version 1.16.0) of 2022-04-12 built on october.example.org Windowing system distributor 'The X.Org Foundation', version 11.0.12014000 System Description: Slackware 15.0 x86_64 Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB Important settings: value of $LC_COLLATE: C value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: shell-dirtrack-mode: t hexl-follow-ascii: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tab-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-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: ~/.emacs.d/lisp/android-mode hides /home/blakestone/.emacs.d/elpa/android-mode-20190903.811/android-mode ~/.emacs.d/lisp/connection hides /home/blakestone/.emacs.d/elpa/connection-20191111.446/connection ~/.emacs.d/lisp/link hides /home/blakestone/.emacs.d/elpa/link-20191111.446/link /home/blakestone/.emacs.d/elpa/transient-20220425.1314/transient hides /usr/local/share/emacs/28.1/lisp/transient /home/blakestone/.emacs.d/elpa/dictionary-20201001.1727/dictionary hides /usr/local/share/emacs/28.1/lisp/net/dictionary ~/.emacs.d/lisp/greek hides /usr/local/share/emacs/28.1/lisp/language/greek ~/.emacs.d/lisp/longlines hides /usr/local/share/emacs/28.1/lisp/obsolete/longlines Features: (shadow sort mail-extr ffap emacsbug message rmc puny rfc822 mml mml-sec epa epg rfc6068 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 vc-hg vc-git diff-mode easy-mmode vc-bzr vc-dispatcher tar-mode arc-mode archive-mode jka-compr pcmpl-unix pcmpl-gnu with-editor compat dired-aux dired dired-loaddefs tramp-cache tramp-sh executable misearch multi-isearch edmacro kmacro cua-base cus-load acme-search quack thingatpt compile text-property-search cmuscheme scheme advice tramp tramp-loaddefs trampver tramp-integration files-x tramp-compat shell pcomplete comint ring parse-time iso8601 time-date ls-lisp format-spec ansi-color c-xref rx session vanc-init bindat vanc-mode hexl ecf-mode derived cl-extra help-mode dcm-general server cl info package browse-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode 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 lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer 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 emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window 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 cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 166897 25031) (symbols 48 15286 4) (strings 32 52764 4059) (string-bytes 1 1727857) (vectors 16 31379) (vector-slots 8 983720 94988) (floats 8 84 70) (intervals 56 9204 1194) (buffers 992 22)) --000000000000a901ec05ddb8ca95 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On a remote machine:

dan@solstice:/tmp$ touch a b c=
dan@solstice:/tmp$ tar cf test.tar a b c
dan@solstice:/tmp$ bzip2 -z= test.tar
dan@solstice:/tmp$ file test.tar.bz2
test.tar.bz2: bzip2 = compressed data, block size =3D 900k

If you visit that remote file a= nd save it, the result will have the .bz2
extension but won't actual= ly be compressed:

dan@solstice:/tmp$ file test.tar.bz2
test.tar.= bz2: POSIX tar archive (GNU)

This doesn't happen with compressed= remote files which aren't tar archives.

In GNU Emacs 28.1 (buil= d 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.31, cairo version 1.16.0)
= =C2=A0of 2022-04-12 built on october= .example.org
Windowing system distributor 'The X.Org Foundation&= #39;, version 11.0.12014000
System Description: Slackware 15.0 x86_64
Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GP= M GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBXML2 MODULES NOTIFY INOTIFY PDUM= PER PNG RSVG SECCOMP SOUND
THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM= XPM GTK3 ZLIB

Important settings:
=C2=A0 value of $LC_COLLATE: C=
=C2=A0 value of $LANG: en_US.UTF-8
=C2=A0 locale-coding-system: utf-= 8-unix

Major mode: Fundamental

Minor modes in effect:
=C2= =A0 shell-dirtrack-mode: t
=C2=A0 hexl-follow-ascii: t
=C2=A0 tooltip= -mode: t
=C2=A0 global-eldoc-mode: t
=C2=A0 electric-indent-mode: t=C2=A0 mouse-wheel-mode: t
=C2=A0 tab-bar-mode: t
=C2=A0 file-name-= shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode:= t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode: t
= =C2=A0 auto-compression-mode: t
=C2=A0 line-number-mode: t
=C2=A0 tra= nsient-mark-mode: t

Load-path shadows:
~/.emacs.d/lisp/android-mo= de hides /home/blakestone/.emacs.d/elpa/android-mode-20190903.811/android-m= ode
~/.emacs.d/lisp/connection hides /home/blakestone/.emacs.d/elpa/conn= ection-20191111.446/connection
~/.emacs.d/lisp/link hides /home/blakesto= ne/.emacs.d/elpa/link-20191111.446/link
/home/blakestone/.emacs.d/elpa/t= ransient-20220425.1314/transient hides /usr/local/share/emacs/28.1/lisp/tra= nsient
/home/blakestone/.emacs.d/elpa/dictionary-20201001.1727/dictionar= y hides /usr/local/share/emacs/28.1/lisp/net/dictionary
~/.emacs.d/lisp/= greek hides /usr/local/share/emacs/28.1/lisp/language/greek
~/.emacs.d/l= isp/longlines hides /usr/local/share/emacs/28.1/lisp/obsolete/longlines
=
Features:
(shadow sort mail-extr ffap emacsbug message rmc puny rfc8= 22 mml mml-sec
epa epg rfc6068 epg-config gnus-util rmail rmail-loaddefs= mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils m= ailheader
sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-ut= ils vc-hg
vc-git diff-mode easy-mmode vc-bzr vc-dispatcher tar-mode arc-= mode
archive-mode jka-compr pcmpl-unix pcmpl-gnu with-editor compat dire= d-aux
dired dired-loaddefs tramp-cache tramp-sh executable misearch
m= ulti-isearch edmacro kmacro cua-base cus-load acme-search quack
thingatp= t compile text-property-search cmuscheme scheme advice tramp
tramp-loadd= efs trampver tramp-integration files-x tramp-compat shell
pcomplete comi= nt ring parse-time iso8601 time-date ls-lisp format-spec
ansi-color c-xr= ef rx session vanc-init bindat vanc-mode hexl ecf-mode
derived cl-extra = help-mode dcm-general server cl info package browse-url
url url-proxy ur= l-privacy url-expand url-methods url-history url-cookie
url-domsuf url-u= til mailcap url-handlers url-parse auth-source cl-seq
eieio eieio-core c= l-macs eieio-loaddefs password-cache json subr-x map
url-vars seq byte-o= pt gv bytecomp byte-compile cconv cl-loaddefs cl-lib
iso-transl tooltip = eldoc paren electric uniquify ediff-hook vc-hooks
lisp-float-type elisp-= mode 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 lisp= -mode prog-mode register page tab-bar menu-bar
rfn-eshadow isearch easym= enu timer select scroll-bar mouse jit-lock
font-lock syntax font-core te= rm/tty-colors frame minibuffer cl-generic
cham georgian utf-8-lang misc-= lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp519= 32 hebrew greek romanian slovak czech
european ethiopic indian cyrillic = chinese composite emoji-zwj charscript
charprop case-table epa-hook jka-= cmpr-hook help simple abbrev obarray
cl-preloaded nadvice button loaddef= s faces cus-face macroexp files
window 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-se= tting font-render-setting
cairo move-toolbar gtk x-toolkit x multi-tty m= ake-network-process emacs)

Memory information:
((conses 16 166897= 25031)
=C2=A0(symbols 48 15286 4)
=C2=A0(strings 32 52764 4059)
= =C2=A0(string-bytes 1 1727857)
=C2=A0(vectors 16 31379)
=C2=A0(vector= -slots 8 983720 94988)
=C2=A0(floats 8 84 70)
=C2=A0(intervals 56 920= 4 1194)
=C2=A0(buffers 992 22))
--000000000000a901ec05ddb8ca95--