The gutter code relies on the toolkit to handle text encoding, which under
X11 mostly fails when handed the XEmacs and SXEmacs internal encoding.
Stephen Turnbull has a comment somewhere in the source tree saying “###This
should be a face” about the gutter text, and he’s right; if it were, we
could rely on the normal Mule redisplay code to handle the encoding.
Ar an chéad lá de mí Lúnasa, scríobh Zajcev Evgeny:
I'm having problems displaying russian characters in (S)XEmacsen
gutters.
I tried XEmacs 21.4.21 and SXEmacs 22.1.10 with Mule support.
(set-specifier default-gutter-visible-p t (current-buffer))
(set-specifier top-gutter "Русский" (current-buffer))
It displays gargabe in the gutter, something like "Рскй(e". Sometimes
(S)XEmacs crashes after i set russian in the gutter for several times.
Here is the backtrace of XEmacs crash (unfortunately i have no debug
symbols in it):
(gdb) where
#0 0x2884a1a7 in kill () from /lib/libc.so.6
#1 0x080b032b in fatal_error_signal ()
#2 0xbfbfff94 in ?? ()
#3 0x0000000b in ?? ()
#4 0x0000000c in ?? ()
#5 0xbfbfceb0 in ?? ()
#6 0x12081208 in ?? ()
#7 0x080b0224 in ensure_no_quitting_from_now_on ()
#8 0x0817d4a9 in create_string_text_block ()
#9 0x0817de69 in generate_string_display_line ()
#10 0x0817e048 in generate_displayable_area ()
#11 0x0814b35d in calculate_gutter_size ()
#12 0x0814c91e in gutter_specs_changed ()
#13 0x0814cb16 in top_gutter_specs_changed ()
#14 0x081a516c in recompute_one_cached_specifier_in_window ()
#15 0x081a52e6 in recompute_cached_specifier_everywhere_mapfun ()
[...]
I think (S)XEmacs must support non-ascii characters in gutters. I can
provide effort to fix this, however i have no idea how redisplay works
and what is Bufbyte, Emchar, how they relates and so on ..
Thanks
--
lg
--
¿Dónde estará ahora mi sobrino Yoghurtu Nghé, que tuvo que huir
precipitadamente de la aldea por culpa de la escasez de rinocerontes?
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta