all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Oliver Scholz <alkibiades@gmx.de>
Subject: Re: Some question about fontsets
Date: Thu, 22 May 2003 12:37:00 +0200	[thread overview]
Message-ID: <u8yszclo3.fsf@ID-87814.user.dfncis.de> (raw)
In-Reply-To: 87brxwkpdn.fsf@yahoo.co.uk

Shane McAndrew <test1dellboy3@yahoo.co.uk> writes:
[...]
> When I run "dict" in eshell, the phonetic characters (IPA symbols)
> don't display correctly. Here is the output -
>
> ~ $ dict exemple
> 1 definition found
>
> From French-English Freedict dictionary [fd-fra-eng]:
>
>   exemple [É.gzaÌ.pl]
>        example
>
> It also fails when run in xterm or gnome-terminal BUT it does display
> correctly in uxterm (Xterm Unicode). Also, I can see the IPA character
> set with the command "xfd -fn -etl-*-*-*". I am running Emacs 21.2.1
> on Debian/GNU Linux testing distribution.
>
> C-u C-x = reports the following on the first character after "exemple [" -
>
>   character: É (04311, 2249, 0x8c9)
>     charset: latin-iso8859-1
[...]

[Thanks for sending the output of `C-u C-x =' in the first place.]

This is not a problem with fontsets, but with process encoding. Emacs
interprets the output of "dict" wrongly as encoded in latin 1. (You
may have to change the fontset, too, but let's solve the encoding
problem first.)

Does it work to put either

;; Affects the communication with the "dict" program everywhere in
;; Emacs.
(push '("dict" . utf-8-unix) process-coding-system-alist)

or

;; Affects only Eshell, but there it affects all communication with
;; sub-processes.
(add-hook 'eshell-mode-hook
	  (lambda ()
	    (set (make-local-variable 'default-process-coding-system)
		 '(utf-8-unix . utf-8-unix))))

into your .emacs?

If you happen to see hollow boxes now instead of garbage characters,
then we made progress and you have to change your fontset.

    Oliver
-- 
3 Prairial an 211 de la Révolution
Liberté, Egalité, Fraternité!

  reply	other threads:[~2003-05-22 10:37 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-02 15:32 Some question about fontsets wang yin
2003-05-03  2:47 ` Oliver Scholz
2003-05-03  5:08   ` wang yin
2003-05-21 20:37   ` Shane McAndrew
2003-05-22 10:37     ` Oliver Scholz [this message]
2003-05-22 12:52       ` Wang Yin
2003-05-23  8:19         ` Oliver Scholz
2003-05-22 15:03       ` Shane McAndrew
2003-05-23  8:15         ` Oliver Scholz
2003-05-23 10:53           ` Shane McAndrew
2003-05-23 11:15             ` Oliver Scholz
2003-05-23 14:41               ` Shane McAndrew
2003-05-23 15:18                 ` Oliver Scholz

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=u8yszclo3.fsf@ID-87814.user.dfncis.de \
    --to=alkibiades@gmx.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.