From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Christian_Schr=F6der?= Newsgroups: gmane.emacs.help Subject: Re: Charset problem Date: Fri, 14 Sep 2007 14:41:54 +0200 Organization: T-Online Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1189777306 16870 80.91.229.12 (14 Sep 2007 13:41:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 14 Sep 2007 13:41:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 14 15:41:43 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IWBQS-0002g7-Of for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Sep 2007 15:41:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IWBQS-00063Q-4r for geh-help-gnu-emacs@m.gmane.org; Fri, 14 Sep 2007 09:41:40 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.gamma.ru!Gamma.RU!newsfeed00.sul.t-online.de!newsfeedt0.toon.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 70 Original-X-Trace: news.t-online.com 1189773670 03 12217 FYCr17b6LgLoA4+ 070914 12:41:10 Original-X-Complaints-To: usenet-abuse@t-online.de X-ID: SCz2kvZpgeNkJRRnkhdNpcjk4fmv3-5s1+jagD9CtD1Jtcptjye+Yr User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) In-Reply-To: Original-Xref: shelby.stanford.edu gnu.emacs.help:152080 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 Xref: news.gmane.org gmane.emacs.help:47591 Archived-At: 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