[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:51:36 +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
==============================================================================
LATEST MODIFICATIONS of bugs #11630:
==============================================================================
Posted by: Marko Kreen <mkz>
Posted on: 2005-01-18 11:51 (GMT)
_______________________________________________________
Follow-up Comment:
Noticed that the pipermail post is empty and without attachments,
heres better link:
http://article.gmane.org/gmane.comp.java.vm.kaffe.general/7825
==============================================================================
OVERVIEW of bugs #11630:
==============================================================================
URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=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:
http://www.kaffe.org/pipermail/kaffe/2005-January/101179.html
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
-----------------------------------------------
ListDir.java (also attached):
import java.io.*;
/*
* This should be compiled with 'jikes -encoding utf8'
* or javac in utf8 locale.
*/
public class ListDir {
public static void main(String [] args) {
System.out.print("list:");
File dir = new File(args[0]);
String [] list = dir.list();
String fn = list[0];
if (fn.equals("test.äöüõ.txt"))
System.out.print("ok ");
else
System.out.print("FAILED ");
System.out.print("open:");
try {
File f = new File(args[0], fn);
if (f.exists())
System.out.println("ok");
else
System.out.println("FAILED");
} catch (Exception ex) {
ex.printStackTrace();
}
}
}
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Tue 01/18/2005 at 11:51 By: Marko Kreen <mkz>
Noticed that the pipermail post is empty and without attachments,
heres better link:
http://article.gmane.org/gmane.comp.java.vm.kaffe.general/7825
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Tue 01/18/2005 at 11:46 Name: dirtest.zip Size: 1.07KB By: mkz
ListDir.java, gen.sh, test.sh
<http://savannah.gnu.org/bugs/download.php?item_id=11630&item_file_id=2076>
==============================================================================
This item URL is:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=11630>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/