OSDN Git Service

Update drafts for LDP 3.68
[linuxjm/LDP_man-pages.git] / draft / man3 / nl_langinfo.3
index 1da36fc..ca85fe3 100644 (file)
@@ -24,7 +24,7 @@
 .\" Translated Sun Jul 15 2001
 .\"          by UCHIDA Norihiro <KY4N-UCD@asahi-net.or.jp>
 .\"
-.TH NL_LANGINFO 3 2010\-10\-03 GNU "Linux Programmer's Manual"
+.TH NL_LANGINFO 3 2014\-05\-28 GNU "Linux Programmer's Manual"
 .SH 名前
 nl_langinfo \- 言語とロケールの情報を問い合わせる
 .SH 書式
@@ -95,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>
@@ -107,7 +109,9 @@ int
 main(int argc, char *argv[])
 {
     setlocale(LC_CTYPE, "");
+    setlocale(LC_NUMERIC, "");
     printf("%s\en", nl_langinfo(CODESET));
+    printf("%s\en", nl_langinfo(RADIXCHAR));
     exit(EXIT_SUCCESS);
 }
 .fi
@@ -117,6 +121,6 @@ main(int argc, char *argv[])
 .br
 GNU C ライブラリ・リファレンスマニュアル
 .SH この文書について
-この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.67 の一部
+この man ページは Linux \fIman\-pages\fP プロジェクトのリリース 3.68 の一部
 である。プロジェクトの説明とバグ報告に関する情報は
 http://www.kernel.org/doc/man\-pages/ に書かれている。