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#66748: 29.1; Remote files lose their coding system & line ending style Date: Thu, 26 Oct 2023 08:08:36 -0400 Message-ID: References: <87edhi8tz2.fsf@gmx.de> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000001f5b7306089d6fad" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21259"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 66748@debbugs.gnu.org To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 26 14:09:52 2023 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 1qvzBQ-0005Os-F2 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 26 Oct 2023 14:09:52 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvzBC-0003Y0-PX; Thu, 26 Oct 2023 08:09:38 -0400 Original-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 1qvzB8-0003SC-Vh for bug-gnu-emacs@gnu.org; Thu, 26 Oct 2023 08:09:35 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qvzB5-0002ly-Qr for bug-gnu-emacs@gnu.org; Thu, 26 Oct 2023 08:09:31 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qvzBa-0005cL-HP for bug-gnu-emacs@gnu.org; Thu, 26 Oct 2023 08:10: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, 26 Oct 2023 12:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66748 X-GNU-PR-Package: emacs Original-Received: via spool by 66748-submit@debbugs.gnu.org id=B66748.169832216821526 (code B ref 66748); Thu, 26 Oct 2023 12:10:02 +0000 Original-Received: (at 66748) by debbugs.gnu.org; 26 Oct 2023 12:09:28 +0000 Original-Received: from localhost ([127.0.0.1]:60729 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvzB1-0005b7-Oj for submit@debbugs.gnu.org; Thu, 26 Oct 2023 08:09:28 -0400 Original-Received: from mail-qt1-x82d.google.com ([2607:f8b0:4864:20::82d]:51657) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvzAy-0005an-7u for 66748@debbugs.gnu.org; Thu, 26 Oct 2023 08:09:26 -0400 Original-Received: by mail-qt1-x82d.google.com with SMTP id d75a77b69052e-41cc56255e3so5358771cf.3 for <66748@debbugs.gnu.org>; Thu, 26 Oct 2023 05:08:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698322127; x=1698926927; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=YS4NeN2StwdSJ8/typ6vbBms6xecnUm/CtiX8Mf587Q=; b=dtTKq4XoYO8xG7i1bCUKRdGzhea7sFWuRZMB3PNOVBWMvE/rdm6CK0DY4BQ/D2YsOm lry3Awy3iym1QwoQNiXRPEQw9kU/VDjPpyDzIK6hqSfTVTfVpqCpHcxBXi7GLLq70hMG IN+zh6/L7YEzcCjXnBRsiCASmL8wbMeoFxrmudQHYs/Jg6ocobOnX6bLZAWZMkfmiq6W 4U1ArHUn67wdMP8EiOFoO2LRydmSW6YxvDXMPM3GBu4YKOR+OEygGSHTe7MhHisxvFii gN3ekc8zKPIhnGovAmGxnTFFDA7oDTreo1+LmQYnH+vQiB5u95vhanXnQsfgeGp5X2Wn OvGA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698322127; x=1698926927; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=YS4NeN2StwdSJ8/typ6vbBms6xecnUm/CtiX8Mf587Q=; b=BAR30jSzM3QHo4DQ9JSy9S7xfAOgdWroVn6OMjsJ7GAr6W8kIcAo5j7z1dCUtDqpW+ AqJL4tx140QDVed2EHxY2bXqWn5sX46nBr+10wlDQw6TQ6IDWRCwRzGzQe8hahtAiKzR C47PvDbWyzAyZjAZ7TGBFRYf4XwYDGl87xnSiKDYanb/iAvVB4qHyY/80WIf/prGVa+w ivSl85K07ZZTzrG2iYw1yA8nJ9GYq5dgKlXp8mY+zSMd5UgU7GAO17Ywv3KKPRudqWEc Xbu6+AwxUUOdNpsOcxpQLp//isDX+hi+O7W6idvbFXdX5tB5x/74KMUaj6mzfoNAtBja klIQ== X-Gm-Message-State: AOJu0YzjBm9WBHL6g3pp/QIm1Lowq0g0AKqfa9sqjGPwrKiCT4XG4ltN aGwZJFep9DblmqHBEwMyLgvoQImiGpuU1zB+heosd5ti X-Google-Smtp-Source: AGHT+IEw+rXGn4U0F3HkU0AKXmfNEJsXKaOoc36vZ6C8FGtMls0ow/yRf6P/FOzl8T8PdhWemvfNRTGdS291edOXnAY= X-Received: by 2002:ac8:5791:0:b0:41e:1e20:2ba7 with SMTP id v17-20020ac85791000000b0041e1e202ba7mr14452984qta.38.1698322127475; Thu, 26 Oct 2023 05:08:47 -0700 (PDT) In-Reply-To: <87edhi8tz2.fsf@gmx.de> 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:273269 Archived-At: --0000000000001f5b7306089d6fad Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Yes, that appears to be the same thing. Thanks for the pointer and sorry for the duplicate. Dan On Wed, Oct 25, 2023 at 1:58=E2=80=AFPM Michael Albinus wrote: > Dan McCarthy writes: > > Hi Dan, > > > I visited a remote file with DOS line endings over SSH, added a line > > and > > saved. The file still has \r\n at every line, but now Emacs reports > > "Unix-style LF" as the line-ending style; if I add more text and save > > again, the line endings are converted to \n. > > > > Something similar happens with remote files in iso-latin-1. After > > saving, they're converted to utf-8-unix. I noticed this in `git diff`: > > it reported changes in some non-ASCII text that I hadn't touched, > > which was surprising. > > > > Neither problem occurs with local files. > > This sounds like bug#65022. Please read the discussion at > https://debbugs.gnu.org/65022, which contains also a patch which you > might try. It will be fixed in the upcoming Emacs 29.2. > > Best regards, Michael. > --0000000000001f5b7306089d6fad Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yes, that appears to be the same thing. Thanks for th= e pointer and sorry for the duplicate.

Dan

On Wed, Oct 25, 2023 at 1:58=E2=80=AFPM Michael Albinus <michael.albinus@gmx.de> wrote:
Dan McCarthy <daniel.c.mccarthy= @gmail.com> writes:

Hi Dan,

> I visited a remote file with DOS line endings over SSH, added a line > and
> saved. The file still has \r\n at every line, but now Emacs reports > "Unix-style LF" as the line-ending style; if I add more text= and save
> again, the line endings are converted to \n.
>
> Something similar happens with remote files in iso-latin-1. After
> saving, they're converted to utf-8-unix. I noticed this in `git di= ff`:
> it reported changes in some non-ASCII text that I hadn't touched,<= br> > which was surprising.
>
> Neither problem occurs with local files.

This sounds like bug#65022. Please read the discussion at
https://debbugs.gnu.org/65022, which contains also a patch which yo= u
might try. It will be fixed in the upcoming Emacs 29.2.

Best regards, Michael.
--0000000000001f5b7306089d6fad--