[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commit-cp] [bugs #12084] wrong names returned java.io.InputStreamReader
From: |
Robert Schuster |
Subject: |
[commit-cp] [bugs #12084] wrong names returned java.io.InputStreamReader.getEncoding() when using NIO charsets |
Date: |
Tue, 22 Feb 2005 03:36:02 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.7.5) Gecko/20050107 |
URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=12084>
Summary: wrong names returned
java.io.InputStreamReader.getEncoding() when using NIO charsets
Project: classpath
Submitted by: rschuster
Submitted on: Tue 02/22/2005 at 03:36
Category: classpath
Severity: 3 - Ordinary
Status: None
Privacy: Public
Assigned to: rschuster
Open/Closed: Open
Platform Version: None
_______________________________________________________
Details:
Due to a quick fix a problem was introduced that causes
java.io.InputStreamReader.getEncoding() to not return the right encoding name
(according to
http://java.sun.com/j2se/1.5.0/docs/guide/intl/encoding.doc.html) when the
InputStreamReader instance was created using the
(InputStream, Charset) or (InputStream, CharsetDecoder) constructors.
If corrected the output for e.g. ISO-8859_1 would be the following:
cs2 = Charset.forName("latin1");
isr = new InputStreamReader(someInputStreamInstance, cs2);
print(isr.getEncoding());
ISO8859_1
print(cs2.name());
ISO-8859-1
currently isr.getEncoding().equals(cs2.name()) holds which is not right
according to the specification given in the URL.
_______________________________________________________
This item URL is:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=12084>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [commit-cp] [bugs #12084] wrong names returned java.io.InputStreamReader.getEncoding() when using NIO charsets,
Robert Schuster <=