[comp.windows.x] R4 xman bug

jw@sics.se (Johan Widen) (01/14/90)

			  X Window System Bug Report
			    xbugs@expo.lcs.mit.edu


VERSION:
    R4

CLIENT MACHINE and OPERATING SYSTEM:
    Sun/4 workstations running 4.0.3

DISPLAY TYPE:
    bwtwo0

WINDOW MANAGER:
    twm

AREA:
    clients/xman

SYNOPSIS:
    DumpText() (in xman/ScrollByL.c) gets an illegal parameter combination

DESCRIPTION:
    When xman encounters the following line in the gcc online manual
	.BI \-f flag
    It exits with the message
	SBLW: cannot be both bold and italic.

    The bug appears to be context sensitive. There are similar lines earlier
    in the manual but they do not trigger the bug.

REPEAT BY:
    Display the gcc manual (gcc.1) in xman. (We are using the manual that comes
    with gcc-1.36.92). The bug is triggered somewhere after the line
	.B \-mno-epilogue

STOP-GAP FIX:

*** ScrollByL.c.org	Mon Dec 18 21:30:07 1989
--- ScrollByL.c	Sun Jan 14 16:07:13 1990
***************
*** 946,952 ****
  	bold = ( (first) || ((x_loc == (sblw->scroll.offset +
  			      sblw->scroll.indent)) && Boldify(buf)) );
  
! 	(void) DumpText(w, x_loc, y_loc, buf, bufp - buf, italicflag, bold);
  	if (bold)
  	  first = FALSE;
        }
--- 946,953 ----
  	bold = ( (first) || ((x_loc == (sblw->scroll.offset +
  			      sblw->scroll.indent)) && Boldify(buf)) );
  
! 	(void) DumpText(w, x_loc, y_loc, buf, bufp - buf, italicflag,
! 			bold & !italicflag);
  	if (bold)
  	  first = FALSE;
        }
--
Johan Widen
SICS, PO Box 1263, S-164 28 KISTA, SWEDEN	Internet: jw@sics.se
Tel: +46 8 752 15 32	Ttx: 812 61 54 SICS S	Fax: +46 8 751 72 30