commit-classpath
[Top][All Lists]
Advanced

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

[commit-cp] [bugs #11740] java.nio.charset.Charset: case-sensitive, alia


From: Robert Schuster
Subject: [commit-cp] [bugs #11740] java.nio.charset.Charset: case-sensitive, aliases missing
Date: Fri, 4 Feb 2005 15:09:54 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.7.5) Gecko/20050107

Update of bugs #11740 (project classpath):

             Open/Closed:                Accepted => Closed                 

    _______________________________________________________

Follow-up Comment #1:

The mauve test for this is/will be
gnu.testlet.java.nio.charset.Charset.forName2



It checks the availability of of certain charsets using case-insensitive
names.



A couple of them will fail on JDK <= 1.5.







public void test(TestHarness h) {

                /*

                 * Check for standard encodings using case-insensitive and 
alternative

                 * names.

                 */



                // IANA name for UTF-8

                checkCharset(h, "uTf-8");



                // UTF-8 names from

                // 
http://java.sun.com/j2se/1.5.0/docs/guide/intl/encoding.doc.html

                checkCharset(h, "utf8");



                checkCharset(h, "UtF-16bE");

                checkCharset(h, "uTf-16Le");



                // IANA names for 8859_1

                checkCharset(h, "IsO-iR-100");

                checkCharset(h, "iSo_8859-1");

                checkCharset(h, "LATIN1");

                checkCharset(h, "L1");

                checkCharset(h, "IbM819");

                checkCharset(h, "cp819");

                checkCharset(h, "CSisolATIN1");



                // IANA names for US-ASCII

                checkCharset(h, "iSo-Ir-6");

                checkCharset(h, "AnSi_X3.4-1986");

                checkCharset(h, "IsO_646.IRV:1991");

                checkCharset(h, "AsCiI");

                checkCharset(h, "IsO646-us");

                checkCharset(h, "Us");

                checkCharset(h, "IbM367");

                checkCharset(h, "cP367");

                checkCharset(h, "CSASCII");



                // UTF-8 names from

                // http://oss.software.ibm.com/cgi-bin/icu/convexp?s=ALL

                /* These fail on official implementation of <= 1.5 */

                checkCharset(h, "ibm-1208");

                checkCharset(h, "ibm-1209");

                checkCharset(h, "ibm-5304");

                checkCharset(h, "ibm-5305");

                checkCharset(h, "windows-65001");

                checkCharset(h, "cp1208");

        }

    _______________________________________________________

This item URL is:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=11740>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

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