From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Josef Dalcolmo Newsgroups: gmane.emacs.help Subject: Re: displaying the Eurosign at all Date: Wed, 09 Mar 2005 16:11:15 +0100 Organization: 1&1 Internet AG Message-ID: References: <87is43cy2s.fsf-monnier+gnu.emacs.help@gnu.org> <87wtsha006.fsf-monnier+gnu.emacs.help@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1110390643 31623 80.91.229.2 (9 Mar 2005 17:50:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 9 Mar 2005 17:50:43 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 09 18:50:42 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D92u0-0005y2-TS for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Mar 2005 16:15:13 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D938h-0004NE-SQ for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Mar 2005 10:30:23 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.tiscali.de!blackbush.cw.net!cw.net!feed.news.schlund.de!schlund.de!news.online.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-NNTP-Posting-Host: p54ab8cc0.dip0.t-ipconnect.de Original-X-Trace: online.de 1110381078 25366 84.171.140.192 (9 Mar 2005 15:11:18 GMT) Original-X-Complaints-To: abuse@einsundeins.com Original-NNTP-Posting-Date: Wed, 9 Mar 2005 15:11:18 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (windows-nt) Cancel-Lock: sha1:KlwNjXEEPfxw7x0SkIoXku6jEc0= Original-Xref: shelby.stanford.edu gnu.emacs.help:129141 Original-To: help-gnu-emacs@gnu.org 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 X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: news.gmane.org gmane.emacs.help:24694 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24694 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