From 831486481c397e13dc164524e54eddbc017fade3 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Sun, 3 Aug 2014 22:02:41 +0300 Subject: Document more about sprintf %c. --- doc/gawk.texi | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc/gawk.texi') diff --git a/doc/gawk.texi b/doc/gawk.texi index c6520ba3..ab98dda3 100644 --- a/doc/gawk.texi +++ b/doc/gawk.texi @@ -9029,6 +9029,8 @@ and then to print the multibyte encoding of that character. Similarly, when printing a numeric value, @command{gawk} allows the value to be within the numeric range of values that can be held in a wide character. +If the conversion to multibyte encoding fails, @command{gawk} +uses the low eight bits of the value as the character to print. Other @command{awk} versions generally restrict themselves to printing the first byte of a string or to numeric values within the range of -- cgit v1.2.3 From 8f2f7ef2872a9a95dc1506504b60225ef98944f1 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Sun, 3 Aug 2014 22:06:51 +0300 Subject: Improve inrec setting ERRNO, doc of API get_record for errors. --- doc/gawk.texi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc/gawk.texi') diff --git a/doc/gawk.texi b/doc/gawk.texi index ab98dda3..b9cecd04 100644 --- a/doc/gawk.texi +++ b/doc/gawk.texi @@ -31830,8 +31830,8 @@ need to test for a @code{NULL} value. @command{gawk} sets @code{*errcode} to zero, so there is no need to set it unless an error occurs. If an error does occur, the function should return @code{EOF} and set -@code{*errcode} to a non-zero value. In that case, if @code{*errcode} -does not equal @minus{}1, @command{gawk} automatically updates +@code{*errcode} to a value greater than zero. In that case, if @code{*errcode} +does not equal zero, @command{gawk} automatically updates the @code{ERRNO} variable based on the value of @code{*errcode}. (In general, setting @samp{*errcode = errno} should do the right thing.) -- cgit v1.2.3