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

Declare control source as UTF-8 encoding. #34

Merged
merged 1 commit into from
May 21, 2019

Conversation

james-stocks
Copy link
Contributor

Fixes #33

There are a number of issues open and closed for encoding in InSpec profiles https://github.com/inspec/inspec/issues?utf8=%E2%9C%93&q=is%3Aissue+encoding

To work in all versions of InSpec currently supported, this profile should keep the # encoding: UTF-8 declaration.

Signed-off-by: James Stocks jstocks@chef.io

Fixes dev-sec#33

There are a number of issues open and closed for encoding in InSpec profiles https://github.com/inspec/inspec/issues?utf8=%E2%9C%93&q=is%3Aissue+encoding

To work in all versions of InSpec currently supported, this profile should keep the `# encoding: UTF-8` declaration.

Signed-off-by: James Stocks <jstocks@chef.io>
Copy link
Member

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @james-stocks

@chris-rock chris-rock merged commit af883f3 into dev-sec:master May 21, 2019
@zenspider
Copy link

This commit doesn't make sense to me. Someone want to give me some background? Ruby's default internal encoding has been UTF-8 since 2.0.

@chris-rock
Copy link
Member

chris-rock commented May 21, 2019

This is really a bug in InSpec that we mitigate here. Therefore you should better ask there.

@zenspider
Copy link

zenspider commented May 23, 2019

I'm on inspec, which is why I'm asking...

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

Successfully merging this pull request may close these issues.

Profile fails inspec json
3 participants