Browse Source

For all functions known to be infected by LC_NUMERIC, add short

CAVEATS pointing to the new CAVEATS section in setlocale(3).
Make those in wprintf(3) and wscanf(3) more concise
since duplicate information is a bad idea.
Incompleteness of information originally pointed out by millert@.
OK millert@
OPENBSD_6_5
schwarze 6 years ago
parent
commit
0eac857491
2 changed files with 22 additions and 4 deletions
  1. +11
    -2
      src/lib/libc/stdlib/atof.3
  2. +11
    -2
      src/lib/libc/stdlib/strtod.3

+ 11
- 2
src/lib/libc/stdlib/atof.3 View File

@ -29,9 +29,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" $OpenBSD: atof.3,v 1.8 2015/09/10 15:16:43 schwarze Exp $
.\" $OpenBSD: atof.3,v 1.9 2019/01/16 12:55:49 schwarze Exp $
.\"
.Dd $Mdocdate: September 10 2015 $
.Dd $Mdocdate: January 16 2019 $
.Dt ATOF 3
.Os
.Sh NAME
@ -70,3 +70,12 @@ An
.Fn atof
function first appeared in
.At v1 .
.Sh CAVEATS
On systems other than
.Ox ,
the
.Dv LC_NUMERIC
.Xr locale 1
category can cause parsing failures; see CAVEATS in
.Xr setlocale 3
for details.

+ 11
- 2
src/lib/libc/stdlib/strtod.3 View File

@ -29,9 +29,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" $OpenBSD: strtod.3,v 1.21 2016/06/02 15:07:34 millert Exp $
.\" $OpenBSD: strtod.3,v 1.22 2019/01/16 12:55:49 schwarze Exp $
.\"
.Dd $Mdocdate: June 2 2016 $
.Dd $Mdocdate: January 16 2019 $
.Dt STRTOD 3
.Os
.Sh NAME
@ -165,3 +165,12 @@ and
.Fn strtold
functions conform to
.St -isoC-99 .
.Sh CAVEATS
On systems other than
.Ox ,
the
.Dv LC_NUMERIC
.Xr locale 1
category can cause parsing failures; see CAVEATS in
.Xr setlocale 3
for details.

Loading…
Cancel
Save