]> git.lizzy.rs Git - plan9front.git/blobdiff - sys/man/2/rune
merge
[plan9front.git] / sys / man / 2 / rune
index ca290115da9f656284552648b8c9d38af54a9661..c72e0b4381cb1e336988ee580c3b0eba5914001d 100644 (file)
@@ -54,7 +54,7 @@ bytes starting at
 and returns the number of bytes copied.
 .BR UTFmax ,
 defined as
-.B 3
+.B 4
 in
 .BR <libc.h> ,
 is the maximum number of bytes required to represent a 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.