public inbox for mauve-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "Raif S. Naffah" <raif@fl.net.au>
To: Mark Wielaard <mark@klomp.org>
Cc: Mauve <mauve-discuss@sources.redhat.com>
Subject: Re: new test cases (long)
Date: Sun, 16 Feb 2003 16:44:00 -0000	[thread overview]
Message-ID: <200302170348.00588.raif@fl.net.au> (raw)
In-Reply-To: <1045396437.30179.522.camel@elsschot>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

hello Mark,

On Sunday 16 February 2003 22:53, Mark Wielaard wrote:
> Hi Raif,
>
> Thanks for all the pointers. The character encoding names seem to be
> confusing whatever way you look at it. What is and isn't a canonical
> name, for what package, what the (historical) alias is, etc is
> difficult to decipher.

i agree it's somewhat confusing but we can reduce this by sticking to 
the documentation and the behaviour of the implementation (sun's jdk 
that is).


> Also note that the 1.4 docs and 1.4.1 encoding docs actually list
> different canonical names... Duh...

where exactly does the 1.4 and the 1.4.1 differ?


> Anyway I think the best thing todo is to add all canonical,
> historical and/or alias must support character names to the
> getBytes() tests, at least for the names that are documented on all
> these different (versions) of the API/Spec pages. The distinction
> between names used for java.lang/io and java.nio seems to only
> confuse matters and
> implementations that only support some names for some of the library
> classes will probably confuse users enormously.

another alternative is to stick to the distinction the javadocs makes 
wrt. to the following aspects:

* specific packages use specific, albeit sometimes, different 
encoding/charset names;
* some names are "canonical" others are "aliases,"
* some names are a MUST (Basic), others (the international version of 
the JDK) are a MAY (Extended).

this way, gnu.testlet.java.lang.String.getBytes can be the test point 
for java.lang.* API encoding names, and something like (a new) 
gnu.testlet.java.nio.charset.Charset.isSupported test would emulate the 
same for the java.nio.* API encoding names.


> So getBytes14 now tests US-ASCII, windows-1252, ISO-8859-1,
> ISO-8859-15, ISO8859_15, UTF-16BE and UTF-16LE. Together with the
> getBytes13 tests this should catch all the encoding names that people
> will probaly always expect to be available in a normal class library
> implementation.

if my comments above are acceptable, i can revise the getBytes classes 
to handle distinctly the last 2 points (canonical v/s alias, and basic 
v/s extended), and write a new test case for java.nio.* API 
conformance.  the pass/fail requirements can then be controlled with an 
'xfails' file.


cheers;
rsn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Que du magnifique

iD8DBQE+T8C++e1AKnsTRiERA2J5AJ4o4bgsAhoGEBXexLTKsGHeWor+JACg86St
6zTwX4j9FqzGExtFXFu3HDQ=
=n5zY
-----END PGP SIGNATURE-----

  reply	other threads:[~2003-02-16 16:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-08 16:15 Raif S. Naffah
2003-02-14 11:57 ` Mark Wielaard
2003-02-14 23:58   ` Raif S. Naffah
2003-02-16 11:54     ` Mark Wielaard
2003-02-16 16:44       ` Raif S. Naffah [this message]
2003-02-16 17:21         ` Mark Wielaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200302170348.00588.raif@fl.net.au \
    --to=raif@fl.net.au \
    --cc=mark@klomp.org \
    --cc=mauve-discuss@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).