[luatex] portable fmt between 32-bit/64-bit machines

Michal Vlasák lahcim8 at gmail.com
Tue Feb 8 01:58:27 CET 2022


Hello,

On Mon Feb 7, 2022 at 9:15 AM CET, luigi scarso wrote:
> Hi,
> here
> https://github.com/latex3/latex2e/issues/775
> there is an issue about the portability of the lua bytecode .
> Suggestions ?
> In any case, the patches are  not for TeXLive 2022 .
>
> -- 
> luigi

What about at least some variation on the below? Then the real error
message gets displayed -- though surely the current message is there for
a good reason, so maybe display both?

    --- a/lua/llualib.c
    +++ b/lua/llualib.c
    @@ -199,7 +199,8 @@ static int get_bytecode(lua_State * L)
     #else
                      "bytecode", NULL)) {
     #endif
    -                return luaL_error(L, "bad bytecode register");
    +                // error message is on top of the stack
    +                return lua_error(L);
                 } else {
                     lua_pushvalue(L, -1);
                     bytecode_register_shadow_set(L, k);


With that, the immediate problem is obvious:

    bytecode: size_t size mismatch in precompiled chunk

I posted a few more details on github:

https://github.com/latex3/latex2e/issues/775#issuecomment-1032099002

Michal Vlasák



More information about the luatex mailing list.