提交 03034acb 编写于 作者: B Behdad Esfahbod

[icu] Make sure we return script UNKNOWN instead of INVALID

上级 d02985ec
......@@ -157,6 +157,9 @@ hb_icu_get_script (hb_unicode_funcs_t *ufuncs,
UErrorCode status = U_ZERO_ERROR;
UScriptCode scriptCode = uscript_getScript(unicode, &status);
if (unlikely (status != U_ZERO_ERROR))
return HB_SCRIPT_UNKNOWN;
return hb_icu_script_to_script (scriptCode);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册