+2004-09-08 Bruno Haible <bruno@clisp.org>
+
+ Make lang-java work again on platforms with Java version < 1.4.
+ * lang-java: Undo last patch for all platforms except Darwin.
+ * Makefile.am (TESTS_ENVIRONMENT): Also define host_os.
+
2004-08-13 Bruno Haible <bruno@clisp.org>
Fix test failures on MacOS X.
## Makefile for the gettext-tools/tests subdirectory of GNU gettext
-## Copyright (C) 1995-1997, 2001-2003 Free Software Foundation, Inc.
+## Copyright (C) 1995-1997, 2001-2004 Free Software Foundation, Inc.
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
TESTCSHARP='@TESTCSHARP@' \
TESTLIBASPRINTF='@TESTLIBASPRINTF@' \
LOCALE_FR='@LOCALE_FR@' \
+ host_os='@host_os@' \
CONFIG_SHELL='$(SHELL)' \
$(SHELL)
// Some systems (like Solaris) don't set Locale.getDefault()
// as specified by LC_ALL. So set it by hand.
Locale.setDefault(new Locale("fr","FR"));
+EOF
+case "$host_os" in
+ darwin*)
+cat <<\EOF >> Program.java
// Some systems (like MacOS X) don't set System.out's character encoding
// to ISO-8859-1, which is what we need for comparison purposes.
try {
true, "ISO-8859-1"));
} catch (UnsupportedEncodingException e) {
}
+EOF
+ ;;
+esac
+cat <<\EOF >> Program.java
int n = Integer.parseInt(args[0]);
ResourceBundle catalog = ResourceBundle.getBundle("prog");
System.out.println(GettextResource.gettext(catalog,"'Your command, please?', asked the waiter."));