JDK-4393099 : Need CharToByte and ByteToChar converters for x-compound-text encoding
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio.charsets
  • Affected Version: 1.2.1,1.3.0,1.4.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS:
    generic,solaris_2.5.1,solaris_7,solaris_8 generic,solaris_2.5.1,solaris_7,solaris_8
  • CPU: generic,sparc
  • Submitted: 2000-11-28
  • Updated: 2001-03-20
  • Resolved: 2001-03-20
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.4.0 betaFixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Description
The putback for the merlin implict text conversions project (BugID 4258903)
assumes that X11-COMPOUND_TEXT is a fully supported encoding in the Sun JRE.
However, converters for this encoding have not yet been written. Attempts to
transfer text between two Solaris or Linux JVMs will generate the following
(non-fatal) exception:

java.io.UnsupportedEncodingException: X11-COMPOUND_TEXT
        at sun.io.Converters.getConverterClass(Converters.java:107)
        at sun.io.Converters.newConverter(Converters.java:138)
        at sun.io.CharToByteConverter.getConverter(CharToByteConverter.java:67)
        at java.lang.String.getCTBConverter(String.java:157)
        at java.lang.String.getBytes(String.java:685)
        at sun.awt.datatransfer.DataTransferer.translateTransferable(DataTransferer.java:647)
        at sun.awt.datatransfer.DataTransferer$4.run(DataTransferer.java:1219)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:421)
        at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:140)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:126)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:121)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

Once these converters are putback, the transfer of international text on
Solaris and Linux should be trivial.

Note that the encoding name 'X11-COMPOUND_TEXT' is preliminary and may need
to be changed to conform with MIME standards.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: merlin-beta FIXED IN: merlin-beta INTEGRATED IN: merlin-beta
14-06-2004

EVALUATION The Drag & Drop team has committed to implementing these converters for merlin. david.mendenhall@east 2000-11-28 Note that RFC 1700 available at ftp://ftp.isi.edu/in-notes/rfc1700.txt does not list compound text as a standard charset registered with IANA. Therefore, we should either register the charset with IANA (unlikely) or prefix the name we eventually use with "x-". I propose that the primary encoding name be "x-compound-text" with the following aliases: COMPOUND_TEXT x-compound_text X11-COMPOUND_TEXT (historical) david.mendenhall@east 2001-02-01 Implementation completed. Update to java.nio APIs will be done for tiger. david.mendenhall@east 2001-03-14
01-02-2001