THRIFT-3271 "Could not find or load main class configtest_ax_javac_and_java" on some non-english systems
Client: Build process / Java
Patch: Jens Geyer

This closes #565
diff --git a/aclocal/ax_javac_and_java.m4 b/aclocal/ax_javac_and_java.m4
index 581b450..f341f50 100644
--- a/aclocal/ax_javac_and_java.m4
+++ b/aclocal/ax_javac_and_java.m4
@@ -57,6 +57,10 @@
             echo "Running \"$JAVAC configtest_ax_javac_and_java.java\"" >&AS_MESSAGE_LOG_FD
             if $JAVAC configtest_ax_javac_and_java.java >&AS_MESSAGE_LOG_FD 2>&1 ; then
 
+              # prevent $JAVA VM issues with UTF-8 path names (THRIFT-3271)
+              oLC_ALL="$LC_ALL"
+              LC_ALL=""
+
               IFS=","
               for JAVA in $JAVA_PROGS ; do
                 IFS="$oIFS"
@@ -69,6 +73,10 @@
 
               done
 
+              # restore LC_ALL
+              LC_ALL="$oLC_ALL"
+              oLC_ALL=""
+
             fi
 
           done