[luatex] Strange behavior of tex.print.

taco taco at elvenkind.com
Sat Apr 30 16:16:37 CEST 2011


Heiko Oberdiek wrote:
> On Sat, Apr 30, 2011 at 12:03:35PM +0200, Paul Isambert wrote:
> 
>> Le 29/04/2011 12:36, Heiko Oberdiek a écrit :
>>> On Fri, Apr 29, 2011 at 09:46:27AM +0200, Paul Isambert wrote:
>>>
>>>> Le 29/04/2011 09:25, Ulrike Fischer a écrit :
>>>>> tex.print(9, "c", "\relax")   --gives "cflflelax" why?
>>>> Thanks Patrick and Ulrike, the second fl is indeed \r, I missed
>>>> that; now the questions is: why are end-of-line characters printed
>>>> as if they had catcode 12?
>>> Perhaps in your case is \catcode\endlinechar=12?
>> No. I tested with usual catcodes around. But does this mean that you
>> don't encounter the problem, Heiko, and so perhaps it's
>> version-bound? (Mine is v.0.66 rev 4136).
> 
> I also get tokens with catcode 12 in case of unknown catcode tables:

It took me a while to realize this thread is about a luatex bug.
Currently, invalid catcode tables are *not* ignored. Instead a request
is made internally for a non-existent catcode table, and in such tables,
all catcodes are presumed 12.

Fixed now in commit 4233 (trunk) and 4234 (branches/0.70.x)


Best wishes,
Taco


More information about the luatex mailing list