Hi Ludo, > Can you also comment on this: > > > BTW, it’s unclear to me from the manual whether RESULT_LEN above should > > be the size in bytes or the size in uint32_t.
It's documented in chapter 2 "Conventions" of the manual [1]. The *LENGTHP value indicates the string length in units (i.e. uint32_t in this case). Bruno [1] http://www.gnu.org/software/libunistring/manual/html_node/Conventions.html