Bug#277335: fix

2005-04-04 Thread TSUCHIYA Masatoshi
Hi,

>> On Wed, 30 Mar 2005 15:16:54 +0100
>> [EMAIL PROTECTED] (Robert Hart) said as follows:

>This bug is debian specific and due to the patched dvi-draw.c

Thanks for your contribution.

>This fixes the problem for me.

Unfortunately, this does not fix the your reported problem in my
environment.  When displaying your sample TeX code with patched xdvi,
it says as follows:

% xdvi sample.dvi
xdvi.bin 22.84.8 j1.22 (Xaw toolkit): events.c:4144: Shouldn't happen: 
Segmentation fault - trying to clean up and aborting ...
xdvi: xdvi.bin terminated abnormally: 6

The debian package which including both new upstream and your patch is
put at:

http://namazu.org/~tsuchiya/debian/xdvik-ja/

Can you try it?

-- 
TSUCHIYA Masatoshi


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#277335: fix

2005-04-04 Thread TSUCHIYA Masatoshi
>> On Mon, 04 Apr 2005 12:48:14 +0100
>> [EMAIL PROTECTED] (Robert Hart) said as follows:

>Who wrote the rotated  hline stuff? It's not in upstream.

It is included in the localization patch distributed at
.

-- 
TSUCHIYA Masatoshi


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#277335: fix

2005-04-04 Thread Robert Hart
If the rotated hline occurs early in the dvi file, then it is possible
that globals.gc.rule is null, hence the SEGV.

You need to add the following into dvi-draw.c:set_rotated_rule before
the XFillPolygon call:

#if COLOR
if (fg_active != fg_current)
do_color_change();
#endif

This brings it inline with put_rule.

Rob

On Mon, 2005-04-04 at 20:55 +0900, TSUCHIYA Masatoshi wrote:
> >> On Mon, 04 Apr 2005 12:48:14 +0100
> >> [EMAIL PROTECTED] (Robert Hart) said as follows:
> 
> >Who wrote the rotated  hline stuff? It's not in upstream.
> 
> It is included in the localization patch distributed at
> .
> 
-- 
Robert Hart <[EMAIL PROTECTED]>
University of Nottingham


This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#277335: fix

2005-04-04 Thread Robert Hart
On Mon, 2005-04-04 at 18:34 +0900, TSUCHIYA Masatoshi wrote:
> Hi,
> 
> % xdvi sample.dvi
> xdvi.bin 22.84.8 j1.22 (Xaw toolkit): events.c:4144: Shouldn't happen: 
> Segmentation fault - trying to clean up and aborting ...
> xdvi: xdvi.bin terminated abnormally: 6
> 
> The debian package which including both new upstream and your patch is
> put at:
> 
> http://namazu.org/~tsuchiya/debian/xdvik-ja/
> 
> Can you try it?

Ok. I see the same error as you on my sample, however my original
problem was with a rotated table in a much larger document, and in that
case it works without error. I will try and look into it later. 

Who wrote the rotated  hline stuff? It's not in upstream.

Rob

-- 
Robert Hart <[EMAIL PROTECTED]>
University of Nottingham


This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#277335: fix

2005-03-30 Thread Robert Hart
This bug is debian specific and due to the patched dvi-draw.c

specifically in set_rotated_rule(), the line

if (--globals.ev.ctr == 0) read_events(False);

should be replaced by:

if (--globals.ev.ctr == 0) {
  if (read_events(EV_NOWAIT) & EV_GE_MAG_GONE) {
/*  fprintf(stderr, "longjmp1!\n"); */
longjmp(globals.ev.canit, 1);
  }
}

to be consistent with the way read_events is used elsewhere. This fixes
the problem for me.

Please can you apply this fix, the bug is very old.

Rob

-- 
Robert Hart <[EMAIL PROTECTED]>
University of Nottingham


This message has been checked for viruses but the contents of an attachment
may still contain software viruses, which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]