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

Include Charset for sun.jnu.encoding by default #10232

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fmeum
Copy link

@fmeum fmeum commented Dec 4, 2024

The Charset specified by sun.jnu.encoding is required e.g. for java.(n)io path encoding/decoding as the image inherits sun.jnu.encoding from the build environment. On Windows, this will typically be a legacy code page charset, which is otherwise not added by default.

The `Charset` specified by `sun.jnu.encoding` is required e.g. for `java.(n)io` path encoding/decoding as the image inherits `sun.jnu.encoding` from the build environment. On Windows, this will typically be a legacy code page charset, which is otherwise not added by default.
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Dec 4, 2024
@olpaw
Copy link
Member

olpaw commented Dec 16, 2024

On Windows, this will typically be a legacy code page charset, which is otherwise not added by default.

Makes sense to me. @fmeum did you check how much this increases the size of a helloworld image on Windows?

@olpaw olpaw self-requested a review December 16, 2024 08:43
@olpaw olpaw self-assigned this Dec 16, 2024
Copy link
Member

@olpaw olpaw left a comment

Choose a reason for hiding this comment

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

@fmeum I also need a test case that would fail without this change.
See also #10232 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants