From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jake Nelson Newsgroups: gmane.emacs.bugs Subject: bug#55767: 29.0.50; tramp converts buffer of remote OSX file to utf-8-mac after save Date: Thu, 2 Jun 2022 12:02:18 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000f0748605e07922f5" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26918"; mail-complaints-to="usenet@ciao.gmane.io" To: 55767@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 02 18:12:05 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 1nwnQb-0006ni-3W for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Jun 2022 18:12:05 +0200 Original-Received: from localhost ([::1]:36110 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nwnQZ-00050j-UK for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Jun 2022 12:12:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56728) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nwnOd-0002eJ-55 for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2022 12:10:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60567) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nwnOc-00024c-C4 for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2022 12:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nwnOc-0005xc-0i for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2022 12:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jake Nelson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Jun 2022 16:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 55767 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.165418617822873 (code B ref -1); Thu, 02 Jun 2022 16:10:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Jun 2022 16:09:38 +0000 Original-Received: from localhost ([127.0.0.1]:54464 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nwnOD-0005wq-P7 for submit@debbugs.gnu.org; Thu, 02 Jun 2022 12:09:38 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:39584) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nwnOA-0005wf-H6 for submit@debbugs.gnu.org; Thu, 02 Jun 2022 12:09:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56584) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nwnO8-00024y-Mn for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2022 12:09:34 -0400 Original-Received: from mail-il1-x12d.google.com ([2607:f8b0:4864:20::12d]:44600) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nwnO6-00021D-D5 for bug-gnu-emacs@gnu.org; Thu, 02 Jun 2022 12:09:32 -0400 Original-Received: by mail-il1-x12d.google.com with SMTP id y17so3687158ilj.11 for ; Thu, 02 Jun 2022 09:09:29 -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=+ItsXXcqs8OMwVVTXONE2J5+bmpdHvdMoL0C5fUZKZ0=; b=GduP5nq1aC2no+T+Yy+2xDfALHd29Tfdr/Qd9ugPWtyQ4sLlrf14us5jSWuGdvJ21K LjN9uFQyg46fOwpEvXIGC8YJzkcoH9sN323NWIiT9vdOaPN1f5Azb7sbcNx6ZNS5oI/S FwRG1F9UF2z3Lg0+DyzFA7ehXDhFrA57cFbzhFc3RFR4UAIuQzjrgTc/ws+WXXbAZ8mf IQNMLOkspLjoc3ghvoLSk95PSnOdtq2Esw8kbJ0Tf5fIood5D2/koQxjeVEQYjSgDZYS v8pN7/VJIZVTYutT8T4nl/zyiCt/a2vG5EMeV8IZ0eDy845bZ3+l7yhlNowbuIewTdv5 m4uw== 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=+ItsXXcqs8OMwVVTXONE2J5+bmpdHvdMoL0C5fUZKZ0=; b=4/8quYiaF02Bgr/hYYwrtNO2WfbLsxeH4Tj4eMU4fOLY812cD6Jd/QBs3iF8lGiG76 hpNSBi8L77MSFGkYkBU0dtyky5UnuBEiRPqe951nsFR4Tp+whzsnSPYg+7LDXqqG8lLc tP89wBcNSCV79S2NqPG0yCJvVXTs+8jzbhqwZPl6o8bp0Ef8Pbll6mdGzeY1ScGLvwGy kc4//PP5USiPgoPIausfkjyYio0qOUAwjuFABe8JYDp4CNbIoJWtCgQ+kkXfGszlVLu6 3MJ46/Iws2dxQd/GAA5txii7n0iYYA8O0jwhFgo0DahFBJ90fRDcEPOMTBJzl/w3ttQt CJEg== X-Gm-Message-State: AOAM530NhyA3Ve4BvNFDtEvEVlfzf4WkKwdwAym+acs+v2EV7gebp5Sq DYQx+smBAKR/00mMc6JudVTYxyCz8l2T7JA5X4mns9ftc6U= X-Google-Smtp-Source: ABdhPJx0MslOnVmJqqtpwSXjvPon/yW2Th+kh1m1UptfBMGPqrKDC89vlaB/qBbed3e/m9vhu398bLn5g6Pm7Sa17Mo= X-Received: by 2002:a63:d209:0:b0:3fb:b455:deb2 with SMTP id a9-20020a63d209000000b003fbb455deb2mr4875404pgg.323.1654185765399; Thu, 02 Jun 2022 09:02:45 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::12d; envelope-from=jake.nelson@gmail.com; helo=mail-il1-x12d.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:233556 Archived-At: --000000000000f0748605e07922f5 Content-Type: text/plain; charset="UTF-8" 1. Visit remote file on an OSX system using /scp:hostname:/path/to/file 2. Modify buffer 3. Save 4. Note buffer-file-coding-system has updated to utf-8-mac (and (Mac) now listed in modeline). 5. Modify and Save again and the file line endings will be converted to carriage returns. I used git bisect to find commit 47fe7a5983a97c3e806e90340f3cd6ab3f0c49b2 introduced this behavior. Prior to 47fe7a59 emacs would not modify the line endings of the file. I believe utf-8-mac is only for Mac Classic files. In GNU Emacs 29.0.50 (build 12, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw3d scroll bars) of 2022-06-02 built on hostname Repository revision: 47fe7a5983a97c3e806e90340f3cd6ab3f0c49b2 Repository branch: HEAD Windowing system distributor 'The X.Org Foundation', version 11.0.12101003 System Description: Ubuntu 22.04 LTS Configured using: 'configure --with-x-toolkit=lucid --without-native-compilation' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XAW3D XDBE XIM XPM LUCID ZLIB Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: ELisp/d Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-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 line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader smtpmail auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils misearch multi-isearch vc-git diff-mode easy-mmode vc-dispatcher cl-loaddefs cl-lib seq gv subr-x byte-opt bytecomp byte-compile cconv 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 nadvice simple 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 abbrev obarray oclosure cl-preloaded button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 55245 10587) (symbols 48 7079 1) (strings 32 21097 1688) (string-bytes 1 665408) (vectors 16 14212) (vector-slots 8 196342 11371) (floats 8 25 55) (intervals 56 250 9) (buffers 992 12)) --000000000000f0748605e07922f5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

1. Visit remote file on an OSX system using /scp:hostname:/path/to/file
2. Modify buffer
3. Save
4. Note buffer-file-coding-system has updated to utf-8-mac (and (Mac) now l= isted
in modeline).
5. Modify and Save again and the file line endings will be converted to
carriage returns.

I used git bisect to find commit
47fe7a5983a97c3e806e90340f3cd6ab3f0c49b2 introduced this behavior. Prior
to 47fe7a59 emacs would not modify the line endings of the file.=C2=A0=C2= =A0 I believe utf-8-mac is only for Mac Classic files.=20

In GNU Emacs 29.0.50 (build 12, x86_64-pc-linux-gnu, X toolkit, cairo versi= on 1.16.0, Xaw3d scroll bars)
of 2022-06-02 built on hostname
Repository revision: 47fe7a5983a97c3e806e90340f3cd6ab3f0c49b2
Repository branch: HEAD
Windowing system distributor 'The X.Org Foundation', version 11.0.1= 2101003
System Description: Ubuntu 22.04 LTS

Configured using:
'configure --with-x-toolkit=3Dlucid --without-native-compilation'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY
INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS
X11 XAW3D XDBE XIM XPM LUCID ZLIB

Important settings:
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: @im=3Dibus
locale-coding-system: utf-8-unix

Major mode: ELisp/d

Minor modes in effect:
tooltip-mode: t
global-eldoc-mode: t
eldoc-mode: t
show-paren-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
line-number-mode: t
indent-tabs-mode: t
transient-mark-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message mailcap yank-media rmc puny
dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068
epg-config gnus-util text-property-search time-date mm-decode mm-bodies
mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader smtpmail
auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs
password-cache json map sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils misearch multi-isearch vc-git diff-mode easy-mmode
vc-dispatcher cl-loaddefs cl-lib seq gv subr-x byte-opt bytecomp
byte-compile cconv 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 nadvice simple 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 abbrev obarray oclosure cl-preloaded button
loaddefs faces cus-face macroexp files window text-properties overlay
sha1 md5 base64 format env code-pages mule custom widget keymap
hashtable-print-readable backquote threads dbusbind inotify lcms2
dynamic-setting system-font-setting font-render-setting cairo x-toolkit
x multi-tty make-network-process emacs)

Memory information:
((conses 16 55245 10587)
(symbols 48 7079 1)
(strings 32 21097 1688)
(string-bytes 1 665408)
(vectors 16 14212)
(vector-slots 8 196342 11371)
(floats 8 25 55)
(intervals 56 250 9)
(buffers 992 12))

--000000000000f0748605e07922f5--