summaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorDoug Zongker <dougz@google.com>2012-09-18 21:37:02 +0200
committerThe Android Automerger <android-build@android.com>2012-09-19 01:30:55 +0200
commitea6b2a7a85e1302b23ed0d9916e4b38015bc9a23 (patch)
tree6990ad74371795a16ac1670bb21ca2f8e6aeb6bd /recovery.cpp
parentmerge in jb-mr1-release history after reset to jb-mr1-dev (diff)
downloadandroid_bootable_recovery-ea6b2a7a85e1302b23ed0d9916e4b38015bc9a23.tar
android_bootable_recovery-ea6b2a7a85e1302b23ed0d9916e4b38015bc9a23.tar.gz
android_bootable_recovery-ea6b2a7a85e1302b23ed0d9916e4b38015bc9a23.tar.bz2
android_bootable_recovery-ea6b2a7a85e1302b23ed0d9916e4b38015bc9a23.tar.lz
android_bootable_recovery-ea6b2a7a85e1302b23ed0d9916e4b38015bc9a23.tar.xz
android_bootable_recovery-ea6b2a7a85e1302b23ed0d9916e4b38015bc9a23.tar.zst
android_bootable_recovery-ea6b2a7a85e1302b23ed0d9916e4b38015bc9a23.zip
Diffstat (limited to 'recovery.cpp')
-rw-r--r--recovery.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/recovery.cpp b/recovery.cpp
index 6ced420d0..3b5813876 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -781,7 +781,7 @@ load_locale_from_cache() {
if (fp != NULL) {
fgets(buffer, sizeof(buffer), fp);
int j = 0;
- int i;
+ unsigned int i;
for (i = 0; i < sizeof(buffer) && buffer[i]; ++i) {
if (!isspace(buffer[i])) {
buffer[j++] = buffer[i];
@@ -849,6 +849,7 @@ main(int argc, char **argv) {
ui = device->GetUI();
ui->Init();
+ ui->SetLocale(locale);
ui->SetBackground(RecoveryUI::NONE);
if (show_text) ui->ShowText(true);