Ticket #5970: preferences_locale.patch

File preferences_locale.patch, 687 bytes (added by Karvjorm, 10 years ago)

Preferences/locale patch for 24-hour and Country encoding

  • src/preferences/locale/Locale.cpp

     
    7474        // set default prefs
    7575        fMessage.AddString("language", "en");
    7676        fMessage.AddString("country", "en_US");
     77        fMessage.AddString("encoding", "utf8");
    7778        return;
    7879    }
    7980}
     
    127128
    128129    if (message->FindString("country", &langName) == B_OK)
    129130        fMessage.ReplaceString("country", langName);
     131       
     132    BString enCoding;
     133    if (message->FindString("encoding", &enCoding) == B_OK)
     134        fMessage.ReplaceString("encoding", enCoding);
    130135
    131136    fUpdated = true;
    132137}