JDK-8354464 : Additional cleanup setting up native.encoding
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2025-04-12
  • Updated: 2025-04-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Description
The setting of the native.encoding property could use some additional cleanup. Specifically:

1. There is #ifdef MACOSX in platform-independent native code, which should be migrated into platform-specific code.

2. Windows code sets up sprops.encoding but the code path in platform-independent code ignores it and uses sprops.sun_jnu_encoding instead.