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 #18356 - Ensure UTF-8 encoding #252

Merged
merged 3 commits into from Jun 20, 2017

Conversation

adamruzicka
Copy link
Contributor

Let's override the default locale with C.UTF-8. Users wanting to use their own locales can set them in their scripts, as long as the encoding is UTF-8.

Requires theforeman/foreman-tasks#254

@@ -28,6 +28,7 @@ def start
# pipe the output to tee while capturing the exit code in a file
script = <<-SCRIPT.gsub(/^\s+\| /, '')
| sh <<WRAPPER
| LC_ALL=C.UTF-8
Copy link
Member

Choose a reason for hiding this comment

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

I guess this is not needed anymore

@iNecas
Copy link
Member

iNecas commented Jun 20, 2017

Tested and worked well, one request

@adamruzicka
Copy link
Contributor Author

Comments addressed

@iNecas iNecas merged commit ddba977 into theforeman:master Jun 20, 2017
@iNecas
Copy link
Member

iNecas commented Jun 20, 2017

Thanks @adamruzicka

@adamruzicka adamruzicka deleted the fix/encoding branch June 21, 2017 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants