-
Notifications
You must be signed in to change notification settings - Fork 223
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
Set up locale env variables #14
Set up locale env variables #14
Conversation
Hi @dagwieers @kenhuang @simonbrandhof (sorry for pointing directly at you, I've just picked last 3 contributors) are there any chances in merging this PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies for the delay.
Can you explain why setting just ENV LC_ALL="C.UTF-8"
is not enough? According to the documentation this variable takes precedence over all others.
Dockerfile
Outdated
@@ -14,6 +14,12 @@ ARG NODEJS_HOME=/opt/nodejs | |||
|
|||
ENV PATH=${PATH}:${SONAR_SCANNER_HOME}/bin:${NODEJS_HOME}/bin | |||
|
|||
# set up local envs in order to allow for special chars (non-asci) in filenames | |||
ENV LC_TYPE="C.UTF-8" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe the correct key is LC_CTYPE
ENV LC_TYPE="C.UTF-8" | |
ENV LC_CTYPE="C.UTF-8" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tom-vanbraband-sonarsource sorry for the delay. Yep - you are right LC_ALL
is enough. I've adjusted the PR content.
de27e24
to
0b086ab
Compare
Setting those variables fixes the issue that sonar has with non-asci chars in filenames
0b086ab
to
cf7128a
Compare
Hi @tom-vanbraband-sonarsource any updates on the PR? |
Thanks @lukaszzdanikowski! |
Setting those variables fixes the issue that sonar has with non-asci chars in filenames