On Tue, Mar 28, 2017 at 1:25 PM, Joseph Wright <[email protected]> wrote: > Hello all, > > Testing with LuaTeX v1.04 (using the W32TeX build in my case) I find an > oddity with the handling of ^^@ (null) at the 'Lua side' (for scripting > some tests). The attached demo document reads > > ....\T1/cmr/m/n/10 ^@ > ....\kern -5.13763 (for accent) > > (with null shown Vim-style as ^@). Up to recent LuaTeX builds, a script > such as > > for line in io.lines("test.txt") do > print(string.gsub(line, string.char(0), "^^" .. string.char(64))) > end > > can read that file and output the expected two lines > > ....\T1/cmr/m/n/10 ^^@ > ....\kern -5.13763 (for accent) > > However, with the v1.04 build I get only a single line > > ....\T1/cmr/m/n/10 ....\kern -5.13763 (for accent) > > Does anyone know if this is a deliberate change in Lua or if something > else is wrong? Lua normally treats bytes including ^^@ 'equally'. > > Joseph Latest two months we have made a cleanup of the lua libs part, so I guess that it's a side effect. Lua 5.2.4 and luatex 1.0.4 now give the same output and before we didn't notice the difference.
-- luigi
