From 1abb8bd21d64c2bd21258469b688483f821974d5 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Fri, 25 Jul 2014 11:24:03 -0700 Subject: [PATCH] en_US.UTF-8 is also supported. Change-Id: Ic35fad3596dc5e24ee8ae35543a274a471f27bb2 --- libc/bionic/locale.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libc/bionic/locale.cpp b/libc/bionic/locale.cpp index 5a1da431f..363140e92 100644 --- a/libc/bionic/locale.cpp +++ b/libc/bionic/locale.cpp @@ -79,7 +79,9 @@ static bool __bionic_current_locale_is_utf8 = false; static bool __is_supported_locale(const char* locale) { return (strcmp(locale, "") == 0 || - strcmp(locale, "C") == 0 || strcmp(locale, "C.UTF-8") == 0 || + strcmp(locale, "C") == 0 || + strcmp(locale, "C.UTF-8") == 0 || + strcmp(locale, "en_US.UTF-8") == 0 || strcmp(locale, "POSIX") == 0); }