unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann)
Subject: Re: MULE shows gibberish; now what?
Date: Thu, 26 Sep 2002 10:23:12 +0200	[thread overview]
Message-ID: <vaf1y7huplb.fsf@lucy.cs.uni-dortmund.de> (raw)
In-Reply-To: amu08m$i97$1@agate.berkeley.edu

Ilya Zakharevich <nospam-abuse@ilyaz.org> writes:

> [A complimentary Cc of this posting was sent to
> Kai
>  =?iso-8859-15?q?Gro=DFjohann?=
> <Kai.Grossjohann@CS.Uni-Dortmund.DE>], who wrote in article <vafznu6yx9x.fsf@lucy.cs.uni-dortmund.de>:
>> > 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)

  parent reply	other threads:[~2002-09-26  8:23 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-24  5:30 MULE shows gibberish; now what? Ilya Zakharevich
2002-09-24  8:42 ` Kai Großjohann
2002-09-24 15:59   ` Peter J. Acklam
2002-09-24 20:05     ` Kai Großjohann
2002-09-28 11:09       ` Peter J. Acklam
2002-09-28 12:22         ` Kai Großjohann
     [not found]           ` <k7l61bjc.fsf@online.no>
2002-09-28 15:58             ` Kai Großjohann
2002-09-28 16:32               ` Peter J. Acklam
2002-09-28 17:12                 ` Kai Großjohann
2002-09-29  9:27                   ` Peter J. Acklam
2002-09-29 15:45                     ` Kai Großjohann
2002-09-29 16:27                       ` Peter J. Acklam
2002-09-29 20:27                         ` Kai Großjohann
2002-10-01  7:59                           ` Peter J. Acklam
2002-09-29 20:13                     ` Stefan Monnier <foo@acm.com>
2002-09-30  1:22                       ` Miles Bader
     [not found]                       ` <mailman.1033349070.28368.help-gnu-emacs@gnu.org>
2002-09-30 14:03                         ` Stefan Monnier <foo@acm.com>
2002-09-29 20:27                     ` Kai Großjohann
2002-09-29  0:03               ` Clemens Fischer
2002-09-29 15:44                 ` Kai Großjohann
     [not found]   ` <amr0cn$2lvo$1@agate.berkeley.edu>
2002-09-25 14:11     ` Kai Großjohann
     [not found]       ` <amu08m$i97$1@agate.berkeley.edu>
2002-09-26  8:23         ` Kai Großjohann [this message]
     [not found]           ` <amvppk$10v4$1@agate.berkeley.edu>
2002-09-26 23:09             ` Oliver Scholz
2002-09-27 11:51             ` Kai Großjohann
     [not found]               ` <an2dcr$1phl$1@agate.berkeley.edu>
2002-09-27 20:43                 ` Kai Großjohann
     [not found]                   ` <an3ksh$27f2$1@agate.berkeley.edu>
2002-09-28 12:20                     ` Kai Großjohann
     [not found]                       ` <an7n4r$8dh$1@agate.berkeley.edu>
2002-09-30 20:49                         ` Jason Rumney
2002-09-30 21:22                           ` Ilya Zakharevich
2002-10-01 22:10                             ` Jason Rumney
2002-10-02  1:30                               ` Ilya Zakharevich
2002-10-02 13:10                                 ` Stefan Monnier <foo@acm.com>
2002-10-02 19:50                                 ` Jason Rumney
2002-09-29 12:28                     ` Jason Rumney
     [not found]           ` <an0bd9$1832$1@agate.berkeley.edu>
2002-09-27 11:54             ` Kai Großjohann
     [not found]               ` <an2dig$1pi4$1@agate.berkeley.edu>
2002-09-27 20:37                 ` Stefan Monnier <foo@acm.com>
2002-09-28  7:15                   ` Ilya Zakharevich
2002-10-02 23:48                   ` Ilya Zakharevich
2002-10-03 16:12                     ` Stefan Monnier <foo@acm.com>
2002-10-05 10:00                       ` Ilya Zakharevich
2002-10-05 16:07                         ` Stefan Monnier <foo@acm.com>
2002-10-06  0:43                           ` Ilya Zakharevich
2002-10-07 20:19                             ` Stefan Monnier <foo@acm.com>
2002-10-08  0:39                               ` Ilya Zakharevich
2002-10-08 13:33                                 ` Stefan Monnier <foo@acm.com>
2002-10-08 18:52                                   ` Ilya Zakharevich
2002-10-08 19:02                       ` MULE shows gibberish; RAWIN-R vs iso8859-5 Ilya Zakharevich
2002-09-27 20:44                 ` MULE shows gibberish; now what? Kai Großjohann
2002-09-27 22:30                 ` Oliver Scholz
2002-09-27 22:42                   ` Oliver Scholz
2002-09-27  7:29 ` Luis O. Silva
2002-09-27  7:28   ` Ilya Zakharevich
2002-10-09  6:14 ` Ilya Zakharevich
2002-10-31  0:48   ` Ilya Zakharevich

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=vaf1y7huplb.fsf@lucy.cs.uni-dortmund.de \
    --to=kai.grossjohann@cs.uni-dortmund.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).