Skip to content

Commit

Permalink
Handle non-ascii localizatio ncharacters (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
Idhrendur authored Dec 15, 2024
1 parent cacbe0e commit f5b02f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Localization/LocalizationDatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ std::pair<std::string, std::string> commonItems::LocalizationDatabase::Determine
}

const auto isspace = [](char x) {
return std::isspace(x);
return std::isspace(static_cast<unsigned char>(x));
};
const auto first_non_space = std::ranges::find_if_not(line, isspace);
if (first_non_space == line.end() || *first_non_space == '#')
Expand Down

0 comments on commit f5b02f2

Please sign in to comment.