From: Bruno Haible Date: Tue, 19 Nov 2024 18:11:18 +0000 (+0100) Subject: doc: Use GNU coding style in man pages. X-Git-Tag: v0.23~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3c46bcf105a5528a873d7035e0e56ec80037ab80;p=thirdparty%2Fgettext.git doc: Use GNU coding style in man pages. Reported by наб in . * gettext-runtime/man/gettext.3.in: In C code snippets, put a space before '(' and after ','. * gettext-runtime/man/bind_textdomain_codeset.3.in: Likewise. --- diff --git a/gettext-runtime/man/bind_textdomain_codeset.3.in b/gettext-runtime/man/bind_textdomain_codeset.3.in index e1373cf27..501914d9f 100644 --- a/gettext-runtime/man/bind_textdomain_codeset.3.in +++ b/gettext-runtime/man/bind_textdomain_codeset.3.in @@ -10,7 +10,7 @@ .\" GNU gettext source code and manual .\" LI18NUX 2000 Globalization Specification .\" -.TH BIND_TEXTDOMAIN_CODESET 3 "May 2001" "GNU gettext @VERSION@" +.TH BIND_TEXTDOMAIN_CODESET 3 "November 2024" "GNU gettext @VERSION@" .SH NAME bind_textdomain_codeset \- set encoding of message translations .SH SYNOPSIS @@ -29,7 +29,7 @@ every software package has its own message domain. .PP By default, the \fBgettext\fP family of functions returns translated messages in the locale's character encoding, which can be retrieved as -\fBnl_langinfo(CODESET)\fP. The need for calling \fBbind_textdomain_codeset\fP +\fBnl_langinfo (CODESET)\fP. The need for calling \fBbind_textdomain_codeset\fP arises for programs which store strings in a locale independent way (e.g. UTF-8) and want to avoid an extra character set conversion on the returned translated messages. diff --git a/gettext-runtime/man/gettext.3.in b/gettext-runtime/man/gettext.3.in index 8a8766d2b..13eaf8cb7 100644 --- a/gettext-runtime/man/gettext.3.in +++ b/gettext-runtime/man/gettext.3.in @@ -10,7 +10,7 @@ .\" GNU gettext source code and manual .\" LI18NUX 2000 Globalization Specification .\" -.TH GETTEXT 3 "May 2001" "GNU gettext @VERSION@" +.TH GETTEXT 3 "November 2024" "GNU gettext @VERSION@" .SH NAME gettext, dgettext, dcgettext \- translate message .SH SYNOPSIS @@ -46,7 +46,7 @@ used instead. Translation lookup operates in the context of the current locale. For the \fBgettext\fP and \fBdgettext\fP functions, the \fBLC_MESSAGES\fP locale facet is used. It is determined by a preceding call to the \fBsetlocale\fP -function. \fBsetlocale(LC_ALL,"")\fP initializes the \fBLC_MESSAGES\fP locale +function. \fBsetlocale (LC_ALL, "")\fP initializes the \fBLC_MESSAGES\fP locale based on the first nonempty value of the three environment variables \fBLC_ALL\fP, \fBLC_MESSAGES\fP, \fBLANG\fP; see \fBsetlocale\fP(3). For the \fBdcgettext\fP function, the locale facet is determined by the \fIcategory\fP