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

Charset.availableCharsets() returns incomplete

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 6
    • core-libs

      FULL PRODUCT VERSION :
      all

      ADDITIONAL OS VERSION INFORMATION :
      not important

      A DESCRIPTION OF THE PROBLEM :
      Map, returned from Charset.availableCharsets() only contains standard charset, but not extended charsets, even if they are available.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      run source code snippet

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      many more charsets than actually reported
      ACTUAL -
      IBM00858
      IBM437
      IBM775
      IBM850
      IBM852
      IBM855
      IBM857
      IBM862
      IBM866
      ISO-8859-1
      ISO-8859-13
      ISO-8859-15
      ISO-8859-2
      ISO-8859-4
      ISO-8859-5
      ISO-8859-7
      ISO-8859-9
      KOI8-R
      KOI8-U
      US-ASCII
      UTF-16
      UTF-16BE
      UTF-16LE
      UTF-32
      UTF-32BE
      UTF-32LE
      UTF-8
      windows-1250
      windows-1251
      windows-1252
      windows-1253
      windows-1254
      windows-1257
      x-IBM737
      x-IBM874
      x-UTF-16LE-BOM
      X-UTF-32BE-BOM
      X-UTF-32LE-BOM


      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
              for (Charset cs : Charset.availableCharsets().values())
                  System.out.println(cs);

      ---------- END SOURCE ----------

            sherman Xueming Shen
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: