File: locale.7

package info (click to toggle)
manpages-ja 0.5.0.0.20100315-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 21,156 kB
  • ctags: 1
  • sloc: sh: 13,935; perl: 157; makefile: 114
file content (223 lines) | stat: -rw-r--r-- 7,084 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
215
216
217
218
219
220
221
222
223
.\" Copyright (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  2008-12-05 "Linux" "Linux Programmer's Manual"
.SH ̾
locale \- ¿쥵ݡȤβ
.SH 
.nf
.B #include <locale.h>
.fi
.SH 
 (locale) ϸʸ롼νǤ롣
ϡåϤ˻Ѥ졦ʸ硦
ɽ˴ؤ봷Ȥä褦̤򥫥СƤ롣
ץ򤤤ʸ˰ܿǽȤˤϡ
ΥץϼʬΥơ
˱ŬڤưǤʤФʤʤ
.PP
إåե
.I <locale.h>
ˤϡŪʥǡؿޥʤɤ롣
.PP
ΥإåեƤؿˤϡ
ߤΥꤹ
.BR setlocale (3)
ȡͤΥեޥåˡˤĤƤξ
.BR localeconv (3)
.PP
ץɬפ˱ơϤʥƥʬƤꡢ
ϥޥȤƤ롣
Υޥ
.BR setlocale (3)
ؿκǽΰѤȡ
Τɤ줫˾Ǥ롣
.TP
.B LC_COLLATE
ϰŪʥե٥åʸӤ˻Ѥ
.BR strcoll (3)
ؿ
.BR strxfrm (3)
ؿưѹ롣㤨ХɥĸΥĥå (Ԥ s)
ϡȤκ "ss" Ȥư롣
.TP
.B LC_CTYPE

.BR isupper (3)

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

.BR wctomb (3)
Τ褦ʴؿưѹ롣
.TP
.B LC_MONETARY
.BR localeconv (3)
ˤä֤ѹ롣
ˤϾڤꥳޤΰ֤ʤɡ
ɽˡ˴ؤܺ٤ޤޤƤ롣ξ
.BR strfmon (3)
ؿǻѤ롣
.TP
.B LC_MESSAGES
åɽ˻Ѥѹ롣
ޤŪŪʲɤΤ褦ɽ뤫ѹ롣
ξñ˻Ѥ뤿ˡ GNU C 饤֥ˤ
.BR gettext (3),
.BR ngettext (3),
.BR rpmatch (3)
ؿޤޤƤ롣
GNU gettext եߥ꡼°ؿϡƥ꤬
.B """C"""
ʳͭʥꤵƤ硢Ķѿ
.B LANGUAGE
ˤ⽾
.RB ( LANGUAGE
ϥڤΥΥꥹȤǤ)
.TP
.B LC_NUMERIC
.BR printf (3)
ؿ
.BR scanf (3)
ؿΥեߥ꡼ǥȤ褦ؼ줿
Ѥѹ롣ξ
.BR localeconv (3)
ؿǼ뤳ȤǤ롣
.TP
.B LC_TIME
.BR strftime (3)
ؿưѹ
ϰѤƤˡǸ߻ɽ롣
㤨С衼åѤ¿Ǥ 24ּλפȤ
ꥫǤ 12ּλפȤ
.TP
.B LC_ALL
嵭ơ
.\" FIXME glibc 2.2.2 added new non-standard locale categories:
.\" LC_ADDRESS, LC_IDENTIFICATION, LC_MEASUREMENT, LC_NAME,
.\" LC_PAPER, LC_TELEPHONE.  These need to be documented.
.PP
.BR setlocale (3)
ܤΰʸ \fB""\fP ξ硢
ǥեȤΥϰʲμǷꤹ:
.IP 1.
Ķѿ
.B LC_ALL
ꤵƤˤ
.B LC_ALL
ͤѤ롣
.IP 2.
嵭ΥƥΤɤ줫Ʊ̾δĶѿꤵƤˤϡ
ΥƥˤϤͤѤ롣
.IP 3.
Ķѿ
.B LANG
ꤵƤˤ
.B LANG
ͤѤ롣
.PP
ϰŪʿͥեޥåȤξ
.BR localeconv (3)
ؿˤä֤
.I struct lconv
뤳ȤǤϰʲΤ褦Ƥ:
.in +4n
.nf

struct lconv {

    /* (̲߰ʳ) ; */

    char *decimal_point;     /* ʸ */
    char *thousands_sep;     /* κ¦οΥ롼פ
                                ڤʸ */
    char *grouping; /* 줾Ǥϳƥ롼פοθĿǤ롣
                       ǥåͤ礭ۤɡ¦Υ롼פɽ
                       Ǥͤ CHAR_MAX ξϡǸΥ롼פ
                       뤳Ȥ̣롣Ǥͤ 0 ξϡ
                       Ǥ꺸¦ƤǤǤƱͤ
                       Ѥ뤳Ȥ̣롣 */

    /* ĤΥեɤ̲߾ѤǤ */

    char *int_curr_symbol;   /* ǽλĤʸ ISO 4217 ̲ߵ档
                                ܤʸ϶ڤʸ
                                ܤ \(aq\0\(aq */
    char *currency_symbol;   /* ϰ̲ߵ */
    char *mon_decimal_point; /* ʸ */
    char *mon_thousands_sep; /* 嵭 `thousands_sep' Ʊ */
    char *mon_grouping;      /* 嵭 `grouping' Ʊ */
    char *positive_sign;     /* ͤ */
    char *negative_sign;     /* ͤ */
    char  int_frac_digits;   /* Ūʾο */
    char  frac_digits;       /* ϰξο */
    char  p_cs_precedes;     /* ̲ͤߵ֤ 1,
                                ֤ 0 */
    char  p_sep_by_space;    /* ̲ͤߵδ֤˥ڡ
                                 1 */
    char  n_cs_precedes;     /* ̲ͤߵ֤ 1,
                                ֤ 0 */
    char  n_sep_by_space;    /* ̲ͤߵδ֤˥ڡ
                                 1 */
    /* ΰ:
       0 ̲ͤߵ̤ǰϤ
       1 ̲ͤߵ֤
       2 ̲ͤߵθ֤
       3 ̲ߵľ֤
       4 ̲ߵľ֤    */
    char  p_sign_posn;
    char  n_sign_posn;
};
.fi
.in
.SH 
POSIX.1-2001

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)