all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [Unicode-2] euro sign disappears
@ 2007-11-16  6:17 Katsumi Yamaoka
  2007-11-16  7:10 ` Kenichi Handa
  2007-11-16 12:41 ` Robert J. Chassell
  0 siblings, 2 replies; 7+ messages in thread
From: Katsumi Yamaoka @ 2007-11-16  6:17 UTC (permalink / raw)
  To: emacs-devel

Hi,

I found strange behaviors of Emacs Unicode-2 when displaying the
euro sign.  After starting Emacs as `LC_ALL=C emacs-23.0.60 -Q',
even if I run `set-language-environment' for the language of some
country belonging to EU, the following Lisp form doesn't display
the euro sign.

(insert (make-char 'latin-iso8859-15 164))

AFAIK, only the Japanese language environment displays it.
Europeans might have to run (set-language-environment 'Japanese)
before setting those native language environment. ;-)

Even in the Japanese language environment, a mail that is encoded
with `iso-2022-jp-2'[1] doesn't show the euro sign in it.  For
example:

(insert (decode-coding-string "\e$(C\"f\e(B" 'iso-2022-jp-2))

I guess the cause of this problem is that the decoded string has
a charset property as follows:

(text-properties-at
 0
 (decode-coding-string "\e$(C\"f\e(B" 'iso-2022-jp-2))
 => (charset korean-ksc5601)

Aren't all concerned with a lack of charsets in
`charset-priority-list'?  Or are they only to me?

In addition, is it right that Emacs uses a wide character for
displaying the euro sign?  (It doesn't look suitable in English
text.)

[1] Gnus uses `iso-2022-jp-2' when encoding a mail containing
    the euro sign because of the default value of
    `mm-coding-system-priorities' that is set in the Japanese
    language environment.

    mm-coding-system-priorities
     => (iso-8859-1 iso-2022-jp iso-2022-jp-2 shift_jis utf-8)

   It might be better to prefer `utf-8' than `iso-2022-jp-2' or
   `shift_jis' nowadays.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-11-16 15:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-16  6:17 [Unicode-2] euro sign disappears Katsumi Yamaoka
2007-11-16  7:10 ` Kenichi Handa
2007-11-16  7:27   ` Katsumi Yamaoka
2007-11-16 10:24     ` Kenichi Handa
2007-11-16 11:06       ` Katsumi Yamaoka
2007-11-16 15:39       ` Stefan Monnier
2007-11-16 12:41 ` Robert J. Chassell

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.