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

File(String) does not work for Chinese file name

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Not an Issue
    • Affects Version/s: 1.3.1, 1.4.0
    • Fix Version/s: None
    • Component/s: core-libs
    • Subcomponent:
    • CPU:
      x86
    • OS:
      linux, windows_2000

      Description

      Name: nt126004 Date: 04/19/2002


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


      FULL OPERATING SYSTEM VERSION :
      Kernel 2.4.16


      A DESCRIPTION OF THE PROBLEM :
      i can't create a File in Chinese Name
      it work in jdk1.2.2, after i upgraded to jdk1.4.0
      the file name displayed as rublish.

      e.g. File f = new File("/home/test/中文.txt");
      a = f.createNewFile();

      the file name can't display correctly in
      Chinese Window98se through Samba

      REGRESSION. Last worked in version 1.2.2

      This bug can be reproduced always.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
         1. i use java in jdk or (jsp or servlet) to create File with Chinese
             characters on a UNIX (Linux) based machine
         2. i mount a directory via samba
         3. i view the directory as usual with no samba or window configuration
             changing.
         4. the file created and viewed successfully in jdk1.2.2, after changed
             to jdk1.4.0 and create chinese file name, file name corrupted.
         5. i can create a file with chinese name via samba in windows machine
             successfully.
         6. the file in chinese name created in jdk1.4.0 in chinese name, can't be
             located through Web URL also. That seems not samba or windows
             error.
      p.s.: i use samba2.2.2, Tomcat3.2.4, jdk1.4.0, apache 1.3.22
             slackware Linux, Kernel 2.4.16, Traditional Chinese Windows98se

      ---------- BEGIN SOURCE ----------
      File f = new File("/home/test/中文.txt");
      a = f.createNewFile();
      ---------- END SOURCE ----------

      Release Regression From : 1.2.2
      The above release value was the last known release where this
      bug was known to work. Since then there has been a regression.

      (Review ID: 145460)
      ======================================================================

        Attachments

          Activity

            People

            • Assignee:
              sherman Xueming Shen
              Reporter:
              nthompsosunw Nathanael Thompson (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: