From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juhana Sadeharju Newsgroups: gmane.emacs.bugs Subject: bug#58507: Emacs does not preserve the coding system Date: Mon, 24 Oct 2022 03:22:44 +0300 Message-ID: References: <83o7ue8z5f.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000f58a8a05ebbcca4b" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23861"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 58507@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Oct 24 07:33:53 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 1omq5x-0005yi-0p for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Oct 2022 07:33:53 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1omneE-0005FD-SR; Sun, 23 Oct 2022 22:57:06 -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 1omn0X-0000wh-22 for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2022 22:16:08 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1omn0V-0002wu-SY for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2022 22:16:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1omn0V-0005kD-Nm for bug-gnu-emacs@gnu.org; Sun, 23 Oct 2022 22:16:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juhana Sadeharju Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Oct 2022 02:16:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58507 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 58507-submit@debbugs.gnu.org id=B58507.166657771721984 (code B ref 58507); Mon, 24 Oct 2022 02:16:03 +0000 Original-Received: (at 58507) by debbugs.gnu.org; 24 Oct 2022 02:15:17 +0000 Original-Received: from localhost ([127.0.0.1]:46718 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ommzh-0005iJ-DH for submit@debbugs.gnu.org; Sun, 23 Oct 2022 22:15:17 -0400 Original-Received: from mail-pj1-f42.google.com ([209.85.216.42]:51160) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1omlF7-0002zv-4k for 58507@debbugs.gnu.org; Sun, 23 Oct 2022 20:23:05 -0400 Original-Received: by mail-pj1-f42.google.com with SMTP id l6so3357879pjj.0 for <58507@debbugs.gnu.org>; Sun, 23 Oct 2022 17:23:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=pcfij7d23Wx8oxvcXpd5vizBePe9p3VUODpmf5snqyY=; b=hVmNtHjL66oIVlSKd713LdRVOd9V868LxocoMdtkLS7WGF+r4eQe+gHiHPtp5/UXz3 zIt4yudSlTgDECdMq7cghK76pfhpd/G4yGD0vz+ow8cyabSYXlnD8HRFCYficJxbevHt 1wvm4agTfI+z834RJuVqDBR1w5xgA9Y3UrDK/CG5tI/uisA5n+SGBwQpz3+eSjzcF3k4 RKRobpBh3oiudd9dVHMAEfbY4EQTNrb1ymMqc4Y4IUuGrr2Mesi/gU9vW7fLGArIYwjA A6FiAr4PvtfxpyCC1qGIE8wzcSkzRoL6+2MGor0Cwf/6clbJUeZBiALjnOJlRqTH42sm 05tA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=pcfij7d23Wx8oxvcXpd5vizBePe9p3VUODpmf5snqyY=; b=leMv9f3olHRIdl3v9bwzkj6mfR0WDOBseg0pXR1UWUOoM3dkK69SOJ91Tm1K54FFtE 0vln2IDFMPKC1dchCv9Go9GyNr2K3eFNvDYaB3CTDY+53eDmG5MC6NdBBMP5yTadVfNK cXbS56C7TK1lU2nSdCZzJbdP4OdyPoh/ACU62Mqs2YsOjvRl1DIBQv1XTmAJjGhtHnoC uIbI4DkWvLbixZJVtnc/37Sbr7ecbeOtuqeECEZA6KRYy1nWorkEfkk8qWkLMZWEA3LY zamnHwlNkYKWmc7cJJl3kseNFohlYb5AMhO9UL8EvEJuBQD00eXFpPHVmysFMx3oDFMA MU0A== X-Gm-Message-State: ACrzQf3DlD93L9HCkfmgeLagXh/JLkVjSod9gGITzT0FiTXKinNk+pU7 zrZ2BIy0t/XKfLV2RYgi5XVlZ8EIUf9I4s7w0GI= X-Google-Smtp-Source: AMsMyM61adHHgGvy8yb3XsL9Nyvv/3wIB1woHWNAR+wxquHy1wrulTVj3MYrJCtNjpU9/g78RyWN7ms7/vrpVhRA/iQ= X-Received: by 2002:a17:903:1c9:b0:186:91fa:59ad with SMTP id e9-20020a17090301c900b0018691fa59admr8184034plh.35.1666570975019; Sun, 23 Oct 2022 17:22:55 -0700 (PDT) In-Reply-To: <83o7ue8z5f.fsf@gnu.org> X-Mailman-Approved-At: Sun, 23 Oct 2022 22:15:10 -0400 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: , Original-Sender: "bug-gnu-emacs" Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:246085 Archived-At: --000000000000f58a8a05ebbcca4b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello. I have now tested this with versions 24.3, 25.3 and latest 28.2. All have this problem. First I create a new file with c-x c-f. By default, it has coding system iso-latin-9-dos. I change the coding system to utf-8 via the buffer's bottombar. Char "0" changes to "U". Then I write "=C3=A4=C3=B6=C3=A4=C3=B6=C3=A4=C3=B6" and quit emacs. When I rerun the emacs and open the text, the "=C3=B6=C3=A4" looks wrong an= d coding system is back at iso-latin-9-dos. I use Total Commander's View to verify the file is ok. The file goes wrong only if I now save the buffer. What helps is c-x ret r which asks the coding system -- I type utf-8. Also helps when I add ";;; -*- coding: utf-8-dos; -*-" to the top of file. I will use this method as solution, but this is too advanced for regular users -- please check what is the problem. Windows 11 Home, ver 22H2, installed 11.10.2022, HP Pavilion Gaming Desktop TG01-2xxx pe 14. lokak. 2022 klo 13.42 Eli Zaretskii kirjoitti: > > From: Juhana Sadeharju > > Date: Fri, 14 Oct 2022 09:02:25 +0300 > > > > Hello. I did set the coding system to utf-8 but at quit/restart the fil= e > goes to iso-latin-dos and chars such as =C3=A4 > > and =C3=B6 becomes unreadable. Windows 11. Both the latest Emacs and ol= der > version 25.3 has this same > > problem. > > Please tell the details: how did you set coding system to utf-8, and > how did you see that the file goes to iso-latin-dos. We need these > details to investigate the problem. > > Thanks. > --000000000000f58a8a05ebbcca4b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello. I have now tested this with versions 24.3, 25.3 an= d latest 28.2. All have this problem.

First I create a new file with c-x c-f. By default, it has coding= system iso-latin-9-dos.

I change the coding system to utf-8 via the buffer's bottombar. Char &= quot;0" changes to "U".

Then I write "=C3=A4=C3=B6=C3=A4=C3=B6=C3=A4=C3=B6"= ; and quit emacs.

When I= rerun the emacs and open the text, the "=C3=B6=C3=A4" looks wron= g and coding system is back at iso-latin-9-dos.

=
I use Total Commander's View to verify the file= is ok. The file goes wrong only if I now save the buffer.

What helps is c-x ret r which asks the c= oding system -- I type utf-8.

Also helps when I add ";;; -*- coding: utf-8-dos; -*-" to t= he top of file. I will use this method as solution, but this is too advance= d for regular users -- please check what is the problem.


Windows 11 Hom= e, ver 22H2, installed 11.10.2022, HP Pavilion Gaming Desktop TG01-2xxx


pe 14. lokak. 2022 klo 13.42 Eli Zaretskii &l= t;eliz@gnu.org> kirjoitti:
=
> From: Juhana Sadeharju <johanra= inhill@gmail.com>
> Date: Fri, 14 Oct 2022 09:02:25 +0300
>
> Hello. I did set the coding system to utf-8 but at quit/restart the fi= le goes to iso-latin-dos and chars such as =C3=A4
> and =C3=B6 becomes unreadable. Windows 11. Both the latest Emacs and o= lder version 25.3 has this same
> problem.

Please tell the details: how did you set coding system to utf-8, and
how did you see that the file goes to iso-latin-dos.=C2=A0 We need these details to investigate the problem.

Thanks.
--000000000000f58a8a05ebbcca4b--