From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.help Subject: Re: Charset problem Date: Sun, 16 Sep 2007 03:21:24 +0300 Organization: SunSITE.dk - Supporting Open source Message-ID: <87sl5fzchn.fsf@kobe.laptop> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1190036439 14919 80.91.229.12 (17 Sep 2007 13:40:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 17 Sep 2007 13:40:39 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 17 15:40:38 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 1IXGq3-0005fr-KJ for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Sep 2007 15:40:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IXGq2-00073S-BY for geh-help-gnu-emacs@m.gmane.org; Mon, 17 Sep 2007 09:40:34 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!news.n-ix.net!news2.arglkargh.de!feeder.erje.net!nuzba.szn.dk!news.szn.dk!pnx.dk!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (berkeley-unix) Cancel-Lock: sha1:gzcyn2glhJj/ajHO9TbQ7Ge47qA= Original-Lines: 53 Original-NNTP-Posting-Host: 81.186.70.167 Original-X-Trace: news.sunsite.dk DXC=FI=kN=f[W3ab>:U6jKdTQlYSB=nbEKnkkl2^feVC_<6fL^MjgX7f^UIZ@YZice?_Q`FA8Un4=3oI]Bn:Ph Original-X-Complaints-To: staff@sunsite.dk Original-Xref: shelby.stanford.edu gnu.emacs.help:152129 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:47639 Archived-At: On Fri, 14 Sep 2007 14:41:54 +0200, Christian Schröder wrote: >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= That's a fairly "large" set of LC_ and LANG options. I don't know what sets all these environment variables, but it may be worth trying a much simpler set of environment options. It's probably wrong, for instance, to use just a language identifier in LC_XXX values. I would expect something like "de_DE.ISO8859-15" instead. Try unsetting all of these LC_XXX variables, and check if a simpler set of LC_XXX and LANG options works better. For example, I'm using the following for Greek support: LANG='el_GR' LC_ALL='el_GR.ISO8859-7' That's easier to grasp and remember than 20 or so odd names too :) > 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. You should try installing it. Without a proper locale environment, not only Emacs but any other application will have problems supporting German character sets.