From: "Christian Schröder" <chschroe@math.uni-goettingen.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Charset problem
Date: Fri, 14 Sep 2007 14:41:54 +0200 [thread overview]
Message-ID: <fcdvh5$btp$03$1@news.t-online.com> (raw)
In-Reply-To: <mailman.846.1189756022.18990.help-gnu-emacs@gnu.org>
Eli Zaretskii wrote:
> I think this is your problem, right there: on a Posix locale, Emacs
> disables all its automagic for non-ASCII characters, and expects you
> to tell it explicitly what to do, which is a pain.
>
> Can you set up an ISO-8859-1 or ISO-8859-10 locale? If not, why not?
> I'd expect that users in Germany use a German locale.
As far as I know I have to set the "LANG" or "LC_CTYPE" environment
variable, or is there any other way to change the locale?
After setting LANG to "de_DE" (-> export LANG=de_DE) the output of
"locale" is as follows:
LANG=de_DE
LC_CTYPE="de_DE"
LC_NUMERIC="de_DE"
LC_TIME="de_DE"
LC_COLLATE="de_DE"
LC_MONETARY="de_DE"
LC_MESSAGES="de_DE"
LC_PAPER="de_DE"
LC_NAME="de_DE"
LC_ADDRESS="de_DE"
LC_TELEPHONE="de_DE"
LC_MEASUREMENT="de_DE"
LC_IDENTIFICATION="de_DE"
LC_ALL=
The locale "de_DE.ISO8859-15" (as Peter suggested) doesn't seem to be
available on my system. At least it is not in the list that "locale -a"
prints and no directory of this name exists under /usr/lib/locale.
When I now start Emacs and load the file I still see the question marks.
The mode line is the same as before. The output of "C-u C-x =" has
changed slightly:
character: ? (0374, 252, 0xfc)
charset: eight-bit-graphic (8-bit graphic char (0xA0..0xFF))
code point: 252
syntax: word
category:
buffer code: 0xFC
file code: 0xFC (encoded by coding system raw-text-unix)
terminal code: not encodable
The output of "C-h C" is now:
Coding system for saving this buffer:
t -- raw-text-unix
Default coding system (for new files):
1 -- iso-latin-1 (alias: iso-8859-1 latin-1)
Coding system for keyboard input:
1 -- iso-8859-1 (alias of iso-latin-1)
Coding system for terminal output:
1 -- iso-latin-1 (alias: iso-8859-1 latin-1)
Defaults for subprocess I/O:
decoding: 1 -- iso-latin-1 (alias: iso-8859-1 latin-1)
encoding: 1 -- iso-latin-1 (alias: iso-8859-1 latin-1)
This is really different from before (with POSIX locale), but it did not
solve my problem. :(
> Try "M-x set-language-environment RET Latin-1 RET". Does this help?
Doesn't change anything, no matter of the locale I use.
Do you have any other ideas?
Regards,
Christian
next prev parent reply other threads:[~2007-09-14 12:41 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-12 23:05 Charset problem Christian Schröder
2007-09-13 7:10 ` Eli Zaretskii
[not found] ` <mailman.791.1189668733.18990.help-gnu-emacs@gnu.org>
2007-09-13 21:50 ` Christian Schröder
2007-09-14 7:46 ` Eli Zaretskii
2007-09-14 8:58 ` Peter Dyballa
[not found] ` <mailman.846.1189756022.18990.help-gnu-emacs@gnu.org>
2007-09-14 12:41 ` Christian Schröder [this message]
2007-09-14 13:58 ` Eli Zaretskii
[not found] ` <mailman.869.1189778341.18990.help-gnu-emacs@gnu.org>
2007-09-14 15:06 ` Christian Schröder
2007-09-14 16:00 ` Eli Zaretskii
[not found] ` <mailman.875.1189785660.18990.help-gnu-emacs@gnu.org>
2007-09-15 15:03 ` Christian Schröder
2007-09-15 15:59 ` Peter Dyballa
2007-09-15 18:07 ` Eli Zaretskii
[not found] ` <mailman.902.1189871990.18990.help-gnu-emacs@gnu.org>
2007-09-17 11:11 ` Christian Schröder
2007-09-17 12:33 ` Peter Dyballa
2007-09-15 3:43 ` Tim X
2007-09-16 0:21 ` Giorgos Keramidas
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='fcdvh5$btp$03$1@news.t-online.com' \
--to=chschroe@math.uni-goettingen.de \
--cc=help-gnu-emacs@gnu.org \
/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).