Subject: bug#2806: 23.0.91; characters from unicode-sip coderange not displaying properly on Cocoa-Mac

From: Christian Wittern <[email-masked]>
Date: Sat, 28 Mar 2009 07:51:59 +0900

Characters from the unicode-sip coderange (in this case, CJK Ext-B and
Ext-C) do not display properly on a Macintosh OS X system. I am using the
nightly builds available from
http://atomized.org/wp-content/cocoa-emacs-nightly/.
The phenomen observed is as follows: The area occupied by the character is
larger than usual, more than double the width. Sometimes a random character
disappears in part of this area, but mostly it is the color of the
background. When the cursor moves over this area, the character displayed
changes, but again is not the character that should be displayed.  The
necessary fonts are installed and display properly in other applications.
The font is set as follows:

(if (display-graphic-p)
(set-fontset-font
 (frame-parameter nil 'font)
 '(#x20000 . #x2a6ff)
 '("*-Sun-ExtB" . "unicode-sip")))

;; Ext-C
(if (display-graphic-p)
(set-fontset-font
 (frame-parameter nil 'font)
 '(#x2A700 . #x2b7ff)
 '("*-HanaMin" . "unicode-sip")))

;; Display the Unicode-BMP:
(if (display-graphic-p)
(set-fontset-font
(frame-parameter nil 'font)
   '(#x0000 . #xffff)
   '("*-Sun-ExtA" . "unicode-bmp")))

A fix for this problem would be much appreciated

In GNU Emacs 23.0.91.1 (i386-apple-darwin9.6.0, NS apple-appkit-949.43)
 of 2009-03-25 on neutron.local
Windowing system distributor `Apple', version 10.3.949
configured using `configure  '--with-ns''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: UTF-8
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: nil
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Text

Minor modes in effect:
  shell-dirtrack-mode: t
  delete-selection-mode: t
  pc-selection-mode: t
  global-auto-revert-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
<help-echo> C-x C-f e m <tab> <return> s M-< <down>
<down> <down> <down> <return> M-x C-g <down> <up> <up>
<S-down> <S-down> <S-down> <S-down> <S-down> <S-down>
<S-down> <S-down> <S-down> <S-down> <S-down> <S-down>
<S-down> <S-down> <up> <up> <up> <up> <up> <up> <up>
<up> C-x C-e <down> <down> <down> <down> <down> <down>
<down> C-x C-e <down> <down> <down> <down> <down> <down>
<down> C-x C-e C-x C-f ~ / D r o p <tab> c o m <tab>
i <tab> <backspace> c h <tab> <return> <down> <down>
<down> <down> <down> <down> <down> <down> C-x C-f /
/ t m <tab> i d <tab> <backspace> <backspace> <backspace>
<backspace> <backspace> <backspace> ~ / u n i <tab>
i <backspace> / i <tab> <return> <down> <down> <down>
<down> <down> <down> <down> <down> <down> <down> <down>
<down> <up> <up> <up> <up> <return> <down> <right>
<right> <right> <right> <right> <right> <right> <right>
<right> <right> <right> <down> <down> <up> <right>
<right> <right> <left> <left> <down> <down> <down>
<right> <left> <right> <up> <right> <left> <menu-bar>
<help-menu> <send-emacs-bug-report>

Recent messages:
Loading /Users/chris/org/chw-calendar.el (source)...done
Loading /Users/chris/org/chw-org.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Mark set
Loading vc-cvs...done
Quit
line-move-visual: Beginning of buffer
Mark set
nil [3 times]
Making completion list...

-- 
 Christian Wittern
 Institute for Research in Humanities, Kyoto University
 47 Higashiogura-cho, Kitashirakawa, Sakyo-ku, Kyoto 606-8265, JAPAN