Print this page
8858 /usr/bin/grep doesn't support -E option
4580 /usr/bin/grep can't handle multibyte characters
8929 8868 tests are not delivered with system/test/utiltest
8860 Example in grep(1) is incorrect
Reviewed by: Peter Tribble <peter.tribble@gmail.com>
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Yuri Pankov <yuripv@gmx.com>

*** 5,15 **** .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html. .\" This notice shall appear on any product containing this material. .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] ! .TH LOCALE 1 "Dec 20, 1996" .SH NAME locale \- get locale-specific information .SH SYNOPSIS .LP .nf --- 5,15 ---- .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html. .\" This notice shall appear on any product containing this material. .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License. .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License. .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner] ! .TH LOCALE 1 "Nov 28, 2017" .SH NAME locale \- get locale-specific information .SH SYNOPSIS .LP .nf
*** 20,30 **** .nf \fBlocale\fR [\fB-ck\fR] \fIname\fR... .fi .SH DESCRIPTION - .sp .LP The \fBlocale\fR utility writes information about the current locale environment, or all public locales, to the standard output. For the purposes of this section, a \fIpublic locale\fR is one provided by the implementation that is accessible to the application. --- 20,29 ----
*** 50,60 **** .el o Specifying a category name selects the named category and all keywords in that category. .RE .SH OPTIONS - .sp .LP The following options are supported: .sp .ne 2 .na --- 49,58 ----
*** 95,105 **** .RS 6n Writes names of available charmaps; see \fBlocaledef\fR(1). .RE .SH OPERANDS - .sp .LP The following operand is supported: .sp .ne 2 .na --- 93,102 ----
*** 180,190 **** a user-supplied response is affirmative: .sp .in +2 .nf ! \fBif printf "%s\en" "$response" | /usr/xpg4/bin/grep -Eq\e "$(locale yesexpr)" then affirmative processing goes here else non-affirmative processing goes here --- 177,187 ---- a user-supplied response is affirmative: .sp .in +2 .nf ! \fBif printf "%s\en" "$response" | /usr/bin/grep -Eq\e "$(locale yesexpr)" then affirmative processing goes here else non-affirmative processing goes here
*** 192,212 **** .fi .in -2 .sp .SH ENVIRONMENT VARIABLES - .sp .LP See \fBenviron\fR(5) for the descriptions of \fBLANG\fR, \fBLC_ALL\fR, \fBLC_CTYPE\fR, \fBLC_MESSAGES\fR, and \fBNLSPATH\fR. .sp .LP The \fBLANG\fR, \fBLC_*\fR, and \fBNLSPATH\fR environment variables must specify the current locale environment to be written out. These environment variables will be used if the \fB-a\fR option is not specified. .SH EXIT STATUS - .sp .LP The following exit values are returned: .sp .ne 2 .na --- 189,207 ----
*** 224,234 **** .RS 6n An error occurred. .RE .SH ATTRIBUTES - .sp .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp --- 219,228 ----
*** 242,257 **** _ Interface Stability Standard .TE .SH SEE ALSO - .sp .LP \fBlocaledef\fR(1), \fBattributes\fR(5), \fBcharmap\fR(5), \fBenviron\fR(5), \fBlocale\fR(5), \fBstandards\fR(5) .SH NOTES - .sp .LP If \fBLC_CTYPE\fR or keywords in the category \fBLC_CTYPE\fR are specified, only the values in the range \fB0x00\fR-\fB0x7f\fR are written out. .sp .LP --- 236,249 ----