[luatex] behavior of \write in LuaTeX differs from the one of PdfTeX/XeTeX

David Carlisle d.p.carlisle at gmail.com
Wed Mar 25 12:07:14 CET 2015


On 25 March 2015 at 10:44, luigi scarso <luigi.scarso at gmail.com> wrote:

>
>
> On Wed, Mar 25, 2015 at 11:12 AM, Hans Hagen <pragma at wxs.nl> wrote:
>
>> On 3/24/2015 7:36 PM, jfbu wrote:
>>
>>  This is XeTeX, Version 3.14159265-2.6-0.99991 (TeX Live 2014) (preloaded
>>> format=xetex 2014.7.10)  24 MAR 2015 19:25
>>>
>>> This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014)
>>> (preloaded format=pdfetex 2015.1.21)  24 MAR 2015 19:35
>>>
>>> This is LuaTeX, Version beta-0.79.1 (TeX Live 2014) (rev 4971)
>>> (format=luatex 2014.7.10)  24 MAR 2015 19:36
>>>
>>
>> btw, you should run pdftex/xetex in -8bit mode in order to compare
>>
>> pdftex -8bit
> and
> xetex -8bit
> both give the same result
> (luatex is in '-8bit' mode by default).
>
> --
> luigi
>



It's true that luatex acts like pdftex -8bit here but this appears to be a
bug (in all three engines)

\immediate\write20{start}

\catcode`\^^M=12
\immediate\write20{aaaa^^Mb^^Mc}
\bye



outputs

caaa

that is the ^^M is causing the write to restart the line overprinting
earlier characters.

pdftex without -8bit produces

aaaa^^Mb^^Mc


David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/luatex/attachments/20150325/16a57a59/attachment.html>


More information about the luatex mailing list