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

coulpe of charset alias/canonical names that are not supported in nio

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 5.0
    • Fix Version/s: 5.0
    • Component/s: core-libs
    • Labels:

      Description

      This is happening in Pit Build-32 on Solaris.

      coulpe of charset alias/canonical names that are supported
      in java.io/java.lang are not supported in java.nio.charset
      These are mentioned below:-
      big5hk
      unicode-1-1-utf-8
      default
      iso_8859-5:1988
      iso_8859-13
      ISO8859_15

      For these if you run the code mentioned below:-
      import java.nio.charset.*;


      public class test {
          public static void main(String[] argv) {
              try{
                  Charset c = Charset.forName(argv[0]);
                  System.out.println(argv[0] + ": supported (" + c.name() +")");
              } catch(UnsupportedCharsetException uce) {
                  System.out.println(argv[0] + ": NOT supported");
              }
          }
      }

      one can see the output NOT Supported.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ilittlesunw Ian Little (Inactive)
              Reporter:
              jsinghsunw Jit Singh (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: