Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

usage about Lua, and abort on UTF-16LE. #15

Closed
robertlzj opened this issue May 21, 2022 · 1 comment
Closed

usage about Lua, and abort on UTF-16LE. #15

robertlzj opened this issue May 21, 2022 · 1 comment

Comments

@robertlzj
Copy link

robertlzj commented May 21, 2022

Hi, I don't find any API usage about lua, seeking from windows_resource_file etc.
I wonder if it's not lua ready.
Finally, I make up some code, reference from other program language.

assert(not WindowsLnkFile and not KaitaiStream)
local module_result=require'windows_lnk_file'
--   no 'kaitaistruct' / 'string_stream' needed
assert(module_result==true and WindowsLnkFile and KaitaiStream)

local file_path=<path>
local file_handle=io.open(file_path,'rb')
--	local file_stream=file_handle:read'a'
--	must not read, or position is wrong
local file_stream=KaitaiStream(file_handle)
WindowsLnkFile(file_stream)

But get error "Encoding UTF-16LE not supported".
Is there any suggestion?


made a pull request #16

@robertlzj robertlzj changed the title usage about Lua, and usage about Lua, and abort on UTF-16LE. May 21, 2022
@robertlzj
Copy link
Author

made a pull request #16
but still be curious the progress, can't wait to use 🤣

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant