bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

buffer-display-table and char-width


From: SAITO Takuya
Subject: buffer-display-table and char-width
Date: Wed, 18 Sep 2002 15:46:26 +0900 (JST)

In GNU Emacs 21.2.1 (i386-vine-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2002-07-22 on reed
configured using `configure  --prefix=/usr --libexecdir=/usr/lib 
--infodir=/usr/info --x-includes=/usr/include --x-libraries=/usr/X11R6/lib 
--without-xim --with-x-toolkit=athena i386-vine-linux'
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: ja_JP.eucJP
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: C
  value of $LANG: ja_JP.eucJP
  locale-coding-system: japanese-iso-8bit
  default-enable-multibyte-characters: t

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:


When I display a Japasese character (hereafter referred to as X) as
another Japanese character (referred to as Y) with the following code:

(setq buffer-display-table (make-display-table))
(aset buffer-display-table ?X (vector ?Y))

each of (char-width ?X) and (string-width "X") returns 1
even though X occupies 2 columns on the screen.

-- 
SAITO Takuya <tabmore@rivo.mediatti.net>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]