From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gregory Sharp Newsgroups: gmane.emacs.help Subject: Re: Garbage display when NULL in file Date: Sun, 8 Mar 2009 08:08:56 -0700 (PDT) Message-ID: <846505.29560.qm@web32003.mail.mud.yahoo.com> Reply-To: gregsharp.geo@yahoo.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1236524968 22135 80.91.229.12 (8 Mar 2009 15:09:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 8 Mar 2009 15:09:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 08 16:10:44 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LgKeJ-0008Mu-Bl for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Mar 2009 16:10:43 +0100 Original-Received: from localhost ([127.0.0.1]:52395 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LgKcx-0006Rc-OK for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Mar 2009 11:09:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LgKce-0006RN-Ph for help-gnu-emacs@gnu.org; Sun, 08 Mar 2009 11:09:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LgKcc-0006Qw-Eu for help-gnu-emacs@gnu.org; Sun, 08 Mar 2009 11:08:59 -0400 Original-Received: from [199.232.76.173] (port=42648 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LgKcc-0006Qo-8o for help-gnu-emacs@gnu.org; Sun, 08 Mar 2009 11:08:58 -0400 Original-Received: from web32003.mail.mud.yahoo.com ([68.142.207.100]:48080) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LgKcb-0000QZ-NG for help-gnu-emacs@gnu.org; Sun, 08 Mar 2009 11:08:58 -0400 Original-Received: (qmail 31181 invoked by uid 60001); 8 Mar 2009 15:08:56 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1236524936; bh=f71oCrNJbCBnMlTOfDLlkh5d94Df5wA16hg1vOXhX2g=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=0Ay7mSZVSlqunZPxgNVLsUWZHTp3bRMc/3TjG6WEm0KLwojK6qhG+phym4IoZOdJuLGTTTbhrvtEzktxSKMtyTrfAKaiOuxKHcYSCK1ocnLXcm5p8SEU5OMI7ffgld2VgE051avK4/d8f9v6HQ0J5poZ4uPxQ7uESoQMzCkS41s= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=wEm6DmsBUUq8GLER6bh8B8qolYud0UCabSnC/tQe9fnEJsD8XOI2ICMuRFLZlR+gAA97hooj3XTHHmJiUb5m1501tDjCaLFec1tyNX/KTc56jOBZerwx4YDWAzF9mohOGgWwPu+kIjz3nM80EsPW031xyoPs/O4gpq4vJkZRzLI=; X-YMail-OSG: M9t9_qUVM1mNzsDqMhCI3nPDkhBPgpdNgMYrvhAFqyVsWxYC9XPdEAdrBMmE6MUc1ws9Hbg51LgyyIzM6cCUWvfgjfSwMgfkHqMw6He3JSE2KpfkY2PUtvCy77mzLE5Nvx8ZEa8RnrYh0T_KINfftA8rs837XEz0SjUY3aNPaISfR7uXVbXpHc2r.lyxotLcLrwEU_4L83RzX2tcSQHCXRpbaRrjqDlaitxerI9H1yiRyH8g168lVugTWbp8zclrVYumoo7z49OhDdGkFA-- Original-Received: from [24.91.154.14] by web32003.mail.mud.yahoo.com via HTTP; Sun, 08 Mar 2009 08:08:56 PDT X-Mailer: YahooMailWebService/0.7.289.1 X-detected-operating-system: by monty-python.gnu.org: FreeBSD 6.x (1) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:62764 Archived-At: > > In my current debian emacs (22.2.1), emacs seems to be incorrectly > > detecting the codeset for files with mixed ascii/data. The problem > > is that I get a garbage display (squares, kanji, etc.). How can > > I tell emacs not to detect the codeset (or revert to ascii/utf8 > > after it autodetects)? > > C-x RET c us-ascii RET C-x C-x your-file RET > > Does this do what you want? Yes! Thank you for the hint. The following also works: C-x RET c utf-8 RET C-x C-f your-file RET Why doesn't emacs use utf-8 (my locale codeset) for this file? Can I make this behavior the default? -- Greg Sharp gregsharp@geocities.com