From: Rommerskirchen Heinrich <Heinrich.Rommerskirchen@icn.siemens.de>
Subject: Emacs doesn't write with the encoding it used for reading
Date: Fri, 5 Apr 2002 14:59:54 +0200 [thread overview]
Message-ID: <2D8309604314D41187850008C7BB0CB24A9913@MCHH248E> (raw)
This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.
Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.
In GNU Emacs 21.2.1 (i386-msvc-nt4.0.1381)
of 2002-03-19 on buffy
configured using `configure --with-msvc (12.00)'
Important settings:
value of $LC_ALL: nil
value of $LC_COLLATE: nil
value of $LC_CTYPE: nil
value of $LC_MESSAGES: nil
value of $LC_MONETARY: nil
value of $LC_NUMERIC: nil
value of $LC_TIME: nil
value of $LANG: DEU
locale-coding-system: iso-latin-1
default-enable-multibyte-characters: t
If a file contains a mixture of German DOS-encoded text (cp850) and
German Windows-encoded text it is read as latin1 but emacs will not
write it back as latin1.
Simple Example:
A file contains the 4 Bytes 0xE4 0x84 0x0D 0x0A. (Umlaut-a in DOS and Windows
encoding followed by CR LF).
Emacs unter German Windows reads it as latin1. If I now type a
character and delete it again, so that I have the same content,
emacs will not write it back as latin1 but instead suggests a few
encodings with default utf8.
Saving with utf8 gives a file with 6 bytes, which emacs again reads as latin1, but doesn't
write as latin1, choosing again utf8 gives a file with 10 bytes and this doesn't
change anymore, but contains neither of the original two characters.
Saving the original file (4 bytes) with raw-text gives a file with 5 bytes which
doesn't change anymore on reading and writing (emacs uses encoding raw-text-dos), it contains
the original bytes plus a spurious \201 (Umlaut-u in DOS encoding)
Recent input:
C-x C-f / t e m p / x x <return> <end> SPC <backspace>
C-x C-s C-g <menu-bar> <help-menu> <report-emacs-b
ug>
Recent messages:
(C:\bin\emacs-21.2\bin\emacs.exe -q --no-site-file)
For information about the GNU Project and its goals, type C-h C-p.
Loading image...done
Loading view...done
byte-code: Quit
Loading emacsbug...done
Regards
Heinz
next reply other threads:[~2002-04-05 12:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-05 12:59 Rommerskirchen Heinrich [this message]
2002-04-05 16:17 ` Emacs doesn't write with the encoding it used for reading Eli Zaretskii
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2D8309604314D41187850008C7BB0CB24A9913@MCHH248E \
--to=heinrich.rommerskirchen@icn.siemens.de \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).