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
This commit is contained in:
Daniel Steinberg 2021-06-30 18:17:48 -04:00 committed by GitHub
parent 390fed3248
commit fe10a4e555
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,7 +123,7 @@ end
w('\n\nsyn case match') w('\n\nsyn case match')
local vimfun_start = 'syn keyword vimFuncName contained ' local vimfun_start = 'syn keyword vimFuncName contained '
w('\n\n' .. vimfun_start) 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 local started = 0
for name, def in pairs(funcs) do for name, def in pairs(funcs) do
if name then if name then