From unknown Sun Jun 22 00:28:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#64164: 29.0.92; buffer-file-coding-system changes unexpectedly after saving Resent-From: miranda@pulusound.fi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Jun 2023 11:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 64164 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 64164@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16871736645798 (code B ref -1); Mon, 19 Jun 2023 11:22:01 +0000 Received: (at submit) by debbugs.gnu.org; 19 Jun 2023 11:21:04 +0000 Received: from localhost ([127.0.0.1]:55627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBCwQ-0001VR-IY for submit@debbugs.gnu.org; Mon, 19 Jun 2023 07:21:03 -0400 Received: from lists.gnu.org ([209.51.188.17]:46200) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBBds-0004aA-78 for submit@debbugs.gnu.org; Mon, 19 Jun 2023 05:57:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qBBdr-0003Cb-KH for bug-gnu-emacs@gnu.org; Mon, 19 Jun 2023 05:57:47 -0400 Received: from cyan.elm.relay.mailchannels.net ([23.83.212.47]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qBBdp-0002KH-Bt for bug-gnu-emacs@gnu.org; Mon, 19 Jun 2023 05:57:47 -0400 X-Sender-Id: dreamhost|x-authsender|miranda@pulusound.fi Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 80DBC141333 for ; Mon, 19 Jun 2023 09:57:40 +0000 (UTC) Received: from pdx1-sub0-mail-a258.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id E278E14104A for ; Mon, 19 Jun 2023 09:57:39 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1687168659; a=rsa-sha256; cv=none; b=B11FOkIAWhSDsRaYpWEzZeWX+v6VwaEvU6PF//v7jkXoqrkajbfTvRaNmWyCJIzqiIiKrh iA5J51v2f8jbGOPgkitW9KwnG3KvXeWNtA983orh1/9a2xdZNS77Hbpu6T3OVjpASKqOF+ 0u3yP61wYKt+NU5K+Qv/izEp0XmJpz/6lLF0a7DrLxOvb9+MLPISB7WdOtzVrb0MSERlvv zm1dK6AVJqJHlFfQskW6jgb7mmlS6n80E/Kh8SpoIvEGkfwFkWLL2B8W0OHTD12UnUR95V 9cQRYbzB4h3phLc9x8BLXRPj17ckBG+uupqMtf6d/cbmvT20FVQvKDb3vWQgdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1687168659; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:dkim-signature; bh=EYxamPeTT1fenQZ/o2twmlmuFXBamvYkPFjp03bOuzc=; b=PfOeYf+vvuKQzD9CMI64EbsHNHRkdDqDV3nWMbh5kSA3jFRe0/Z51d+KB5HuHwzVjX/bDQ 48mt34buWGBZVJ/pvPUMmriKqNVI81K8ooUIkJvGz/UnXTCvslLy7KwCcdvn+AS/hwkBvQ 4aYZ9JPVkvINt0Lhj/SEADwh+aWfN0VlcSWY0A2X9W8oMD1WDtUnaVm+PF445faYXN0m47 g8X38MgV6LTCa6zIIZl4iqfv/owWN62gxiLPuAbKmQ/6pap2zehmypCcKIlMNSzTECLS8u 9r5FNtYDiFLkEhNK5osYk/o0xUy+ZYV0qT3KOKL4iHdH6wqcbrpvYtnPRrDG1Q== ARC-Authentication-Results: i=1; rspamd-9fcc56855-wbgqd; auth=pass smtp.auth=dreamhost smtp.mailfrom=miranda@pulusound.fi X-Sender-Id: dreamhost|x-authsender|miranda@pulusound.fi X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|miranda@pulusound.fi X-MailChannels-Auth-Id: dreamhost X-Juvenile-Lyrical: 6a8c47f364268bc8_1687168660142_1712111859 X-MC-Loop-Signature: 1687168660142:1181065624 X-MC-Ingress-Time: 1687168660142 Received: from pdx1-sub0-mail-a258.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.103.24.91 (trex/6.9.1); Mon, 19 Jun 2023 09:57:40 +0000 Received: from webmail.dreamhost.com (ip-66-33-200-4.dreamhost.com [66.33.200.4]) (Authenticated sender: miranda@pulusound.fi) by pdx1-sub0-mail-a258.dreamhost.com (Postfix) with ESMTPA id 4Ql4v756c8z2Y for ; Mon, 19 Jun 2023 02:57:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pulusound.fi; s=dreamhost; t=1687168659; bh=EYxamPeTT1fenQZ/o2twmlmuFXBamvYkPFjp03bOuzc=; h=Date:From:To:Subject:Content-Type:Content-Transfer-Encoding; b=YwoOedgom/QTOgSxWrxXPWleQjfKuXPbgpUHAA7+OcnFgUlbNtcRhFLp2yxik1/jf i4pr/64ZwPphMCnLd++GejAkaNmqcXDW49z1wh/L4oDlRRMuuxaeWyhbVk25PFrSkI 1/rm2xmV0U1VlU08bAptMd6ly7eI+F0RI+WfgoG6JkxWZ8eM+ChLbJrWIahiI7mvIe L8qx6nxaMlZZkR71gnMzVHkInW8GQD+popo1EjYrUNdH3BAlmJVKKVxqFM7Otzb0LC BihkEHMHC6td+sRO6SsQriJeeQJqsCqdbMiDawKSBAWJOYDA/1GfBHYwvWJzmHRMJi IjLKm9E8LW1Xg== MIME-Version: 1.0 Date: Mon, 19 Jun 2023 12:57:39 +0300 From: miranda@pulusound.fi User-Agent: Roundcube Webmail/1.4.3 Message-ID: X-Sender: miranda@pulusound.fi Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: none client-ip=23.83.212.47; envelope-from=miranda@pulusound.fi; helo=cyan.elm.relay.mailchannels.net X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: i am trying to edit remote files on another macOS system, using Tramp's ssh: method. i am running `emacs -Q`. when i open any file on this remote system, the initial value of `buffer-file-coding-system` is what i would expect, i.e. undecided-unix or utf-8-unix, depending on whether the file contains non-ASCII [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [66.33.200.4 listed in zen.spamhaus.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.0 SPF_NONE SPF: sender does not publish an SPF Record -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] X-Mailman-Approved-At: Mon, 19 Jun 2023 07:21:01 -0400 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: 0.3 (/) i am trying to edit remote files on another macOS system, using Tramp's ssh: method. i am running `emacs -Q`. when i open any file on this remote system, the initial value of `buffer-file-coding-system` is what i would expect, i.e. undecided-unix or utf-8-unix, depending on whether the file contains non-ASCII characters. however, after saving the file, `buffer-file-coding-system` suddenly changes to utf-8-hfs-mac. any subsequent save then changes all the line endings to CR, which i have not actively used since 2001 or so... :-) i can use `set-buffer-file-coding-system` to set utf-8-unix, but the problem then occurs again after the next save. other remotes (Linux systems) do not exhibit the issue. Emacs 28.2 works as expected. i am using the build from https://emacsformacosx.com/builds best, miranda In GNU Emacs 29.0.92 (build 1, x86_64-apple-darwin15.6.0, NS appkit-1404.47 Version 10.11.6 (Build 15G22010)) of 2023-06-18 built on builder10-11.lan Windowing system distributor 'Apple', version 10.3.1561 System Description: Mac OS X 10.13.6 Configured using: 'configure --with-ns '--enable-locallisppath=/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules CFLAGS=-DNSTextAlignmentRight=NSRightTextAlignment --with-x-toolkit=no' Configured features: ACL GMP GNUTLS JSON LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER SQLITE3 THREADS TOOLKIT_SCROLL_BARS ZLIB Important settings: value of $LANG: fi_FI.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction 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 puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win 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 seq simple cl-generic indonesian philippine 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 theme-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 kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 37468 8247) (symbols 48 5045 0) (strings 32 12567 2096) (string-bytes 1 355935) (vectors 16 10369) (vector-slots 8 155077 9845) (floats 8 21 23) (intervals 56 217 0) (buffers 976 10)) From unknown Sun Jun 22 00:28:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#64164: 29.0.92; buffer-file-coding-system changes unexpectedly after saving Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Jun 2023 16:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64164 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: miranda@pulusound.fi Cc: 64164@debbugs.gnu.org Received: via spool by 64164-submit@debbugs.gnu.org id=B64164.168719375920845 (code B ref 64164); Mon, 19 Jun 2023 16:56:01 +0000 Received: (at 64164) by debbugs.gnu.org; 19 Jun 2023 16:55:59 +0000 Received: from localhost ([127.0.0.1]:57163 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBIAY-0005Q8-Mx for submit@debbugs.gnu.org; Mon, 19 Jun 2023 12:55:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:60580) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBIAW-0005Pu-AY for 64164@debbugs.gnu.org; Mon, 19 Jun 2023 12:55:57 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qBIAQ-0005H8-Cp; Mon, 19 Jun 2023 12:55:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=OL7adYX05Lx5T/rGVN11ETWN8H5Jt+W0+HINfFStiBw=; b=VQk9i+EwdBcW 6ZQuezyWpDz0E6HMEk4mg5gByz0V2EPsLQ4mMS8nJ+Ui7hHtYmTl3kp9V4QWXrar1Qf7Hi7WDxh5b RrPfZQWPtP0spPctxEgsTFirgJtMTbHqkpI8uTm2qFWQCUrOACK4CBjJeh1pO/wHn/2Dj42vO8i0b t7IDg7lyLy+5knTo1vdESobGbJZVjFRLFVCeP11slbRV/ChPyfjECIYRwo+eYtSDVMUIodH0O96ok FIhPYLdTyq9BIiSCySZTBYfk36dAvmMmf2yeN4/IWCdkeTLfZgs7iQV5Csv8YgI8nPUVUULTifoFa au+jt7Dr9vbfDuLZb+iY2Q==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qBIAP-0002SZ-Sp; Mon, 19 Jun 2023 12:55:50 -0400 Date: Mon, 19 Jun 2023 19:55:54 +0300 Message-Id: <83wmzz75np.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (miranda@pulusound.fi) References: X-Spam-Score: -2.3 (--) 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 (---) > Date: Mon, 19 Jun 2023 12:57:39 +0300 > From: miranda@pulusound.fi > > i am trying to edit remote files on another macOS system, using Tramp's > ssh: method. i am running `emacs -Q`. > > when i open any file on this remote system, the initial value of > `buffer-file-coding-system` is what i would expect, i.e. undecided-unix > or utf-8-unix, depending on whether the file contains non-ASCII > characters. > > however, after saving the file, `buffer-file-coding-system` suddenly > changes to utf-8-hfs-mac. any subsequent save then changes all the line > endings to CR, which i have not actively used since 2001 or so... :-) > > i can use `set-buffer-file-coding-system` to set utf-8-unix, but the > problem then occurs again after the next save. other remotes (Linux > systems) do not exhibit the issue. > > Emacs 28.2 works as expected. Does this happen only with editing remote files via Tramp, or does it also happen when you edit local files on macOS? If it only happens with Tramp, is it possible for you to login to that other system and edit files there locally, in case this is triggered by something specific to that system? > i am using the build from https://emacsformacosx.com/builds I don't know what that is. Are you sure this uses the official sources from the emacs-29.0.92 tarball? From unknown Sun Jun 22 00:28:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#64164: 29.0.92; buffer-file-coding-system changes unexpectedly after saving Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Jun 2023 17:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64164 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: miranda@pulusound.fi Cc: 64164@debbugs.gnu.org Received: via spool by 64164-submit@debbugs.gnu.org id=B64164.168719617524835 (code B ref 64164); Mon, 19 Jun 2023 17:37:01 +0000 Received: (at 64164) by debbugs.gnu.org; 19 Jun 2023 17:36:15 +0000 Received: from localhost ([127.0.0.1]:57224 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBInX-0006SU-1P for submit@debbugs.gnu.org; Mon, 19 Jun 2023 13:36:15 -0400 Received: from mout.gmx.net ([212.227.15.19]:36507) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBInU-0006SG-8g for 64164@debbugs.gnu.org; Mon, 19 Jun 2023 13:36:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1687196161; x=1687800961; i=michael.albinus@gmx.de; bh=cguSiEAbMvmlYExNFqXOTNpt9y22JZaGVUems7biNkA=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=q0I7HuI821SCME+fy5oUsy4Q8sadU+2oPLe4UWOSnUSouQTc3onKOS82iwBfX9eQ2QjDygl 1hhqDjCTSilwsKlGCusuyhlSwsIeMw5jlUbJPME8n7/s35JYuYz9SpXZv+6LjRQELP1pS6Hcc gguTzhae++MMRCMrLRwUr8CIIDHOtV2UBFLwmzbPs9xPPndEc8B8aWyfSH9CQCK1vdccUOcJA X7AhrSmmatnM5p6rDlswUk58rvuZ+w2gLStoTJkyO72qt8QZTtP/jJUFjCwa76j98vEjYYK2B oEm7LxhW9vYLpnfv2OTRXnQZeL3+LamcXrmu7FKdmIHo2pl64YZw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.13]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MWASe-1qa8xH0ITi-00XfWV; Mon, 19 Jun 2023 19:36:01 +0200 From: Michael Albinus In-Reply-To: (miranda@pulusound.fi's message of "Mon, 19 Jun 2023 12:57:39 +0300") References: Date: Mon, 19 Jun 2023 19:35:59 +0200 Message-ID: <87y1kf2w3k.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:QULOvWmxrXRohYQFeW0F4/Vl2XJnNFfNqXhPPysbstFPWXz3OCL B038qhIbXXCuwe8AVn7R6DyRyn/dQyFgpXJJcDgdFDlNOdL5HLq5iXObE7ny2F6ma9/pgLS K/DZvf+HdVJRsXV/Ahl/ixMWMrwLc/IVdnQzYJhxcMp+pUbRZbADikDGpmgYmWsJqwsL8ge 5iU4FjvyuiFFxJLFSn53w== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:Vl2+eG3fivY=;npZYaLz4865n9wCkssd8RfqfqgR q5T96GY7Vj++1TlGsRYyyJy5bILwcncKGq4sCLhw0c1hI7eDiDSppq+kSviHi382Lv250Zp8y Lq8EiOY+3AULCpyW0RUoAgeJPboCTga+nASwBli16/7XS+gqZjMStPajhPcBLDM3z26RVcfYO UetTmSVIYYUut8Om8iALSiicTllJNGCRdjznECmzUSAWiNtFLpQ1HfJqHWibigpmbHLYH1bx+ MGNCnyfhf2IpoeX635TMMKfABefbnfcccpBDgEC9WwfCaUmD4mV/lFH8+1zZwyNqhsqSjAPaH IaOWhK8wYH2CyBhu2lyWNsskMcVGqQJxbIEIebhTzKT3GLfDjpcUILjb8wENSwwWnBd5tiTOh +/Uxx03uW4eREsYwwz6aTu1TMCoPYhw13C2a6PcSweNSTMdwoESrB+PpyjKuM6JTAGjwQZWU1 j3sgTWeZ9GYJPt7wkdnW2vh/KYLBaQS2j9GhksSsqKmgmtMkjEO6hcGgVcfRlOnOMk4UFvmd0 zZyPFQ8q7VE8DT2AcB+khB42JFm0cVA0lPkrgmdvsadhas423aorkUVE+Ss3WRb+22ZaLyX6B FjjNUynyasKLRKNadMVoy3ccxS8v9lXWdGxviGLeVUs/si+6C2P9T0cMhlCVpkk5IhhSj1cr+ Urqo64fne6BpgRZSUg1kidvI+iJa+WM9f0dOnLxZA4f3f2b4Bo9V7Gc3gjLw9zut77vhVFD56 3Fo3nkjiKaHmhzowL7zwxRi9wiH2l3UamzERCn/rJzD0Xvd3/rSShmrHLE5fF5JIoIrKCoId7 beCfaV/2g0uRL1fbcl7zkguer9lCl1lalE1MX3DTaMrVmopOR1WLxqwT/bkCzIF0fPeTmihWO OTvirZ2hbAiGcfagHiDI8w5ckrSL+f+ohxzcG6nO5RF7TgJN3UQTDslY6KaRySLFEjBODEQBd JlpxDiewG14dlKWG8LdxJsT/7N4= X-Spam-Score: -0.7 (/) 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: -1.7 (-) miranda@pulusound.fi writes: Hi Miranda, > i am trying to edit remote files on another macOS system, using > Tramp's ssh: method. i am running `emacs -Q`. > > when i open any file on this remote system, the initial value of > `buffer-file-coding-system` is what i would expect, > i.e. undecided-unix or utf-8-unix, depending on whether the file > contains non-ASCII characters. > > however, after saving the file, `buffer-file-coding-system` suddenly > changes to utf-8-hfs-mac. any subsequent save then changes all the > line endings to CR, which i have not actively used since 2001 or > so... :-) Well, if Tramp detects a remote macOS system, it converts the coding system to `utf-8-hfs-mac', see function `tramp-open-connection-setup-interactive-shell'. This heuristic works for many years w/o complaints from users. We could suppress this. However, Tramp needs an indication when to suppress. Do you have somthing like this? > Emacs 28.2 works as expected. This surprises me. I don't remember we have changed something here in Tramp (but I might be wrong). > best, > miranda Best regards, Michael. From unknown Sun Jun 22 00:28:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#64164: 29.0.92; buffer-file-coding-system changes unexpectedly after saving Resent-From: miranda kastemaa Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Jun 2023 05:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64164 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 64164@debbugs.gnu.org Received: via spool by 64164-submit@debbugs.gnu.org id=B64164.16872383933730 (code B ref 64164); Tue, 20 Jun 2023 05:20:02 +0000 Received: (at 64164) by debbugs.gnu.org; 20 Jun 2023 05:19:53 +0000 Received: from localhost ([127.0.0.1]:57745 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBTmR-0000y4-NR for submit@debbugs.gnu.org; Tue, 20 Jun 2023 01:19:53 -0400 Received: from bumble.maple.relay.mailchannels.net ([23.83.214.25]:27574) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBLlt-0003Nk-KE for 64164@debbugs.gnu.org; Mon, 19 Jun 2023 16:46:47 -0400 X-Sender-Id: dreamhost|x-authsender|miranda@pulusound.fi Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 0178964203C; Mon, 19 Jun 2023 20:46:44 +0000 (UTC) Received: from pdx1-sub0-mail-a224.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 3A8A06420DD; Mon, 19 Jun 2023 20:46:41 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1687207601; a=rsa-sha256; cv=none; b=o+U8dMqABDKiDqX6B1ajQR5/uWZ1EkAB9Tqprw52+SVVlrlRXFbTGXslPPqvCiFnLgeF8h r5ooIT7awM6kVNKC/0moN9QJDdgd0nuwrNCswHWwNd92XCn7IxXbMaGXOETKzsMYIa33P7 jb+CnJXfSvOVoH2r9NdztslbQY/VbrjFbS7+5Y9GWBr7Krv/t+rW7CogNDEJkNR2l/tTyf ST1J9kZKDBX9CVQ19eUwGlROgjkD0IITuF7Rm8jKddgdMyK0SAI2QUauGY8JeJLL9pnsLA NYcGcObiz+3GQa80sTLN/FVAb6V+0uxXeKLp3UE99dUrDxvL37AV+5FagUCeXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1687207601; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:dkim-signature; bh=2AR9y/JMPxugEx88qPmCEukfs2usfm/8V121fbYwCis=; b=LCQo+trqxaDDdnCAeH8nkXFXtwgCQ5/e7tc7hPVbtYxLvXbHJh1ngsTsbVa7KbDbZFROm6 oh+kyOtpYaVwK4LmTCfSifqolg5xAhOsshRUg2BB68r95xONnO2Ppf5OevORinhKdfld+8 CETYKu6RXrbnEOF9xiffwnyNNxwjY2WMgB+zRzj8V0LV4Z58d9f2tCFWmoxL2PfSfNyhmq xkfCPrOZZhVeVbFiAaXyyrsa6biKYfDm878G1PxhcRxJUdf7M2HwZ8DKT4A8YlzlkHiO75 B/A8Ea55BikQSzuOUcuBKUlDgiCF6Y4FLxzXN4feEX+rLhr+p8wDfx3wcIQ7Iw== ARC-Authentication-Results: i=1; rspamd-9fcc56855-wlvtx; auth=pass smtp.auth=dreamhost smtp.mailfrom=miranda@pulusound.fi X-Sender-Id: dreamhost|x-authsender|miranda@pulusound.fi X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|miranda@pulusound.fi X-MailChannels-Auth-Id: dreamhost X-Befitting-Hysterical: 66ba67594bacdbb2_1687207603487_3191460960 X-MC-Loop-Signature: 1687207603487:324132200 X-MC-Ingress-Time: 1687207603486 Received: from pdx1-sub0-mail-a224.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.120.163.52 (trex/6.9.1); Mon, 19 Jun 2023 20:46:43 +0000 Received: from 82-181-28-45.bb.dnainternet.fi (82-181-28-45.bb.dnainternet.fi [82.181.28.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: miranda@pulusound.fi) by pdx1-sub0-mail-a224.dreamhost.com (Postfix) with ESMTPSA id 4QlMJ01tjlz5k; Mon, 19 Jun 2023 13:46:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pulusound.fi; s=dreamhost; t=1687207601; bh=2AR9y/JMPxugEx88qPmCEukfs2usfm/8V121fbYwCis=; h=From:Content-Type:Subject:Date:Cc:To; b=Jq9RVy6feAKKNG0UJFAHmi4nWK9Yo6RGGSNn3x31XLR8iBe+HNZGEeS0aKRVlJzIm ow4bzt8gUvICQQgc6q1b2epiN3/Kg5XWs865JFCuWuz/kBJW4tNzBbtmjN5KZrZ2nB fjSU1quuMcVFCR/uXcuhSiEzcYSW65FvZkEFiJBa+biUP4AtQNdpmNpd9Em87bXqGC K/vtYBIjYmA4AoTBPqRMysC3GJde64tPWaxka6OiIHsnDj0pC97bvyWr9uKLB+dA79 sobP0p3TVeIynNjljcMAaPhhqpXW+nHTNLyy6FAur25Nc/qDGUC1seK3fEdBnn6h8W 69hlkE98lOuYw== From: miranda kastemaa Message-Id: Content-Type: multipart/alternative; boundary="Apple-Mail=_95A8748F-30BD-4275-B9EC-94DE6348E746" Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\)) Date: Mon, 19 Jun 2023 23:46:37 +0300 In-Reply-To: <83wmzz75np.fsf@gnu.org> References: <83wmzz75np.fsf@gnu.org> X-Mailer: Apple Mail (2.3445.104.21) X-Spam-Score: 0.0 (/) X-Mailman-Approved-At: Tue, 20 Jun 2023 01:19:50 -0400 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: -1.0 (-) --Apple-Mail=_95A8748F-30BD-4275-B9EC-94DE6348E746 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 >=20 > On 19 Jun 2023, at 19.55, Eli Zaretskii wrote: >=20 >> Date: Mon, 19 Jun 2023 12:57:39 +0300 >> From: miranda@pulusound.fi >>=20 >> i am trying to edit remote files on another macOS system, using = Tramp's=20 >> ssh: method. i am running `emacs -Q`. >>=20 >> when i open any file on this remote system, the initial value of=20 >> `buffer-file-coding-system` is what i would expect, i.e. = undecided-unix=20 >> or utf-8-unix, depending on whether the file contains non-ASCII=20 >> characters. >>=20 >> however, after saving the file, `buffer-file-coding-system` suddenly=20= >> changes to utf-8-hfs-mac. any subsequent save then changes all the = line=20 >> endings to CR, which i have not actively used since 2001 or so... :-) >>=20 >> i can use `set-buffer-file-coding-system` to set utf-8-unix, but the=20= >> problem then occurs again after the next save. other remotes (Linux=20= >> systems) do not exhibit the issue. >>=20 >> Emacs 28.2 works as expected. >=20 > Does this happen only with editing remote files via Tramp, or does it > also happen when you edit local files on macOS? only via Tramp. > If it only happens with Tramp, is it possible for you to login to that > other system and edit files there locally, in case this is triggered > by something specific to that system? yes, i have just now tested the same build on the system in question. = with local files, the issue does not occur. but if i use Tramp/ssh: to = localhost, or to a third mac, i once again get the unexpected line = ending change after saving. on this system too, 28.2 works as expected. >> i am using the build from https://emacsformacosx.com/builds = >=20 > I don't know what that is. Are you sure this uses the official > sources from the emacs-29.0.92 tarball? i have not inspected the build process myself, but at = https://emacsformacosx.com/about , the = author writes: > The scripts I run basically just configure and build right from the = GNU source=E2=80=94I don't add any patches or any extraneous lisp = packages. I do include the old Carbon icon on the disk image because I = like it better than the new Cocoa icon but it is not enabled by default. >=20 > Emacs is built on various versions of Mac OS X: 10.10 and 10.14 as of = 2020-05-12 (64 bit only). All the binaries are combined into a single = executable and a small Rust launcher chooses which binary to run based = on the machine's OS and architecture. >=20 > Why not just use a fat binary? Because fat binaries can only hold 1 of = each architecture and Emacs has multiple x86_64 architectures binaries. >=20 > Why are there multiple x86_64 binaries? Even though recent versions of = Emacs contain runtime feature detection, there is an issue with some = library dependencies. best, miranda= --Apple-Mail=_95A8748F-30BD-4275-B9EC-94DE6348E746 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

On 19 Jun 2023, at 19.55, Eli Zaretskii <eliz@gnu.org> = wrote:

Date: = Mon, 19 Jun 2023 12:57:39 +0300
From: miranda@pulusound.fi

i am = trying to edit remote files on another macOS system, using Tramp's 
ssh: method. = i am running `emacs -Q`.

when i open any = file on this remote system, the initial value of 
`buffer-file-coding-system` is what i would expect, i.e. = undecided-unix 
or utf-8-unix, depending on whether the file contains = non-ASCII 
characters.

however, after = saving the file, `buffer-file-coding-system` suddenly 
changes to = utf-8-hfs-mac. any subsequent save then changes all the line 
endings to = CR, which i have not actively used since 2001 or so... :-)

i can use `set-buffer-file-coding-system` to = set utf-8-unix, but the 
problem then = occurs again after the next save. other remotes (Linux 
systems) do = not exhibit the issue.

Emacs 28.2 works as = expected.

Does this happen only with editing remote files via Tramp, or = does it
also happen = when you edit local files on macOS?

only via Tramp.

If it only happens with Tramp, is it possible for you to = login to that
other system = and edit files there locally, in case this is triggered
by something specific to that = system?

yes, = i have just now tested the same build on the system in question. with = local files, the issue does not occur. but if i use Tramp/ssh: to = localhost, or to a third mac, i once again get the unexpected line = ending change after saving.

on this = system too, 28.2 works as expected.

i am using the build from https://emacsformacosx.com/builds

I don't know what that is.  Are you sure this uses the = official
sources from = the emacs-29.0.92 tarball?

i have not inspected the build process = myself, but at https://emacsformacosx.com/about, the author = writes:

The = scripts I run basically just configure and build right from the GNU = source=E2=80=94I don't add any patches or any extraneous lisp packages. = I do include the old Carbon icon on the disk image because I like it = better than the new Cocoa icon but it is not enabled by = default.

Emacs = is built on various versions of Mac OS X: 10.10 and 10.14 as of = 2020-05-12 (64 bit only). All the binaries are combined into a single = executable and a small Rust launcher chooses which binary to run based = on the machine's OS and architecture.

Why not just use a fat binary? Because = fat binaries can only hold 1 of each architecture and Emacs has multiple = x86_64 architectures binaries.

Why are there multiple x86_64 binaries? = Even though recent versions of Emacs contain runtime feature detection, = there is an issue with some library dependencies.

best,
miranda
= --Apple-Mail=_95A8748F-30BD-4275-B9EC-94DE6348E746-- From unknown Sun Jun 22 00:28:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#64164: 29.0.92; buffer-file-coding-system changes unexpectedly after saving Resent-From: miranda kastemaa Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Jun 2023 05:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64164 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Albinus Cc: 64164@debbugs.gnu.org Received: via spool by 64164-submit@debbugs.gnu.org id=B64164.16872383943737 (code B ref 64164); Tue, 20 Jun 2023 05:20:02 +0000 Received: (at 64164) by debbugs.gnu.org; 20 Jun 2023 05:19:54 +0000 Received: from localhost ([127.0.0.1]:57747 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBTmT-0000y7-2n for submit@debbugs.gnu.org; Tue, 20 Jun 2023 01:19:53 -0400 Received: from fly.ash.relay.mailchannels.net ([23.83.222.61]:31594) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBNNg-0006HK-A0 for 64164@debbugs.gnu.org; Mon, 19 Jun 2023 18:29:54 -0400 X-Sender-Id: dreamhost|x-authsender|miranda@pulusound.fi Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 1DCAF5C14B1; Mon, 19 Jun 2023 22:29:46 +0000 (UTC) Received: from pdx1-sub0-mail-a216.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 4995D5C1494; Mon, 19 Jun 2023 22:29:43 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1687213783; a=rsa-sha256; cv=none; b=cWQZi8CzmgAKGBpDiH8GNm8J7J+3y5tkRNxUFDNYFSk5OWSxYzDltmgr7E8IPaUFYoU9wv XAZI0o/bJTrjGn/t6//kzFv/aAXpC2i+xIKIKBWWmGLWmedJ7y4/Bz2ceMIPJ9G8V19d8T 7DKUtbezkKT8muu6JVJomkxuSmKe8ar56lQMMI75wnfdNn2b7fne30wKvNbLymiKTX17DM dZkIp1VywDPcdSUSgZC0+hvOHsFOEK0nitBlZ2rY+vY5goR6OboOdpd36G6sAJMvZ4naqs tpy95KkrqrcMzt+jI2r1y5VH6+DdZYD597yF0dWCJBFxixOKAsduJLHKwmFo4A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1687213783; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=YJXkEh2mRgRhsoDAcOa8vuF7uBBN599ULtCPuA1wNCw=; b=QjjJH+PrUtQQiS0F0qWyz4LeslCXkLMnLt1Y51ez4E+EN2nFKjSlGrc4KcMJH6o/U15zNz 2zv5OSJTfplQSvQ5Hr0SPL5MQ3ZEeRkjeI46CgUUS1DTCzk5Dahscrc2VP0wzi3Zb6+3eB hSIyEcLkR3V5W3um68gBodRqpbG6THCcknCtidGXul+J8iFVJnmivLXp3RX9gyCRRu8ufw zSMU57XBxLoW7PMClSpbOkUB1miGa0zaZhrCsLWsVDaxKvWP0vmhfGWy09nNjkA7cTlYQL Wzs9uY0Dud2NwI0GEQXSFbtchBK+yH44TVw9gzIw3ll8VcGu9UnLNb4OsO/Prw== ARC-Authentication-Results: i=1; rspamd-85899d6fcc-rwzts; auth=pass smtp.auth=dreamhost smtp.mailfrom=miranda@pulusound.fi X-Sender-Id: dreamhost|x-authsender|miranda@pulusound.fi X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|miranda@pulusound.fi X-MailChannels-Auth-Id: dreamhost X-Oafish-Attack: 3e40d6831f7af05b_1687213785656_4000809406 X-MC-Loop-Signature: 1687213785656:1812518061 X-MC-Ingress-Time: 1687213785656 Received: from pdx1-sub0-mail-a216.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.123.193.136 (trex/6.9.1); Mon, 19 Jun 2023 22:29:45 +0000 Received: from dummy.faircode.eu (89-27-5-155.bb.dnainternet.fi [89.27.5.155]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: miranda@pulusound.fi) by pdx1-sub0-mail-a216.dreamhost.com (Postfix) with ESMTPSA id 4QlPZt3q7cz2D; Mon, 19 Jun 2023 15:29:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pulusound.fi; s=dreamhost; t=1687213783; bh=YJXkEh2mRgRhsoDAcOa8vuF7uBBN599ULtCPuA1wNCw=; h=Date:From:To:Cc:Subject:Content-Type:Content-Transfer-Encoding; b=pK3pQjD4YP525oFe0XJaBxIYiBQm5Fin0uXjtXB9eAhesQ4uu6K6WldFK4N7YzGqM 9F9OEi1eKFN4wsqMejrKeKdMJXbpme+1npPlXrmaKTNj3fUdsF/KiGb+0jVg5PNkRe m5POH0+96VB0H6pNbwmvpC1Pn7tbWjaNFCBREeyMu+fb1NLlzT0yxsC4u0l0LAxHNZ dbv5wSF/fv5WUdIdDKVjTeS/HPxjNkeh2SFbnY1fbI/JuzYDsM/KGnrs3mnELbkRNv 6sUuZNJuQZfssCglNFOt6wgdb7kZjkBJBNrhGaYmNLxOPcHPHqXF0NVDW/LYPYI9ip 25HpuWYj8vjvw== Date: Tue, 20 Jun 2023 01:29:37 +0300 (GMT+03:00) From: miranda kastemaa Message-ID: <24e2cd85-0f23-40a9-838a-3eb7e2c1877f@pulusound.fi> In-Reply-To: <87y1kf2w3k.fsf@gmx.de> References: <87y1kf2w3k.fsf@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Correlation-ID: <24e2cd85-0f23-40a9-838a-3eb7e2c1877f@pulusound.fi> X-Spam-Score: 0.0 (/) X-Mailman-Approved-At: Tue, 20 Jun 2023 01:19:50 -0400 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: -1.0 (-) 19 Jun 2023 20.36.06 Michael Albinus : > miranda@pulusound.fi writes: > > Hi Miranda, > >> i am trying to edit remote files on another macOS system, using >> Tramp's ssh: method. i am running `emacs -Q`. >> >> when i open any file on this remote system, the initial value of >> `buffer-file-coding-system` is what i would expect, >> i.e. undecided-unix or utf-8-unix, depending on whether the file >> contains non-ASCII characters. >> >> however, after saving the file, `buffer-file-coding-system` suddenly >> changes to utf-8-hfs-mac. any subsequent save then changes all the >> line endings to CR, which i have not actively used since 2001 or >> so... :-) > > Well, if Tramp detects a remote macOS system, it converts the coding > system to `utf-8-hfs-mac', see function > `tramp-open-connection-setup-interactive-shell'. This heuristic works > for many years w/o complaints from users. thank you for pointing me towards this function. it is late here but this will help me do some more digging tomorrow. > We could suppress this. However, Tramp needs an indication when to > suppress. Do you have somthing like this? without knowing anything about how the current logic came to be, it seems to me that -mac should never be the default on Darwin-based macOS, as the CR file endings fell out of use with the discontinuation of the "classic" Mac OS that predated Darwin. it is perhaps worth reiterating that the files i have been editing already contain LF file endings exclusively (and thus far Emacs has always created these by default, both locally and over Tramp), so the sudden unprompted change to CR is quite disruptive. even if CR were a reasonable default, i believe Emacs is meant to respect the existing coding system of files, so this definitely seems like a bug. >> Emacs 28.2 works as expected. > > This surprises me. I don't remember we have changed something here in > Tramp (but I might be wrong). > >> best, >> miranda > > Best regards, Michael. best, miranda From unknown Sun Jun 22 00:28:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#64164: 29.0.92; buffer-file-coding-system changes unexpectedly after saving Resent-From: miranda@pulusound.fi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 20 Jun 2023 09:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64164 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Albinus Cc: 64164@debbugs.gnu.org Received: via spool by 64164-submit@debbugs.gnu.org id=B64164.168725295128865 (code B ref 64164); Tue, 20 Jun 2023 09:23:02 +0000 Received: (at 64164) by debbugs.gnu.org; 20 Jun 2023 09:22:31 +0000 Received: from localhost ([127.0.0.1]:58078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBXZH-0007VU-H3 for submit@debbugs.gnu.org; Tue, 20 Jun 2023 05:22:31 -0400 Received: from caracal.ash.relay.mailchannels.net ([23.83.222.30]:61126) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBXZD-0007VJ-U8 for 64164@debbugs.gnu.org; Tue, 20 Jun 2023 05:22:29 -0400 X-Sender-Id: dreamhost|x-authsender|miranda@pulusound.fi Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 570E77E1B75; Tue, 20 Jun 2023 09:22:23 +0000 (UTC) Received: from pdx1-sub0-mail-a238.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id AC9347E062C; Tue, 20 Jun 2023 09:22:22 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1687252942; a=rsa-sha256; cv=none; b=xP/64vMWAfFr3lbsvVfRVZDVW7sFhuwfycU2WmWFsq87Z8bHpvVQ0fgfZ9RbmbLZNtFKYu 1HlG8+56OklxJjugVjYoGssQkAf0CwktacSgDs2vj4iXTtQH9hiF9yX5VjOKv68zojYB3Z Cm2holRYr3DHxXufFicWtofPNvPgrEZ5G2UEagYkdIbnOnMfIQCkvu/xjKW06UxiD8WPhL Abl9/B6yEP8QFBh3bqzUHexJyxk5rJRGQV7L3msynA95bCuyzS8/NSyXaNKZLYjjdzdWF/ 7anySkf4GG0bxo+IfatSpfndMvOoPttmhnMLbm2xPZvRF52nXmg6t6FgnOYIwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1687252942; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=9qN2Sp83bNYNh7IHwGBrlUOFYKP4TmWLW73PDjIw2YU=; b=OYhHY01k54cZ5mX6tQDYlZ3Sko+WZNKt9akHyGVRfq7T88G31M7tBbRiGkGkpNEAq2eQPf TwC7QMN2vgcc4fjQrLhBkrtx1HlQN9cNnZ8evHboiC14AbRcD5A8cM4HeTH0+t0+yimrHL 9wb4YMQhpQfXQIUISugnJ3jhuzPXaZGvrx2HeTSq1Ph554VBg2cNixcR3GNkaL+MF4jTfV pmaQ62SgBQdxxyXus+hM7bX/T13/0isR5lfZmN8WaVF2LLey9xN2PB7SfoRPfeVYEWAZi6 HNEr0iZH8e5cXR6mP1cYMgF61mV8PPRDTpJpMp1/NJ6MtVaBvB3UKQTiZS/xdg== ARC-Authentication-Results: i=1; rspamd-85899d6fcc-swczw; auth=pass smtp.auth=dreamhost smtp.mailfrom=miranda@pulusound.fi X-Sender-Id: dreamhost|x-authsender|miranda@pulusound.fi X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|miranda@pulusound.fi X-MailChannels-Auth-Id: dreamhost X-Left-Versed: 50cadfc137627343_1687252942931_944531340 X-MC-Loop-Signature: 1687252942931:211417181 X-MC-Ingress-Time: 1687252942931 Received: from pdx1-sub0-mail-a238.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.104.253.208 (trex/6.9.1); Tue, 20 Jun 2023 09:22:22 +0000 Received: from webmail.dreamhost.com (ip-66-33-200-4.dreamhost.com [66.33.200.4]) (Authenticated sender: miranda@pulusound.fi) by pdx1-sub0-mail-a238.dreamhost.com (Postfix) with ESMTPA id 4Qlh3y39pbzBD; Tue, 20 Jun 2023 02:22:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pulusound.fi; s=dreamhost; t=1687252942; bh=9qN2Sp83bNYNh7IHwGBrlUOFYKP4TmWLW73PDjIw2YU=; h=Date:From:To:Cc:Subject:Content-Type:Content-Transfer-Encoding; b=YHjhG4Nx5k2chQVGVLCtC2ig6NzOTNL/1xxkRvmSINVEHIsiCGDUO1hvdHWQoGatJ SGjgB3sjzE9ThNZdzLAR+1TRxvAb/+LX20A37QS0nz7yFTJ5c8fNDP6ehhe/M16b9P IxWN3Y5AyJfEOJBuryq0+J0Lm8BGzwn5SA6lFnGFo4DdQ8CYbMtZs68r4VghKSuTCX YMNLIXpg21ztY2dQ1zhPSYBoI1aKxxFdTrFc3Yl7AxfB3yRxNvz0vt1YP5vnIlPVWN CHntUz9NjoSNLzXnLhqw5P4ZhEGLjggz+5BwGI1TQg7RTDVKsn+R1ucVu8d1/nF6eZ Wv2x1XV5VtYtQ== MIME-Version: 1.0 Date: Tue, 20 Jun 2023 12:22:22 +0300 From: miranda@pulusound.fi In-Reply-To: <24e2cd85-0f23-40a9-838a-3eb7e2c1877f@pulusound.fi> References: <87y1kf2w3k.fsf@gmx.de> <24e2cd85-0f23-40a9-838a-3eb7e2c1877f@pulusound.fi> User-Agent: Roundcube Webmail/1.4.3 Message-ID: X-Sender: miranda@pulusound.fi Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: 3.6 (+++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On 2023-06-20 01:29, miranda kastemaa wrote: > 19 Jun 2023 20.36.06 Michael Albinus : >> Well, if Tramp detects a remote macOS system, it converts the coding >> system to `utf- [...] Content analysis details: (3.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [66.33.200.4 listed in zen.spamhaus.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [23.83.222.30 listed in list.dnswl.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: 2.6 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On 2023-06-20 01:29, miranda kastemaa wrote: > 19 Jun 2023 20.36.06 Michael Albinus : >> Well, if Tramp detects a remote macOS system, it converts the coding >> system to `utf- [...] Content analysis details: (2.6 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [66.33.200.4 listed in zen.spamhaus.org] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [23.83.222.30 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 SPF_NONE SPF: sender does not publish an SPF Record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager On 2023-06-20 01:29, miranda kastemaa wrote: > 19 Jun 2023 20.36.06 Michael Albinus : >> Well, if Tramp detects a remote macOS system, it converts the coding >> system to `utf-8-hfs-mac', see function >> `tramp-open-connection-setup-interactive-shell'. This heuristic works >> for many years w/o complaints from users. > > thank you for pointing me towards this function. it is late here but > this will help me do some more digging tomorrow. after looking at `tramp-open-connection-setup-interactive-shell` a little, i wonder whether the coding system here is the relevant one. if i understand correctly, this seems to be setting the coding system for the connection process, rather than the individual file buffers. on both 29.0.92 and 28.2, the Tramp debug output here is: > tramp-open-connection-setup-interactive-shell (5) # Setting coding > system to ‘utf-8-hfs’ and ‘utf-8-hfs-mac’ neither of which is a -unix coding system as (initially) reported by `buffer-file-coding-system`. opening files produces more debug output, but i failed to find any more salient info in it (i tried searching for "coding", "utf", "-unix", "-mac" etc). let me know if you have any further suggestions for debugging. best, miranda From unknown Sun Jun 22 00:28:35 2025 X-Loop: help-debbugs@gnu.org Subject: bug#64164: 29.0.92; buffer-file-coding-system changes unexpectedly after saving Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 03 Aug 2023 15:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64164 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: miranda@pulusound.fi Cc: 64164@debbugs.gnu.org Received: via spool by 64164-submit@debbugs.gnu.org id=B64164.169107508432016 (code B ref 64164); Thu, 03 Aug 2023 15:05:01 +0000 Received: (at 64164) by debbugs.gnu.org; 3 Aug 2023 15:04:44 +0000 Received: from localhost ([127.0.0.1]:52698 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRZsZ-0008KJ-La for submit@debbugs.gnu.org; Thu, 03 Aug 2023 11:04:43 -0400 Received: from mout.gmx.net ([212.227.17.21]:54145) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qRZsX-0008K6-AB for 64164@debbugs.gnu.org; Thu, 03 Aug 2023 11:04:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1691075070; x=1691679870; i=michael.albinus@gmx.de; bh=rIBMdyZW4cP+5Y3u30iMc9sauwdkNb8Wb8lzlIURlyM=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=Ki6GGviTLeuy504zrEeAJ+/YZBqWgrPD/MtQQK8l0/2I1FYQ2ilxVdADVbD4SS03J7PxNXC 64r7He6qHNJy7OL0aWLGA/yLIEXew0X4on6FxZBkQQ09E9WU12zvup9GZ70X2YV3VdxHFKQWu mlAwLw7iBm2BMBXiscCwwTVVJBTrY3z1167lHuBMWtSjRw0oHR1wuXy0wCAVu8eGAdnqFiWbX 5GstYmCQ1C/HPpWkmDLtuSSXKf1BXCADtVkKCfwgI1+04BLRm1bZ4m+biqf2e2nQU6Qfl3LnW saTYczTg96T02hsDMJqKYbz4mignHY5o4IFJa5K7+V0lcdOOYtnA== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.27]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1N3bSt-1piaFx34vT-010atu; Thu, 03 Aug 2023 17:04:30 +0200 From: Michael Albinus In-Reply-To: (miranda@pulusound.fi's message of "Tue, 20 Jun 2023 12:22:22 +0300") References: <87y1kf2w3k.fsf@gmx.de> <24e2cd85-0f23-40a9-838a-3eb7e2c1877f@pulusound.fi> Date: Thu, 03 Aug 2023 17:04:29 +0200 Message-ID: <87pm44xj42.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:1joEBGl5JNTzm2TnL8YHEbMgYEa5g4jCip6Hm7w5CkSArff0Uwi JIe49WQiXVXqDTIrDsv9k7qXjJD7nm0NJl9NMHmqUSQQVSG8lfiQy+XQ7vXedGUqDX3sbHx f/Z6wHGh7qgHNMvFPmTjxCtXUWj8TvnFX8o4m6+W21YJOwKuyFx5wm3w8gmCfkECISjKxSG pEi9a61XOJngQfaHbv+fQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:0k65B4pZqyk=;TiVl8enH+o3JP+8Mjh3vlCv+elO 3tWAQOnyELTtY4CgXT2vad2chhrk0tfNXmlIwpKjaOJBjf/CKwjGOofwNCH3dqWfjD4ga8K2m e211DbumdAlAP05GtEOe4fsamRqvVLWiLITOR0nw1R//RZpzhyaqCC8OyLxXIQBhPn3P5pZBa Xxo+ktNRLVnlOrkT19baNri7EvM1TCtTFJOCHESlv6BtTlU9w6O4WCSR99WxwXDGhw30VcWoS hjo6t0snGKSzZcaBhHfslXP+85wHQ/RFKrhA06k5x7fFjkfp6VsN6IvDTa7eXuxwaPu+Hrvxt jc7e0ejEuTxfkFPhknkXEZeb7xafQ413rVA0MmFG0u2/W1pZlXaqLdCaUX9rtxaTtqYvyqDon pKRjUF4IIaAj7XkeGHcO/FDgbQWlBKjFWMNOJAcQ6TFB617hb6JxmC9yRvip6mNuO9Q93lh8g Ai1ABlMXvLTU2g93WpCERprz+j+mtBaxdz0Jwewxi4krDIGAOictKdZiePFGXNFtOEfvsQkBC SkLaspH8gntHzSaVA6s9Rgncc8vFrYGnUg/H9yDNg3taf7cRW75F/7ngKnIf7Phd+u/dnXYjS AarhnKJf241qiQgSrQDyTbquClfUy0COBNwH49Y3vnV+GGbaJKZCDnvL2o6xD4zzNT7mkAeN3 HMz5adLmItrRs1O+TggHI0Sn+ZZvsWKRPkBdSbQ1qxv8DZ8Ox7wLs5BUDnNLffS6tCAkYSb5z hsGnPoQoAbB5m0RRgJGWD5tJ5sWZqOblCCVdn8UnEOBmZGln+L0CJELkuDN2iMRa/lLsm/2mK FkZlxRJP0UPuZTwFQeYRHhaOriPXzZ+yWPRK9CjCbUoG6vz7po8ZkBKl3jVL/9dkqMys0G/0a BzthmXL7/qCsklMShPZuQGB0VFXKQUYM195j/ze5ldc4/p1pErSzf1zdkWYaQaiIkQ6d5Q6cz vVXJcw== X-Spam-Score: -0.7 (/) 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: -1.7 (-) miranda@pulusound.fi writes: Hi Miranda, > let me know if you have any further suggestions for debugging. I was quiet for a while because I couldn't give you further advice. Since the problem happened on macOS, which I don't use, I couldn't debug. Fortunately, there's another bug report bug#65022, which looks very similar to your problem. Here I could debug. Could you please check, whether the patch I have proposed in helps you? > best, > miranda Best regards, Michael. From unknown Sun Jun 22 00:28:35 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: miranda@pulusound.fi Subject: bug#64164: closed (Re: bug#64164: 29.0.92; buffer-file-coding-system changes unexpectedly after saving) Message-ID: References: <87h6ojig4a.fsf@gmx.de> X-Gnu-PR-Message: they-closed 64164 X-Gnu-PR-Package: emacs Reply-To: 64164@debbugs.gnu.org Date: Mon, 28 Aug 2023 11:04:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1693220642-27664-1" This is a multi-part message in MIME format... ------------=_1693220642-27664-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #64164: 29.0.92; buffer-file-coding-system changes unexpectedly after saving which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 64164@debbugs.gnu.org. --=20 64164: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D64164 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1693220642-27664-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 64164-done) by debbugs.gnu.org; 28 Aug 2023 11:03:22 +0000 Received: from localhost ([127.0.0.1]:47229 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qaa1h-0007BH-KN for submit@debbugs.gnu.org; Mon, 28 Aug 2023 07:03:21 -0400 Received: from mout.gmx.net ([212.227.17.22]:50755) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qaa1e-0007Ax-Ql for 64164-done@debbugs.gnu.org; Mon, 28 Aug 2023 07:03:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1693220582; x=1693825382; i=michael.albinus@gmx.de; bh=DYrLZ7HnxIpw3xhd32Xxoa2gmXDyjR/5tTpWA2rOn2U=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=iybKuATn9IJx4B4m802qixoptebHzIgpo4os1n97uTdRlwzNQjZdlWHnnObbRRfdZJ3Xtzx CO3Ww8kVRaZA5xAWz2EtSv3j73Ijlnp0XoIOJyhp5HWdlydhoQcNpA2RSRIk+5fGD9sN1I6xI /Fj8KHtZuTyFwC1/rvWiziqyH0grSRKoiJm2GwnhidIPKeB63GKGqF4zdGEhto4Q6YmuDc76W aTeY7u1Jl2VaUKjCNpJBNKoN72RRiTM3HUE0ARIAlRJMF6igcGLEqhEN6SlHtnJCoOqmt5cLd 0VO34zXOfEwJt1TRyxyKFyle+PB8QOJHjP6nvvIMKdj1NB1sC7vw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.16]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mt79F-1phv2N01ur-00tRCp; Mon, 28 Aug 2023 13:03:02 +0200 From: Michael Albinus To: miranda@pulusound.fi Subject: Re: bug#64164: 29.0.92; buffer-file-coding-system changes unexpectedly after saving In-Reply-To: <87pm44xj42.fsf@gmx.de> (Michael Albinus's message of "Thu, 03 Aug 2023 17:04:29 +0200") References: <87y1kf2w3k.fsf@gmx.de> <24e2cd85-0f23-40a9-838a-3eb7e2c1877f@pulusound.fi> <87pm44xj42.fsf@gmx.de> Date: Mon, 28 Aug 2023 13:03:01 +0200 Message-ID: <87h6ojig4a.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:xT+QEyPG4XKyxd/8WC3KL1rh9kjZP7UFM+lOLkcN6kBXqNfgMd4 1F3jNaVKeYcvke5AG707IkwDZ9bpbD21ZnjMauMkSVPeogTalcZNEutEWC1y+B9K/IufuCj CdINkVxLUy9LbysK8akqZh9dg+YJbmYhYSVkPtWHwtevtwNb2H3PXzMKON4c0xHj4Amg9Sk ybDfdkqyGt3QpY9PKWQTA== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:F2riVG3dJ+w=;WXubEz6GtJ94r/fKNTsFFp5QFa4 MWHG4Cbxu8enH8WxKkgKYNu0f3pDW63pGoWJ4G/0qNX7w472hOwFwTJ+WfPuIuB/dxpD6O1y7 w96rdyWbFgGy5A5UnGfSDJEYluF1a/2+5WCivKQ04ON1Hbf0ID2bfmbjxnKLvL0T0ffiVcrko JTFwoQG7BtkqMQX4qlJt1FYmXOD6why/NCtvGG04PXMiRZkEVITr+5OvsUgs5XfYsmiRn+Bqj BlfN/CmD2I5VjCV4J0R4HueVLM9tfT2juqHo1tko1K0mh2f7DdZDWX2q4NhcASHW6L7OjlBXX 7oeDbRpixs5WG0DkP7fHUGbEaO5vuAuX/qBSwbJJtc2/+NiWjT6c2n28zD/hiPvB8mSH8m5R0 CqPjltOrFlljmZGUp2ppj8izqtt3D049CcEUEjUUcxF19qLm9uNcahMuokmnf4pgZivfg4su8 DWyfemHOYxlM1Kqnq6464GR8xHuiiYZKPDts03CPpNrlV8Y9Pe0zQmb/p2UO0mXUES7dVmQr0 jSKGTvuO+rnYQ+SmAkXT8BD8DTyVf0RK112N1zOHOTnwbMzClRyHoUyqTxVakBF1a/XQcXqPQ sv5jO6tPCmPpE5u6NKB4+DliLR8KYFV6Ko3hVIO1daMwDLdeKFgeIklYB+zom8RTu2IHo4yAd NWAiNskwdkMf9AZ9MIsw88PDZGzoai1tALz6UFPASWxc4RnMBJ653z3xiOxe23KDF4svbKbgi pw3ZDx8965/C0V8QRkPUHIELX70QltFQqI1siZ+PK8ZI9uBRHHQ4xmPaIQH++SwOb0M8tzxDQ r6rLo1IosbpKYMvo9OWd0i5dwqROTXVAd4X0RpUcNXtYeT4QfgwXYjTPdACmCCM/PVlSVydPl D9jDxnzBuLs3rGmtSpK5UXCTW7vwuCzllPe9ySshYXgNqvWXoGHnUlqch/+/+u6wp1Ng7uVx9 smU7Pw== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 64164-done Cc: 64164-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: -1.7 (-) Version: 29.2 Michael Albinus writes: Hi Miranda, > Fortunately, there's another bug report bug#65022, which looks very > similar to your problem. Here I could debug. Could you please check, > whether the patch I have proposed in > helps you? No further comment, so I assume it is working. Closing the bug. Best regards, Michael. ------------=_1693220642-27664-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 19 Jun 2023 11:21:04 +0000 Received: from localhost ([127.0.0.1]:55627 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBCwQ-0001VR-IY for submit@debbugs.gnu.org; Mon, 19 Jun 2023 07:21:03 -0400 Received: from lists.gnu.org ([209.51.188.17]:46200) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBBds-0004aA-78 for submit@debbugs.gnu.org; Mon, 19 Jun 2023 05:57:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qBBdr-0003Cb-KH for bug-gnu-emacs@gnu.org; Mon, 19 Jun 2023 05:57:47 -0400 Received: from cyan.elm.relay.mailchannels.net ([23.83.212.47]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qBBdp-0002KH-Bt for bug-gnu-emacs@gnu.org; Mon, 19 Jun 2023 05:57:47 -0400 X-Sender-Id: dreamhost|x-authsender|miranda@pulusound.fi Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 80DBC141333 for ; Mon, 19 Jun 2023 09:57:40 +0000 (UTC) Received: from pdx1-sub0-mail-a258.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id E278E14104A for ; Mon, 19 Jun 2023 09:57:39 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1687168659; a=rsa-sha256; cv=none; b=B11FOkIAWhSDsRaYpWEzZeWX+v6VwaEvU6PF//v7jkXoqrkajbfTvRaNmWyCJIzqiIiKrh iA5J51v2f8jbGOPgkitW9KwnG3KvXeWNtA983orh1/9a2xdZNS77Hbpu6T3OVjpASKqOF+ 0u3yP61wYKt+NU5K+Qv/izEp0XmJpz/6lLF0a7DrLxOvb9+MLPISB7WdOtzVrb0MSERlvv zm1dK6AVJqJHlFfQskW6jgb7mmlS6n80E/Kh8SpoIvEGkfwFkWLL2B8W0OHTD12UnUR95V 9cQRYbzB4h3phLc9x8BLXRPj17ckBG+uupqMtf6d/cbmvT20FVQvKDb3vWQgdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1687168659; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:dkim-signature; bh=EYxamPeTT1fenQZ/o2twmlmuFXBamvYkPFjp03bOuzc=; b=PfOeYf+vvuKQzD9CMI64EbsHNHRkdDqDV3nWMbh5kSA3jFRe0/Z51d+KB5HuHwzVjX/bDQ 48mt34buWGBZVJ/pvPUMmriKqNVI81K8ooUIkJvGz/UnXTCvslLy7KwCcdvn+AS/hwkBvQ 4aYZ9JPVkvINt0Lhj/SEADwh+aWfN0VlcSWY0A2X9W8oMD1WDtUnaVm+PF445faYXN0m47 g8X38MgV6LTCa6zIIZl4iqfv/owWN62gxiLPuAbKmQ/6pap2zehmypCcKIlMNSzTECLS8u 9r5FNtYDiFLkEhNK5osYk/o0xUy+ZYV0qT3KOKL4iHdH6wqcbrpvYtnPRrDG1Q== ARC-Authentication-Results: i=1; rspamd-9fcc56855-wbgqd; auth=pass smtp.auth=dreamhost smtp.mailfrom=miranda@pulusound.fi X-Sender-Id: dreamhost|x-authsender|miranda@pulusound.fi X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|miranda@pulusound.fi X-MailChannels-Auth-Id: dreamhost X-Juvenile-Lyrical: 6a8c47f364268bc8_1687168660142_1712111859 X-MC-Loop-Signature: 1687168660142:1181065624 X-MC-Ingress-Time: 1687168660142 Received: from pdx1-sub0-mail-a258.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.103.24.91 (trex/6.9.1); Mon, 19 Jun 2023 09:57:40 +0000 Received: from webmail.dreamhost.com (ip-66-33-200-4.dreamhost.com [66.33.200.4]) (Authenticated sender: miranda@pulusound.fi) by pdx1-sub0-mail-a258.dreamhost.com (Postfix) with ESMTPA id 4Ql4v756c8z2Y for ; Mon, 19 Jun 2023 02:57:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pulusound.fi; s=dreamhost; t=1687168659; bh=EYxamPeTT1fenQZ/o2twmlmuFXBamvYkPFjp03bOuzc=; h=Date:From:To:Subject:Content-Type:Content-Transfer-Encoding; b=YwoOedgom/QTOgSxWrxXPWleQjfKuXPbgpUHAA7+OcnFgUlbNtcRhFLp2yxik1/jf i4pr/64ZwPphMCnLd++GejAkaNmqcXDW49z1wh/L4oDlRRMuuxaeWyhbVk25PFrSkI 1/rm2xmV0U1VlU08bAptMd6ly7eI+F0RI+WfgoG6JkxWZ8eM+ChLbJrWIahiI7mvIe L8qx6nxaMlZZkR71gnMzVHkInW8GQD+popo1EjYrUNdH3BAlmJVKKVxqFM7Otzb0LC BihkEHMHC6td+sRO6SsQriJeeQJqsCqdbMiDawKSBAWJOYDA/1GfBHYwvWJzmHRMJi IjLKm9E8LW1Xg== MIME-Version: 1.0 Date: Mon, 19 Jun 2023 12:57:39 +0300 From: miranda@pulusound.fi To: bug-gnu-emacs@gnu.org Subject: 29.0.92; buffer-file-coding-system changes unexpectedly after saving User-Agent: Roundcube Webmail/1.4.3 Message-ID: X-Sender: miranda@pulusound.fi Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: none client-ip=23.83.212.47; envelope-from=miranda@pulusound.fi; helo=cyan.elm.relay.mailchannels.net X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SBL_CSS=3.335, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: i am trying to edit remote files on another macOS system, using Tramp's ssh: method. i am running `emacs -Q`. when i open any file on this remote system, the initial value of `buffer-file-coding-system` is what i would expect, i.e. undecided-unix or utf-8-unix, depending on whether the file contains non-ASCII [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [66.33.200.4 listed in zen.spamhaus.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.0 SPF_NONE SPF: sender does not publish an SPF Record -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 19 Jun 2023 07:21:01 -0400 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: 0.3 (/) i am trying to edit remote files on another macOS system, using Tramp's ssh: method. i am running `emacs -Q`. when i open any file on this remote system, the initial value of `buffer-file-coding-system` is what i would expect, i.e. undecided-unix or utf-8-unix, depending on whether the file contains non-ASCII characters. however, after saving the file, `buffer-file-coding-system` suddenly changes to utf-8-hfs-mac. any subsequent save then changes all the line endings to CR, which i have not actively used since 2001 or so... :-) i can use `set-buffer-file-coding-system` to set utf-8-unix, but the problem then occurs again after the next save. other remotes (Linux systems) do not exhibit the issue. Emacs 28.2 works as expected. i am using the build from https://emacsformacosx.com/builds best, miranda In GNU Emacs 29.0.92 (build 1, x86_64-apple-darwin15.6.0, NS appkit-1404.47 Version 10.11.6 (Build 15G22010)) of 2023-06-18 built on builder10-11.lan Windowing system distributor 'Apple', version 10.3.1561 System Description: Mac OS X 10.13.6 Configured using: 'configure --with-ns '--enable-locallisppath=/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules CFLAGS=-DNSTextAlignmentRight=NSRightTextAlignment --with-x-toolkit=no' Configured features: ACL GMP GNUTLS JSON LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER SQLITE3 THREADS TOOLKIT_SCROLL_BARS ZLIB Important settings: value of $LANG: fi_FI.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction 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 puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win 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 seq simple cl-generic indonesian philippine 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 theme-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 kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 37468 8247) (symbols 48 5045 0) (strings 32 12567 2096) (string-bytes 1 355935) (vectors 16 10369) (vector-slots 8 155077 9845) (floats 8 21 23) (intervals 56 217 0) (buffers 976 10)) ------------=_1693220642-27664-1--