From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Alan E. Davis" Newsgroups: gmane.emacs.help Subject: Re: Unknown character encodings in .emacs Date: Sun, 8 Jun 2008 10:35:23 +1000 Message-ID: <7bef1f890806071735i1756cc51l36d86443649d7b3d@mail.gmail.com> References: <7bef1f890806070632y347af376g3e7796ee907c78b1@mail.gmail.com> <7bef1f890806071536g54e7fffh231a34680f61975e@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_19356_13789546.1212885323859" X-Trace: ger.gmane.org 1212885353 22078 80.91.229.12 (8 Jun 2008 00:35:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 8 Jun 2008 00:35:53 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Nikolaj Schumacher" , "Peter Dyballa" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 08 02:36:35 2008 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 1K58te-0007k1-94 for geh-help-gnu-emacs@m.gmane.org; Sun, 08 Jun 2008 02:36:34 +0200 Original-Received: from localhost ([127.0.0.1]:42483 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K58sr-0001Jx-BI for geh-help-gnu-emacs@m.gmane.org; Sat, 07 Jun 2008 20:35:45 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K58sZ-0001Js-3Q for help-gnu-emacs@gnu.org; Sat, 07 Jun 2008 20:35:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K58sX-0001Jf-KT for help-gnu-emacs@gnu.org; Sat, 07 Jun 2008 20:35:26 -0400 Original-Received: from [199.232.76.173] (port=57794 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K58sX-0001Jc-Ex for help-gnu-emacs@gnu.org; Sat, 07 Jun 2008 20:35:25 -0400 Original-Received: from wf-out-1314.google.com ([209.85.200.170]:2471) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K58sX-0006DH-Dh for help-gnu-emacs@gnu.org; Sat, 07 Jun 2008 20:35:25 -0400 Original-Received: by wf-out-1314.google.com with SMTP id 28so1568681wfc.24 for ; Sat, 07 Jun 2008 17:35:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=JVODwxLLjMc/ox1OyWWlGp3pFlZJsQAdBDOD2tDtw/s=; b=Rb4++9+6OmzEr7TiV3SlAUKXRZedSGvtq4LAE5uzHcAq79r8XkD0hlk6Lb4C8ciCjw NzZQ4p6pZl9Z09n/nMEFhcYKdICXNnXZJHSVybT9JAHJBcVj2nTfgIUM5FL/i7L2cCWe 79E9uYggLBvBoywZo6OseH3qvFqrtOE6tSTbI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=jPGHBomZtqIplZCWmX+xApdWtL7/3gnUKr8Ph4CGEP/QyC/VDoPOCCnQSou3aCd9Yr lh0otRxe0FjgbimWCmruIH6JarBO/cK1bGMmMpwqm1FBlvMQF8Yoix8fXPOQOqQnacrl cOdGZN7syUTGVk7XMC7gNGzuHj2xrsXWT5g+I= Original-Received: by 10.142.158.17 with SMTP id g17mr738974wfe.17.1212885323879; Sat, 07 Jun 2008 17:35:23 -0700 (PDT) Original-Received: by 10.143.161.14 with HTTP; Sat, 7 Jun 2008 17:35:23 -0700 (PDT) In-Reply-To: <7bef1f890806071536g54e7fffh231a34680f61975e@mail.gmail.com> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:54599 Archived-At: ------=_Part_19356_13789546.1212885323859 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline PARTLY SOLVED. Thank you to people who responded. I have gotten part way through this. Temporarily, I am able to boot. I also have backups of my .emacs.el, so ca= n check them out too. Thank you again, Alan On Sun, Jun 8, 2008 at 8:36 AM, Alan E. Davis wrote: > Thank you very much, Nikolaj and Peter: > > As of now, I see: > GDM_LANG=3Den_US.UTF-8 > LANG=3Den_US.UTF-8 > > Emacs can read .emacs.el now, I have incrementally deleted or commented o= ut > parts that emacs tripped over when reading .emacs . I also placed the hea= der > into the file that peter suggested. > > ;; -*- mode: Emacs-Lisp; coding: utf-8; -*- > > Now the question comes up: what is the most appropriate coding system to = be > using? I guess that is a matter for another post. Or is it? Should I b= e > using a two-byte language encoding at all? All characters I ordinarily u= se > are availalbe in a latin-1 encoding. The original reason I turned to a t= ext > editor is the need for raw text input and output for language data (I was > working on a lexicon of Chuukese at the time). > > I also was put off by the Windows encodings that emacs recommended when a > file was being saved. I avoid all proprietary file formats, so felt a b= it > taken aback by that suggestion. > > I have started to read more about this problem/issue. I have gotten away > with a sloppy .emacs.el file for a while, and sloppy conventions on > encoding. I need to look into it now. However, it is not something I wo= uld > choose to spend a great deal of time on: it's only of secondary importanc= e > to my work. > > It is suspicious that the problem only recently happened. The first > instance I discovered was a cut and paste from firefox of snippets for a > .emacs. I've been using this same .emacs.el (with many changes and > additions) for 15 years, all on GNU/Linux systems. I have had to adapt, = but > nothing this radical. > > > > Thank you again, > > Alan > > > > On Sun, Jun 8, 2008 at 4:38 AM, Nikolaj Schumacher > wrote: > >> "Alan E. Davis" wrote: >> >> > I'be been poking around, but don't have a clue where to start. >> > I never did understand encoding >> >> Well, that's a clue where to start, I suppose. :) >> >> > ("a`" "=C3=83=C2=A1" nil 1) >> >> Looks like the file has been written using UTF-8 and read using >> Latin-1. Try adding: >> >> (set-language-environment "UTF-8") >> >> However, I believe this shouldn't be necessary if the system is >> configured correctly. What OS do you use? >> >> >> regards, >> Nikolaj Schumacher >> > > > > -- > Alan Davis, Kagman High School, Saipan lngndvs@gmail.com > > "It's never a matter of liking or disliking ..." > ---Santa Ynez Chumash Medicine Man > > "We have no art. We do everything as well as we can." ---Balinese saying > > --=20 Alan Davis, Kagman High School, Saipan lngndvs@gmail.com "It's never a matter of liking or disliking ..." ---Santa Ynez Chumash Medicine Man "We have no art. We do everything as well as we can." ---Balinese saying ------=_Part_19356_13789546.1212885323859 Content-Type: text/html; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline PARTLY SOLVED.

Thank you to people who responded.  I have gotte= n part way through this.  Temporarily, I am able to boot.  I also= have backups of my .emacs.el, so can check them out too. 

Tha= nk you again,

Alan

On Sun, Jun 8, 2008 at 8:36 AM,= Alan E. Davis <lngndvs@gmail.com> wrote:
Thank you very much, Nikolaj and Peter:

As of now, I see:
GDM_LAN= G=3Den_US.UTF-8
LANG=3Den_US.UTF-8

Emacs can read .emacs.el now, = I have incrementally deleted or commented out parts that emacs tripped over= when reading .emacs . I also placed the header into the file that peter su= ggested.


       ;; -*- mode: Emacs-Lisp; coding: u= tf-8; -*-

Now the question comes up: what is the most appropri= ate coding system to be using?  I guess that is a matter for another p= ost.  Or is it?  Should I be using a two-byte language encoding a= t all?  All characters I ordinarily use are availalbe in a latin-1 enc= oding.  The original reason I turned to a text editor is the need for = raw text input and output for language data (I was working on a lexicon of = Chuukese at the time).  

I also was put off by the Windows encodings that emacs recommended when= a file was being saved.  I avoid all proprietary file formats, so fel= t  a bit taken aback by that suggestion. 

I have started = to read more about this problem/issue.  I have gotten away with a slop= py .emacs.el file for a while, and sloppy conventions on encoding.  I = need to look into it now.  However, it is not something I would choose= to spend a great deal of time on: it's only of secondary importance to= my work.

It is suspicious that the problem only recently happened.  The fir= st instance I discovered was a cut and paste from firefox of snippets for a= .emacs.  I've been using this same .emacs.el (with many changes a= nd additions) for 15 years, all on GNU/Linux systems.  I have had to a= dapt, but nothing this radical. 



Thank you again,

Alan

  

On Sun, Jun 8, = 2008 at 4:38 AM, Nikolaj Schumacher <n_schumacher@web.de> wrote:
"Alan E. Davis" <lngndvs@gmail.com> wrote:

> I'be been poking around, but don't have a clue where to start.=
> I never did understand encoding

Well, that's a clue where to start, I suppose. :)

>     ("a`" "=C3=83=C2=A1" nil 1)

Looks like the file has been written using UTF-8 and read using
Latin-1.  Try adding:

(set-language-environment "UTF-8")

However, I believe this shouldn't be necessary if the system is
configured correctly.  What OS do you use?


regards,
Nikolaj Schumacher



--
Alan Davis, Kagman High School, Saipan lngndvs@gmail.com

"It's never a matter of liking or = disliking ..."
---Santa Ynez Chumash Medicine Man

"We have no art. We do ever= ything as well as we can." ---Balinese saying




--
Alan Davis,= Kagman High School, Saipan lngndvs@gm= ail.com

"It's never a matter of liking or disliking ..= ."
---Santa Ynez Chumash Medicine Man

"We have no art. We do ever= ything as well as we can." ---Balinese saying

------=_Part_19356_13789546.1212885323859--