Print this page
2964 need POSIX 2008 locale object support
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
Approved by: TBD

Split Close
Expand all
Collapse all
          --- old/usr/src/man/man3c/getwchar.3c
          +++ new/usr/src/man/man3c/getwchar.3c
   1    1  '\" te
        2 +.\" Copyright 2014 Garrett D'Amore <garrett@damore.org>
   2    3  .\"  Copyright (c) 1992, X/Open Company Limited  All Rights Reserved  Portions Copyright (c) 2002, Sun Microsystems, Inc.  All Rights Reserved
   3    4  .\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at
   4    5  .\" http://www.opengroup.org/bookstore/.
   5    6  .\" 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.
   6    7  .\"  This notice shall appear on any product containing this material.
   7    8  .\" 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.
   8    9  .\" 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.
   9   10  .\" 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]
  10   11  .TH GETWCHAR 3C "Jul 24, 2002"
  11   12  .SH NAME
  12   13  getwchar \- get wide character from stdin stream
  13   14  .SH SYNOPSIS
  14   15  .LP
  15   16  .nf
  16   17  #include <wchar.h>
  17   18  
  18   19  \fBwint_t\fR \fBgetwchar\fR(void)
  19   20  .fi
       21 +.LP
       22 +.nf
       23 +#include <wchar.h>
       24 +#include <xlocale.h>
  20   25  
       26 +\fBwint_t\fR \fBgetwchar_l\fR(locale_t loc)
       27 +.fi
  21   28  .SH DESCRIPTION
  22      -.sp
  23   29  .LP
  24      -The \fBgetwchar()\fR function is equivalent to \fBgetwc(stdin)\fR.
       30 +The \fBgetwchar()\fR function is equivalent to \fBgetwc\fR(\fBstdin\fR).
       31 +.LP
       32 +The\fBgetwchar_l()\fR function is equivalent to \fBgetwc\fR(\fBstdin\fR, \fIloc\fR).
  25   33  .SH RETURN VALUES
  26      -.sp
  27   34  .LP
  28   35  Refer to \fBfgetwc\fR(3C).
  29   36  .SH ERRORS
  30      -.sp
  31   37  .LP
  32   38  Refer to \fBfgetwc\fR(3C).
  33   39  .SH USAGE
  34      -.sp
  35   40  .LP
  36   41  If the \fBwint_t\fR value returned by \fBgetwchar()\fR is stored into a
  37   42  variable of type \fBwchar_t\fR and then compared against the \fBwint_t\fR macro
  38   43  \fBWEOF\fR, the comparison may never succeed because \fBwchar_t\fR is defined
  39   44  as unsigned.
  40   45  .SH ATTRIBUTES
  41      -.sp
  42   46  .LP
  43   47  See \fBattributes\fR(5) for descriptions of the following attributes:
  44      -.sp
  45      -
  46      -.sp
  47   48  .TS
  48   49  box;
  49   50  c | c
  50   51  l | l .
  51   52  ATTRIBUTE TYPE  ATTRIBUTE VALUE
  52   53  _
  53      -Interface Stability     Standard
       54 +Interface Stability     See below.
  54   55  _
  55   56  MT-Level        MT-Safe
  56   57  .TE
  57   58  
       59 +.LP
       60 +The \fBgetwchar()\fR function is Standard.  The \fBgetwchar_l()\fR function
       61 +is Uncommitted.
  58   62  .SH SEE ALSO
  59      -.sp
  60   63  .LP
  61   64  \fBfgetwc\fR(3C), \fBgetwc\fR(3C), \fBattributes\fR(5), \fBstandards\fR(5)
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX