From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: How does one disable (UTF-8?) input "fixup"? Date: Mon, 11 Jan 2016 17:49:19 +0200 Message-ID: <83oacsktfk.fsf@gnu.org> References: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1452527369 24855 80.91.229.3 (11 Jan 2016 15:49:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 11 Jan 2016 15:49:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 11 16:49:29 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aIeil-000712-Qf for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Jan 2016 16:49:27 +0100 Original-Received: from localhost ([::1]:55443 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIeil-0002I6-7C for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Jan 2016 10:49:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54313) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIeia-0002H7-I1 for help-gnu-emacs@gnu.org; Mon, 11 Jan 2016 10:49:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aIeiX-0002PI-CQ for help-gnu-emacs@gnu.org; Mon, 11 Jan 2016 10:49:16 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43800) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aIeiX-0002PE-9N for help-gnu-emacs@gnu.org; Mon, 11 Jan 2016 10:49:13 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1968 helo=HOME-C4E4A596F7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aIeiW-0003WQ-MO for help-gnu-emacs@gnu.org; Mon, 11 Jan 2016 10:49:13 -0500 In-reply-to: (message from Winston on Mon, 11 Jan 2016 05:16:13 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:108693 Archived-At: > From: Winston > 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.