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

Set up locale env variables #14

Merged

Conversation

lukaszzdanikowski
Copy link
Contributor

Setting those variables fixes the issue that sonar has with non-asci chars in filenames

@lukaszzdanikowski
Copy link
Contributor Author

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?

Copy link
Contributor

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"

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

Suggested change
ENV LC_TYPE="C.UTF-8"
ENV LC_CTYPE="C.UTF-8"

Copy link
Contributor Author

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.

Setting those variables fixes the issue that sonar has with non-asci chars in filenames
@lukaszzdanikowski
Copy link
Contributor Author

Hi @tom-vanbraband-sonarsource any updates on the PR?

@tom-vanbraband-sonarsource tom-vanbraband-sonarsource merged commit 5c2f7d2 into SonarSource:master Apr 19, 2021
@tom-vanbraband-sonarsource
Copy link
Contributor

Thanks @lukaszzdanikowski!

@lukaszzdanikowski lukaszzdanikowski deleted the patch-1 branch September 3, 2021 08:54
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.

4 participants