Skip to content

Commit

Permalink
Fix compilation error for fdomenu.cc undefined msglang when no I18N.
Browse files Browse the repository at this point in the history
  • Loading branch information
gijsbers committed Feb 21, 2025
1 parent a1fdb8b commit 3a61123
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/fdomenu.cc
Original file line number Diff line number Diff line change
Expand Up @@ -953,10 +953,11 @@ int main(int argc, char **argv) {

std::ios_base::sync_with_stdio(false);

const char* msglang = nullptr;
#ifdef CONFIG_I18N
setlocale(LC_ALL, "");

auto msglang = getCheckedExplicitLocale(false);
msglang = getCheckedExplicitLocale(false);
right_to_left =
msglang && *msglang &&
std::any_of(rtls, rtls + ACOUNT(rtls), [&](const char *rtl) {
Expand Down Expand Up @@ -1210,4 +1211,4 @@ int main(int argc, char **argv) {

return EXIT_SUCCESS;
}
// vim: set sw=4 ts=4 et:
// vim: set sw=4 ts=4 et:

0 comments on commit 3a61123

Please sign in to comment.