From 184c07d19d4b7b723acf1fcb4e7b92bcebdaa056 Mon Sep 17 00:00:00 2001 From: John Zaitseff Date: Fri, 12 Aug 2011 16:35:13 +1000 Subject: [PATCH] Add a comment about multibyte character handling in prepstr() --- src/intf.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/intf.h b/src/intf.h index 4e2069f..fa2176c 100644 --- a/src/intf.h +++ b/src/intf.h @@ -343,6 +343,10 @@ extern int txdlgbox (int maxlines, int ncols, int begin_y, int begin_x, will force the start of a new line. By default, attr_norm is used as the character rendition (attributes). + Please note that this function does NOT handle multibyte characters + correctly: widths may be incorrect (byte count, not actual width) and + multibyte characters may be split over two lines. + This function returns the actual number of lines used (from 0 to maxlines), or -1 on error (with errno set to EINVAL for an invalid format conversion specifier or argument).