I think its best to add safety as far back as possible, so I would want to define utf8_to_uvchr_buf in ppport.h in terms of plain utf8_to_uvchr, as they differ mainly in that the _buf version has better malformation checking. But alas, I could not get ppport stuff to work. So doing that change has to be deferred. So, in the meantime, I merely moved utf8_to_uvchr() away from mathoms.c, so it will always be defined. Commit 7723e0077ab2970477de35881407f68179022294 did that. Then the patch for this ticket works, and was pushed as 1545ba5b042c208e23333479730479c0acd55325 -- Karl Williamson --- via perlbug: queue: perl5 status: open https://rt.perl.org/Ticket/Display.html?id=133098