From: Juhana Sadeharju <johanrainhill@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 58507@debbugs.gnu.org
Subject: bug#58507: Emacs does not preserve the coding system
Date: Mon, 24 Oct 2022 03:22:44 +0300 [thread overview]
Message-ID: <CAByt=Pcq=d8RNsqr2TV=4t-QKOYOK-hOrc9ZLsXYJSNA1R16og@mail.gmail.com> (raw)
In-Reply-To: <83o7ue8z5f.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1541 bytes --]
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 "äöäöäö" and quit emacs.
When I rerun the emacs and open the text, the "öä" looks wrong 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 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 <eliz@gnu.org> kirjoitti:
> > From: Juhana Sadeharju <johanrainhill@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 file
> goes to iso-latin-dos and chars such as ä
> > and ö becomes unreadable. Windows 11. Both the latest Emacs and older
> 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.
>
[-- Attachment #2: Type: text/html, Size: 2362 bytes --]
next prev parent reply other threads:[~2022-10-24 0:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-14 6:02 bug#58507: Emacs does not preserve the coding system Juhana Sadeharju
2022-10-14 10:42 ` Eli Zaretskii
2022-10-24 0:22 ` Juhana Sadeharju [this message]
2022-10-24 12:45 ` Eli Zaretskii
[not found] ` <handler.58507.B.166574069410702.ack@debbugs.gnu.org>
2023-02-09 8:56 ` bug#58507: Acknowledgement (Emacs does not preserve the coding system) Juhana Sadeharju
2023-02-09 9:52 ` Eli Zaretskii
2023-09-03 9:30 ` bug#58507: Emacs does not preserve the coding system Stefan Kangas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAByt=Pcq=d8RNsqr2TV=4t-QKOYOK-hOrc9ZLsXYJSNA1R16og@mail.gmail.com' \
--to=johanrainhill@gmail.com \
--cc=58507@debbugs.gnu.org \
--cc=eliz@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.