From: Paul Eggert <eggert@cs.ucla.edu>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 21574@debbugs.gnu.org
Subject: bug#21574: po-mode mishandles ASCII files
Date: Mon, 28 Sep 2015 07:55:12 -0700 [thread overview]
Message-ID: <560954D0.2010503@cs.ucla.edu> (raw)
In-Reply-To: <838u7qetiu.fsf@gnu.org>
On 09/28/2015 03:18 AM, Eli Zaretskii wrote:
> do we have a similar problem in other files that have entries in
> file-coding-system-alist, like XML files or LaTeX files?
Not with XML, because xml-find-file-coding-system only tries
detect-coding-region.
But there is a problem with LaTeX. For example, if I visit a file like
this:
\usepackage[ascii]{inputenc}
hello
The default coding system for saving the buffer is us-ascii-unix, which
is correct (and is better than what we get with .po files). But if I
then insert a non-ASCII character, say á, and type C-x C-s, Emacs
changes the coding system to utf-8-unix without asking and saves the
file. If I then revisit the file I get garbage: the á is decoded as two
bytes and I see \303\241 on the screen.
prev parent reply other threads:[~2015-09-28 14:55 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-27 20:01 bug#21574: po-mode mishandles ASCII files Paul Eggert
2015-09-27 23:55 ` Glenn Morris
2015-09-27 23:56 ` Glenn Morris
2015-09-27 23:58 ` Glenn Morris
2015-09-28 2:20 ` Paul Eggert
2015-09-28 6:43 ` Eli Zaretskii
2015-09-28 10:18 ` Eli Zaretskii
2015-09-28 14:55 ` Paul Eggert [this message]
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=560954D0.2010503@cs.ucla.edu \
--to=eggert@cs.ucla.edu \
--cc=21574@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.