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

KANJI conversion error - "&" changes "\"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3
    • None
    • 1.1.2
    • core-libs
    • None
    • x86
    • windows_nt

    Description



      Name: rlT66838 Date: 07/11/97


      When KANJI "&" char(0x8195) is read on character stream, it is turned into "\"(0x5C).
      Other chars near "&", say 0x81??, are read correctly.

      [Java Source(ztAmpBug.java)]
      import java.io.*;
      class ztAmpBug {
      public static void main(String args[]) {
          String strLine;
          try {
      BufferedReader brIn = new BufferedReader(
      new InputStreamReader(System.in));
      while ((strLine = brIn.readLine()) != null) {
      System.out.println(strLine);
      }
      brIn.close();
          } catch (IOException exp) {
      System.err.println(exp.getMessage());
          }
      }
      }

      [Steps to reproduce]
      >java ztAmpBug
      •
      ^Z


      ======================================================================

      Attachments

        Issue Links

          Activity

            People

              ssenthilsunw Shanmugam Senthil (Inactive)
              rlewis Roger Lewis (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: