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

Missing encoding conversion in PlainSocketImpl.socketCreate

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.3.1_11
    • 1.3.1_06, 1.4.1
    • core-libs
    • 11
    • generic, sparc
    • solaris, solaris_8

        It appears that an encoding conversion is missing when the function Java_java_net_PlainSocketImpl_socketCreate in src/solaris/native/java/net/PlainSocketImpl.c obtains a string from the C library function strerror and then passes it on to the JNI function ThrowNew. C library functions use the native encoding of the current locale, e.g., EUC-JP for Japanese, while JNI functions generally expect Java-modified UTF-8.

              jccollet Jean-Christophe Collet (Inactive)
              nlindenbsunw Norbert Lindenberg (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: