Allow digits in language system tags

This commit is contained in:
David Corbett 2017-12-05 08:28:42 -05:00 committed by Behdad Esfahbod
parent 85bb89a88b
commit 80c1b01f05
1 changed files with 1 additions and 1 deletions

View File

@ -920,7 +920,7 @@ hb_ot_tag_from_language (hb_language_t language)
char tag[4];
int i;
s += 6;
for (i = 0; i < 4 && ISALPHA (s[i]); i++)
for (i = 0; i < 4 && ISALNUM (s[i]); i++)
tag[i] = TOUPPER (s[i]);
if (i) {
for (; i < 4; i++)