+2005-02-23 Bruno Haible <bruno@clisp.org>
+
+ * lang-java: On newer Darwin systems, set the System.out encoding to
+ UTF-8, not ISO-8859-1.
+
2005-02-13 Bruno Haible <bruno@clisp.org>
* Makefile.am (TESTS_ENVIRONMENT): Define also the environment variable
Locale.setDefault(new Locale("fr","FR"));
EOF
case "$host_os" in
- darwin*)
+ darwin[56]*)
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.
true, "ISO-8859-1"));
} catch (UnsupportedEncodingException e) {
}
+EOF
+ ;;
+ darwin*)
+cat <<\EOF >> Program.java
+ // Some systems (like MacOS X) don't set System.out's character encoding
+ // to UTF-8, which is what we need for comparison purposes.
+ try {
+ System.setOut(new PrintStream(new FileOutputStream(FileDescriptor.out),
+ true, "UTF-8"));
+ } catch (UnsupportedEncodingException e) {
+ }
EOF
;;
esac