File: locale.7

package info (click to toggle)
manpages-ja 0.5.0.0.20050315-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 18,620 kB
  • ctags: 4
  • sloc: sh: 12,675; perl: 157; makefile: 106
file content (214 lines) | stat: -rw-r--r-- 6,211 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
.\" (c) 1993 by Thomas Koenig (ig25@rz.uni-karlsruhe.de)
.\"
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Permission is granted to copy and distribute modified versions of this
.\" manual 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.
.\" 
.\" Since the Linux kernel and libraries are constantly changing, this
.\" manual page may be incorrect or out-of-date.  The author(s) assume no
.\" responsibility for errors or omissions, or for damages resulting from
.\" the use of the information contained herein.  The author(s) may not
.\" have taken the same level of care in the production of this manual,
.\" which is licensed free of charge, as they might when working
.\" professionally.
.\" 
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\"
.\" Modified Sat Jul 24 17:28:34 1993 by Rik Faith <faith@cs.unc.edu>
.\" Modified Sun Jun 01 17:16:34 1997 by Jochen Hein
.\"   <jochen.hein@delphi.central.de>
.\" Modified Thu Apr 25 00:43:19 2002 by Bruno Haible <bruno@clisp.org>
.\"
.\" Japanese Version Copyright (c) 1997 HANATAKA Shinya
.\"         all rights reserved.
.\" Translated Wed Dec 24 21:08:08 JST 1997
.\"         by HANATAKA Shinya <hanataka@abyss.rim.or.jp>
.\" Modified Thu 14 Nov 2002 by NAKANO Takeo <nakano@apm.seikei.ac.jp>
.\"
.\"WORD:	locale	
.\"
.TH LOCALE 7  1993-04-24 "Linux" "Linux Programmer's Manual"
.SH ̾
locale \- ¿쥵ݡȤβ
.SH 
.nf
.B #include <locale.h>
.fi
.SH 
 (locale) ϸʸ롼νǤ롣
ϡåϤ˻Ѥ졦ʸ硦
ɽ˴ؤ봷Ȥä褦̤򥫥СƤ롣
ץ򤤤ʸ˰ܿǽȤˤϡ
ΥץϼʬΥơ
˱ŬڤưǤʤФʤʤ
.PP
إåե
.B <locale.h>
ˤϡŪʥǡؿޥʤɤ롣
.PP
ΥإåեƤؿˤϡ
ߤΥꤹ
.B setlocale()
ȡͤΥեޥåˡˤĤƤξ
.B localeconv()
.PP
ץɬפ˱ơϤʥƥʬƤꡢ
ϥޥȤƤ롣
Υޥ
.B setlocale()
ؿκǽΰѤȡ
Τɤ줫˾Ǥ롣
.TP
.B LC_COLLATE
ϰŪʥե٥åʸӤ˻Ѥ
.B strcoll()
ؿ
.B strxfrm()
ؿưѹ롣㤨ХɥĸΥĥå (Ԥ s)
ϡȤκ "ss" Ȥư롣
.TP
.B LC_CTYPE

.B isupper()

.B toupper()
Τ褦ʸȽꡦ򤹤ؿ䡢¿Хʸ򰷤
.B mblen()

.B wctomb()
Τ褦ʴؿưѹ롣
.TP
.B LC_MONETARY
.B localeconv()
ˤä֤ѹ롣
ˤϾڤꥳޤΰ֤ʤɡ
ɽˡ˴ؤܺ٤ޤޤƤ롣ξ
.B strfmon()
ؿǻѤ롣
.TP
.B LC_MESSAGES
åɽ˻Ѥѹ롣
ޤŪŪʲɤΤ褦ɽ뤫ѹ롣
ξñ˻Ѥ뤿ˡ GNU C 饤֥ˤ
.BR gettext() ,
.BR ngettext() ,
.B rpmatch()
ؿޤޤƤ롣
GNU gettext եߥ꡼°ؿϡĶѿ
.B LANGUAGE
ˤ⽾
.TP
.B LC_NUMERIC
.B printf()
ؿ
.B scanf()
ؿΥեߥ꡼ǥȤ褦ؼ줿
Ѥѹ롣ξ
.B localeconv()
ؿǼ뤳ȤǤ롣
.TP
.B LC_TIME
.B strftime()
ؿưѹ
ϰѤƤˡǸ߻ɽ롣
㤨Х衼åѤǤ 24ּλפȤ
ꥫǤ 12ּλפȤ
.TP
.B LC_ALL
嵭ơ
.PP
.B setlocale()
ܤΰʸ \fB""\fP ξ硢
ǥեȤΥϰʲμǷꤹ:
.IP 1.
Ķѿ
.B LC_ALL 
ꤵƤˤ
.B LC_ALL 
ͤѤ롣
.IP 2.
嵭ΥƥΤɤ줫Ʊ̾δĶѿꤵƤˤϡ
ΥƥˤϤͤѤ롣
.IP 3.
Ķѿ
.B LANG 
ꤵƤˤ
.B LANG
ͤѤ롣
.PP
ϰŪʿͥեޥåȤξ
.B localeconv()
ؿˤä֤
.B struct lconv
뤳ȤǤϰʲΤ褦Ƥ:
.sp
.nf
struct lconv
{
  /* (̲߰ʳ) ;  */

  char *decimal_point;		/* ʸ  */
  char *thousands_sep;		/* ñ̤ζڤʸ  */
  /* 줾Ǥ϶ڤꤴȤοοǤ롣
     ̤ΥǥåǤ꺸ˤʤ롣
     Ǥͤ CHAR_MAX ξϥ롼ײν̣롣
     Ǥͤ 0 ξϻĤƤǤ
     ƱͤѤ뤳Ȥ̣롣 */
  char *grouping;

  /* ̲ߤξ */

  /* ǽλĤʸ ISO 4217 ̲ߵǤ롣
     ܤʸ϶ڤʸܤ '\0' */
  char *int_curr_symbol;
  char *currency_symbol;	/* ϰ̲ߵ */
  char *mon_decimal_point;	/* ʸ */
  char *mon_thousands_sep;	/* ñ̤ζڤʸ */
  char *mon_grouping;		/* 嵭 `grouping' ǤƱ */
  char *positive_sign;		/* ͤ  */
  char *negative_sign;		/* ͤ  */
  char int_frac_digits;		/* Ūʾο  */
  char frac_digits;		/* ϰξο  */
  /* ̲ͤߵ֤ 1, ֤ 0 */
  char p_cs_precedes;
  /* ̲ͤߵδ֤˥ڡ 1 */
  char p_sep_by_space;
  /* ̲ͤߵ֤ 1, ֤ 0 */
  char n_cs_precedes;
  /* ̲ͤߵδ֤˥ڡ 1 */
  char n_sep_by_space;
  /* ΰ:
     0 ̲ͤߵ̤ǰϤ
     1 ̲ͤߵ֤
     2 ̲ͤߵθ֤
     3 ̲ߵľ֤
     4 ̲ߵľ֤    */
  char p_sign_posn;
  char n_sign_posn;
};
.fi
.SH 
.nf
POSIX.1
.fi
GNU gettext ؿեߥ꡼ LI18NUX2000 ǵꤵƤ롣
.SH Ϣ
.BR locale (1),
.BR localedef (1),
.BR gettext (3),
.BR localeconv (3),
.BR ngettext (3),
.BR nl_langinfo (3),
.BR rpmatch (3),
.BR setlocale (3),
.BR strcoll (3),
.BR strfmon (3),
.BR strftime (3),
.BR strxfrm (3)