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

Typo in charset alias for iso-ir-87

XMLWordPrintable

      Name: rmT116609 Date: 10/28/2003


      FULL PRODUCT VERSION :
      java version "1.4.2"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
      Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode)

      FULL OS VERSION :
      Microsoft Windows 2000 [Version 5.00.2195]

      A DESCRIPTION OF THE PROBLEM :
      "JIS_C6626-1983" is listed as an alias for the character set iso-ir-87. This is a typo. The real name for the characterset is "JIS_C6226-1983". See http://www.iana.org/assignments/character-sets for reference.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      import java.io.UnsupportedEncodingException;
      import java.nio.charset.Charset;

      public class Test {
          public static void main(String[] args) throws UnsupportedEncodingException {
              System.err.println(Charset.forName("iso-ir-87").aliases());
          }
      }


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      [JIS_C6226-1983, JIS0208, csISO87JISX0208, x0208, JIS_X0208-1983, iso-ir-87]
      ACTUAL -
      [JIS_C6626-1983, JIS0208, csISO87JISX0208, x0208, JIS_X0208-1983, iso-ir-87]

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import java.io.UnsupportedEncodingException;
      import java.nio.charset.Charset;

      public class Test {
          public static void main(String[] args) throws UnsupportedEncodingException {
              System.err.println(Charset.forName("iso-ir-87").aliases());
          }
      }

      ---------- END SOURCE ----------
      (Incident Review ID: 218275)
      ======================================================================

            ilittlesunw Ian Little (Inactive)
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: