-
Notifications
You must be signed in to change notification settings - Fork 14
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: Force sun.jnu.encoding
to be UTF-8 in images
#514
Conversation
Dependency ReviewThe following issues were found:
Snapshot WarningsRe-running this action after a short time may resolve the issue. See the documentation for more information and troubleshooting advice. License Issuespom.xml
OpenSSF ScorecardScorecard details
Scanned Manifest Filespom.xml
|
Images pick up `sun.jnu.encoding` from the host build environment, which thus needs to be UTF-8 to be able to access paths with non-ASCII characters in them on Linux. Since Bazel does not inherit `LC_CTYPE` from the host, the JVM would otherwise default to an ASCII locale. Signed-off-by: Fabian Meumertzheim <[email protected]>
Quality Gate passedIssues Measures |
@sgammon Looks like the sha for GraalVM 23 changed, do you happen to know why? |
@fmeum GraalVM posts "archive" and "latest" URLs; the archive URLs are not available immediately after release. It is expected as I don't think we've had a release since v23 initially came out. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #514 +/- ##
=====================================
Coverage ? 0
=====================================
Files ? 0
Lines ? 0
Branches ? 0
=====================================
Hits ? 0
Misses ? 0
Partials ? 0 ☔ View full report in Codecov by Sentry. |
This requires patching rules_graalvm with sgammon/rules_graalvm#514 to ensure the native image runs with `sun.jnu.encoding` set to `UTF-8` on Linux. Also enable unrelated tests after the recent java_tools update. Work towards #24444 Unblocks #24457 Closes #24565. PiperOrigin-RevId: 703409662 Change-Id: I44de4387de4a6da404436f5a35a2b27274122bbb
Images pick up
sun.jnu.encoding
from the host build environment, which thus needs to be UTF-8 to be able to access paths with non-ASCII characters in them on Linux. Since Bazel does not inheritLC_CTYPE
from the host, the JVM would otherwise default to an ASCII locale.