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
_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

Reply via email to