1
0
mirror of https://git.zap.org.au/git/trader.git synced 2024-07-21 16:14:14 -04:00

Add a comment about multibyte character handling in prepstr()

This commit is contained in:
John Zaitseff 2011-08-12 16:35:13 +10:00
parent 15f06bdc79
commit 184c07d19d

View File

@ -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).