From 54f284c43fbe68ad5a34fa1cb28cace00633a86b Mon Sep 17 00:00:00 2001 From: Dianne Skoll Date: Wed, 11 Dec 2024 09:45:40 -0500 Subject: [PATCH] Note that strlen returns number of bytes, not characters. --- man/remind.1.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/man/remind.1.in b/man/remind.1.in index 270efdf7..af3a0759 100644 --- a/man/remind.1.in +++ b/man/remind.1.in @@ -3991,7 +3991,10 @@ output is not going to a TTY. .TP .B strlen(s_str) Returns the length of \fIstr\fR. If the length of \fIstr\fR is too large -to represent as an integer, emits a "Number too high" error. +to represent as an integer, emits a "Number too high" error. Note that +\fBstrlen\fR returns the number of \fIbytes\fR in the string, not the +number of \fIcharacters\fR. These numbers are the same for ASCII strings, +but may be different for UTF-8 strings. .TP .B substr(s_str, i_start [,i_end]) Returns a \fBSTRING\fR consisting of all characters in \fIstr\fR from