lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

> luac.exe offers a "-o -" option to dump bytecode to stdout.
> Unfortunately, Windows considers stdout as an ASCII output, and therefore
> translates all occurrences of "0x0a" into "0x0d, 0x0a", thus corrupting the
> produced bytecode.

This is not documented so you may take it as a feature available in *nix
systems but not in Windows. So, it's not a bug. Adding the untested code
below at the beginning of main probably fixes it.

#ifdef _WIN32