forwarded 679875 [email protected]
thanks
Hi DJ,
The font problem is still present. Could you look at the code to see if
there is a way around the problem when font is not available. The previous
discussion is at:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=679875
If all others fail, perhaps using perror() + exit() is the only solution?
Jari
2012-11-02 04:32 Jonathan Nieder <[email protected]>:
| | Program received signal SIGSEGV, Segmentation fault.
|
| Here's a quick patch to demonstrate where the problem is.
|
| diff --git i/lib/help.c w/lib/help.c
| index a8dcd3d4..66805531 100644
| --- i/lib/help.c
| +++ w/lib/help.c
| @@ -176,6 +176,8 @@ help_init()
| {
| if (!fonts[i])
| fonts[i] = XLoadQueryFont(display, i & STYLE_TT ? "fixed" :
"variable");
| + if (!fonts[i])
| + exit(1);
| thin_space[i] = XTextWidth(fonts[i], " ", 1);
| }
| for (i=0; i<NTAGS; i++)
| diff --git i/lib/xwin.c w/lib/xwin.c
| index 2c8fcfaf..658fa3e8 100644
| --- i/lib/xwin.c
| +++ w/lib/xwin.c
| @@ -217,6 +217,7 @@ xwin_init(int argc, char **argv)
| font = XLoadQueryFont(display, "6x13bold");
| if (!font) font = XLoadQueryFont(display, "6x10");
| if (!font) font = XLoadQueryFont(display, "fixed");
| + if (!font) exit(1);
| font_width = font->max_bounds.width;
| font_height = font->ascent + font->descent;
|
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]