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

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.
@ -69,8 +69,15 @@ public abstract class BytesToUnicode
}
catch (Throwable ex)
{
throw new java.io.UnsupportedEncodingException(encoding
+ " (" + ex + ')');
try
{
return new Input_iconv (encoding);
}
catch (Throwable _)
{
throw new java.io.UnsupportedEncodingException(encoding
+ " (" + ex + ')');
}
}
}