Subj : src/encode/utf8.c utf8.h To : Git commit to main/sbbs/master From : Rob Swindell (on Windows 11) Date : Thu Feb 15 2024 21:37:00 https://gitlab.synchro.net/main/sbbs/-/commit/88a7e14ecd5b55bfcca1f261 Modified Files: src/encode/utf8.c utf8.h Log Message: Create utf8_strlcpy() which does a "safe" truncated-string copy (doesn't leave a partial UTF-8 sequence at the end of the destination string). This calls memcpy() for every char, which may not be performant, but I didn't (yet) do any profiling. Hence, no premature optimization either. --- SBBSecho 3.20-Linux * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705) .