1 .\" Copyright (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de)
3 .\" Permission is granted to make and distribute verbatim copies of this
4 .\" manual provided the copyright notice and this permission notice are
5 .\" preserved on all copies.
7 .\" Permission is granted to copy and distribute modified versions of this
8 .\" manual under the conditions for verbatim copying, provided that the
9 .\" entire resulting derived work is distributed under the terms of a
10 .\" permission notice identical to this one.
12 .\" Since the Linux kernel and libraries are constantly changing, this
13 .\" manual page may be incorrect or out-of-date. The author(s) assume no
14 .\" responsibility for errors or omissions, or for damages resulting from
15 .\" the use of the information contained herein. The author(s) may not
16 .\" have taken the same level of care in the production of this manual,
17 .\" which is licensed free of charge, as they might when working
20 .\" Formatted or processed versions of this manual, if unaccompanied by
21 .\" the source, must acknowledge the copyright and authors of this work.
23 .\" Modified Sat Jul 24 17:28:34 1993 by Rik Faith <faith@cs.unc.edu>
24 .\" Modified Sun Jun 01 17:16:34 1997 by Jochen Hein
25 .\" <jochen.hein@delphi.central.de>
26 .\" Modified Thu Apr 25 00:43:19 2002 by Bruno Haible <bruno@clisp.org>
28 .\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
29 .\" all rights reserved.
30 .\" Translated Wed Dec 24 21:08:08 JST 1997
31 .\" by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
32 .\" Modified Thu 14 Nov 2002 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
34 .\"WORD: locale ¥í¥±¡¼¥ë
36 .TH LOCALE 7 2008-12-05 "Linux" "Linux Programmer's Manual"
38 locale \- ¿¸À¸ì¥µ¥Ý¡¼¥È¤Î²òÀâ
41 .B #include <locale.h>
44 ¥í¥±¡¼¥ë (locale) ¤Ï¸À¸ì¤äʸ²½¥ë¡¼¥ë¤Î½¸¹ç¤Ç¤¢¤ë¡£
45 ¤³¤ì¤é¤Ï¡¢¥á¥Ã¥»¡¼¥¸½ÐÎϤ˻ÈÍѤ¹¤ë¸À¸ì¡¦¤¤¤í¤¤¤í¤Êʸ»ú½¸¹ç¡¦
46 ɽµ¤Ë´Ø¤¹¤ë´·½¬¤È¤¤¤Ã¤¿¤è¤¦¤ÊÌ̤ò¥«¥Ð¡¼¤·¤Æ¤¤¤ë¡£
47 ¥×¥í¥°¥é¥à¤ò¤¤¤í¤¤¤í¤Êʸ²½¤Ë°Ü¿¢²Äǽ¤È¤¹¤ë¤Ë¤Ï¡¢
48 ¤½¤Î¥×¥í¥°¥é¥à¤Ï¼«Ê¬¤Î¥í¥±¡¼¥ë¤ò·è¤á¤Æ¡¢
49 ¤½¤ì¤Ë±þ¤¸¤¿Å¬ÀÚ¤ÊÆ°ºî¤¬¤Ç¤¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
53 ¤Ë¤Ï¡¢¤³¤ÎÌÜŪ¤ËÊØÍø¤Ê¥Ç¡¼¥¿·¿¡¦´Ø¿ô¡¦¥Þ¥¯¥í¤Ê¤É¤ÎÀë¸À¤¬¤¢¤ë¡£
55 ¤³¤Î¥Ø¥Ã¥À¡¼¥Õ¥¡¥¤¥ë¤ÇÀë¸À¤µ¤ì¤Æ¤¤¤ë´Ø¿ô¤Ë¤Ï¡¢
56 ¸½ºß¤Î¥í¥±¡¼¥ë¤òÀßÄꤹ¤ë
58 ¤È¡¢¿ôÃͤΥե©¡¼¥Þ¥Ã¥ÈÊýË¡¤Ë¤Ä¤¤¤Æ¤Î¾ðÊó¤ò¼èÆÀ¤¹¤ë
62 ¥×¥í¥°¥é¥à¤ÎɬÍפ˱þ¤¸¤Æ¡¢¥í¡¼¥«¥ë¾ðÊó¤Ï¤¤¤í¤¤¤í¤Ê¥«¥Æ¥´¥ê¤Ëʬ¤«¤ì¤Æ¤ª¤ê¡¢
63 ¤½¤ì¤é¤Ï¥Þ¥¯¥í¤È¤·¤ÆÀë¸À¤µ¤ì¤Æ¤¤¤ë¡£
66 ´Ø¿ô¤ÎºÇ½é¤Î°ú¤¿ô¤ËÍѤ¤¤ë¤È¡¢
67 ¤³¤ì¤é¤Î¤É¤ì¤«¤ò˾¤à¥í¥±¡¼¥ë¤ËÀßÄê¤Ç¤¤ë¡£
70 ¤³¤ì¤ÏÃÏ°èŪ¤Ê¥¢¥ë¥Õ¥¡¥Ù¥Ã¥Èʸ»úÎó¤ÎÈæ³Ó¤Ë»ÈÍѤ¹¤ë
74 ´Ø¿ô¤ÎÆ°ºî¤òÊѹ¹¤¹¤ë¡£Î㤨¤Ð¥É¥¤¥Ä¸ì¤Î¥¨¥¹¥Ä¥§¥Ã¥È (±Ô¤¤ s)
75 ¤Ï¡¢¥½¡¼¥È¤ÎºÝ "ss" ¤È¤·¤Æ°·¤ï¤ì¤ë¡£
82 ¤Î¤è¤¦¤Êʸ»ú¤ÎȽÄꡦÁàºî¤ò¤¹¤ë´Ø¿ô¤ä¡¢Â¿¥Ð¥¤¥Èʸ»ú¤ò°·¤¦
86 ¤Î¤è¤¦¤Ê´Ø¿ô¤ÎÆ°ºî¤òÊѹ¹¤¹¤ë¡£
90 ¤Ë¤è¤Ã¤ÆÊÖ¤µ¤ì¤ë¾ðÊó¤òÊѹ¹¤¹¤ë¡£
91 ¤³¤ì¤Ë¤Ï¾®¿ôÅÀ¤ä¶èÀڤꥳ¥ó¥Þ¤Î°ÌÃ֤ʤɡ¢
92 ¿ô»ú¤Îɽ¼¨ÊýË¡¤Ë´Ø¤¹¤ë¾ÜºÙ¤¬´Þ¤Þ¤ì¤Æ¤¤¤ë¡£¤³¤Î¾ðÊó¤Ï
94 ´Ø¿ô¤¬ÆâÉô¤Ç»ÈÍѤ¹¤ë¡£
97 ¥á¥Ã¥»¡¼¥¸É½¼¨¤Ë»ÈÍѤ¹¤ë¸À¸ì¤òÊѹ¹¤¹¤ë¡£
98 ¤Þ¤¿¹ÎÄêŪ¡¦ÈÝÄêŪ¤Ê²óÅú¤ò¤É¤Î¤è¤¦¤Ëɽ¼¨¤¹¤ë¤«¤òÊѹ¹¤¹¤ë¡£
99 ¤³¤ì¤é¤Î¾ðÊó¤ò´Êñ¤Ë»ÈÍѤ¹¤ë¤¿¤á¤Ë¡¢ GNU C ¥é¥¤¥Ö¥é¥ê¤Ë¤Ï
104 GNU gettext ¥Õ¥¡¥ß¥ê¡¼¤Ë°¤¹¤ë´Ø¿ô¤Ï¡¢¥«¥Æ¥´¥ê¤¬
106 °Ê³°¤Î͸ú¤Ê¥í¥±¡¼¥ë¤ËÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¡¢´Ä¶ÊÑ¿ô
110 ¤Ï¥³¥í¥ó¶èÀÚ¤ê¤Î¥í¥±¡¼¥ë¤Î¥ê¥¹¥È¤Ç¤¢¤ë)¡£
116 ´Ø¿ô¤Î¥Õ¥¡¥ß¥ê¡¼¤Ç¥í¥±¡¼¥ëÀßÄê¤ò»È¤¦¤è¤¦»Ø¼¨¤µ¤ì¤¿¾ì¹ç¤Ë
117 ÍѤ¤¤ë¾ðÊó¤òÊѹ¹¤¹¤ë¡£¤³¤Î¾ðÊó¤Ï
119 ´Ø¿ô¤Ç¼èÆÀ¤¹¤ë¤³¤È¤â¤Ç¤¤ë¡£
124 ÃÏ°è¤ÇÍøÍѤµ¤ì¤Æ¤¤¤ëÊýË¡¤Ç¸½ºß»þ¹ï¤òɽ¼¨¤¹¤ë¡£
125 Î㤨¤Ð¡¢¥è¡¼¥í¥Ã¥Ñ¤Î¿¤¯¤Ç¤Ï 24»þ´Ö¼°¤Î»þ·×¤ò»È¤¦¤¬¡¢
126 ¥¢¥á¥ê¥«¤Ç¤Ï 12»þ´Ö¼°¤Î»þ·×¤ò»È¤¦¡£
130 .\" FIXME glibc 2.2.2 added new nonstandard locale categories:
131 .\" LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_NAME,
132 .\" LC_PAPER, LC_TELEPHONE. These need to be documented.
135 ¤ÎÆóÈÖÌܤΰú¤¿ô¤¬¶õʸ»úÎó \fB""\fP ¤Î¾ì¹ç¡¢
136 ¥Ç¥Õ¥©¥ë¥È¤Î¥í¥±¡¼¥ë¤Ï°Ê²¼¤Î¼ê½ç¤Ç·èÄꤹ¤ë:
140 ¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï
144 ¾åµ¤Î¥«¥Æ¥´¥ê¤Î¤É¤ì¤«¤ÈƱ¤¸Ì¾Á°¤Î´Ä¶ÊÑ¿ô¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢
145 ¤½¤Î¥«¥Æ¥´¥ê¤Ë¤Ï¤½¤ÎÃͤ¬»ÈÍѤµ¤ì¤ë¡£
149 ¤¬ÀßÄꤵ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï
153 ÃÏ°èŪ¤Ê¿ôÃÍ¥Õ¥©¡¼¥Þ¥Ã¥È¤Î¾ðÊó¤Ï
157 ¤ÇÆÀ¤ë¤³¤È¤¬¤Ç¤¡¢¤³¤ì¤Ï°Ê²¼¤Î¤è¤¦¤ËÀë¸À¤µ¤ì¤Æ¤¤¤ë:
163 /* (Ä̲߰ʳ°¤Î) ¿ôÃ;ðÊó */
165 char *decimal_point; /* ¾®¿ôÅÀ¤Îʸ»ú */
166 char *thousands_sep; /* ¾®¿ôÅÀ¤Îº¸Â¦¤Î¿ô»ú¤Î¥°¥ë¡¼¥×¤Î
168 char *grouping; /* ¤½¤ì¤¾¤ì¤ÎÍ×ÁǤϳƥ°¥ë¡¼¥×¤Î¿ô»ú¤Î¸Ä¿ô¤Ç¤¢¤ë¡£
169 ¥¤¥ó¥Ç¥Ã¥¯¥¹Ãͤ¬Â礤¤¤Û¤É¡¢º¸Â¦¤Î¥°¥ë¡¼¥×¤òɽ¤¹¡£
170 Í×ÁǤÎÃͤ¬ CHAR_MAX ¤Î¾ì¹ç¤Ï¡¢ºÇ¸å¤Î¥°¥ë¡¼¥×¤Ç
171 ¤¢¤ë¤³¤È¤ò°ÕÌ£¤¹¤ë¡£Í×ÁǤÎÃͤ¬ 0 ¤Î¾ì¹ç¤Ï¡¢
172 ¤½¤ÎÍ×ÁǤè¤êº¸Â¦¤ÎÁ´¤Æ¤ÎÍ×ÁǤËÁ°¤ÎÍ×ÁǤÈƱ¤¸Ãͤò
173 »ÈÍѤ¹¤ë¤³¤È¤ò°ÕÌ£¤¹¤ë¡£ */
175 /* »Ä¤ê¤Î¥Õ¥£¡¼¥ë¥É¤ÏÄ̲߾ðÊóÍѤǤ¢¤ë */
177 char *int_curr_symbol; /* ºÇ½é¤Î»°¤Ä¤Îʸ»ú¤Ï ISO 4217 ¤ÎÄ̲ߵ¹æ¡£
178 »ÍÈÖÌܤÎʸ»ú¤Ï¶èÀÚ¤êʸ»ú¡£
179 ¸ÞÈÖÌÜ¤Ï \(aq\0\(aq¡£ */
180 char *currency_symbol; /* ÃÏ°è¤ÎÄ̲ߵ¹æ */
181 char *mon_decimal_point; /* ¾®¿ôÅÀ¤Îʸ»ú */
182 char *mon_thousands_sep; /* ¾åµ¤Î `thousands_sep' ¤ÈƱÍÍ */
183 char *mon_grouping; /* ¾åµ¤Î `grouping' ¤ÈƱÍÍ */
184 char *positive_sign; /* Àµ¤ÎÃͤÎÉä¹æ */
185 char *negative_sign; /* Éé¤ÎÃͤÎÉä¹æ */
186 char int_frac_digits; /* ¹ñºÝŪ¤Ê¾®¿ôÉô¤Î¿ô»ú */
187 char frac_digits; /* ÃÏ°è¤Î¾®¿ôÉô¤Î¿ô»ú */
188 char p_cs_precedes; /* Àµ¤ÎÃͤÎÁ°¤ËÄ̲ߵ¹æ¤òÃÖ¤¯¾ì¹ç¤Ï 1,
189 ¸å¤í¤ËÃÖ¤¯¾ì¹ç¤Ï 0 */
190 char p_sep_by_space; /* Àµ¤ÎÃͤÈÄ̲ߵ¹æ¤Î´Ö¤Ë¥¹¥Ú¡¼¥¹¤ò
192 char n_cs_precedes; /* Éé¤ÎÃͤÎÁ°¤ËÄ̲ߵ¹æ¤òÃÖ¤¯¾ì¹ç¤Ï 1,
193 ¸å¤í¤ËÃÖ¤¯¾ì¹ç¤Ï 0 */
194 char n_sep_by_space; /* Éé¤ÎÃͤÈÄ̲ߵ¹æ¤Î´Ö¤Ë¥¹¥Ú¡¼¥¹¤ò
196 /* Àµ¤ÈÉé¤ÎÉä¹æ¤Î°ÌÃÖ:
197 0 ÃͤÈÄ̲ߵ¹æ¤ò³ç¸Ì¤Ç°Ï¤à
198 1 Éä¹æ¤ÏÃͤÈÄ̲ߵ¹æ¤ÎÁ°¤ËÃÖ¤¯
199 2 Éä¹æ¤ÏÃͤÈÄ̲ߵ¹æ¤Î¸å¤ËÃÖ¤¯
200 3 Éä¹æ¤ÏÄ̲ߵ¹æ¤Îľ¸å¤ËÃÖ¤¯
201 4 Éä¹æ¤ÏÄ̲ߵ¹æ¤ÎľÁ°¤ËÃÖ¤¯ */
210 GNU gettext ´Ø¿ô¥Õ¥¡¥ß¥ê¡¼¤Ï LI18NUX2000 ¤Çµ¬Äꤵ¤ì¤Æ¤¤¤ë¡£