BytesToUnicode.java (getDecoder): Pass original encoding name to iconv.
* gnu/gcj/convert/BytesToUnicode.java (getDecoder): Pass original encoding name to iconv. * gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Likewise. From-SVN: r83512
This commit is contained in:
committed by
Bryce McKinlay
parent
a91b003357
commit
eb8163abfb
@@ -73,14 +73,14 @@ public abstract class UnicodeToBytes extends IOConverter
|
||||
{
|
||||
/* First hunt in our cache to see if we have a encoder that is
|
||||
already allocated. */
|
||||
encoding = canonicalize(encoding);
|
||||
String canonicalEncoding = canonicalize(encoding);
|
||||
synchronized (UnicodeToBytes.class)
|
||||
{
|
||||
int i;
|
||||
for (i = 0; i < encoderCache.length; ++i)
|
||||
{
|
||||
if (encoderCache[i] != null
|
||||
&& encoding.equals(encoderCache[i].getName ()))
|
||||
&& canonicalEncoding.equals(encoderCache[i].getName ()))
|
||||
{
|
||||
UnicodeToBytes rv = encoderCache[i];
|
||||
encoderCache[i] = null;
|
||||
@@ -89,7 +89,7 @@ public abstract class UnicodeToBytes extends IOConverter
|
||||
}
|
||||
}
|
||||
|
||||
String className = "gnu.gcj.convert.Output_" + encoding;
|
||||
String className = "gnu.gcj.convert.Output_" + canonicalEncoding;
|
||||
Class encodingClass;
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user