Skip to content

Commit

Permalink
AP_Scripting: avoid loading utf8
Browse files Browse the repository at this point in the history
  • Loading branch information
tpwrules committed Jun 17, 2024
1 parent f914647 commit 5f9ec4f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions libraries/AP_Scripting/lua_scripts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,6 @@ void lua_scripts::create_sandbox(lua_State *L) {
lua_pushstring(L, "io");
luaopen_io(L);
lua_settable(L, -3);
lua_pushstring(L, "utf8");
luaopen_utf8(L);
lua_settable(L, -3);
lua_pushstring(L, "package");
luaopen_package(L);
lua_settable(L, -3);
Expand Down
3 changes: 2 additions & 1 deletion libraries/AP_Scripting/tests/check.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"ffi": "disable",
"jit": "disable",
"table.clear": "disable",
"table.new": "disable"
"table.new": "disable",
"utf8": "disable"
},
"workspace": {
// These lua scripts are not for running on AP
Expand Down

0 comments on commit 5f9ec4f

Please sign in to comment.