From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9613 invoked by alias); 6 Mar 2006 01:18:23 -0000 Received: (qmail 9603 invoked by uid 22791); 6 Mar 2006 01:18:23 -0000 X-Spam-Check-By: sourceware.org Received: from p54A57AAE.dip.t-dialin.net (HELO localhost) (84.165.122.174) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 06 Mar 2006 01:18:22 +0000 Received: from localhost ([127.0.0.1]) by localhost with esmtp (Exim 4.60) (envelope-from ) id 1FG5Ie-0001Ul-Nh for mauve-discuss@sources.redhat.com; Mon, 06 Mar 2006 03:18:16 +0100 Subject: FYI: another URI unicode test From: Dalibor Topic To: mauve-discuss@sources.redhat.com Content-Type: multipart/mixed; boundary="=-AKv/kuH+TJyF55cpmSlS" Date: Mon, 06 Mar 2006 01:18:00 -0000 Message-Id: <1141611496.4923.10.camel@localhost> 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/msg00049.txt.bz2 --=-AKv/kuH+TJyF55cpmSlS Content-Type: text/plain Content-Transfer-Encoding: 7bit Content-length: 223 Hi all, I added another unicode URI test, and will check in the fix to Classpath soon. cheers, dalibor topic 2006-03-06 Dalibor Topic * gnu/testlet/java/net/URI/UnicodeURI.java: New file. --=-AKv/kuH+TJyF55cpmSlS Content-Disposition: attachment; filename=UnicodeURI.java Content-Type: text/x-java; name=UnicodeURI.java; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-length: 1589 // Tags: JDK1.4 /* Copyright (C) 2005 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.net.URI; import gnu.testlet.Testlet; import gnu.testlet.TestHarness; import java.net.URI; import java.net.URISyntaxException; public class UnicodeURI implements Testlet { private static final String LATIN_SMALL_LETTER_C_WITH_ACUTE = "\u0107"; public void test(TestHarness harness) { /* Check if a URI with Unicode characters is created correctly, * without swallowing characters outside the basic plane. */ try { final URI uri = new URI(null, LATIN_SMALL_LETTER_C_WITH_ACUTE, null); final String uri_string = uri.toString(); harness.check(LATIN_SMALL_LETTER_C_WITH_ACUTE.equals(uri_string)); } catch (URISyntaxException e) { harness.debug(e); harness.fail("unexpected exception" + e.toString()); } } } --=-AKv/kuH+TJyF55cpmSlS--