mitre / inspec_tools

A command-line and ruby API of utilities, converters and tools for creating, converting and processing security baseline formats, results and data
https://inspec-tools.mitre.org/
Other
91 stars 30 forks source link

Fixed issues with unstable inspec jsons #239

Closed rscrappy closed 3 years ago

rscrappy commented 3 years ago

Note: Ruby has trouble detecting if a file encoding is UTF-16LE or not, so the incorrect encoding is determined by if the "gsub" function in line 19 of inspec.rb throws its own error, which indicates a non-UTF-8 encoding.

Bialogs commented 3 years ago

https://github.com/mitre/inspec_tools/pull/240