NL_LANGINFO(3) BSD Library Functions Manual NL_LANGINFO(3)NAME
nl_langinfo -- language information
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <langinfo.h>
char *
nl_langinfo(nl_item item);
char *
nl_langinfo_l(nl_item item, locale_t loc);
DESCRIPTION
The nl_langinfo() function returns a pointer to a string containing information relevant to the particular language or cultural area defined
in the program or thread's locale, or in the case of nl_langinfo_l(), the locale passed as the second argument. The manifest constant names
and values of item are defined in <langinfo.h>.
Calls to setlocale() with a category corresponding to the category of item, or to the category LC_ALL, may overwrite the buffer pointed to by
the return value.
RETURN VALUES
In a locale where langinfo data is not defined, nl_langinfo() returns a pointer to the corresponding string in the POSIX locale.
nl_langinfo_l() returns the same values as nl_langinfo(). In all locales, nl_langinfo() returns a pointer to an empty string if item con-
tains an invalid setting.
EXAMPLES
For example:
nl_langinfo(ABDAY_1)
would return a pointer to the string "Dom" if the identified language was Portuguese, and "Sun" if the identified language was English.
SEE ALSO setlocale(3)STANDARDS
The nl_langinfo() function conforms to Version 2 of the Single UNIX Specification (``SUSv2''). The nl_langinfo_l() function conforms to IEEE
Std 1003.1-2008 (``POSIX.1'').
HISTORY
The nl_langinfo() function first appeared in FreeBSD 4.6.
BSD July 30, 2012 BSD
Check Out this Related Man Page
NL_LANGINFO(3) BSD Library Functions Manual NL_LANGINFO(3)NAME
nl_langinfo, nl_langinfo_l -- language information
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <langinfo.h>
char *
nl_langinfo(nl_item item);
#include <langinfo.h>
#include <xlocale.h>
char *
nl_langinfo_l(nl_item item, locale_t loc);
DESCRIPTION
The nl_langinfo() function returns a pointer to a string containing information relevant to the particular language or cultural area defined
in the program's locale. The manifest constant names and values of item are defined in <langinfo.h>.
Calls to setlocale() with a category corresponding to the category of item, or to the category LC_ALL, may overwrite the buffer pointed to by
the return value.
RETURN VALUES
In a locale where langinfo data is not defined, nl_langinfo() returns a pointer to the corresponding string in the POSIX locale. In all
locales, nl_langinfo() returns a pointer to an empty string if item contains an invalid setting.
EXAMPLES
For example:
nl_langinfo(ABDAY_1)
would return a pointer to the string "Dom" if the identified language was Portuguese, and "Sun" if the identified language was English.
While the nl_langinfo() function uses the current locale, the nl_langinfo_l() function may be passed a locale directly. See xlocale(3) for
more information.
SEE ALSO setlocale(3), xlocale(3)STANDARDS
The nl_langinfo() function conforms to Version 2 of the Single UNIX Specification (``SUSv2'').
HISTORY
The nl_langinfo() function first appeared in FreeBSD 4.6.
BSD May 3, 2001 BSD
I want to build a little website on a Sun Blade 100 running Solaris 10.
I just went out to apache.org and downloaded Unix Source: httpd-2.2.8.tar.gz
After unpacking the tarball, I CD'd into the subdirectory and ran the configure utility. Of course, it crapped out. I see that it is... (17 Replies)
We are moving from old solaris to new version of solaris. I have copied the gcc compiler installed on old server to new solaris server. But just copying didn't work. So I am trying to build it on the new server. The server version is
sailfish@st-kvar02 -> uname -a
SunOS st-kvar02 5.10... (7 Replies)
Hi,
tried to native compile Debian Dialog as ncurses-dev is available.
I am trying native compile Debian Dialog using gcc on Linux embedded router.
What's wrong, as running than make
I get errors.
Mayby this line in the log file is an exaplanation to a problem ?
"
checking if we have... (1 Reply)
Hi Guru,
I have assignment to create script to compress file as .ZIP with password.
I don't know the command line in AIX. It's very new for me.
I'm try to use zip or tar but I don't have any option for encrypt with password.
Please kindly suggest me.
Thank you very much.
Multidev (7 Replies)
Hi
We meet errors while running configuration scripts to prepare compiling source code on AIX 7.2. This error does not happen on AIX5.3 and AIX6.1
With the “/usr/bin/sh” from AIX7.2, sometimes , the script runs sucessfully, sometimes not. It’s unstable, and I don’t know why.
When... (10 Replies)