[luatex] loadfile() broken in 0.74.0 (lua 5.2)

Manuel Pégourié-Gonnard mpg at elzevir.fr
Mon Jan 7 22:18:26 CET 2013


On 07/01/2013 11:24, Taco Hoekwater wrote:
> On 01/05/2013 08:09 PM, Manuel Pégourié-Gonnard wrote:
>> With the change to Lua 5.2, loadfile() should accept new arguments, most notably
>> the third one to provide an environment for the loaded chunk. This argument is
>> especially useful since setfenv() is removed in Lua 5.2.
>>
>> However, I'm afraid this argument is ignored by LuaTeX:
> 
> Thanks, will be fixed in next release.
> 
Great, thanks.

In the meantime, I worked around this by using load() which works as expected
(but one needs to locate and read the file manually).

Manuel.


More information about the luatex mailing list