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

Fix encoding for native images #87

Closed
Schaka opened this issue Oct 14, 2024 · 2 comments
Closed

Fix encoding for native images #87

Schaka opened this issue Oct 14, 2024 · 2 comments

Comments

@Schaka
Copy link
Owner

Schaka commented Oct 14, 2024

Currently, native images don't encode file paths properly.
This is because sun.jnu.encoding is not passed correctly at build time by the looks of it.

There's a ticket over at paketo's buildpack: paketo-buildpacks/native-image#344
Additionally, someone documented this behavior with vanilla GraalVM: https://gist.github.com/volgar1x/3b27360eac7b989c167bf7d548135f9c

@Schaka
Copy link
Owner Author

Schaka commented Oct 16, 2024

By the looks of it, this seems to be a bug in the way paketo buildpacks build the image.
If I cannot get a sufficient response from the GraalVM team over at Oracle, I may need to create and manage my own buildpack or switch over to Kotlin Path API which seems to at least somewhat work

@Schaka
Copy link
Owner Author

Schaka commented Oct 19, 2024

This is temporarily fixed with a hacky workaround

@Schaka Schaka closed this as completed Oct 19, 2024
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

No branches or pull requests

1 participant