support utf-8

This commit is contained in:
Vitor Santos Costa 2014-02-03 23:27:06 +00:00
parent 9dacb84c99
commit 91989ad13a
1 changed files with 2 additions and 0 deletions

View File

@ -174,6 +174,8 @@ outtext(format_state *state, PL_chars_t *txt)
{ switch(txt->encoding)
{ case ENC_ISO_LATIN_1:
return outstring(state, txt->text.t, txt->length);
case ENC_UTF8:
return oututf8(state, txt->text.t, txt->length);
case ENC_WCHAR:
{ const pl_wchar_t *s = txt->text.w;
const pl_wchar_t *e = &s[txt->length];