You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kaitai-struct-compiler throws error "/meta: unknown key found, expected: doc, doc-ref, enums, instances, meta, params, seq, types" for the ksy file if it has BOM char at the beginning (UTF-8 BOM). As a work around I manually changed the file encoding to UTF-8 and it works.
OS - windows 7 Professional
kaitai-struct-compiler 0.8
JDK 10
The text was updated successfully, but these errors were encountered:
It turns out that our usage of FileReader for opening YAML files in Java triggers use of system locale. If it's UTF-8, Java can handle (=skip) BOM properly (NB: don't trust this), but if locale is not Unicode-aware (and on Windows, it seems to be always something non-UTF8), this leads to this problem.
On Linux/Mac, a simple way to reproduce this is to run ksc as LC_ALL=C ksc ..., which typically leads to:
Kaitai-struct-compiler throws error "/meta: unknown key found, expected: doc, doc-ref, enums, instances, meta, params, seq, types" for the ksy file if it has BOM char at the beginning (UTF-8 BOM). As a work around I manually changed the file encoding to UTF-8 and it works.
OS - windows 7 Professional
kaitai-struct-compiler 0.8
JDK 10
The text was updated successfully, but these errors were encountered: