This is the mail archive of the
mauve-discuss@sources.redhat.com
mailing list for the Mauve project.
Re: Question about getEncoding method on different platforms
Hi,
On Fri, 2003-03-07 at 06:01, Brian Jones wrote:
> "Patrick Ellis" <Patrick dot Ellis at sas dot com> writes:
> > I updated Mauve today and some of the errors where corrected. It
> > seems like the code was not updated for
> > gnu/testlet/java/io/PipedStream/Test.java code available() and for
> > gnu/testlet/java/io/OutputStreamWriter/jdk11.java
> >
> > FAIL: gnu.testlet.java.io.OutputStreamWriter.jdk11:
> > OutputStreamWriter(writer, encoding) (number 1) got ISO8859_3 but
> > expected 8859_3
> >
> I think I fixed this last one.
I changed it again slightly. You correctly point out:
// ISO-8859-1 is a required encoding and this is the
// "preferred" name, latin1 is a legal alias
// see also http://www.iana.org/assignments/character-sets
But getEncoding() is defined to return the "historical" name even when
you put in the the preferred alias according to the IANA character set
list... This means that the canonical name for an encoding differs
depending on what API (old java.io or new java.nio) you are using.
Bleuch. http://java.sun.com/j2se/1.4.1/docs/guide/intl/encoding.doc.html
Cheers,
Mark