[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[commit-cp] [bugs #11630] problems with filename charset conversion

From: Marko Kreen
Subject: [commit-cp] [bugs #11630] problems with filename charset conversion
Date: Tue, 18 Jan 2005 11:46:49 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20050110 Firefox/1.0 (Debian package 1.0+dfsg.1-2)

This is an automated notification sent by Savannah.
It relates to:
                bugs #11630, project classpath

 OVERVIEW of bugs #11630:


                 Summary: problems with filename charset conversion
                 Project: classpath
            Submitted by: mkz
            Submitted on: Tue 01/18/2005 at 11:46
                Category: classpath
                Severity: 5 - Average
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
        Platform Version: None


Original bugreport:

When doing file-i/o, filenames should be encoded

according to locale.  Currently there are problems.

This may be VM problem as they all act differently,

but as they all have different runtime classes,

so its a mess and I still post it here.

## utf8 ##

java: list:ok open:ok

java-sablevm: list:ok open:FAILED

jamvm-cvs: list:ok open:ok

kaffe-cvs: list:FAILED open:ok

## iso-8859-1 ##

java: list:ok open:ok

java-sablevm: list:FAILED open:FAILED

jamvm-cvs: list:FAILED open:FAILED

kaffe-cvs: list:ok open:ok


java - Blackdown 1.4.2-01

jamvvm-cvs: jamvm-1.2.3+patches + classpath cvs

java-sablevm: sablevm 1.1.8 from Debian

----------------------------------------------- (also attached):



 * This should be compiled with  'jikes -encoding utf8'

 * or javac in utf8 locale.


public class ListDir {

    public static void main(String [] args) {


        File dir = new File(args[0]);

        String [] list = dir.list();

        String fn = list[0];

        if (fn.equals("test.äöüõ.txt"))

            System.out.print("ok ");


            System.out.print("FAILED ");


        try {

            File f = new File(args[0], fn);

            if (f.exists())




        } catch (Exception ex) {






File Attachments:

Date: Tue 01/18/2005 at 11:46  Name:  Size: 1.07KB   By: mkz,,


This item URL is:

  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]