From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32197 invoked by alias); 12 Feb 2006 18:25:57 -0000 Received: (qmail 32188 invoked by uid 22791); 12 Feb 2006 18:25:56 -0000 X-Spam-Check-By: sourceware.org Received: from p54A550DD.dip.t-dialin.net (HELO amy.domain.wg) (84.165.80.221) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 12 Feb 2006 18:25:55 +0000 Received: from localhost ([127.0.0.1]) by amy.domain.wg with esmtp (Exim 4.60) (envelope-from ) id 1F8Luy-0001Nh-2t for mauve-discuss@sources.redhat.com; Sun, 12 Feb 2006 19:25:52 +0100 Subject: FYI: New test for files with Unicode characters in name outside basic plane From: Dalibor Topic To: mauve-discuss@sources.redhat.com Content-Type: multipart/mixed; boundary="=-twgt9E+y6KyEhC34JvPJ" Date: Sun, 12 Feb 2006 18:25:00 -0000 Message-Id: <1139768751.4899.1.camel@amy.domain.wg> Mime-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact mauve-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: mauve-discuss-owner@sourceware.org X-SW-Source: 2006-q1/txt/msg00020.txt.bz2 --=-twgt9E+y6KyEhC34JvPJ Content-Type: text/plain Content-Transfer-Encoding: 7bit Content-length: 275 Hi all, the test is attached. For Kaffe bug #16 and Classpath bug #26128. cheers, dalibor topic 2006-02-12 Dalibor Topic * gnu/testlet/java/io/File/UnicodeURI.java: New test for Files with Unicode characters above \u007F in names. --=-twgt9E+y6KyEhC34JvPJ Content-Disposition: attachment; filename=UnicodeURI.java Content-Type: text/x-java; name=UnicodeURI.java; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-length: 2025 // Tags: JDK1.4 // Copyright (C) 2005 Free Software Foundation, Inc. // Written by Tom Tromey , // Dalibor Topic // This file is part of Mauve. // Mauve is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2, or (at your option) // any later version. // Mauve is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // You should have received a copy of the GNU General Public License // along with Mauve; see the file COPYING. If not, write to // the Free Software Foundation, 59 Temple Place - Suite 330, // Boston, MA 02111-1307, USA. */ package gnu.testlet.java.io.File; import java.io.File; import java.net.URL; import java.net.MalformedURLException; import gnu.testlet.Testlet; import gnu.testlet.TestHarness; public class UnicodeURI implements Testlet { private static final String LATIN_SMALL_LETTER_C_WITH_ACUTE = "\u0107"; private static final String fname = "/tmp/" + LATIN_SMALL_LETTER_C_WITH_ACUTE; public void check (TestHarness harness, URL url) { final String protocol = url.getProtocol(); final String file = url.getFile(); harness.verbose("protocol: " + protocol); harness.verbose("file: " + file); harness.check(protocol, "file"); harness.check(file, fname); } public void test (TestHarness harness) { File f = new File(fname); harness.checkPoint("toURL"); try { check(harness, f.toURL()); } catch (MalformedURLException _) { harness.debug(_); harness.check(false); } harness.checkPoint("toURI"); try { check(harness, f.toURI().toURL()); } catch (MalformedURLException _) { harness.debug(_); harness.check(false); } } } --=-twgt9E+y6KyEhC34JvPJ--