unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Josef Dalcolmo <dalcolmo@vh-s.de>
Subject: Re: displaying the Eurosign at all
Date: Wed, 09 Mar 2005 16:11:15 +0100	[thread overview]
Message-ID: <uu0nk97n0.fsf@vh-s.de> (raw)
In-Reply-To: mailman.3091.1110358306.32256.help-gnu-emacs@gnu.org


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

  parent reply	other threads:[~2005-03-09 15:11 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1034025217.28906.help-gnu-emacs@gnu.org>
2002-10-07 22:45 ` displaying the Eurosign at all Stefan Monnier <foo@acm.com>
     [not found] ` <m3u1jx2v40.fsf@kuntu.zangpo.org>
2002-10-08  9:36   ` Klaus Berndl
2005-03-07 13:49     ` Josef Dalcolmo
     [not found]     ` <mailman.2882.1110206200.32256.help-gnu-emacs@gnu.org>
2005-03-07 14:58       ` Stefan Monnier
2005-03-07 15:44         ` Josef Dalcolmo
     [not found]         ` <mailman.2905.1110213034.32256.help-gnu-emacs@gnu.org>
2005-03-07 16:34           ` Pascal Bourguignon
2005-03-09  4:59           ` Stefan Monnier
2005-03-09  8:34             ` Peter Dyballa
     [not found]             ` <mailman.3091.1110358306.32256.help-gnu-emacs@gnu.org>
2005-03-09 10:27               ` Oliver Scholz
2005-03-09 15:11               ` Josef Dalcolmo [this message]
2005-03-09 15:23                 ` Oliver Scholz
2005-03-09 15:27                 ` Stefan Monnier
2005-03-07 15:28       ` Pascal Bourguignon
2002-10-07 23:10 Raimund.Kohl
2002-10-07 21:52 ` ken
2002-10-07 23:48 ` Raimund.Kohl
     [not found] <mailman.1034027410.506.help-gnu-emacs@gnu.org>
2002-10-08  4:35 ` Miles Bader

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=uu0nk97n0.fsf@vh-s.de \
    --to=dalcolmo@vh-s.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).