Hi Helge, On 3/11/23 18:13, Helge Kreutzmann wrote: > Without further ado, the following was found: > > Issue: null wide characters → NUL wide characters? This is incorrect. NUL is an ASCII character, which hasn't wide characters. It's correct as "null wide characters", a.k.a. L'\0'. Cheers, Alex > > "The B<wcsncpy>() function is the wide-character equivalent of the " > "B<strncpy>(3) function. It copies at most I<n> wide characters from the " > "wide-character string pointed to by I<src>, including the terminating null " > "wide character (L\\[aq]\\e0\\[aq]), to the array pointed to by I<dest>. " > "Exactly I<n> wide characters are written at I<dest>. If the length " > "I<wcslen(src)> is smaller than I<n>, the remaining wide characters in the " > "array pointed to by I<dest> are filled with null wide characters. If the " > "length I<wcslen(src)> is greater than or equal to I<n>, the string pointed " > "to by I<dest> will not be terminated by a null wide character." -- <http://www.alejandro-colomar.es/> GPG key fingerprint: A9348594CE31283A826FBDD8D57633D441E25BB5
Attachment:
OpenPGP_signature
Description: OpenPGP digital signature