gawk-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gawk-diffs] [SCM] gawk branch, feature/nl_langinfo, updated. gawk-4.1.0


From: Arnold Robbins
Subject: [gawk-diffs] [SCM] gawk branch, feature/nl_langinfo, updated. gawk-4.1.0-1411-gdc7d93e
Date: Fri, 29 May 2015 13:21:12 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".

The branch, feature/nl_langinfo has been updated
       via  dc7d93e5372573bcbe617fb50c9eb3341f117f14 (commit)
      from  53d7134462df2933d997f7dd403510d2e27c1540 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=dc7d93e5372573bcbe617fb50c9eb3341f117f14

commit dc7d93e5372573bcbe617fb50c9eb3341f117f14
Author: Arnold D. Robbins <address@hidden>
Date:   Fri May 29 09:20:53 2015 -0400

    Add nl_langinfo doc, update copyright in C file.

diff --git a/extension/nl_langinfo.3am b/extension/nl_langinfo.3am
new file mode 100644
index 0000000..d8470d8
--- /dev/null
+++ b/extension/nl_langinfo.3am
@@ -0,0 +1,90 @@
+.TH NL_LANGINFO 3am "May 29 2015" "" "GNU Awk Extension Modules"
+.SH NAME
+nl_langinfo \- retrieve locale-specific information strings
+.SH SYNOPSIS
+.ft CW
address@hidden "nl_langinfo"
+.sp
+result = nl_langinfo(LANGINFO["\f(CIvariable\fP"])
+.ft R
+.SH DESCRIPTION
+The
+.I nl_langinfo
+extension provides an AWK interface to the
+.IR nl_langinfo (3)
+routine.  It adds a single function named
+.BR nl_langinfo() ,
+and an array named
+.BR LANGINFO .
+.PP
+The single argument in a call to
+.B nl_langinfo()
+should be one of the available values in the
+.B LANGINFO
+array.
+.PP
+The return value is the requested string,
+or the empty string if an error occurred.
+.PP
+The indices of
+.B LANGINFO
+are the names of various available strings as given in the
+POSIX standard: see
+\f(CWhttp://pubs.opengroup.org/onlinepubs/9699919799/basedefs/langinfo.h.html\fP.
+For example, \f(CW"D_T_FMT"\fP is the current locale's date and time
+format for use with
+.IR strftime (3).
+See the standard for the full list.
+... .SH BUGS
+.SH EXAMPLE
+.ft CW
+.nf
address@hidden "nl_langinfo"
+
+BEGIN {
+    print strftime(nl_langinfo(["D_T_"FMT"]))
+}
+.fi
+.ft R
+.SH "SEE ALSO"
+.IR "GAWK: Effective AWK Programming" ,
+.IR filefuncs (3am),
+.IR fnmatch (3am),
+.IR fork (3am),
+.IR inplace (3am),
+.IR ordchr (3am),
+.IR readdir (3am),
+.IR readfile (3am),
+.IR revoutput (3am),
+.IR rwarray (3am),
+.IR time (3am).
+.PP
+.IR nl_langinfo (3).
+.SH AUTHOR
+Arnold Robbins,
+.BR address@hidden .
+.SH COPYING PERMISSIONS
+Copyright \(co 2012, 2013,
+Free Software Foundation, Inc.
+.br
+Copyright \(co 2015, Arnold David Robbins.
+.PP
+Permission is granted to make and distribute verbatim copies of
+this manual page provided the copyright notice and this permission
+notice are preserved on all copies.
+.ig
+Permission is granted to process this file through troff and print the
+results, provided the printed document carries copying permission
+notice identical to this one except for the removal of this paragraph
+(this paragraph not being relevant to the printed manual page).
+..
+.PP
+Permission is granted to copy and distribute modified versions of this
+manual page under the conditions for verbatim copying, provided that
+the entire resulting derived work is distributed under the terms of a
+permission notice identical to this one.
+.PP
+Permission is granted to copy and distribute translations of this
+manual page into another language, under the above conditions for
+modified versions, except that this permission notice may be stated in
+a translation approved by the Foundation.
diff --git a/extension/nl_langinfo.c b/extension/nl_langinfo.c
index e918fb9..5bcf0e8 100644
--- a/extension/nl_langinfo.c
+++ b/extension/nl_langinfo.c
@@ -7,7 +7,8 @@
  */
 
 /*
- * Copyright (C) 2012, 2013, 2015 the Free Software Foundation, Inc.
+ * Copyright (C) 2012, 2013 the Free Software Foundation, Inc.
+ * Copyright (C) 2015 Arnold David Robbins.
  * 
  * This file is part of GAWK, the GNU implementation of the
  * AWK Programming Language.

-----------------------------------------------------------------------

Summary of changes:
 extension/{revoutput.3am => nl_langinfo.3am} |   58 ++++++++++++++++---------
 extension/nl_langinfo.c                      |    3 +-
 2 files changed, 39 insertions(+), 22 deletions(-)
 copy extension/{revoutput.3am => nl_langinfo.3am} (57%)


hooks/post-receive
-- 
gawk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]