allow running 'make check' with openjdk7
Submitted by Omair Majid
Assigned to Matthew Johnson @mjj29
Description
Created attachment 55591 patch to force utf8 encoding
The attached (rather trivial patch) allows 'make check' to work with openjdk7.
OpenJDK assumes that all characters in a file are in the platform native encoding (whatever that is). If the bytes are unmappable to valid characters, previous versions of OpenJDK would just print a warning but OpenJDK 7 treats it as an error.
On my builds, the error looks like this: make check JARPREFIX=/usr/share/java/dbus-java BINPREFIX=/usr/bin MANPREFIX=/usr/share/man/man1 DOCPREFIX=/usr/share/doc/dbus-java JAVADOCPREFIX=/usr/share/javadoc/dbus-java JAVAUNIXLIBDIR=/usr/lib/libmatthew-java JAVAUNIXJARDIR=/usr/lib/libmatthew-java mkdir -p classes javac -cp classes:/usr/lib/libmatthew-java/debug-disable.jar:/usr/lib/libmatthew-java/hexdump.jar: -d classes -Xlint:all -O -g:none org/freedesktop/dbus/test/*.java org/freedesktop/dbus/test/cross_test_client.java:353: error: unmappable character for encoding ASCII test(DBus.Binding.Tests.class, tests, "IdentityString", "????????????????????? - ????????????", "????????????????????? - ????????????");
The attached patch forces utf8 encoding for all java files and allows 'make check' to compile java files containing utf8 characters properly.
Attachment 55591, "patch to force utf8 encoding":
utf-8-encoding.patch