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

ISO-8859-8 converter incorrectlly reports macron as unconvertible

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 5.0
    • 1.4.1
    • core-libs

      Name: rmT116609 Date: 10/09/2002


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

      Operating System: kernel 2.4.18 glibc 2.2.4-24

      Windows 2000, Solaris 2.8

      A DESCRIPTION OF THE PROBLEM :
      When writing data in the ISO-8859-8 (Hebrew) encoding, the
      macron character 0xAF, is not converted. Instead a question
      mark is written. However, the macron character does exist in
      ISO-8859-8, indeed at the same code point it has in Unicode
      and ISO-8859-1. This can be verified at the Unicode web site
      at http://www.unicode.org/Public/MAPPINGS/ISO8859/8859-8.TXT

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Run the attached source code and look at the output.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      The file the attached program produces should contain a
      macron. Instead it contains a question mark.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      import java.io.*;

      public class TestHebrew {
          
        public static void main(String[] args) throws IOException {
          FileOutputStream fout = new FileOutputStream("hebrew.txt");
          OutputStreamWriter out = new OutputStreamWriter(fout, "ISO-8859-8");
          out.write((char) 0xAF);
          out.write("\r\n");
          out.flush();
          out.close();
        }
          
      }
      ---------- END SOURCE ----------
      (Review ID: 165399)
      ======================================================================

            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: