From fe10a4e5550d63390d8ff4bc8b91ccb00e9da00f Mon Sep 17 00:00:00 2001 From: Daniel Steinberg Date: Wed, 30 Jun 2021 18:17:48 -0400 Subject: [PATCH] Open funcs_data.mpack in binary mode. (#14944) "b" flag is required to read binary files on Windows. https://www.lua.org/pil/21.2.2.html --- scripts/genvimvim.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/genvimvim.lua b/scripts/genvimvim.lua index ccd5489fdc..2c3701bf0c 100644 --- a/scripts/genvimvim.lua +++ b/scripts/genvimvim.lua @@ -123,7 +123,7 @@ end w('\n\nsyn case match') local vimfun_start = 'syn keyword vimFuncName contained ' w('\n\n' .. vimfun_start) -funcs = mpack.unpack(io.open(funcs_file):read("*all")) +funcs = mpack.unpack(io.open(funcs_file, 'rb'):read("*all")) local started = 0 for name, def in pairs(funcs) do if name then