JDK-4818483 : Missing encoding conversion in PlainSocketImpl.socketCreate
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 1.3.1_06,1.4.1
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris,solaris_8
  • CPU: generic,sparc
  • Submitted: 2003-02-13
  • Updated: 2003-12-11
  • Resolved: 2003-08-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.3.1_11 11Fixed
Description
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.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: 1.3.1_11 1.4.2_04 generic tiger FIXED IN: 1.3.1_11 1.4.2_04 tiger INTEGRATED IN: 1.3.1_11 1.4.2_04 tiger tiger-b16
2004-06-14

EVALUATION Yes, although this is a very rare error condition, it is still something we need to fix. Commited to Tiger. ###@###.### 2003-02-13
2003-02-13