Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 37151b50 authored by Narayan Kamath's avatar Narayan Kamath
Browse files

Remove bogus 2 char limit for locales and countries.

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
parent 7165bd6d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
}