mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-24 04:25:06 +02:00
Cyc_io_get_output_string - populate num_cp correctly
This commit is contained in:
parent
8289eca02a
commit
a5d768a8a4
1 changed files with 1 additions and 0 deletions
|
@ -102,6 +102,7 @@ void Cyc_io_get_output_string(void *data, object cont, object port)
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
make_string_with_len(s, p->str_bv_in_mem_buf, p->str_bv_in_mem_buf_len);
|
make_string_with_len(s, p->str_bv_in_mem_buf, p->str_bv_in_mem_buf_len);
|
||||||
|
s.num_cp = Cyc_utf8_count_code_points((uint8_t *)string_str(&s));
|
||||||
return_closcall1(data, cont, &s);
|
return_closcall1(data, cont, &s);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue