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

Default to a sensible encoding #315

Merged
merged 2 commits into from
May 24, 2019
Merged

Conversation

ekoutanov
Copy link
Contributor

Will work with files that contain unicode characters, closest to Debian'sC.UTF-8 on distros where the latter tends to be omitted out of the box (Arch, Fedora, CentOS, RedHat, Oracle, etc.).

Note: The default (if LANG is unspecified) is just en_US (well, actually depending on the installation locale), which is ISO 8859-1 — essentially ASCII with an 8th bit. Given Java's native support for unicode, leaving the default en_US is less than ideal.

@tianon
Copy link
Member

tianon commented May 16, 2019

There was some discussion around this over in #212 (comment) before we created these images -- @robilad do you think this makes sense while https://openjdk.java.net/jeps/8187041 is still in-progress? Do you think it would make sense to link to https://openjdk.java.net/jeps/8187041 in a comment here (both as a reminder for us and as a pointer for users looking for further reading)?

@ekoutanov
Copy link
Contributor Author

The issue you refer to is unfortunately closed. Seems to have been a passing conversation that wasn't really addressed at the time.

With the current defaults, javac complains when compiling a file that has unicode characters, so clearly the defaults are insufficient.

@ekoutanov
Copy link
Contributor Author

So what are we doing about this? @tianon, noticed you reacted with a confused emoji; is there anything you need me to clarify about the pull request?

@tianon
Copy link
Member

tianon commented May 24, 2019

Apologies, I lost track of this one. I've just pushed a rebase and an extra commit to update the template and version 13; if the CI passes, I think we're good to go. 👍

@tianon tianon merged commit 2544422 into docker-library:master May 24, 2019
docker-library-bot added a commit to docker-library-bot/official-images that referenced this pull request May 25, 2019
Changes:

- docker-library/openjdk@2544422: Merge pull request docker-library/openjdk#315 from obsidiandynamics/master
- docker-library/openjdk@554ff38: Update template and apply to both 12 and 13
- docker-library/openjdk@349703e: Default to a sensible encoding
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.

2 participants