summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@alpha.hut.fi>1996-10-07 22:03:00 +0300
committerAndy Dougherty <doughera@lafcol.lafayette.edu>1996-10-07 22:03:00 +0300
commit8966fa011b808a24fc07394abb66cc70f27edc7e (patch)
tree0938eca3e9acba56b49e48d90943a19ca6a1ef56 /ext
parent7a57407b1288d76f6c818932590e11ca30c87d6f (diff)
downloadperl-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.pod22
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()>.