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

Need CharToByte and ByteToChar converters for x-compound-text encoding

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.2.1, 1.3.0, 1.4.0
    • Fix Version/s: 1.4.0
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      beta
    • CPU:
      generic, sparc
    • OS:
      generic, solaris_2.5.1, solaris_7, solaris_8

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dmendenhsunw David Mendenhall (Inactive)
              Reporter:
              dmendenhsunw David Mendenhall (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: