From ca5b491753ad363da8d9deb5978b56231ec27bf5 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Thu, 28 Apr 2016 01:53:09 +0200 Subject: rune(2): add Runeerror reencoding considerations in BUGS section (thanks aiju) --- sys/man/2/rune | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sys/man/2/rune b/sys/man/2/rune index 124692797..c72e0b438 100644 --- a/sys/man/2/rune +++ b/sys/man/2/rune @@ -191,3 +191,13 @@ returns .SH SEE ALSO .IR utf (6), .IR tcs (1) +.SH BUGS +When re-encoding UTF strings with +.I chartorune +and +.I runetochar +one has to consider that encoding a +.I Runeerror +(0xFFFD) +that resulted from invalid encoded input can yield +a longer UTF sequence on the output. -- cgit v1.2.3