Skip to content

Commit 220a564

Browse files
committed
fix for c++03
1 parent 1021789 commit 220a564

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/i18n/i18n.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ bool i18n_t::loadLocale()
221221
std::string localeStr = getLocale();
222222
std::string fileName = localesPath + localeStr + "." + fileExtension;
223223
if( ! fs->exists( fileName.c_str() ) ) return false; // this test is useless with SPIFFS
224-
fs::File localeFile = fs->open( fileName.c_str() );
224+
fs::File localeFile = fs->open( fileName.c_str(), "r" );
225225
if( ! localeFile ) return false;
226226
size_t localeSize = localeFile.size();
227227

src/i18n/i18n.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ struct l10n_t
5050
// locale name holder
5151
struct i18n_locale_t
5252
{
53-
char language[4] {"en"}; // ISO-639
54-
char country[4] { 0 }; // ISO-3166
55-
char variant[16] { 0 }; // ISO-3166
56-
char delimiter[2] { "_" };
53+
char language[4] {0}; // ISO-639
54+
char country[4] {0}; // ISO-3166
55+
char variant[16] {0}; // ISO-3166
56+
char delimiter[2] {0};
5757
i18n_locale_t() = default;
5858
};
5959

0 commit comments

Comments
 (0)