[tex-live] A different formatting behaviour between luatex and luatex53

Roberto Giacomelli giaconet.mailbox at gmail.com
Fri May 18 11:25:48 CEST 2018


Hi all,
I was experimenting a tool for "internal" templating in LuaTeX using
TeX Live 2018. While the code successfully executed in luatex as expected,
this didn't in luatex53.
It's very simple to write the minimal (not) working example in the form
of the Lua file:
```
-- filename: test.lua
print(_VERSION)
local x = 1.23 -- a float
print(string.format("%d", x))
```

The output should be the string "1" but what happens in the terminal is...
```
$ luatex --luaonly test.lua
Lua 5.2
1
1
> Exit code: 0
```
and then
```
$ luatex53 --luaonly test.lua
Lua 5.3
test.lua:3: bad argument #2 to 'format' (number has no integer
representation)
>Exit code: 1
```

This is a consequence of the recent Lua developments, you know, but...

Thank you for your attention!

-- 
Roberto Giacomelli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/tex-live/attachments/20180518/d8c6bd69/attachment.html>


More information about the tex-live mailing list