summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorschwarze <>2019-01-18 07:43:36 +0000
committerschwarze <>2019-01-18 07:43:36 +0000
commit8d11c13cb195af65b758b8fc9f2010bac7d034c6 (patch)
tree0a4555e6a772cc7db89f83a4ad4aa669ca28000b
parentf088490975411fdaef39d5aee455070b01b5440c (diff)
downloadopenbsd-8d11c13cb195af65b758b8fc9f2010bac7d034c6.tar.gz
openbsd-8d11c13cb195af65b758b8fc9f2010bac7d034c6.tar.bz2
openbsd-8d11c13cb195af65b758b8fc9f2010bac7d034c6.zip
Improve the description of locale dependency:
* mention LC_COLLATE; * clarify that all these functions are infested, including the *_l() versions; * avoid ENVIRONMENT, these functions don't inspect it; * and point to the C library functions that change the locale. OK millert@
-rw-r--r--src/lib/libc/string/strcoll.317
-rw-r--r--src/lib/libc/string/strxfrm.317
2 files changed, 20 insertions, 14 deletions
diff --git a/src/lib/libc/string/strcoll.3 b/src/lib/libc/string/strcoll.3
index 4ba1f22677..9daa6cd93f 100644
--- a/src/lib/libc/string/strcoll.3
+++ b/src/lib/libc/string/strcoll.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: strcoll.3,v 1.10 2017/09/05 03:16:13 schwarze Exp $ 1.\" $OpenBSD: strcoll.3,v 1.11 2019/01/18 07:43:36 schwarze Exp $
2.\" 2.\"
3.\" Copyright (c) 1990, 1991 The Regents of the University of California. 3.\" Copyright (c) 1990, 1991 The Regents of the University of California.
4.\" Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org> 4.\" Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -32,7 +32,7 @@
32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33.\" SUCH DAMAGE. 33.\" SUCH DAMAGE.
34.\" 34.\"
35.Dd $Mdocdate: September 5 2017 $ 35.Dd $Mdocdate: January 18 2019 $
36.Dt STRCOLL 3 36.Dt STRCOLL 3
37.Os 37.Os
38.Sh NAME 38.Sh NAME
@@ -68,12 +68,15 @@ they have the same effect as
68and the global locale, the thread-specific locale, and the 68and the global locale, the thread-specific locale, and the
69.Fa locale 69.Fa locale
70argument are ignored. 70argument are ignored.
71.Sh ENVIRONMENT 71On other operating systems, results may depend on the
72On other operating systems, the behaviour of
73.Fn strcoll
74may depend on the
75.Dv LC_CTYPE 72.Dv LC_CTYPE
76.Xr locale 1 . 73and
74.Dv LC_COLLATE
75locale categories set with
76.Xr setlocale 3 ,
77.Xr uselocale 3 ,
78or
79.Xr newlocale 3 .
77.Sh SEE ALSO 80.Sh SEE ALSO
78.Xr newlocale 3 , 81.Xr newlocale 3 ,
79.Xr setlocale 3 , 82.Xr setlocale 3 ,
diff --git a/src/lib/libc/string/strxfrm.3 b/src/lib/libc/string/strxfrm.3
index 1a96c8512e..dab3673f38 100644
--- a/src/lib/libc/string/strxfrm.3
+++ b/src/lib/libc/string/strxfrm.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: strxfrm.3,v 1.11 2017/09/05 03:16:13 schwarze Exp $ 1.\" $OpenBSD: strxfrm.3,v 1.12 2019/01/18 07:43:36 schwarze Exp $
2.\" 2.\"
3.\" Copyright (c) 1990, 1991 The Regents of the University of California. 3.\" Copyright (c) 1990, 1991 The Regents of the University of California.
4.\" Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org> 4.\" Copyright (c) 2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -32,7 +32,7 @@
32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33.\" SUCH DAMAGE. 33.\" SUCH DAMAGE.
34.\" 34.\"
35.Dd $Mdocdate: September 5 2017 $ 35.Dd $Mdocdate: January 18 2019 $
36.Dt STRXFRM 3 36.Dt STRXFRM 3
37.Os 37.Os
38.Sh NAME 38.Sh NAME
@@ -69,12 +69,15 @@ both have the same effect as
69and the global locale, the thread-specific locale, and the 69and the global locale, the thread-specific locale, and the
70.Fa locale 70.Fa locale
71argument are ignored. 71argument are ignored.
72.Sh ENVIRONMENT 72On other operating systems, the behaviour may depend on the
73On other operating systems, the behaviour of
74.Fn strxfrm
75may depend on the
76.Dv LC_CTYPE 73.Dv LC_CTYPE
77.Xr locale 1 . 74and
75.Dv LC_COLLATE
76locale categories set with
77.Xr setlocale 3 ,
78.Xr uselocale 3 ,
79or
80.Xr newlocale 3 .
78.Sh SEE ALSO 81.Sh SEE ALSO
79.Xr newlocale 3 , 82.Xr newlocale 3 ,
80.Xr setlocale 3 , 83.Xr setlocale 3 ,