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

Unified Diff: runtime/bin/platform_linux.cc

Issue 2785073002: [dart:io] Adds Platform.localeName (Closed)
Patch Set: Add missing copyright message. Address comments 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_linux.cc
diff --git a/runtime/bin/platform_linux.cc b/runtime/bin/platform_linux.cc
index b68f4921c7e78b01c9bed033ca2bd5f2606577ee..cd3497899c541eb1c8ec8136d88752c222e5ba60 100644
--- a/runtime/bin/platform_linux.cc
+++ b/runtime/bin/platform_linux.cc
@@ -82,6 +82,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