From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: I do not want to select a coding system Date: Fri, 05 Feb 2010 10:18:21 +1100 Organization: Rapt Technologies Message-ID: <87k4usmvya.fsf@lion.rapttech.com.au> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1265327286 29796 80.91.229.12 (4 Feb 2010 23:48:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Feb 2010 23:48:06 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 05 00:48:03 2010 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.69) (envelope-from ) id 1NdBQZ-0000EL-Ec for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Feb 2010 00:48:03 +0100 Original-Received: from localhost ([127.0.0.1]:33673 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NdBNr-0003XA-Kv for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Feb 2010 18:45:15 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.glorb.com!news2.glorb.com!news.glorb.com!news.astraweb.com!border5.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux) Cancel-Lock: sha1:5JFcXstyLb7SFq5OyDNuo521ugw= Original-Lines: 48 Original-NNTP-Posting-Host: 7616494e.news.astraweb.com Original-X-Trace: DXC=>@ 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:71695 Archived-At: Bruce Korb writes: > Hi, > > Every now and then, it becomes completely impossible to save the > contents of a new file I am creating. Emacs demands I select a > coding system and none of them are plain old vanilla ASCII text.. > It seems really nice and clever and egalitarian to allow for so many > coding systems. It is really wonderful. But compilers want ASCII and > I cannot get plain ascii. In the end, I go into a shell and type: > > cat > myfile.c <<\_EOF_ > <> > _EOF_ > > and revisit "myfile.c". Works like a charm, but is an incredible hassle. > > I only want ASCII. I've waded through the bazillion lines of configurable > stuff, too, and there is no obvious to me selection to say, "I always, > always, always edit ASCII text". What is the magic? Thanks. > What platform? What version of emacs? What is your locale setting? What does emacs say is the current language environment when it starts up? Generally, if things are not working correctly, either your locale is not set correctly or you have stuff in your .emacs that is confusing emacs. Note also that UTF-8 is rapidly becoming the default and many compilers can handle that fine. Are you working with a version control system? Issues can arise if the version control systm isn't configured correctly and you are working with others who are on different platforms etc. I do a lot of coding and have to deal with gcc/g++ and a number of scripting languages etc. On the whole, I don't run into any issues these days and my environment is pretty much UTF-8 across the borad. I'm running on a Debian system with emacs 23. Note also that the handling of character encoding in emacs 23 has been improved a lot. Worth considering upgrading if your not htere yet. Tim -- tcross (at) rapttech dot com dot au