-
Bug
-
Resolution: Won't Fix
-
P3
-
None
-
8u40, 9
-
OEL 32-bit
When I'm running bundled application with JVM_OPTIONS and JVM_PROPERTIES set to something containing Cyrillic (Unicode) symbols, the application works very strange, outputting something absolutely unexpected:
Hello World initialized!
-Dsqe.=
-Dsun.boot.class.path=/tmp/testBundlerWorkDir2769161359076434495/bundles/App1/runtime/jre/lib/resources.jar:/tmp/testBundlerWorkDir2769161359076434495/bundles/App1/runtime/jre/lib/rt.jar:/tmp/testBundlerWorkDir2769161359076434495/bundles/App1/runtime/jre/lib/sunrsasign.jar:/tmp/testBundlerWorkDir2769161359076434495/bundles/App1/runtime/jre/lib/jsse.jar:/tmp/testBundlerWorkDir2769161359076434495/bundles/App1/runtime/jre/lib/jce.jar:/tmp/testBundlerWorkDir2769161359076434495/bundles/App1/runtime/jre/lib/charsets.jar:/tmp/testBundlerWorkDir2769161359076434495/bundles/App1/runtime/jre/lib/jfr.jar:/tmp/testBundlerWorkDir2769161359076434495/bundles/App1/runtime/jre/classes
-Dapp.preferences.id=
PASS_1
JREVersion: 1.8.0_40-ea-b07
-Djava.library.path=/tmp/testBundlerWorkDir2769161359076434495/bundles/App1/app:/tmp/testBundlerWorkDir2769161359076434495/bundles/App1
-Djava.launcher.path=/tmp/testBundlerWorkDir2769161359076434495/bundles/App1
-Dapp.preferences.id
-Dsqe.
It's obvious here, that the Java output is translated someway, because this output is not possible the other way, the application code for outputting JVM properties is:
%PRINTLN% ("-D" + propertyName + "=" + entry.getValue());
build.xml: <attached>
jars: <attached>
App1.cfg:
app.mainjar=testFxAppWithUtil.jar
app.version=1.0
app.mainclass=testapp/App1
app.classpath=$PACKAGEDIR/Util.jar:$PACKAGEDIR/testFxAppWithUtil.jar
jvmarg.1=-Dsqe.йцу=кен
jvmarg.2=-Dsqe.йцу.кен=фывапролдж
app.preferences.id=testapp
jvmuserarg.1.name=-Xmx
jvmuserarg.1.value=1g
jvmuserarg.2.name=-Xms
jvmuserarg.2.value=512m
Again, after playing with values in App1.cfg and replacing, for example, "sqe.йцу" with "sqe.qqq" makes application crash:RT-38807
Hello World initialized!
-Dsqe.=
-Dsun.boot.class.path=/tmp/testBundlerWorkDir2769161359076434495/bundles/App1/runtime/jre/lib/resources.jar:/tmp/testBundlerWorkDir2769161359076434495/bundles/App1/runtime/jre/lib/rt.jar:/tmp/testBundlerWorkDir2769161359076434495/bundles/App1/runtime/jre/lib/sunrsasign.jar:/tmp/testBundlerWorkDir2769161359076434495/bundles/App1/runtime/jre/lib/jsse.jar:/tmp/testBundlerWorkDir2769161359076434495/bundles/App1/runtime/jre/lib/jce.jar:/tmp/testBundlerWorkDir2769161359076434495/bundles/App1/runtime/jre/lib/charsets.jar:/tmp/testBundlerWorkDir2769161359076434495/bundles/App1/runtime/jre/lib/jfr.jar:/tmp/testBundlerWorkDir2769161359076434495/bundles/App1/runtime/jre/classes
-Dapp.preferences.id=
PASS_1
JREVersion: 1.8.0_40-ea-b07
-Djava.library.path=/tmp/testBundlerWorkDir2769161359076434495/bundles/App1/app:/tmp/testBundlerWorkDir2769161359076434495/bundles/App1
-Djava.launcher.path=/tmp/testBundlerWorkDir2769161359076434495/bundles/App1
-Dapp.preferences.id
-Dsqe.
It's obvious here, that the Java output is translated someway, because this output is not possible the other way, the application code for outputting JVM properties is:
%PRINTLN% ("-D" + propertyName + "=" + entry.getValue());
build.xml: <attached>
jars: <attached>
App1.cfg:
app.mainjar=testFxAppWithUtil.jar
app.version=1.0
app.mainclass=testapp/App1
app.classpath=$PACKAGEDIR/Util.jar:$PACKAGEDIR/testFxAppWithUtil.jar
jvmarg.1=-Dsqe.йцу=кен
jvmarg.2=-Dsqe.йцу.кен=фывапролдж
app.preferences.id=testapp
jvmuserarg.1.name=-Xmx
jvmuserarg.1.value=1g
jvmuserarg.2.name=-Xms
jvmuserarg.2.value=512m
Again, after playing with values in App1.cfg and replacing, for example, "sqe.йцу" with "sqe.qqq" makes application crash: