On 07/04/2013 01:55 PM, Martin Reinecke wrote:

On 07/04/13 13:43, Florian Weimer wrote:
On 07/04/2013 11:22 AM, Martin Reinecke wrote:
The attached testcase requires gcc and gfortran, as well as a JDK
installation. When running "make" with gcc/gfortran 4.7.2 and
Oracle JDK 1.7, a single call to JNI_CreateJavaVM() changes the
behaviour of subsequent READ statements in the Fortran code,
depending on the value of the LC_ALL environment variable.

Can you reproduce this with OpenJDK 7?

Oops, I probably used the wrong name... I tested with the JDK that
comes by default with OpenSUSE 12.3, which should actually be
OpenJDK 7.

What happens is that the JVM initialization in JNI_CreateJavaVM() calls setlocate. This seems to change the behavior of READ. I don't know enough about gfortran to judge whether READ should follow the libc locale or not.

--
Florian Weimer / Red Hat Product Security Team

Reply via email to