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

Allow \uxxxx unicode-escaping on the jvm command-line arguments

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P3 P3
    • tbd
    • 7u6, 15, 16
    • tools

      Enhancement request from a customer.

      When launching a Java Application under Windows using the Tanuki Wrapper, it
      is impossible to properly send Unicode Characters to the command-line,
      perhaps at all, perhaps without tightly restricting the System Encoding
      configuration. It would really help, if we could Unicode-escape \uXXXX
      characters on the command-line and then add a JVM argument to indicate this
      was done. This would allow passing any Unicode character, even if only ASCII
      is available on the command-line.

      It appears that the Tanuki codebase uses the proper Win32 Unicode magic.

      It appears that the JVM command-line arguments under Windows are parsed in
      hotspot.src.os.windows.launcher.java_md.c and that it would be simple to
      pre-parse the command-line to handle Unicode in this way.

      The IBM JVM has this feature. See

      http://publib.boulder.ibm.com/infocenter/javasdk/v5r0/index.jsp?topic=%2Fcom.ibm.java.doc.user.aix64.50%2Fuser%2Fglobalization.html

      for Example.

       

            Unassigned Unassigned
            asaha Abhijit Saha
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated: