XtConvertAndStore() error
Russell Shaw
rjshaw at netspace.net.au
Mon Feb 20 22:04:46 PST 2006
Hi,
In two unrelated X programs, XtConvertAndStore() fails saying:
Warning: Missing charsets in String to FontSet conversion
Warning: Unable to load any usable fontset
Error: Couldn't find per display information
This is the point of failure in one of them:
gui_init_tooltip_font()
{
XrmValue from, to;
from.addr = (char *)gui.rsrc_tooltip_font_name;
from.size = strlen(from.addr);
to.addr = (XtPointer)&gui.tooltip_fontset;
to.size = sizeof(XFontSet);
if (XtConvertAndStore(vimShell, XtRString, &from, XtRFontSet, &to) == False)
{
/* Failed. What to do? */
}
}
#endif
(gdb) print from.addr
$2 = 0x8181353 "XtDefaultFontSet"
(gdb) print from.size
$7 = 16
(gdb) print to.addr
$5 = 0x81a2b70 ""
(gdb) print to.size
$6 = 4
I'm using X.org on debian-sid.
More information about the xorg
mailing list