[tex-live] Fixed: bug in the latest TeX Live snapshot.

Peter Breitenlohner peb at mppmu.mpg.de
Tue Oct 12 11:55:07 CEST 2004


On Mon, 11 Oct 2004, Peter Breitenlohner wrote:

> On Sun, 10 Oct 2004, Karl Berry wrote:
>
>>    My guess is that something goes
>>    wrong in the module <Handle a glue node for mixed...>,
>> 
>> Especially since that appears to be mostly new code in etex 2.2
>> (although bearing some resemblance to code in the do_glue function in
>> etex 2.1), seems like a good guess.
>
> It is supposed to do the same thing as do_glue, but...
>
>> Here is a simple file.tex, distilling from all the others that have been
>> posted:
>> 
>>    \output={\shipout\box255}
>>    \loggingall
>>    \TeXXeTstate=1
>> 
>>    \parindent=0pt
>>    \beginR\centerline{Vyr hVyryM}\endR
>> 
>>    \end
>> 
>> Processed with simply "etex file.tex".

Hi Karl,

you were almost right. The bug was in the reverse function that is used to
reverse all or part of the contents of an hbox in order to achieve
right-to-left typesetting. The bug was caused by not initializing the local
variable g_order; consequently some glue stetch/shrink was not accounted
for, thus the bad positioning of reversed text.

It is really a pitty that 'gcc -O2 -Wall' is almost useless due to the
amount of the produced noise, otherwise that would certainly have shown the
uninitialized variable.

The bug was most visible when reversing a complete box, but there might also
have been some subtle differences when reversing just a segment.

Karl, Thomas, Olaf, and everybody else,

attached is a file "etex-bugfix-2004-10-12.tar.gz" containing:
1.	patch-24-etex-glue-rounding-bug
2.	ChangeLog, etex.ch
3.	etex.fix

(1) this patch contains the diffs to be applied to texk/web2c/etexdir.
Strictly speaking other people are not authorized to modify etex.ch; hereby
they have my permission to do so by applying this patch, provided they use a
patch program that properly sets the time stamps of modified files (such as
GNU patch with the option "-Z").

(2) these are the two modified files resulting from (1). Please keep the
timestamps!

(3) alternatively one could replace the empty file etexdir/etex.fix by this
one.

Olaf, Thomas,

can you please update the web2c and teTeX tarballs and see that things get
propagated to TeXlive.

regards
Peter Breitenlohner <peb at mppmu.mpg.de>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: etex-bugfix-2004-10-12.tar.gz
Type: application/octet-stream
Size: 60071 bytes
Desc: 
Url : http://tug.org/mailman/private/tex-live/attachments/20041012/5da82a9f/etex-bugfix-2004-10-12.tar-0001.obj


More information about the tex-live mailing list