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

fixes #14932 - set default strings parser encoding to UTF-8 #21

Merged
merged 1 commit into from May 5, 2016

Conversation

domcleal
Copy link
Contributor

@domcleal domcleal commented May 5, 2016

I suspect tests may fail until #19's merged, as I changed the Jenkins job.

@@ -42,6 +42,7 @@ def initialize(file)
raise KafoParsers::ParseError, "'#{command}' returned error\n#{@raw_json}"
end

Encoding.default_external = Encoding::UTF_8 if defined?(Encoding) && Encoding.respond_to?(:default_external=)
Copy link
Member

Choose a reason for hiding this comment

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

on what Ruby version default_external= is not defined? is that defensive check?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, overly defensive - I left it in by accident in c04662f when fixing it for 1.8.7, let me remove it from both places.

@ares
Copy link
Member

ares commented May 5, 2016

Thanks @domcleal, merging!

@ares ares merged commit ac376e2 into theforeman:master May 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants