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

Exception message from saproc.dll is garbled on Windows with Japanese locale

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 17
    • None
    • hotspot
    • None
    • b05

    Description

      I got garbled exception message as following when I run `livenmethods` CLHSDB command:

      ```
      sun.jvm.hotspot.debugger.DebuggerException : ?w???????W
      ```

      My Windows laptop is set Japanese Locale, garbled message was written in Japanese.
      saproc.dll would throw exception via `ThrowNew()` JNI function, but it accepts UTF-8 encoded message. However `FormatMessage()` Windows API would not return UTF-8 encoded string on Japanese locale.

      Attachments

        Issue Links

          Activity

            People

              ysuenaga Yasumasa Suenaga
              ysuenaga Yasumasa Suenaga
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: