[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: char-displayable-p returns t for undisplayable characters
From: |
Jonathan Yavner |
Subject: |
Re: char-displayable-p returns t for undisplayable characters |
Date: |
Tue, 10 Feb 2004 01:15:36 -0500 |
User-agent: |
KMail/1.4.3 |
JY> For iso88591 and iso885915 locales, 'é' (e-acute) displays as a blank
KH> % emacs -nw -l temp.el --eval '(test-e-acute)'
The output is reasonable: 351 for iso88591 mode, 303 251 for utf8. The docs
for xterm do not specify how to change the locale; presumably changing LANG
isn't enough, so I'm getting a blank because Emacs is sending Latin-1 but
xterm is still expecting UTF-8.
There is a slight difference in the initializing escape sequences:
0000000 033 [ H 033 [ 2 J 033 [ 2 4 d 033 [ ? 2
0000020 5 l F o r i n f o r m a t i o
0000040 n a b o u t t h e G N U
0000060 P r o j e c t a n d i t s
0000100 g o a l s , t y p e C - h
0000120 C - p . 033 [ K 033 [ H e - a c u t
0000140 e ( 351 ) 033 [ K \r \n 033 [ K \n 033 [ K
JY> Under X11, the e-acute and ellipsis characters both display properly in
JY> Emacs, while '√' (square root) displays as a white rectangle.
KH> Please tell me the result of the followings:
KH> (fontset-font (frame-parameter nil 'font) ?√)
nil
KH> (fontset-font "fontset-default" ?√)
(nil . "iso10646-1")
KH> And please type C-u C-x = while putting cursor on √.
character: √ (01236072, 343098, 0x53c3a, U+221A)
charset: mule-unicode-0100-24ff
(Unicode characters of the range U+0100..U+24FF.)
code point: 120 58
syntax: w which means: word
buffer code: 0x9C 0xF4 0xF8 0xBA
file code: 0xE2 0x88 0x9A (encoded by coding system mule-utf-8)
display: by this font (glyph code)
-Adobe-Courier-Medium-R-Normal--14-140-75-75-M-90-ISO10646-1 (0x221A)
-----------------------------------------------------------------------------
---------------- Actually, the above is for U+221A "SQUARE ROOT". If I
cut-and-paste from your
email, I get a square root character that Emacs does display:
> (fontset-font (frame-parameter nil 'font) ?√)
nil
> (fontset-font "fontset-default" ?√)
(nil . "jisx0208.1990")
> C-u C-x = while putting cursor on √.
character: √ (0150545, 53605, 0xd165)
charset: japanese-jisx0208 (JISX0208.1983/1990 Japanese Kanji:
ISO-IR-87.) code point: 34 101
syntax: _ which means: symbol
category: j:Japanese
|:While filling, we can break a line at this character.
buffer code: 0x92 0xA2 0xE5
file code: not encodable by coding system mule-utf-8
display: by this font (glyph code)
-Misc-Fixed-Medium-R-Normal--14-130-75-75-C-140-JISX0208.1983-0 (0x2265)
- char-displayable-p returns t for undisplayable characters, Jonathan Yavner, 2004/02/08
- Re: char-displayable-p returns t for undisplayable characters,
Jonathan Yavner <=
- Re: char-displayable-p returns t for undisplayable characters, Kenichi Handa, 2004/02/10
- Re: char-displayable-p returns t for undisplayable characters, Jonathan Yavner, 2004/02/11
- Re: char-displayable-p returns t for undisplayable characters, Stefan Monnier, 2004/02/11
- Re: char-displayable-p returns t for undisplayable characters, Jonathan Yavner, 2004/02/11
- Re: char-displayable-p returns t for undisplayable characters, Kenichi Handa, 2004/02/11
- Re: char-displayable-p returns t for undisplayable characters, Stefan Monnier, 2004/02/12