This commit is contained in:
Behdad Esfahbod 2012-10-28 20:11:42 -07:00
parent 71ee1f2450
commit b7115b63be

View File

@ -138,6 +138,7 @@ retry:
ALLOCATE_ARRAY (LEUnicode, chars, buffer->len);
ALLOCATE_ARRAY (unsigned int, clusters, buffer->len);
/* XXX Use UTF-16 decoder! */
for (unsigned int i = 0; i < buffer->len; i++) {
chars[i] = buffer->info[i].codepoint;
clusters[i] = buffer->info[i].cluster;