Plan 9 from Bell Labs’s /usr/web/sources/patch/applied/utfecpy-boundary/readme

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


utfecpy() ignores any valid UTF sequence
at the end of its input.

for example:
	utfecpy(to, to+5, "1234567890");
copies only 3 bytes while
	strecpy(to, to+5, "1234567890");
copies 4.  also,
	utfecpy(to, to+7, "123க456");
copies only the first 3 bytes.

this patch replaces utfecpy() with a modified
version of /acme/bin/source/win/main.c:/^utfncpy

thanks.
arvindh

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].