Index: runtime/bin/platform_linux.cc |
diff --git a/runtime/bin/platform_linux.cc b/runtime/bin/platform_linux.cc |
index cd3497899c541eb1c8ec8136d88752c222e5ba60..4e450f1ac271c227259d84fc04421e9ddddcfbfc 100644 |
--- a/runtime/bin/platform_linux.cc |
+++ b/runtime/bin/platform_linux.cc |
@@ -83,7 +83,11 @@ const char* Platform::LibraryExtension() { |
const char* Platform::LocaleName() { |
- return getenv("LANG"); |
+ char* lang = getenv("LANG"); |
+ if (lang == NULL) { |
+ return "en_US"; |
+ } |
+ return lang; |
} |