Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8274784

jshell: Garbled character was displayed by System.out.println(...) on Japanese Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 18
    • Fix Version/s: 18
    • Component/s: tools
    • Labels:
      None
    • Subcomponent:
    • Introduced In Build:
      b13
    • Introduced In Version:
      18
    • Resolved In Build:
      b26
    • CPU:
      generic
    • OS:
      windows

      Description

      JEP-400 was implemented by JDK18-b13.
      After JDK18-b13, garbled character was displayed by following code on Japanese Windows' command prompt.

      System.out.println("\u3042")

      Japanese "A" should be displayed, but garbled character was displayed.
      See jshell-image01.png

      Also saved jshell command list did not work as expected if Japanese character was there.
      See jshell-image02.png

      Following issue has some information
      8274544: Langtools command's usage were garbled on Japanese Windows #5771
      https://github.com/openjdk/jdk/pull/5771

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              itakiguchi Ichiroh Takiguchi
              Reporter:
              itakiguchi Ichiroh Takiguchi
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: