aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Ulf Adams <ulfjack@google.com>2016-06-21 14:55:49 +0000
committerGravatar Philipp Wollermann <philwo@google.com>2016-06-21 15:04:38 +0000
commitb5a06f3362b430d0f51d1f4da646f2de901e5707 (patch)
tree2c9023bdf2338fcc4a262026783d8fcbc3800281 /src
parentbfffc5075e23b0e2721bdf9487950d656daad0a2 (diff)
Pass a locale to a getLowerCase call in BlazeRuntime.
Behavior of getLowerCase/getUpperCase is locale-specific, and can be rather surprising. We should _always_ pass a locale explicitly. -- MOS_MIGRATED_REVID=125450790
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java b/src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java
index 4e9de80d68..0a922fc4ea 100644
--- a/src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java
+++ b/src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java
@@ -114,6 +114,7 @@ import java.util.Date;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
+import java.util.Locale;
import java.util.Map;
import java.util.Set;
import java.util.UUID;
@@ -988,7 +989,7 @@ public final class BlazeRuntime {
}
BlazeServerStartupOptions startupOptions = options.getOptions(BlazeServerStartupOptions.class);
- String productName = startupOptions.productName.toLowerCase();
+ String productName = startupOptions.productName.toLowerCase(Locale.US);
if (startupOptions.oomMoreEagerlyThreshold != 100) {
new RetainedHeapLimiter(startupOptions.oomMoreEagerlyThreshold).install();