help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: displaying the Eurosign at all


From: Josef Dalcolmo
Subject: Re: displaying the Eurosign at all
Date: Wed, 09 Mar 2005 16:11:15 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (windows-nt)

Well, it's not quite that simple - at least not with my NTemacs
version 21.3.50.1

There is no language environment called windows-1252 (though
windows-1255 exists). 

The default terminal and keyboard encoding is indeed cp1252, which
explains why I wasn't having problems with typing and displaying EURO
signs. 

However, when default file I/O is coded in C to be 
default-buffer-file-coding-system = 'iso-latin-1-dos'

Setting this variable to cp1252 did not do the trick either.  I had to
set file-coding-system-alist (I added an entry for .txt to be mapped
to cp1252, and now I can see the EURO sign instead of the \200 when
opening a text file generated under Windows2000 by another
application.)

Modifying (file-coding-system-alist) wasn't trivial, because configure
shows two of the entries to be mapped to functions erroneously as
strings. If I just add something to the list and save it, I get an
error. I guess this is a bug.

I think the default coding system for file I/O under Windows
should be cp1252 (aka windows-1252) or cp1252-dos, not
iso-latin-1-dos. Even better, Emacs should be able to determine the
locally used default encoding and use that as the default (which
varies by localization of the OS).

- Josef


reply via email to

[Prev in Thread] Current Thread [Next in Thread]