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

Cannot use tilde at JDK1.1Beta3 on JapaneseWin95

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3
    • None
    • 1.1
    • core-libs
    • None
    • x86
    • windows_95

    Description



      Name: mc57594 Date: 01/30/97


      I can't use tilde '~' in Java application at JDK 1.1Beta3 on Japanese
      Windows95's MS-DOS prompt. Because tilde '~' automatically changes to
      question mark '?'.

        But I can use tilde '~' at JDK 1.0.2 on Japanese Windows95's MS-DOS prompt.

        An example at JDK 1.1Beta3 on Japanese Windows95's MS-DOS prompt window.
      ===============================================================================
      E:\PRG>type test.java
      import java.io.*;
      public class test {
        public static void main(String[] args) {
          System.out.println("a~b.txt");
          System.out.println("a\u007eb.txt");
          try {
            FileOutputStream out = new FileOutputStream(new File("a~b.txt"));
            out.write(0x55);
            out.close();
          } catch (IOException ioe) {
            System.out.println("IOException: " + ioe);
          }
        }
      }

      E:\PRG>javac test.java

      E:\PRG>java -version
      java version "JDK1.1beta3.3"

      E:\PRG>java test
      a?b.txt
      a?b.txt
      IOException: java.io.FileNotFoundException: a?b.txt

      E:\PRG>dir /b
      test.java
      test.class

      E:\PRG>
      ===============================================================================
        According to this example I can't display tilde '~' on console and
      can't make a file named "a~b.txt".


        A same example at JDK 1.0.2 on Japanese Windows95's MS-DOS prompt window.
      ===============================================================================
      E:\PRG>type test.java
      import java.io.*;
      public class test {
        public static void main(String[] args) {
          System.out.println("a~b.txt");
          System.out.println("a\u007eb.txt");
          try {
            FileOutputStream out = new FileOutputStream(new File("a~b.txt"));
            out.write(0x55);
            out.close();
          } catch (IOException ioe) {
            System.out.println("IOException: " + ioe);
          }
        }
      }

      E:\PRG>javac test.java

      E:\PRG>java -version
      java version "1.0.2"

      E:\PRG>java test
      a~b.txt
      a~b.txt

      E:\PRG>dir /b
      test.java
      test.class
      a~b.txt

      E:\PRG>
      ===============================================================================
        According to this example I can display tilde '~' on console and
      can make a file named "a~b.txt".

      company - Chuo Shokuhin Co. , email - ###@###.###
      ======================================================================

      Attachments

        Issue Links

          Activity

            People

              nishimur Naoyuki Ishimura (Inactive)
              mchamnessunw Mark Chamness (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: