[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#65022: 29.1; Tramp resets file buffer encoding to UTF-8
From: |
Michael Albinus |
Subject: |
bug#65022: 29.1; Tramp resets file buffer encoding to UTF-8 |
Date: |
Thu, 03 Aug 2023 16:58:49 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Георгий Потапов via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs@gnu.org> writes:
Hi Georgij,
> I edit my files in cp1251 encoding.
>
> This works fine on local host but when I save files on remote host
> using tramp it resets encoding to utf-8 constantly.
Thanks for the report. I could reproduce the problem locally.
It took me a while for debugging, but finally I could fix it. It was a
stupid scoping error when changing something between Emacs 28 and Emacs
29. The fix, which works for me, is appended.
It is a little bit tricky to install the patch, because it is in a
defmacro of tramp.el. This macro is used in tramp-sh.el. You must
compile both files in this order. Could you pls check?
Best regards, Michael.
txttTOzNz1BZ_.txt
Description: Text Data