]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Don't require Java 1.4.
authorBruno Haible <bruno@clisp.org>
Wed, 8 Sep 2004 13:23:00 +0000 (13:23 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:11:55 +0000 (12:11 +0200)
gettext-tools/tests/ChangeLog
gettext-tools/tests/Makefile.am
gettext-tools/tests/lang-java

index f829cc74ca3f431360a50a881d2686ffcb20611e..c6b1264686bc4aa97f72be0d1a4e03c00d2d81cd 100644 (file)
@@ -1,3 +1,9 @@
+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.
index c02b8682cfde36e186112a772f9cdb39e4f9430a..c303d34dbf9fc438ea2c3f7059e91acdbbd27c0f 100644 (file)
@@ -1,5 +1,5 @@
 ## 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
@@ -143,6 +143,7 @@ TESTS_ENVIRONMENT = top_srcdir=$(top_srcdir) \
                    TESTCSHARP='@TESTCSHARP@' \
                    TESTLIBASPRINTF='@TESTLIBASPRINTF@' \
                    LOCALE_FR='@LOCALE_FR@' \
+                   host_os='@host_os@' \
                    CONFIG_SHELL='$(SHELL)' \
                    $(SHELL)
 
index a8cac3ff96cf15b7da4d35e8dd64d842998d5cca..6ef57b24d5d666f19cee26d378b48c9dad0f2be2 100755 (executable)
@@ -25,6 +25,10 @@ public class Program {
     // 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 {
@@ -32,6 +36,10 @@ public class Program {
                                     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."));