encoding.c: Create a string decoding API; support US-ASCII decoding.

This commit is contained in:
Reece H. Dunn
2017-03-27 22:49:47 +01:00
parent da7eaa7b9c
commit 0590da5da7
5 changed files with 69 additions and 3 deletions
+3
View File
@@ -135,6 +135,9 @@ espeak_ng_GetStatusCodeMessage(espeak_ng_STATUS status,
case ENS_UNKNOWN_PHONEME_FEATURE:
strncpy0(buffer, "The phoneme feature is not recognised", length);
break;
case ENS_UNKNOWN_TEXT_ENCODING:
strncpy0(buffer, "The text encoding is not supported", length);
break;
default:
if ((status & ENS_GROUP_MASK) == ENS_GROUP_ERRNO)
strerror_r(status, buffer, length);