Index: runtime/bin/platform_fuchsia.cc |
diff --git a/runtime/bin/platform_fuchsia.cc b/runtime/bin/platform_fuchsia.cc |
index 69c75ce5d4094bcb32942f7e70ab51018853a71f..1225cef370ac37b3b40ce72cccbc147ccf07d029 100644 |
--- a/runtime/bin/platform_fuchsia.cc |
+++ b/runtime/bin/platform_fuchsia.cc |
@@ -48,7 +48,11 @@ const char* Platform::LibraryExtension() { |
const char* Platform::LocaleName() { |
- return getenv("LANG"); |
+ char* lang = getenv("LANG"); |
+ if (lang == NULL) { |
+ return "en_US"; |
+ } |
+ return lang; |
} |