git: 9front

Download patch

ref: b1d88ac360cfe78f7cc94aec41959f8e02104a33
parent: d20d7f7892d137c6c72544dfc2a7c76f1bccb7d8
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Apr 27 21:53:09 EDT 2016

rune(2): add Runeerror reencoding considerations in BUGS section (thanks aiju)

--- a/sys/man/2/rune
+++ b/sys/man/2/rune
@@ -191,3 +191,13 @@
 .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.
--