diff options
Diffstat (limited to 'man3/nl_langinfo.3')
-rw-r--r-- | man3/nl_langinfo.3 | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/man3/nl_langinfo.3 b/man3/nl_langinfo.3 index 2726c29..2b9fa51 100644 --- a/man3/nl_langinfo.3 +++ b/man3/nl_langinfo.3 @@ -11,7 +11,7 @@ .\" .\" Corrected prototype, 2002-10-18, aeb .\" -.TH nl_langinfo 3 2023-07-20 "Linux man-pages 6.05.01" +.TH nl_langinfo 3 2024-01-28 "Linux man-pages 6.7" .SH NAME nl_langinfo, nl_langinfo_l \- query language and locale information .SH LIBRARY @@ -20,16 +20,16 @@ Standard C library .SH SYNOPSIS .nf .B #include <langinfo.h> -.PP +.P .BI "char *nl_langinfo(nl_item " item ); .BI "char *nl_langinfo_l(nl_item " item ", locale_t " locale ); .fi -.PP +.P .RS -4 Feature Test Macro Requirements for glibc (see .BR feature_test_macros (7)): .RE -.PP +.P .BR nl_langinfo_l (): .nf Since glibc 2.24: @@ -56,13 +56,13 @@ which was previously created by .BR newlocale (3). Individual and additional elements of the locale categories can be queried. -.PP +.P Examples for the locale elements that can be specified in \fIitem\fP using the constants defined in \fI<langinfo.h>\fP are: .TP .BR CODESET \ (LC_CTYPE) Return a string with the name of the character encoding used in the -selected locale, such as "UTF-8", "ISO-8859-1", or "ANSI_X3.4-1968" +selected locale, such as "UTF\-8", "ISO\-8859\-1", or "ANSI_X3.4\-1968" (better known as US-ASCII). This is the same string that you get with "locale charmap". @@ -202,7 +202,7 @@ conversion specification). Return name of the \fIn\fP-th day of the week. [Warning: this follows the US convention DAY_1 = Sunday, not the international convention -(ISO 8601) that Monday is the first day of the week.] +(ISO\~8601) that Monday is the first day of the week.] (Used in .B %A .BR strftime (3) @@ -249,7 +249,7 @@ function to recognize a negative response to a yes/no question. Return the currency symbol, preceded by "\-" if the symbol should appear before the value, "+" if the symbol should appear after the value, or "." if the symbol should replace the radix character. -.PP +.P The above list covers just some examples of items that can be requested. For a more detailed list, consult .IR "The GNU C Library Reference Manual" . @@ -258,7 +258,7 @@ On success, these functions return a pointer to a string which is the value corresponding to .I item in the specified locale. -.PP +.P If no locale has been selected by .BR setlocale (3) for the appropriate category, @@ -271,9 +271,9 @@ if specifies a locale where .I langinfo data is not defined. -.PP +.P If \fIitem\fP is not valid, a pointer to an empty string is returned. -.PP +.P The pointer returned by these functions may point to static data that may be overwritten, or the pointer itself may be invalidated, by a subsequent call to @@ -289,7 +289,7 @@ is freed or modified by .BR freelocale (3) or .BR newlocale (3). -.PP +.P POSIX specifies that the application may not modify the string returned by these functions. .SH ATTRIBUTES @@ -306,7 +306,6 @@ T{ .BR nl_langinfo () T} Thread safety MT-Safe locale .TE -.sp 1 .SH STANDARDS POSIX.1-2008. .SH HISTORY @@ -323,7 +322,7 @@ or is not a valid locale object handle. The following program sets the character type and the numeric locale according to the environment and queries the terminal character set and the radix character. -.PP +.P .\" SRC BEGIN (nl_langinfo.c) .EX #include <langinfo.h> @@ -350,5 +349,5 @@ main(void) .BR setlocale (3), .BR charsets (7), .BR locale (7) -.PP +.P The GNU C Library Reference Manual |