Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(249)

Unified Diff: runtime/bin/platform_android.cc

Issue 2785073002: [dart:io] Adds Platform.localeName (Closed)
Patch Set: Update CHANGELOG Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/bin/platform_android.cc
diff --git a/runtime/bin/platform_android.cc b/runtime/bin/platform_android.cc
index b81ce71e195ebda32b0a7e9cee30e711afc73039..cba7fa497e28561a0667c6eefabb1de84a361559 100644
--- a/runtime/bin/platform_android.cc
+++ b/runtime/bin/platform_android.cc
@@ -57,6 +57,11 @@ const char* Platform::LibraryExtension() {
}
+const char* Platform::LocaleName() {
+ return getenv("LANG");
+}
+
+
bool Platform::LocalHostname(char* buffer, intptr_t buffer_length) {
return gethostname(buffer, buffer_length) == 0;
}

Powered by Google App Engine
This is Rietveld 408576698