BMenu: Look for ASCII characters < 128, not < 255.

Otherwise we will include ISO 8859-15 (é, à, etc.)
Thanks to PulkoMandy for pointing this out!
This commit is contained in:
Augustin Cavalier 2019-01-08 19:50:52 -05:00
parent 5c8f9c2b0c
commit 0a973154a8

View File

@ -2883,7 +2883,7 @@ BMenu::_ChooseTrigger(const char* title, int32& index, uint32& trigger,
nextCharacter = title;
character = nextCharacter;
while ((c = BUnicodeChar::FromUTF8(&nextCharacter)) != 0) {
if (!(c < 255 && BUnicodeChar::IsAlNum(c)) || triggers.HasTrigger(c)) {
if (!(c < 128 && BUnicodeChar::IsAlNum(c)) || triggers.HasTrigger(c)) {
character = nextCharacter;
continue;
}