Skip to content

Commit

Permalink
Remove bogus 2 char limit for locales and countries.
Browse files Browse the repository at this point in the history
Locale settings are persisted to system properties
and not to system settings, so the values read here
are used pretty much everywhere.

bug: 15873165
bug: 10090157

Change-Id: Ie7cda166439112c615afbd38253cf4fbb5791242
  • Loading branch information
narayank committed Jul 1, 2014
1 parent 7165bd6 commit 37151b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/jni/AndroidRuntime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,8 @@ static void readLocale(char* language, char* region)
property_get("ro.product.locale.language", propLang, "en");
property_get("ro.product.locale.region", propRegn, "US");
}
strncat(language, propLang, 2);
strncat(region, propRegn, 2);
strncat(language, propLang, 3);
strncat(region, propRegn, 3);
//ALOGD("language=%s region=%s\n", language, region);
}

Expand Down

0 comments on commit 37151b5

Please sign in to comment.