From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-15?q?Gro=DFjohann?=) Newsgroups: gmane.emacs.help Subject: Re: MULE shows gibberish; now what? Date: Thu, 26 Sep 2002 10:23:12 +0200 Organization: University of Dortmund, Germany Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1033030002 19256 127.0.0.1 (26 Sep 2002 08:46:42 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 26 Sep 2002 08:46:42 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17uUIC-00050J-00 for ; Thu, 26 Sep 2002 10:46:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17uUIM-0007Ex-00; Thu, 26 Sep 2002 04:46:50 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!bloom-beacon.mit.edu!iad-peer.news.verio.net!news.verio.net!newsfeed.stueberl.de!eusc.inter.net!Informatik.Uni-Dortmund.DE!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 88 Original-NNTP-Posting-Host: lucy.cs.uni-dortmund.de Mail-Copies-To: never User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:WEJSilUlp4EQ1nO0DKETH7TKfiY= Original-Xref: nntp.stanford.edu gnu.emacs.help:105330 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:1882 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1882 Ilya Zakharevich writes: > [A complimentary Cc of this posting was sent to > Kai > =?iso-8859-15?q?Gro=DFjohann?= > ], who wrote in article : >> > Of course it does, what else could it be! But how would I detect it >> > and/or fix it? >> >> With C-u C-x =, as I said. > > Would it show the font and the codepoint chosen in the font? [I'm not > on X, so cannot check myself] Here is an example output of C-u C-x =. I think it will clear up a lot of things. /---- | character: ¤ (07444, 3876, 0xf24) | charset: latin-iso8859-15 | (Right-Hand Part of Latin Alphabet 9 (ISO/IEC 8859-15): ISO-IR-203.) | code point: 36 | syntax: w which means: word | category: l:Latin | buffer code: 0x8E 0xA4 | file code: 0x8E 0xA4 (encoded by coding system emacs-mule) | Unicode: 20AC | font: -Misc-Fixed-Medium-R-Normal--14-130-75-75-C-70-ISO8859-15 | | There are text properties here: | fontified t \---- In the above output, it is easy to see if the glyph matches what it should be. I can do "man iso-8859-15" to look up what character has code 128+36, and then I can compare it with the glyph. And if the "man" command told me to expect a Euro sign, but I'm seeing a currency sign, then I know that something is wrong. >> >> Put point on a Cyrillic character and type C-u C-x =, this tells you >> >> stuff, including the charset that Emacs thinks this character is in. >> > >> > Hmm? You mean that doing "Hello world" demo, one gets different >> > results of your test on different machines? Now I'm completely >> > confused... > >> If I now set the X11 resource Emacs.font to a Latin-9 font, then >> Emacs will display Latin-1 characters with that font! This means, if >> the HELLO file includes that currency sign, I would wrongly see a euro >> sign, but C-u C-x = would tell me that Emacs thinks it is displaying >> a Latin-1 character. > > What you say is: the "hello world" example will have the same result > of C-u C-x = on all the machines. So I do not see how it would help me... No, I did NOT say that the output of C-u C-x = is the same on all machines. What I said is that C-u C-x = tells you which character Emacs thinks it is displaying. As you can easily see, the font name can be different. And the glyph (directly after "character: ") is of course also different. Other parts of the output are system-independent, obviously. >> This is a misconfiguration of Emacs, and can be corrected. >> >> Maybe you have a similar misconfiguration of Emacs. >> >> (It is also arguably a bug since Emacs should know from the font name >> that it is not a Latin-1 font. But not all fonts specify >> "iso8859-15" in their names, so it is difficult to know.) > > You are discussing a default font; which is not under the control of > Emacs. I'm discussing Cyrillic font, which is not under *my* control > (as far as I know now). You can tell Emacs to use the foo font for the bar encoding. Maybe you have (accidentally) told Emacs to use a KOI-R font for the iso-8859-5 encoding, or something like this. This would explain the strange output. And if you use C-u C-x = you can immediately see if this is the case. If all else fails, you can of course also install fonts in your home dir and tell X11 about them, and then tell Emacs to use one of those... kai -- ~/.signature is: umop ap!sdn (Frank Nobis)