From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: How does one disable (UTF-8?) input "fixup"?
Date: Mon, 11 Jan 2016 17:49:19 +0200 [thread overview]
Message-ID: <83oacsktfk.fsf@gnu.org> (raw)
In-Reply-To: <ydio30l8uq.fsf@UBEblock.psr.com> (message from Winston on Mon, 11 Jan 2016 05:16:13 -0500)
> From: Winston <wbe@UBEBLOCK.psr.com.invalid>
> Date: Mon, 11 Jan 2016 05:16:13 -0500
>
> What mode/variable controls text conversion/fixup when reading a file?
>
> I have a mostly ASCII text file that contains a few stray non-ASCII
> characters.
You need to prefix "C-x C-f" with "C-x RET c us-ascii RET". See the
node "Text Coding" in the Emacs manual.
Or use "M-x find-file-literally" to disable any conversions.
> However, if I rename the file "foo.exe", do "emacs foo.exe" and search,
> I see the original characters (no change).
Emacs by default visits binary files without any conversions.
> Curiously, after "emacs foo.exe", I did find-file-other-window to read
> in "foo", and the characters were NOT altered.
Because the file is already in an Emacs buffer, so Emacs doesn't
re-read it, it just reuses that buffer's contents.
> What controls whether that conversion is done or not? Is there an easy
> way to turn it on/off? I didn't see anything in the results from
> apropos "-mode" that looked relevant.
Text decoding is not a mode, it is a basic feature of any I/O Emacs
does.
next prev parent reply other threads:[~2016-01-11 15:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-11 10:16 How does one disable (UTF-8?) input "fixup"? Winston
2016-01-11 15:49 ` Eli Zaretskii [this message]
[not found] ` <mailman.2153.1452527358.843.help-gnu-emacs@gnu.org>
2016-01-12 7:51 ` Winston
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=83oacsktfk.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=help-gnu-emacs@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.
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).