1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Free Software Foundation, Inc.
3 # This file is distributed under the same license as the PACKAGE package.
4 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
9 "Project-Id-Version: PACKAGE VERSION\n"
10 "POT-Creation-Date: 2012-03-22 04:25+0900\n"
11 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
12 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13 "Language-Team: LANGUAGE <LL@li.org>\n"
16 "Content-Type: text/plain; charset=CHARSET\n"
17 "Content-Transfer-Encoding: 8bit\n"
20 #: build/C/man3/iconv.3:16
26 #: build/C/man3/iconv.3:16
32 #: build/C/man3/iconv.3:16 build/C/man3/iconv_close.3:12 build/C/man3/iconv_open.3:16
38 #: build/C/man3/iconv.3:16 build/C/man3/iconv_close.3:12 build/C/man3/iconv_open.3:16
40 msgid "Linux Programmer's Manual"
44 #: build/C/man3/iconv.3:17 build/C/man3/iconv_close.3:13 build/C/man3/iconv_open.3:17
50 #: build/C/man3/iconv.3:19
51 msgid "iconv - perform character set conversion"
55 #: build/C/man3/iconv.3:19 build/C/man3/iconv_close.3:15 build/C/man3/iconv_open.3:19
61 #: build/C/man3/iconv.3:22 build/C/man3/iconv_close.3:18 build/C/man3/iconv_open.3:22
63 msgid "B<#include E<lt>iconv.hE<gt>>\n"
67 #: build/C/man3/iconv.3:26
70 "B<size_t iconv(iconv_t >I<cd>B<,>\n"
71 "B< char **>I<inbuf>B<, size_t *>I<inbytesleft>B<,>\n"
72 "B< char **>I<outbuf>B<, size_t *>I<outbytesleft>B<);>\n"
76 #: build/C/man3/iconv.3:27 build/C/man3/iconv_close.3:21 build/C/man3/iconv_open.3:25
82 #: build/C/man3/iconv.3:31
84 "The argument I<cd> must be a conversion descriptor created using the "
85 "function B<iconv_open>(3)."
89 #: build/C/man3/iconv.3:39
91 "The main case is when I<inbuf> is not NULL and I<*inbuf> is not NULL. In "
92 "this case, the B<iconv>() function converts the multibyte sequence starting "
93 "at I<*inbuf> to a multibyte sequence starting at I<*outbuf>. At most "
94 "I<*inbytesleft> bytes, starting at I<*inbuf>, will be read. At most "
95 "I<*outbytesleft> bytes, starting at I<*outbuf>, will be written."
99 #: build/C/man3/iconv.3:53
101 "The B<iconv>() function converts one multibyte character at a time, and for "
102 "each character conversion it increments I<*inbuf> and decrements "
103 "I<*inbytesleft> by the number of converted input bytes, it increments "
104 "I<*outbuf> and decrements I<*outbytesleft> by the number of converted output "
105 "bytes, and it updates the conversion state contained in I<cd>. If the "
106 "character encoding of the input is stateful, the B<iconv>() function can "
107 "also convert a sequence of input bytes to an update to the conversion state "
108 "without producing any output bytes; such input is called a I<shift "
109 "sequence>. The conversion can stop for four reasons:"
113 #: build/C/man3/iconv.3:60
115 "1. An invalid multibyte sequence is encountered in the input. In this case "
116 "it sets I<errno> to B<EILSEQ> and returns I<(size_t)\\ -1>. I<*inbuf> is "
117 "left pointing to the beginning of the invalid multibyte sequence."
121 #: build/C/man3/iconv.3:67
123 "2. The input byte sequence has been entirely converted, that is, "
124 "I<*inbytesleft> has gone down to 0. In this case B<iconv>() returns the "
125 "number of nonreversible conversions performed during this call."
129 #: build/C/man3/iconv.3:75
131 "3. An incomplete multibyte sequence is encountered in the input, and the "
132 "input byte sequence terminates after it. In this case it sets I<errno> to "
133 "B<EINVAL> and returns I<(size_t)\\ -1>. I<*inbuf> is left pointing to the "
134 "beginning of the incomplete multibyte sequence."
138 #: build/C/man3/iconv.3:79
140 "4. The output buffer has no more room for the next converted character. In "
141 "this case it sets I<errno> to B<E2BIG> and returns I<(size_t)\\ -1>."
145 #: build/C/man3/iconv.3:93
147 "A different case is when I<inbuf> is NULL or I<*inbuf> is NULL, but "
148 "I<outbuf> is not NULL and I<*outbuf> is not NULL. In this case, the "
149 "B<iconv>() function attempts to set I<cd>'s conversion state to the initial "
150 "state and store a corresponding shift sequence at I<*outbuf>. At most "
151 "I<*outbytesleft> bytes, starting at I<*outbuf>, will be written. If the "
152 "output buffer has no more room for this reset sequence, it sets I<errno> to "
153 "B<E2BIG> and returns I<(size_t)\\ -1>. Otherwise it increments I<*outbuf> "
154 "and decrements I<*outbytesleft> by the number of bytes written."
158 #: build/C/man3/iconv.3:99
160 "A third case is when I<inbuf> is NULL or I<*inbuf> is NULL, and I<outbuf> is "
161 "NULL or I<*outbuf> is NULL. In this case, the B<iconv>() function sets "
162 "I<cd>'s conversion state to the initial state."
166 #: build/C/man3/iconv.3:99 build/C/man3/iconv_close.3:27 build/C/man3/iconv_open.3:69
172 #: build/C/man3/iconv.3:106
174 "The B<iconv>() function returns the number of characters converted in a "
175 "nonreversible way during this call; reversible conversions are not counted. "
176 "In case of error, it sets I<errno> and returns I<(size_t)\\ -1>."
180 #: build/C/man3/iconv.3:106 build/C/man3/iconv_open.3:76
186 #: build/C/man3/iconv.3:108
187 msgid "The following errors can occur, among others:"
191 #: build/C/man3/iconv.3:108
197 #: build/C/man3/iconv.3:111
198 msgid "There is not sufficient room at I<*outbuf>."
202 #: build/C/man3/iconv.3:111
208 #: build/C/man3/iconv.3:114
209 msgid "An invalid multibyte sequence has been encountered in the input."
213 #: build/C/man3/iconv.3:114 build/C/man3/iconv_open.3:78
219 #: build/C/man3/iconv.3:117
220 msgid "An incomplete multibyte sequence has been encountered in the input."
224 #: build/C/man3/iconv.3:117 build/C/man3/iconv_close.3:34 build/C/man3/iconv_open.3:82
230 #: build/C/man3/iconv.3:119 build/C/man3/iconv_close.3:36 build/C/man3/iconv_open.3:84
231 msgid "This function is available in glibc since version 2.1."
235 #: build/C/man3/iconv.3:119 build/C/man3/iconv_close.3:36 build/C/man3/iconv_open.3:84
237 msgid "CONFORMING TO"
241 #: build/C/man3/iconv.3:121
242 msgid "POSIX.1-2001."
246 #: build/C/man3/iconv.3:121 build/C/man3/iconv_close.3:38 build/C/man3/iconv_open.3:86
252 #: build/C/man3/iconv.3:124
253 msgid "B<iconv_close>(3), B<iconv_open>(3)"
257 #: build/C/man3/iconv.3:124 build/C/man3/iconv_close.3:41 build/C/man3/iconv_open.3:90
263 #: build/C/man3/iconv.3:131 build/C/man3/iconv_close.3:48 build/C/man3/iconv_open.3:97
265 "This page is part of release 3.37 of the Linux I<man-pages> project. A "
266 "description of the project, and information about reporting bugs, can be "
267 "found at http://www.kernel.org/doc/man-pages/."
271 #: build/C/man3/iconv_close.3:12
277 #: build/C/man3/iconv_close.3:12 build/C/man3/iconv_open.3:16
283 #: build/C/man3/iconv_close.3:15
284 msgid "iconv_close - deallocate descriptor for character set conversion"
288 #: build/C/man3/iconv_close.3:20
290 msgid "B<int iconv_close(iconv_t >I<cd>B<);>\n"
294 #: build/C/man3/iconv_close.3:27
296 "The B<iconv_close>() function deallocates a conversion descriptor I<cd> "
297 "previously allocated using B<iconv_open>(3)."
301 #: build/C/man3/iconv_close.3:34
303 "When successful, the B<iconv_close>() function returns 0. In case of "
304 "error, it sets I<errno> and returns -1."
308 #: build/C/man3/iconv_close.3:38 build/C/man3/iconv_open.3:86
309 msgid "UNIX98, POSIX.1-2001."
313 #: build/C/man3/iconv_close.3:41
314 msgid "B<iconv>(3), B<iconv_open>(3)"
318 #: build/C/man3/iconv_open.3:16
324 #: build/C/man3/iconv_open.3:19
325 msgid "iconv_open - allocate descriptor for character set conversion"
329 #: build/C/man3/iconv_open.3:24
332 "B<iconv_t iconv_open(const char *>I<tocode>B<, const char "
333 "*>I<fromcode>B<);>\n"
337 #: build/C/man3/iconv_open.3:31
339 "The B<iconv_open>() function allocates a conversion descriptor suitable for "
340 "converting byte sequences from character encoding I<fromcode> to character "
341 "encoding I<tocode>."
345 #: build/C/man3/iconv_open.3:39
347 "The values permitted for I<fromcode> and I<tocode> and the supported "
348 "combinations are system-dependent. For the GNU C library, the permitted "
349 "values are listed by the B<iconv --list> command, and all combinations of "
350 "the listed values are supported. Furthermore the GNU C library and the GNU "
351 "libiconv library support the following two suffixes:"
355 #: build/C/man3/iconv_open.3:39
361 #: build/C/man3/iconv_open.3:46
363 "When the string \"//TRANSLIT\" is appended to I<tocode>, transliteration is "
364 "activated. This means that when a character cannot be represented in the "
365 "target character set, it can be approximated through one or several "
366 "similarly looking characters."
370 #: build/C/man3/iconv_open.3:46
376 #: build/C/man3/iconv_open.3:50
378 "When the string \"//IGNORE\" is appended to I<tocode>, characters that "
379 "cannot be represented in the target character set will be silently "
384 #: build/C/man3/iconv_open.3:56
386 "The resulting conversion descriptor can be used with B<iconv>(3) any number "
387 "of times. It remains valid until deallocated using B<iconv_close>(3)."
391 #: build/C/man3/iconv_open.3:69
393 "A conversion descriptor contains a conversion state. After creation using "
394 "B<iconv_open>(), the state is in the initial state. Using B<iconv>(3) "
395 "modifies the descriptor's conversion state. (This implies that a conversion "
396 "descriptor can not be used in multiple threads simultaneously.) To bring "
397 "the state back to the initial state, use B<iconv>(3) with NULL as I<inbuf> "
402 #: build/C/man3/iconv_open.3:76
404 "The B<iconv_open>() function returns a freshly allocated conversion "
405 "descriptor. In case of error, it sets I<errno> and returns I<(iconv_t)\\ "
410 #: build/C/man3/iconv_open.3:78
411 msgid "The following error can occur, among others:"
415 #: build/C/man3/iconv_open.3:82
417 "The conversion from I<fromcode> to I<tocode> is not supported by the "
422 #: build/C/man3/iconv_open.3:90
423 msgid "B<iconv>(1), B<iconv>(3), B<iconv_close>(3)"