From 1dd0ee62c39cd03a27f11a64ec27ca54841b456f Mon Sep 17 00:00:00 2001 From: Luigi Scarso <luigi.scarso@gmail.com> Date: Wed, 1 Mar 2017 08:56:17 +0000 Subject: [PATCH] _G now in package.loaded; dropped useless newline in luainit. --- source/texk/web2c/luatexdir/lua/luainit.w | 1 - source/texk/web2c/luatexdir/lua/luastuff.w | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/source/texk/web2c/luatexdir/lua/luainit.w b/source/texk/web2c/luatexdir/lua/luainit.w index cbad0f087..075143391 100644 --- a/source/texk/web2c/luatexdir/lua/luainit.w +++ b/source/texk/web2c/luatexdir/lua/luainit.w @@ -965,7 +965,6 @@ void lua_initialize(int ac, char **av) } /* make sure that the locale is 'sane' (for lua) */ - putenv(LC_CTYPE_C); putenv(LC_COLLATE_C); putenv(LC_NUMERIC_C); diff --git a/source/texk/web2c/luatexdir/lua/luastuff.w b/source/texk/web2c/luatexdir/lua/luastuff.w index 914730375..6dc70d54c 100644 --- a/source/texk/web2c/luatexdir/lua/luastuff.w +++ b/source/texk/web2c/luatexdir/lua/luastuff.w @@ -112,7 +112,7 @@ void luafunctioncall(int slot) @ @c static const luaL_Reg lualibs[] = { - {"", luaopen_base}, + {"_G", luaopen_base}, {"package", luaopen_package}, {"coroutine", luaopen_coroutine}, {"table", luaopen_table}, -- GitLab