setlocale.3: Restructure a particularly difficult sentence

Reported-by: Alejandro Colomar (man-pages) <alx.manpages@gmail.com>
Reported-by: Bruno Haible <bruno@clisp.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2021-01-09 09:44:09 +01:00
parent 2c916a1d3c
commit 402f955e66
1 changed files with 17 additions and 11 deletions

View File

@ -168,20 +168,26 @@ setlocale(LC_ALL, "");
.EE
.in
.PP
after program initialization, by using the values returned
from a
after program initialization, and then:
.IP \(bu 2
using the values returned from a
.BR localeconv (3)
call
for locale-dependent information, by using the multibyte and wide
character functions for text processing if
.BR "MB_CUR_MAX > 1" ,
and by using
.BR strcoll (3),
call for locale-dependent information;
.IP \(bu
using the multibyte and wide character functions for text processing if
.BR "MB_CUR_MAX > 1" ;
.IP \(bu
using
.BR strcoll (3)
and
.BR strxfrm (3)
to compare strings; and
.IP \(bu
using
.BR wcscoll (3)
or
.BR strxfrm (3),
and
.BR wcsxfrm (3)
to compare strings.
to compare wide-character strings.
.SH RETURN VALUE
A successful call to
.BR setlocale ()