[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
string-width() vs composite strings
From: |
山本和彦 |
Subject: |
string-width() vs composite strings |
Date: |
Fri, 01 Aug 2003 12:23:32 +0900 (JST) |
Hello,
string-width() returns a wrong number if its argument string
has composite characters.
Consider two bytes strings 0xcd 0xeb, whose width is one since they
are composed.
On Emacs 20.7 string-width() returns 1.
On Emacs 21.3.50 string-width() returns 2.
--Kazu
In GNU Emacs 21.3.50.1 (i386-unknown-netbsdelf1.6U, X toolkit, Xaw3d scroll
bars)
of 2003-07-31 on caster.iij.ad.jp
configured using `configure '--without-xim' '--prefix=/usr/local/emacs21''
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: nil
value of $LANG: nil
locale-coding-system: japanese-iso-8bit
default-enable-multibyte-characters: t
Recent input:
C-p SPC o <return> x s <return> w C-c C-q y s C-g s
<return> SPC d x C-x b * s TAB <return> C-x b <return>
C-p C-p C-p C-p g + i b DEL n b TAB <return> C-p C-f
C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f
C-SPC C-f ESC w C-x C-f t i s <return> C-y C-x C-s
t h i TAB DEL DEL i s TAB - TAB <return> C-z m d x
ESC x r e p o t DEL r t SPC SPC SPC b SPC <return>
Recent messages:
Retrieving 1 message in background...
1 message retrieved
No more messages
Refiling and deleting...
Connecting to the IMAP server...done
Communicating with the IMAP server...
Deleting 1 message in background...
1 message deleted
Making completion list...
Loading emacsbug...done
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- string-width() vs composite strings,
山本和彦 <=