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

JNI documentation doesn't specify character encoding for char* arguments

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 5.0
    • 1.4.1
    • docs
    • rc
    • generic
    • generic

      The Java Native Interface includes numerous functions that accept arguments of type char* or pointers to structs containing char* members. In most cases, the specification at http://java.sun.com/j2se/1.4.1/docs/guide/jni/spec/functions.doc.html does not specify the character encoding of these arguments. It should be clearly documented for each function and struct whether the char* arguments are encoded in the Java runtime's default encoding, in the Java-modified UTF-8 encoding specified at http://java.sun.com/j2se/1.4.1/docs/guide/jni/spec/types.doc.html#16542, in standard UTF-8, or in some other encoding.

            dkramersunw Douglas Kramer (Inactive)
            nlindenbsunw Norbert Lindenberg (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: