diff options
author | Jarkko Hietaniemi <jhi@alpha.hut.fi> | 1996-10-07 22:03:00 +0300 |
---|---|---|
committer | Andy Dougherty <doughera@lafcol.lafayette.edu> | 1996-10-07 22:03:00 +0300 |
commit | 8966fa011b808a24fc07394abb66cc70f27edc7e (patch) | |
tree | 0938eca3e9acba56b49e48d90943a19ca6a1ef56 /ext | |
parent | 7a57407b1288d76f6c818932590e11ca30c87d6f (diff) | |
download | perl-8966fa011b808a24fc07394abb66cc70f27edc7e.tar.gz |
LC_COLLATE.
Big patch to add, document, and test LC_COLLATE support.
enhanced setlocale() docs and introduced the one-argument variant doc.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/POSIX/POSIX.pod | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/ext/POSIX/POSIX.pod b/ext/POSIX/POSIX.pod index aa7a008836..a8cd0d1ca0 100644 --- a/ext/POSIX/POSIX.pod +++ b/ext/POSIX/POSIX.pod @@ -849,10 +849,30 @@ setjmp() is C-specific: use eval {} instead. Modifies and queries program's locale. -The following will set the traditional UNIX system locale behavior. +The following will set the traditional UNIX system locale behavior +(the second argument C<"C">). $loc = POSIX::setlocale( &POSIX::LC_ALL, "C" ); +The following will query (the missing second argument) the current +LC_CTYPE category. + + $loc = POSIX::setlocale( &POSIX::LC_CTYPE); + +The following will set the LC_CTYPE behaviour according to the locale +environment variables (the second argument C<"">). +Please see your systems L<setlocale(3)> documentation for the locale +environment variables' meaning or consult L<perli18n>. + + $loc = POSIX::setlocale( &POSIX::LC_CTYPE, ""); + +The following will set the LC_COLLATE behaviour to Argentinian +Spanish. B<NOTE>: The naming and availability of locales depends on +your operating system. Please consult L<perli18n> for how to find +out which locales are available in your system. + + $loc = POSIX::setlocale( &POSIX::LC_ALL, "es_AR.ISO8859-1" ); + =item setpgid This is similar to the C function C<setpgid()>. |