file.encoding system property has an incorrect value on Windows

    IssueFix VersionAssigneePriorityStatusResolutionResolved In Build
    JDK-827537917.0.2 Naoto SatoP3ResolvedFixedb03

      https://mail.openjdk.java.net/pipermail/core-libs-dev/2021-October/082387.html

      The `file.encoding` system property should be set to sprops->sun_jnu_encoding for platforms except MacOS but a regression introduced inJDK-4947890 that set its value to sprops->encoding instead.

      #ifdef MACOSX
              /*
               * Since sun_jnu_encoding is now hard-coded to UTF-8 on Mac, we don't
               * want to use it to overwrite file.encoding
               */
              PUTPROP(props, "file.encoding", sprops->encoding);
      #else
              PUTPROP(props, "file.encoding", sprops->sun_jnu_encoding);
      #endif

        backported by

        Backport - A issue that is required to port a Bug or Feature into another product release. This issue type is generally associated with the main Bug/Feature to represent each individual release of the port.JDK-8275379file.encoding system property has an incorrect value on Windows

        • P3 - Major loss of function.
        • Resolved
        csr for

        CSR - nullJDK-8275309file.encoding system property has an incorrect value on Windows

        • P3 - Major loss of function.
        • Closed
        relates to

        Bug - A problem which impairs or prevents the functions of the product.JDK-8352917Incorrect native.encoding on Windows

        • P4 - Minor loss of function, or other problem where easy workaround is present.
        • Closed

        Enhancement - nullJDK-4947890Minimize JNI upcalls in system-properties initialization

        • P3 - Major loss of function.
        • Resolved
        links to

        CommitCommitopenjdk/jdk17u/031c033f

          CommitCommitopenjdk/jdk/ad9e234f

            ReviewReviewopenjdk/jdk17u/213

              ReviewReviewopenjdk/jdk/5953

                (3 links to)