config.h.in: Rebuilt.

* include/config.h.in: Rebuilt.
	* acconfig.h (HAVE_ICONV): Define.
	* configure: Rebuilt.
	* configure.in: Check for `iconv' function.
	* gnu/gcj/convert/BytesToUnicode.java (getDecoder): Try iconv if
	no specific encoder exists.
	* gnu/gcj/convert/UnicodeToBytes.java (getEncoder): Try iconv if
	no specific encoder exists.
	* Makefile.in: Rebuilt.
	* Makefile.am (convert_source_files): Mention Input_iconv.java and
	Output_iconv.java.
	(nat_source_files): Added natIconv.cc.
	* gnu/gcj/convert/natIconv.cc: New file.
	* gnu/gcj/convert/Input_iconv.java: New file.
	* gnu/gcj/convert/Output_iconv.java: New file.

From-SVN: r31708
This commit is contained in:
Tom Tromey
2000-01-31 04:53:47 +00:00
committed by Tom Tromey
parent 28531dd03e
commit 946efde181
12 changed files with 295 additions and 55 deletions
+11 -4
View File
@@ -1,4 +1,4 @@
/* Copyright (C) 1999 Red Hat, Inc.
/* Copyright (C) 1999, 2000 Red Hat, Inc.
This file is part of libgcj.
@@ -67,8 +67,16 @@ public abstract class UnicodeToBytes
}
catch (Throwable ex)
{
throw new java.io.UnsupportedEncodingException(encoding + " ("
+ ex + ')');
try
{
return new Output_iconv (encoding);
}
catch (Throwable _)
{
// Put the original exception in the throwable.
throw new java.io.UnsupportedEncodingException(encoding + " ("
+ ex + ')');
}
}
}
@@ -105,5 +113,4 @@ public abstract class UnicodeToBytes
str.getChars(inpos, srcEnd, work, 0);
return write(work, inpos, inlength);
}
}