Please sign in to comment.
Replace '_' to '-' in lt_tag_transform()
likelySubtags.xml contains '_', which isn't impossible to match the tags in lt_tag_t. this usually means lt_tag_transform() doesn't work without this fix. After this fix, following code just works: lt_tag_t *tag; char *s; lt_tag_parse(tag, "zh-TW", NULL); s = lt_tag_transform(tag, NULL)); printf("%s\n", s); free(s); -- zh-Hant-TW
- Loading branch information...