File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
substratevm/src/com.oracle.svm.core/src/com/oracle/svm/core/util Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,8 @@ private static Set<String> getRequiredEnvVariableKeys() {
51
51
if (OS .WINDOWS .isCurrent ()) {
52
52
requiredEnvVariableKeys .addAll (REQUIRED_ENV_VARIABLE_KEYS_WINDOWS );
53
53
}
54
+ System .out .printf ("XXX cout reuired var= %s\n " , requiredEnvVariableKeys );
55
+ System .err .printf ("XXX cerr reuired var= %s\n " , requiredEnvVariableKeys );
54
56
return requiredEnvVariableKeys ;
55
57
}
56
58
@@ -82,19 +84,20 @@ public boolean isKeyRequired() {
82
84
}
83
85
84
86
public static boolean isKeyRequired (String key ) {
85
- mapKey (key );
86
- return isKeyRequiredCondition (key );
87
+ return isKeyRequiredCondition (mapKey (key ));
87
88
}
88
89
89
90
private static String mapKey (String key ) {
90
91
if (OS .WINDOWS .isCurrent ()) {
92
+ System .err .println ("XXX ROOT mapKey " + key + " to " + key .toUpperCase (Locale .ROOT ));
91
93
return key .toUpperCase (Locale .ROOT );
92
94
}
93
95
return key ;
94
96
}
95
97
96
98
private static boolean isKeyRequiredCondition (String key ) {
97
99
// LC_* are locale vars that override LANG for specific categories (or all, with LC_ALL)
100
+ System .err .println ("XXX cerr key " + key + " req=" + REQUIRED_ENV_VARIABLE_KEYS .contains (key ));
98
101
return REQUIRED_ENV_VARIABLE_KEYS .contains (key ) || key .startsWith ("LC_" );
99
102
}
100
103
}
You can’t perform that action at this time.
0 commit comments