Allow digits in language system tags
This commit is contained in:
parent
85bb89a88b
commit
80c1b01f05
|
@ -920,7 +920,7 @@ hb_ot_tag_from_language (hb_language_t language)
|
||||||
char tag[4];
|
char tag[4];
|
||||||
int i;
|
int i;
|
||||||
s += 6;
|
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]);
|
tag[i] = TOUPPER (s[i]);
|
||||||
if (i) {
|
if (i) {
|
||||||
for (; i < 4; i++)
|
for (; i < 4; i++)
|
||||||
|
|
Loading…
Reference in New Issue