OSDN Git Service

Update releases for LDP 3.68
[linuxjm/LDP_man-pages.git] / release / man3 / nl_langinfo.3
index 0ea27d2..ca85fe3 100644 (file)
@@ -1,9 +1,11 @@
 .\" Copyright (c) 2001 Markus Kuhn <mkuhn@acm.org>
 .\"
+.\" %%%LICENSE_START(GPLv2+_DOC_ONEPARA)
 .\" This is free documentation; you can redistribute it and/or
 .\" modify it under the terms of the GNU General Public License as
 .\" published by the Free Software Foundation; either version 2 of
 .\" the License, or (at your option) any later version.
+.\" %%%LICENSE_END
 .\"
 .\" References consulted:
 .\"   GNU glibc-2 manual
 .\" This file was generated with po4a. Translate the source file.
 .\"
 .\"*******************************************************************
-.TH NL_LANGINFO 3 2010\-10\-03 GNU "Linux Programmer's Manual"
+.\"
+.\" Japanese Version Copyright (c) 2001
+.\"          UCHIDA Norihiro all rights reserved.
+.\" Translated Sun Jul 15 2001
+.\"          by UCHIDA Norihiro <KY4N-UCD@asahi-net.or.jp>
+.\"
+.TH NL_LANGINFO 3 2014\-05\-28 GNU "Linux Programmer's Manual"
 .SH 名前
 nl_langinfo \- 言語とロケールの情報を問い合わせる
 .SH 書式
@@ -87,7 +95,9 @@ yes/no の質問に対する否定の応答を認識するために \fBregex\fP(
 .SH 準拠
 SUSv2, POSIX.1\-2001.
 .SH 例
-以下のプログラムは、環境変数に基いて文字型 (character type) のロケール を設定し、端末の文字集合の問い合わせを行う。
+The following program sets the character type and the numeric locale
+according to the environment and queries the terminal character set and the
+radix character.
 .LP
 .nf
 #include <langinfo.h>
@@ -98,8 +108,10 @@ SUSv2, POSIX.1\-2001.
 int
 main(int argc, char *argv[])
 {
-    setlocale(LC_CTYPE,"");
-    printf("%s\en",nl_langinfo(CODESET));
+    setlocale(LC_CTYPE, "");
+    setlocale(LC_NUMERIC, "");
+    printf("%s\en", nl_langinfo(CODESET));
+    printf("%s\en", nl_langinfo(RADIXCHAR));
     exit(EXIT_SUCCESS);
 }
 .fi
@@ -109,6 +121,6 @@ main(int argc, char *argv[])
 .br
 GNU C ライブラリ・リファレンスマニュアル
 .SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.40 の一部
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.68 の一部
 である。プロジェクトの説明とバグ報告に関する情報は
 http://www.kernel.org/doc/man\-pages/ に書かれている。