From: Jarkko Hietaniemi Date: Mon, 7 Oct 1996 19:03:00 +0000 (+0300) Subject: LC_COLLATE. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8966fa011b808a24fc07394abb66cc70f27edc7e;p=p5sagit%2Fp5-mst-13.2.git LC_COLLATE. Big patch to add, document, and test LC_COLLATE support. enhanced setlocale() docs and introduced the one-argument variant doc. --- diff --git a/ext/POSIX/POSIX.pod b/ext/POSIX/POSIX.pod index aa7a008..a8cd0d1 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 documentation for the locale +environment variables' meaning or consult L. + + $loc = POSIX::setlocale( &POSIX::LC_CTYPE, ""); + +The following will set the LC_COLLATE behaviour to Argentinian +Spanish. B: The naming and availability of locales depends on +your operating system. Please consult L 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.