File: locale.7

package info (click to toggle)
manpages-ja 0.4.0.0.20020315-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 14,808 kB
  • ctags: 4
  • sloc: sh: 9,595; perl: 157; makefile: 62
file content (194 lines) | stat: -rw-r--r-- 5,690 bytes parent folder | download | duplicates (2)
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
.\" (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)
.\"
.\" 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>
.\"
.TH LOCALE 7  "April 24, 1993" "Linux" "Linux Programmer's Manual"
.SH ̾
locale \- ¿쥵ݡȤβ
.SH 
.nf
.B #include <locale.h>
.fi
.SH 
locale ϸʸ롼νǤ롣ϥåϤ
Ѥ졢ۤäʸ硢ʸ/ʸѴʤɤ򥫥СƤ롣
¾ʸذܿǤ褦ˤ뤿˥ץ locale Ѥ
ʸ˽äư򤹤褦ˤʤФʤʤ
.PP
.B <locale.h>
إåˤϤŪʥǡؿޥ롣
.PP
Ƥؿˤϡߤ locale ꤹ
.B setlocale()
ȿͤΥեޥåˡˤĤƤξ
.B localeconv()
.PP
ץऴȤɬפȤϰμ̤ۤäƤ뤫⤷ʤΤǡ
ޥȤƤơ
.B setlocale()
ؿκǽΰ
˾Ǥ locale ΰĤꤹ뤳ȤǽǤ:
.TP
.B LC_COLLATE
ϰŪʥե٥åȤʸӤΤ˻Ѥ
.B strcoll()
ؿ
.BR strxfrm()
ؿưѹ롣㤨ХɥĸΥĥå(Ԥ s) 
"ss" Ȥư롣
.TP
.B LC_CTYPE

.B isupper()

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

.BR wctomb()
Τ褦ʴؿưѹ롣
.TP
.B LC_MONETARY
.B localeconv()
ˤä֤ѹ롣
ˤϾ䥳ޤΰ֤ʤɡΥեޥåˡ˴ؤ
ܺ٤ޤޤƤ롣ξ
.B strfmon()
ؿǻѤ롢
.TP
.B LC_MESSAGES
åɽ˻Ѥѹ롣ƹɤΤ褦
뤫ѹ롣 GNU C 饤֥ϡξñ˻
뤿
.B rpmatch()
ؿޤǤ롣
.TP
.B LC_NUMERIC

.B printf()

.B scanf()
ؿǡlocale Ȥ褦˻ؼ줿
Ѥѹ롣ξ
.B localeconv()
ؿǼ뤳ȤǤ롣
.TP
.B LC_TIME
ϰŪˡǸ߻ɽ
.B strftime()
ؿưѹ롣㤨Хꥫ 12ֻפΤˡ
衼åѼ 24ֻפѤ롣
.TP
.B LC_ALL
嵭ơ
.PP
.B setlocale()
ܤΰʸξ硢ʤǥեȤ locale 
.BR """""" 
ξϰʲμǷꤹ:
.IP 1.
Ķѿ
.BR LC_ALL 
ꤵƤˤ
.BR LC_ALL 
ͤѤ롣
.IP 2.
⤷嵭μ̤Τɤ줫̾ƱĶѿꤵƤˤ
μ̤ˤϤͤѤ롣
.IP 3.
Ķѿ
.BR LANG 
ꤵƤˤ
.B LANG
ͤѤ롣
.PP

ϰŪʿͥեޥåȤΤξ
.B localeconv()
ؿˤä֤
.B struct lconv
ˤä뤳ȤǤ롢ϰʲΤ褦Ƥ:
.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;		/* Int'l fractional digits.  */
  char frac_digits;			/* Local fractional 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 
POSIX.1
.SH Ϣ
.BR setlocale (3),
.BR localeconv (3),
.BR locale (1),
.BR localedef (1),
.BR rpmatch (3),
.BR strfmon (3),
.BR strcoll (3),
.BR strxfrm (3),
.BR strftime (3)