-
Notifications
You must be signed in to change notification settings - Fork 5.8k
8223187: Remove setLocale() call in jpackage native launcher #138
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
Conversation
👋 Welcome back almatvee! A progress list of the required criteria for merging this PR into |
@sashamatveev The following label will be automatically applied to this pull request: When this pull request is ready to be reviewed, an RFR email will be sent to the corresponding mailing list. If you would like to change these labels, use the |
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.
Looks good. I confirmed that these are the only two calls to setlocale
in the jpackage sources.
Note: the title of the JBS bug was updated. Can you update the PR title to match? |
Looks good to me. |
@sashamatveev This change now passes all automated pre-integration checks. In addition to the automated checks, the change must also fulfill all project specific requirements After integration, the commit message will be:
Since the source branch of this PR was last updated there have been 44 commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid automatic rebasing, please merge ➡️ To integrate this PR with the above commit message to the |
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.
Although I am curious why the setlocale() call was introduced in the first place, removing it in order to respect the platform default locale is generally considered a welcoming change. Approving the change assuming locale related testing has been done.
/integrate |
@sashamatveev Since your change was applied there have been 44 commits pushed to the
Your commit was automatically rebased without conflicts. Pushed as commit ac9d1b0. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
setlocale() affects several C functions. We do not use most of these functions. We only using isspace() and toLower(). Based on how we use it I do not see any needs for setlocale(). After removing it I retested jpackage by changing locally on machine and using different language as input parameters for jpackage. No issues found.
Progress
Issue
Reviewers
Download
$ git fetch https://git.openjdk.java.net/jdk pull/138/head:pull/138
$ git checkout pull/138