8015351: Nashorn shell does not start with Turkish locale
Reviewed-by: jlaskey
This commit is contained in:
parent
f86162c90c
commit
5bf7dac8d7
nashorn
@ -214,9 +214,13 @@ test.src.dir=test/src
|
||||
run.test.xmx=3G
|
||||
run.test.xms=2G
|
||||
|
||||
run.test.user.language=tr
|
||||
run.test.user.country=TR
|
||||
|
||||
# -XX:+PrintCompilation -XX:+UnlockDiagnosticVMOptions -XX:+PrintNMethods
|
||||
# add '-Dtest.js.outofprocess' to run each test in a new sub-process
|
||||
run.test.jvmargs.main=-server -Xmx${run.test.xmx} -XX:+TieredCompilation -ea -Dfile.encoding=UTF-8
|
||||
run.test.jvmargs.main=-server -Xmx${run.test.xmx} -XX:+TieredCompilation -ea -Dfile.encoding=UTF-8 -Duser.language=${run.test.user.language} -Duser.country=${run.test.user.country}
|
||||
|
||||
#-XX:+HeapDumpOnOutOfMemoryError -XX:-UseCompressedKlassPointers -XX:+PrintHeapAtGC -XX:ClassMetaspaceSize=300M
|
||||
run.test.jvmargs.octane.main=-Xms${run.test.xms} ${run.test.jvmargs.main}
|
||||
|
||||
|
@ -25,6 +25,7 @@
|
||||
|
||||
package jdk.nashorn.internal.runtime.options;
|
||||
|
||||
import java.util.Locale;
|
||||
import java.util.TimeZone;
|
||||
import jdk.nashorn.internal.runtime.QuotedStringTokenizer;
|
||||
|
||||
@ -263,7 +264,7 @@ public class OptionTemplate implements Comparable<OptionTemplate> {
|
||||
this.params = arg;
|
||||
break;
|
||||
case "type":
|
||||
this.type = arg.toLowerCase();
|
||||
this.type = arg.toLowerCase(Locale.ROOT);
|
||||
break;
|
||||
case "default":
|
||||
this.defaultValue = arg;
|
||||
|
Loading…
x
Reference in New Issue
Block a user