United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4818483 Missing encoding conversion in PlainSocketImpl.socketCreate
JDK-4818483 : Missing encoding conversion in PlainSocketImpl.socketCreate

Details
Type:
Bug
Submit Date:
2003-02-13
Status:
Resolved
Updated Date:
2003-12-11
Project Name:
JDK
Resolved Date:
2003-08-17
Component:
core-libs
OS:
solaris,solaris_8
Sub-Component:
java.net
CPU:
sparc,generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.3.1_06,1.4.1
Fixed Versions:
1.3.1_11 (11)

Related Reports
Backport:
Backport:

Sub Tasks

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
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
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



Hardware and Software, Engineered to Work Together