@cpp.js/package-iconv 1.0.0 → 2.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cppjs.config.js +12 -16
- package/package.json +9 -11
- package/charset.xcframework/Info.plist +0 -50
- package/charset.xcframework/ios-arm64_arm64e/Headers/iconv.h +0 -243
- package/charset.xcframework/ios-arm64_arm64e/Headers/libcharset.h +0 -45
- package/charset.xcframework/ios-arm64_arm64e/Headers/localcharset.h +0 -137
- package/charset.xcframework/ios-arm64_arm64e/libcharset.a +0 -0
- package/charset.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/iconv.h +0 -243
- package/charset.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/libcharset.h +0 -45
- package/charset.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/localcharset.h +0 -137
- package/charset.xcframework/ios-arm64_arm64e_x86_64-simulator/libcharset.a +0 -0
- package/dist/prebuilt/Android-arm64-v8a/include/iconv.h +0 -243
- package/dist/prebuilt/Android-arm64-v8a/include/libcharset.h +0 -45
- package/dist/prebuilt/Android-arm64-v8a/include/localcharset.h +0 -137
- package/dist/prebuilt/Android-arm64-v8a/lib/libcharset.la +0 -41
- package/dist/prebuilt/Android-arm64-v8a/lib/libcharset.so +0 -0
- package/dist/prebuilt/Android-arm64-v8a/lib/libiconv.la +0 -41
- package/dist/prebuilt/Android-arm64-v8a/lib/libiconv.so +0 -0
- package/dist/prebuilt/Android-arm64-v8a/share/doc/iconv.1.html +0 -217
- package/dist/prebuilt/Android-arm64-v8a/share/doc/iconv.3.html +0 -255
- package/dist/prebuilt/Android-arm64-v8a/share/doc/iconv_close.3.html +0 -89
- package/dist/prebuilt/Android-arm64-v8a/share/doc/iconv_open.3.html +0 -352
- package/dist/prebuilt/Android-arm64-v8a/share/doc/iconv_open_into.3.html +0 -132
- package/dist/prebuilt/Android-arm64-v8a/share/doc/iconvctl.3.html +0 -244
- package/dist/prebuilt/Android-arm64-v8a/share/man/man1/iconv.1 +0 -112
- package/dist/prebuilt/Android-arm64-v8a/share/man/man3/iconv.3 +0 -129
- package/dist/prebuilt/Android-arm64-v8a/share/man/man3/iconv_close.3 +0 -31
- package/dist/prebuilt/Android-arm64-v8a/share/man/man3/iconv_open.3 +0 -260
- package/dist/prebuilt/Android-arm64-v8a/share/man/man3/iconv_open_into.3 +0 -47
- package/dist/prebuilt/Android-arm64-v8a/share/man/man3/iconvctl.3 +0 -112
- package/dist/prebuilt/Android-x86_64/include/iconv.h +0 -243
- package/dist/prebuilt/Android-x86_64/include/libcharset.h +0 -45
- package/dist/prebuilt/Android-x86_64/include/localcharset.h +0 -137
- package/dist/prebuilt/Android-x86_64/lib/libcharset.la +0 -41
- package/dist/prebuilt/Android-x86_64/lib/libcharset.so +0 -0
- package/dist/prebuilt/Android-x86_64/lib/libiconv.la +0 -41
- package/dist/prebuilt/Android-x86_64/lib/libiconv.so +0 -0
- package/dist/prebuilt/Android-x86_64/share/doc/iconv.1.html +0 -217
- package/dist/prebuilt/Android-x86_64/share/doc/iconv.3.html +0 -255
- package/dist/prebuilt/Android-x86_64/share/doc/iconv_close.3.html +0 -89
- package/dist/prebuilt/Android-x86_64/share/doc/iconv_open.3.html +0 -352
- package/dist/prebuilt/Android-x86_64/share/doc/iconv_open_into.3.html +0 -132
- package/dist/prebuilt/Android-x86_64/share/doc/iconvctl.3.html +0 -244
- package/dist/prebuilt/Android-x86_64/share/man/man1/iconv.1 +0 -112
- package/dist/prebuilt/Android-x86_64/share/man/man3/iconv.3 +0 -129
- package/dist/prebuilt/Android-x86_64/share/man/man3/iconv_close.3 +0 -31
- package/dist/prebuilt/Android-x86_64/share/man/man3/iconv_open.3 +0 -260
- package/dist/prebuilt/Android-x86_64/share/man/man3/iconv_open_into.3 +0 -47
- package/dist/prebuilt/Android-x86_64/share/man/man3/iconvctl.3 +0 -112
- package/dist/prebuilt/CMakeLists.txt +0 -44
- package/dist/prebuilt/Emscripten-x86_64/include/iconv.h +0 -243
- package/dist/prebuilt/Emscripten-x86_64/include/libcharset.h +0 -45
- package/dist/prebuilt/Emscripten-x86_64/include/localcharset.h +0 -137
- package/dist/prebuilt/Emscripten-x86_64/lib/libcharset.a +0 -0
- package/dist/prebuilt/Emscripten-x86_64/lib/libcharset.la +0 -41
- package/dist/prebuilt/Emscripten-x86_64/lib/libiconv.a +0 -0
- package/dist/prebuilt/Emscripten-x86_64/lib/libiconv.la +0 -41
- package/dist/prebuilt/Emscripten-x86_64/share/doc/iconv.1.html +0 -217
- package/dist/prebuilt/Emscripten-x86_64/share/doc/iconv.3.html +0 -255
- package/dist/prebuilt/Emscripten-x86_64/share/doc/iconv_close.3.html +0 -89
- package/dist/prebuilt/Emscripten-x86_64/share/doc/iconv_open.3.html +0 -352
- package/dist/prebuilt/Emscripten-x86_64/share/doc/iconv_open_into.3.html +0 -132
- package/dist/prebuilt/Emscripten-x86_64/share/doc/iconvctl.3.html +0 -244
- package/dist/prebuilt/Emscripten-x86_64/share/locale/af/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/be/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/bg/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/ca/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/cs/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/da/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/de/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/el/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/eo/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/es/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/et/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/fi/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/fr/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/ga/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/gl/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/hr/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/hu/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/id/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/it/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/ja/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/ka/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/ko/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/lt/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/nl/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/pl/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/pt_BR/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/rm/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/ro/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/ru/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/sk/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/sl/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/sq/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/sr/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/sv/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/tr/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/uk/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/vi/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/wa/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/zh_CN/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/locale/zh_TW/LC_MESSAGES/libiconv.mo +0 -0
- package/dist/prebuilt/Emscripten-x86_64/share/man/man1/iconv.1 +0 -112
- package/dist/prebuilt/Emscripten-x86_64/share/man/man3/iconv.3 +0 -129
- package/dist/prebuilt/Emscripten-x86_64/share/man/man3/iconv_close.3 +0 -31
- package/dist/prebuilt/Emscripten-x86_64/share/man/man3/iconv_open.3 +0 -260
- package/dist/prebuilt/Emscripten-x86_64/share/man/man3/iconv_open_into.3 +0 -47
- package/dist/prebuilt/Emscripten-x86_64/share/man/man3/iconvctl.3 +0 -112
- package/dist/prebuilt/iOS-iphoneos/include/iconv.h +0 -243
- package/dist/prebuilt/iOS-iphoneos/include/libcharset.h +0 -45
- package/dist/prebuilt/iOS-iphoneos/include/localcharset.h +0 -137
- package/dist/prebuilt/iOS-iphoneos/lib/libcharset.a +0 -0
- package/dist/prebuilt/iOS-iphoneos/lib/libcharset.la +0 -41
- package/dist/prebuilt/iOS-iphoneos/lib/libiconv.a +0 -0
- package/dist/prebuilt/iOS-iphoneos/lib/libiconv.la +0 -41
- package/dist/prebuilt/iOS-iphoneos/share/doc/iconv.1.html +0 -217
- package/dist/prebuilt/iOS-iphoneos/share/doc/iconv.3.html +0 -255
- package/dist/prebuilt/iOS-iphoneos/share/doc/iconv_close.3.html +0 -89
- package/dist/prebuilt/iOS-iphoneos/share/doc/iconv_open.3.html +0 -352
- package/dist/prebuilt/iOS-iphoneos/share/doc/iconv_open_into.3.html +0 -132
- package/dist/prebuilt/iOS-iphoneos/share/doc/iconvctl.3.html +0 -244
- package/dist/prebuilt/iOS-iphoneos/share/man/man1/iconv.1 +0 -112
- package/dist/prebuilt/iOS-iphoneos/share/man/man3/iconv.3 +0 -129
- package/dist/prebuilt/iOS-iphoneos/share/man/man3/iconv_close.3 +0 -31
- package/dist/prebuilt/iOS-iphoneos/share/man/man3/iconv_open.3 +0 -260
- package/dist/prebuilt/iOS-iphoneos/share/man/man3/iconv_open_into.3 +0 -47
- package/dist/prebuilt/iOS-iphoneos/share/man/man3/iconvctl.3 +0 -112
- package/dist/prebuilt/iOS-iphonesimulator/include/iconv.h +0 -243
- package/dist/prebuilt/iOS-iphonesimulator/include/libcharset.h +0 -45
- package/dist/prebuilt/iOS-iphonesimulator/include/localcharset.h +0 -137
- package/dist/prebuilt/iOS-iphonesimulator/lib/libcharset.a +0 -0
- package/dist/prebuilt/iOS-iphonesimulator/lib/libcharset.la +0 -41
- package/dist/prebuilt/iOS-iphonesimulator/lib/libiconv.a +0 -0
- package/dist/prebuilt/iOS-iphonesimulator/lib/libiconv.la +0 -41
- package/dist/prebuilt/iOS-iphonesimulator/share/doc/iconv.1.html +0 -217
- package/dist/prebuilt/iOS-iphonesimulator/share/doc/iconv.3.html +0 -255
- package/dist/prebuilt/iOS-iphonesimulator/share/doc/iconv_close.3.html +0 -89
- package/dist/prebuilt/iOS-iphonesimulator/share/doc/iconv_open.3.html +0 -352
- package/dist/prebuilt/iOS-iphonesimulator/share/doc/iconv_open_into.3.html +0 -132
- package/dist/prebuilt/iOS-iphonesimulator/share/doc/iconvctl.3.html +0 -244
- package/dist/prebuilt/iOS-iphonesimulator/share/man/man1/iconv.1 +0 -112
- package/dist/prebuilt/iOS-iphonesimulator/share/man/man3/iconv.3 +0 -129
- package/dist/prebuilt/iOS-iphonesimulator/share/man/man3/iconv_close.3 +0 -31
- package/dist/prebuilt/iOS-iphonesimulator/share/man/man3/iconv_open.3 +0 -260
- package/dist/prebuilt/iOS-iphonesimulator/share/man/man3/iconv_open_into.3 +0 -47
- package/dist/prebuilt/iOS-iphonesimulator/share/man/man3/iconvctl.3 +0 -112
- package/iconv.xcframework/Info.plist +0 -50
- package/iconv.xcframework/ios-arm64_arm64e/Headers/iconv.h +0 -243
- package/iconv.xcframework/ios-arm64_arm64e/Headers/libcharset.h +0 -45
- package/iconv.xcframework/ios-arm64_arm64e/Headers/localcharset.h +0 -137
- package/iconv.xcframework/ios-arm64_arm64e/libiconv.a +0 -0
- package/iconv.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/iconv.h +0 -243
- package/iconv.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/libcharset.h +0 -45
- package/iconv.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/localcharset.h +0 -137
- package/iconv.xcframework/ios-arm64_arm64e_x86_64-simulator/libiconv.a +0 -0
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
<!-- Creator : groff version 1.22.3 -->
|
|
2
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
|
3
|
-
"http://www.w3.org/TR/html4/loose.dtd">
|
|
4
|
-
<html>
|
|
5
|
-
<head>
|
|
6
|
-
<meta name="generator" content="groff -Thtml, see www.gnu.org">
|
|
7
|
-
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
|
8
|
-
<meta name="Content-Style" content="text/css">
|
|
9
|
-
<style type="text/css">
|
|
10
|
-
p { margin-top: 0; margin-bottom: 0; vertical-align: top }
|
|
11
|
-
pre { margin-top: 0; margin-bottom: 0; vertical-align: top }
|
|
12
|
-
table { margin-top: 0; margin-bottom: 0; vertical-align: top }
|
|
13
|
-
h1 { text-align: center }
|
|
14
|
-
</style>
|
|
15
|
-
<title>ICONV_OPEN_INTO</title>
|
|
16
|
-
|
|
17
|
-
</head>
|
|
18
|
-
<body>
|
|
19
|
-
|
|
20
|
-
<h1 align="center">ICONV_OPEN_INTO</h1>
|
|
21
|
-
|
|
22
|
-
<a href="#NAME">NAME</a><br>
|
|
23
|
-
<a href="#SYNOPSIS">SYNOPSIS</a><br>
|
|
24
|
-
<a href="#DESCRIPTION">DESCRIPTION</a><br>
|
|
25
|
-
<a href="#RETURN VALUE">RETURN VALUE</a><br>
|
|
26
|
-
<a href="#ERRORS">ERRORS</a><br>
|
|
27
|
-
<a href="#CONFORMING TO">CONFORMING TO</a><br>
|
|
28
|
-
<a href="#SEE ALSO">SEE ALSO</a><br>
|
|
29
|
-
|
|
30
|
-
<hr>
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
<h2>NAME
|
|
34
|
-
<a name="NAME"></a>
|
|
35
|
-
</h2>
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<p style="margin-left:11%; margin-top: 1em">iconv_open_into
|
|
40
|
-
− initialize descriptor for character set
|
|
41
|
-
conversion</p>
|
|
42
|
-
|
|
43
|
-
<h2>SYNOPSIS
|
|
44
|
-
<a name="SYNOPSIS"></a>
|
|
45
|
-
</h2>
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
<p style="margin-left:11%; margin-top: 1em"><b>#include
|
|
49
|
-
<iconv.h></b></p>
|
|
50
|
-
|
|
51
|
-
<p style="margin-left:11%; margin-top: 1em"><b>int
|
|
52
|
-
iconv_open_into (const char*</b> <i>tocode</i><b>, const
|
|
53
|
-
char*</b> <i>fromcode</i><b>, <br>
|
|
54
|
-
iconv_allocation_t*</b> <i>resultp</i><b>);</b></p>
|
|
55
|
-
|
|
56
|
-
<h2>DESCRIPTION
|
|
57
|
-
<a name="DESCRIPTION"></a>
|
|
58
|
-
</h2>
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
<p style="margin-left:11%; margin-top: 1em">The
|
|
62
|
-
<b>iconv_open_into</b> function initializes a conversion
|
|
63
|
-
descriptor suitable for converting byte sequences from
|
|
64
|
-
character encoding <i>fromcode</i> to character encoding
|
|
65
|
-
<i>tocode</i>. The conversion descriptor is stored in the
|
|
66
|
-
memory pointed to by <i>resultp</i>.</p>
|
|
67
|
-
|
|
68
|
-
<p style="margin-left:11%; margin-top: 1em">The values
|
|
69
|
-
permitted for <i>fromcode</i> and <i>tocode</i> are the same
|
|
70
|
-
as for the function <b>iconv_open</b>.</p>
|
|
71
|
-
|
|
72
|
-
<p style="margin-left:11%; margin-top: 1em">After a
|
|
73
|
-
successful return from this function, <i>resultp</i> can be
|
|
74
|
-
be used as an <b>iconv_t</b> object with the <b>iconv</b>
|
|
75
|
-
function.</p>
|
|
76
|
-
|
|
77
|
-
<h2>RETURN VALUE
|
|
78
|
-
<a name="RETURN VALUE"></a>
|
|
79
|
-
</h2>
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
<p style="margin-left:11%; margin-top: 1em">The
|
|
83
|
-
<b>iconv_open_into</b> function fills <b>*</b><i>resultp</i>
|
|
84
|
-
and returns 0 if it succeeds. In case of error, it sets
|
|
85
|
-
<b>errno</b> and returns −1.</p>
|
|
86
|
-
|
|
87
|
-
<h2>ERRORS
|
|
88
|
-
<a name="ERRORS"></a>
|
|
89
|
-
</h2>
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
<p style="margin-left:11%; margin-top: 1em">The following
|
|
93
|
-
error can occur, among others:</p>
|
|
94
|
-
|
|
95
|
-
<table width="100%" border="0" rules="none" frame="void"
|
|
96
|
-
cellspacing="0" cellpadding="0">
|
|
97
|
-
<tr valign="top" align="left">
|
|
98
|
-
<td width="11%"></td>
|
|
99
|
-
<td width="9%">
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
<p><b>EINVAL</b></p></td>
|
|
103
|
-
<td width="2%"></td>
|
|
104
|
-
<td width="78%">
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
<p>The conversion from <i>fromcode</i> to <i>tocode</i> is
|
|
108
|
-
not supported by the implementation.</p></td></tr>
|
|
109
|
-
</table>
|
|
110
|
-
|
|
111
|
-
<h2>CONFORMING TO
|
|
112
|
-
<a name="CONFORMING TO"></a>
|
|
113
|
-
</h2>
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
<p style="margin-left:11%; margin-top: 1em">This function
|
|
117
|
-
is implemented only in GNU libiconv and not in other
|
|
118
|
-
<b>iconv</b> implementations. It is not backed by a
|
|
119
|
-
standard. You can test for its presence through
|
|
120
|
-
<b>(_LIBICONV_VERSION >= 0x010D)</b>.</p>
|
|
121
|
-
|
|
122
|
-
<h2>SEE ALSO
|
|
123
|
-
<a name="SEE ALSO"></a>
|
|
124
|
-
</h2>
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
<p style="margin-left:11%; margin-top: 1em"><b>iconv_open</b>(3)
|
|
129
|
-
<b>iconv</b>(3)</p>
|
|
130
|
-
<hr>
|
|
131
|
-
</body>
|
|
132
|
-
</html>
|
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
<!-- Creator : groff version 1.22.3 -->
|
|
2
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
|
|
3
|
-
"http://www.w3.org/TR/html4/loose.dtd">
|
|
4
|
-
<html>
|
|
5
|
-
<head>
|
|
6
|
-
<meta name="generator" content="groff -Thtml, see www.gnu.org">
|
|
7
|
-
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
|
|
8
|
-
<meta name="Content-Style" content="text/css">
|
|
9
|
-
<style type="text/css">
|
|
10
|
-
p { margin-top: 0; margin-bottom: 0; vertical-align: top }
|
|
11
|
-
pre { margin-top: 0; margin-bottom: 0; vertical-align: top }
|
|
12
|
-
table { margin-top: 0; margin-bottom: 0; vertical-align: top }
|
|
13
|
-
h1 { text-align: center }
|
|
14
|
-
</style>
|
|
15
|
-
<title>ICONVCTL</title>
|
|
16
|
-
|
|
17
|
-
</head>
|
|
18
|
-
<body>
|
|
19
|
-
|
|
20
|
-
<h1 align="center">ICONVCTL</h1>
|
|
21
|
-
|
|
22
|
-
<a href="#NAME">NAME</a><br>
|
|
23
|
-
<a href="#SYNOPSIS">SYNOPSIS</a><br>
|
|
24
|
-
<a href="#DESCRIPTION">DESCRIPTION</a><br>
|
|
25
|
-
<a href="#REQUEST VALUES">REQUEST VALUES</a><br>
|
|
26
|
-
<a href="#RETURN VALUE">RETURN VALUE</a><br>
|
|
27
|
-
<a href="#ERRORS">ERRORS</a><br>
|
|
28
|
-
<a href="#CONFORMING TO">CONFORMING TO</a><br>
|
|
29
|
-
<a href="#SEE ALSO">SEE ALSO</a><br>
|
|
30
|
-
|
|
31
|
-
<hr>
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
<h2>NAME
|
|
35
|
-
<a name="NAME"></a>
|
|
36
|
-
</h2>
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<p style="margin-left:11%; margin-top: 1em">iconvctl
|
|
40
|
-
− control iconv behavior</p>
|
|
41
|
-
|
|
42
|
-
<h2>SYNOPSIS
|
|
43
|
-
<a name="SYNOPSIS"></a>
|
|
44
|
-
</h2>
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
<p style="margin-left:11%; margin-top: 1em"><b>#include
|
|
48
|
-
<iconv.h></b></p>
|
|
49
|
-
|
|
50
|
-
<p style="margin-left:11%; margin-top: 1em"><b>int iconvctl
|
|
51
|
-
(iconv_t</b> <i>cd</i> <b>, int</b> <i>request</i><b>, void
|
|
52
|
-
*</b> <i>argument</i><b>);</b></p>
|
|
53
|
-
|
|
54
|
-
<h2>DESCRIPTION
|
|
55
|
-
<a name="DESCRIPTION"></a>
|
|
56
|
-
</h2>
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
<p style="margin-left:11%; margin-top: 1em">The argument
|
|
60
|
-
<i>cd</i> must be a conversion descriptor created using the
|
|
61
|
-
function <b>iconv_open</b>.</p>
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
<p style="margin-left:11%; margin-top: 1em"><b>iconvctl</b>
|
|
65
|
-
queries or adjusts the behavior of the <b>iconv</b>
|
|
66
|
-
function, when invoked with the specified conversion
|
|
67
|
-
descriptor, depending on the request value.</p>
|
|
68
|
-
|
|
69
|
-
<h2>REQUEST VALUES
|
|
70
|
-
<a name="REQUEST VALUES"></a>
|
|
71
|
-
</h2>
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
<p style="margin-left:11%; margin-top: 1em">The following
|
|
75
|
-
are permissible values for the <i>request</i> parameter.
|
|
76
|
-
<b><br>
|
|
77
|
-
ICONV_TRIVIALP</b></p>
|
|
78
|
-
|
|
79
|
-
<p style="margin-left:22%;"><i>argument</i> should be an
|
|
80
|
-
<b>int *</b> which will receive 1 if the conversion is
|
|
81
|
-
trivial, or 0 otherwise.</p>
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
<p style="margin-left:11%;"><b>ICONV_GET_TRANSLITERATE</b></p>
|
|
85
|
-
|
|
86
|
-
<p style="margin-left:22%;"><i>argument</i> should be an
|
|
87
|
-
<b>int *</b> which will receive 1 if transliteration is
|
|
88
|
-
enabled in the conversion, or 0 otherwise.</p>
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
<p style="margin-left:11%;"><b>ICONV_SET_TRANSLITERATE</b></p>
|
|
92
|
-
|
|
93
|
-
<p style="margin-left:22%;"><i>argument</i> should be a
|
|
94
|
-
<b>const int *</b>, pointing to an <b>int</b> value. A
|
|
95
|
-
non-zero value is used to enable transliteration in the
|
|
96
|
-
conversion. A zero value disables it.</p>
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
<p style="margin-left:11%;"><b>ICONV_GET_DISCARD_INVALID</b></p>
|
|
100
|
-
|
|
101
|
-
<p style="margin-left:22%;"><i>argument</i> should be an
|
|
102
|
-
<b>int *</b> which will receive 1 if "discard invalid
|
|
103
|
-
multibyte sequence from the input and continue" is
|
|
104
|
-
enabled in the conversion, or 0 otherwise.</p>
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
<p style="margin-left:11%;"><b>ICONV_SET_DISCARD_INVALID</b></p>
|
|
108
|
-
|
|
109
|
-
<p style="margin-left:22%;"><i>argument</i> should be a
|
|
110
|
-
<b>const int *</b>, pointing to an <b>int</b> value. A
|
|
111
|
-
non-zero value is used to enable "discard invalid
|
|
112
|
-
multibyte sequence from the input and continue" in the
|
|
113
|
-
conversion. A zero value disables it.</p>
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
<p style="margin-left:11%;"><b>ICONV_GET_DISCARD_NON_IDENTICAL</b></p>
|
|
117
|
-
|
|
118
|
-
<p style="margin-left:22%;"><i>argument</i> should be an
|
|
119
|
-
<b>int *</b> which will receive 1 if "discard character
|
|
120
|
-
that cannot be represented in the target character set and
|
|
121
|
-
continue" is enabled in the conversion, or 0
|
|
122
|
-
otherwise.</p>
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
<p style="margin-left:11%;"><b>ICONV_SET_DISCARD_NON_IDENTICAL</b></p>
|
|
126
|
-
|
|
127
|
-
<p style="margin-left:22%;"><i>argument</i> should be a
|
|
128
|
-
<b>const int *</b>, pointing to an <b>int</b> value. A
|
|
129
|
-
non-zero value is used to enable "discard character
|
|
130
|
-
that cannot be represented in the target character set and
|
|
131
|
-
continue" in the conversion. A zero value disables
|
|
132
|
-
it.</p>
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
<p style="margin-left:11%;"><b>ICONV_GET_DISCARD_ILSEQ</b></p>
|
|
136
|
-
|
|
137
|
-
<p style="margin-left:22%;"><i>argument</i> should be an
|
|
138
|
-
<b>int *</b> which will receive 1 if both
|
|
139
|
-
"discard" behaviours are enabled in the
|
|
140
|
-
conversion, or 0 otherwise.</p>
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
<p style="margin-left:11%;"><b>ICONV_SET_DISCARD_ILSEQ</b></p>
|
|
144
|
-
|
|
145
|
-
<p style="margin-left:22%;"><i>argument</i> should be a
|
|
146
|
-
<b>const int *</b>, pointing to an <b>int</b> value. A
|
|
147
|
-
non-zero value is used to enable both "discard"
|
|
148
|
-
behaviours in the conversion. A zero value disables
|
|
149
|
-
them.</p>
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
<p style="margin-left:11%;"><b>ICONV_GET_FROM_SURFACE</b></p>
|
|
153
|
-
|
|
154
|
-
<p style="margin-left:22%;"><i>argument</i> should be an
|
|
155
|
-
<b>unsigned int *</b> which will receive the from-side
|
|
156
|
-
(input side) surface of the conversion.</p>
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
<p style="margin-left:11%;"><b>ICONV_SET_FROM_SURFACE</b></p>
|
|
160
|
-
|
|
161
|
-
<p style="margin-left:22%;"><i>argument</i> should be a
|
|
162
|
-
<b>const unsigned int *</b>, pointing to an <b>unsigned
|
|
163
|
-
int</b> value. This value is installed as the from-side
|
|
164
|
-
(input side) surface of the conversion. The value is a bit
|
|
165
|
-
mask. Zero denotes no surface. The value
|
|
166
|
-
<b>ICONV_SURFACE_EBCDIC_ZOS_UNIX</b> has an effect on EBCDIC
|
|
167
|
-
encodings: The EBCDIC newline 0x15 will get mapped to LF
|
|
168
|
-
instead of NEL.</p>
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
<p style="margin-left:11%;"><b>ICONV_GET_TO_SURFACE</b></p>
|
|
172
|
-
|
|
173
|
-
<p style="margin-left:22%;"><i>argument</i> should be an
|
|
174
|
-
<b>unsigned int *</b> which will receive the to-side (output
|
|
175
|
-
side) surface of the conversion.</p>
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
<p style="margin-left:11%;"><b>ICONV_SET_TO_SURFACE</b></p>
|
|
179
|
-
|
|
180
|
-
<p style="margin-left:22%;"><i>argument</i> should be a
|
|
181
|
-
<b>const unsigned int *</b>, pointing to an <b>unsigned
|
|
182
|
-
int</b> value. This value is installed as the to-side
|
|
183
|
-
(output side) surface of the conversion. The value is a bit
|
|
184
|
-
mask. Zero denotes no surface. The value
|
|
185
|
-
<b>ICONV_SURFACE_EBCDIC_ZOS_UNIX</b> has an effect on EBCDIC
|
|
186
|
-
encodings: LF, instead of NEL, will get mapped to the EBCDIC
|
|
187
|
-
newline 0x15.</p>
|
|
188
|
-
|
|
189
|
-
<h2>RETURN VALUE
|
|
190
|
-
<a name="RETURN VALUE"></a>
|
|
191
|
-
</h2>
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
<p style="margin-left:11%; margin-top: 1em">The
|
|
195
|
-
<b>iconvctl</b> function returns 0 if it succeeds. In case
|
|
196
|
-
of error, it sets <b>errno</b> and returns −1.</p>
|
|
197
|
-
|
|
198
|
-
<h2>ERRORS
|
|
199
|
-
<a name="ERRORS"></a>
|
|
200
|
-
</h2>
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
<p style="margin-left:11%; margin-top: 1em">The following
|
|
204
|
-
errors can occur, among others:</p>
|
|
205
|
-
|
|
206
|
-
<table width="100%" border="0" rules="none" frame="void"
|
|
207
|
-
cellspacing="0" cellpadding="0">
|
|
208
|
-
<tr valign="top" align="left">
|
|
209
|
-
<td width="11%"></td>
|
|
210
|
-
<td width="9%">
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
<p><b>EINVAL</b></p></td>
|
|
214
|
-
<td width="2%"></td>
|
|
215
|
-
<td width="35%">
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
<p>The request is invalid.</p></td>
|
|
219
|
-
<td width="43%">
|
|
220
|
-
</td></tr>
|
|
221
|
-
</table>
|
|
222
|
-
|
|
223
|
-
<h2>CONFORMING TO
|
|
224
|
-
<a name="CONFORMING TO"></a>
|
|
225
|
-
</h2>
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
<p style="margin-left:11%; margin-top: 1em">This function
|
|
229
|
-
is implemented only in GNU libiconv and not in other
|
|
230
|
-
<b>iconv</b> implementations. It is not backed by a
|
|
231
|
-
standard. You can test for its presence through
|
|
232
|
-
<b>(_LIBICONV_VERSION >= 0x0108)</b>.</p>
|
|
233
|
-
|
|
234
|
-
<h2>SEE ALSO
|
|
235
|
-
<a name="SEE ALSO"></a>
|
|
236
|
-
</h2>
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
<p style="margin-left:11%; margin-top: 1em"><b>iconv_open</b>(3)
|
|
241
|
-
<b>iconv</b>(3)</p>
|
|
242
|
-
<hr>
|
|
243
|
-
</body>
|
|
244
|
-
</html>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
.\" Copyright (c) Free Software Foundation, Inc.
|
|
2
|
-
.\"
|
|
3
|
-
.\" This is free documentation; you can redistribute it and/or
|
|
4
|
-
.\" modify it under the terms of the GNU General Public License as
|
|
5
|
-
.\" published by the Free Software Foundation; either version 3 of
|
|
6
|
-
.\" the License, or (at your option) any later version.
|
|
7
|
-
.\"
|
|
8
|
-
.\" References consulted:
|
|
9
|
-
.\" OpenGroup's Single Unix specification http://www.UNIX-systems.org/online.html
|
|
10
|
-
.\" POSIX 2001 draft6
|
|
11
|
-
.\"
|
|
12
|
-
.TH ICONV 1 "December 15, 2024" "GNU"
|
|
13
|
-
.SH NAME
|
|
14
|
-
iconv \- character set conversion
|
|
15
|
-
.SH SYNOPSIS
|
|
16
|
-
.nf
|
|
17
|
-
iconv [\fIOPTION\fP...] [\fB\-f\fP \fIencoding\fP] [\fB\-t\fP \fIencoding\fP] [\fIinputfile\fP ...]
|
|
18
|
-
iconv \fB\-l\fP
|
|
19
|
-
.fi
|
|
20
|
-
.SH DESCRIPTION
|
|
21
|
-
The \fBiconv\fP program converts text from one encoding to another encoding.
|
|
22
|
-
More precisely, it converts \fBfrom\fP the encoding given for the \fB\-f\fP
|
|
23
|
-
option \fBto\fP the encoding given for the \fB\-t\fP option. Either of these
|
|
24
|
-
encodings defaults to the encoding of the current locale. All the
|
|
25
|
-
\fIinputfile\fPs are read and converted in turn; if no \fIinputfile\fP is
|
|
26
|
-
given, the standard input is used. The converted text is printed to standard
|
|
27
|
-
output.
|
|
28
|
-
.PP
|
|
29
|
-
The encodings permitted are system dependent. For the libiconv implementation,
|
|
30
|
-
they are listed in the iconv_open(3) manual page.
|
|
31
|
-
.PP
|
|
32
|
-
Options controlling the input and output format:
|
|
33
|
-
.TP
|
|
34
|
-
\fB\-f\fP \fIencoding\fP, \fB\-\-from\-code=\fP\fIencoding\fP
|
|
35
|
-
Specifies the encoding of the input.
|
|
36
|
-
.TP
|
|
37
|
-
\fB\-t\fP \fIencoding\fP, \fB\-\-to\-code=\fP\fIencoding\fP
|
|
38
|
-
Specifies the encoding of the output.
|
|
39
|
-
.PP
|
|
40
|
-
Options controlling conversion problems:
|
|
41
|
-
.TP
|
|
42
|
-
\fB\-c\fP
|
|
43
|
-
When this option is given, characters that cannot be converted are silently
|
|
44
|
-
discarded, instead of leading to a conversion error.
|
|
45
|
-
.TP
|
|
46
|
-
\fB\-\-unicode\-subst=\fP\fIformatstring\fP
|
|
47
|
-
When this option is given, Unicode characters that cannot be represented in
|
|
48
|
-
the target encoding are replaced with a placeholder string that is constructed
|
|
49
|
-
from the given \fIformatstring\fP, applied to the Unicode code point. The
|
|
50
|
-
\fIformatstring\fP must be a format string in the same format as for the
|
|
51
|
-
.I printf
|
|
52
|
-
command or the
|
|
53
|
-
.I printf()
|
|
54
|
-
function, taking either no argument or exactly one unsigned integer argument.
|
|
55
|
-
.TP
|
|
56
|
-
\fB\-\-byte\-subst=\fP\fIformatstring\fP
|
|
57
|
-
When this option is given, bytes in the input that are not valid in the source
|
|
58
|
-
encoding are replaced with a placeholder string that is constructed from the
|
|
59
|
-
given \fIformatstring\fP, applied to the byte's value. The \fIformatstring\fP
|
|
60
|
-
must be a format string in the same format as for the
|
|
61
|
-
.I printf
|
|
62
|
-
command or the
|
|
63
|
-
.I printf()
|
|
64
|
-
function, taking either no argument or exactly one unsigned integer argument.
|
|
65
|
-
.TP
|
|
66
|
-
\fB\-\-widechar\-subst=\fP\fIformatstring\fP
|
|
67
|
-
When this option is given, wide characters in the input that are not valid in
|
|
68
|
-
the source encoding are replaced with a placeholder string that is constructed
|
|
69
|
-
from the given \fIformatstring\fP, applied to the byte's value. The
|
|
70
|
-
\fIformatstring\fP must be a format string in the same format as for the
|
|
71
|
-
.I printf
|
|
72
|
-
command or the
|
|
73
|
-
.I printf()
|
|
74
|
-
function, taking either no argument or exactly one unsigned integer argument.
|
|
75
|
-
.PP
|
|
76
|
-
Options controlling error output:
|
|
77
|
-
.TP
|
|
78
|
-
\fB\-s\fP, \fB\-\-silent\fP
|
|
79
|
-
When this option is given, error messages about invalid or unconvertible
|
|
80
|
-
characters are omitted, but the actual converted text is unaffected.
|
|
81
|
-
.PP
|
|
82
|
-
The \fBiconv \-l\fP or \fBiconv \-\-list\fP command lists the names of the
|
|
83
|
-
supported encodings, in a system dependent format. For the libiconv
|
|
84
|
-
implementation, the names are printed in upper case, separated by whitespace,
|
|
85
|
-
and alias names of an encoding are listed on the same line as the encoding
|
|
86
|
-
itself.
|
|
87
|
-
.SH ENVIRONMENT
|
|
88
|
-
Conversion from/to EBCDIC encodings can be modified in a specific way:
|
|
89
|
-
If the environment variable \fBICONV_EBCDIC_ZOS_UNIX\fP is set to a non-empty
|
|
90
|
-
value, the EBCDIC newline 0x15 will get mapped to LF instead of NEL.
|
|
91
|
-
.SH EXAMPLES
|
|
92
|
-
.TP
|
|
93
|
-
\fBiconv \-f ISO\-8859\-1 \-t UTF\-8\fP
|
|
94
|
-
converts input from the old West-European encoding ISO\-8859\-1 to Unicode.
|
|
95
|
-
.PP
|
|
96
|
-
.nf
|
|
97
|
-
\fBiconv \-f KOI8\-R \-\-byte\-subst="<0x%x>"\fP
|
|
98
|
-
\fB \-\-unicode\-subst="<U+%04X>"\fP
|
|
99
|
-
.fi
|
|
100
|
-
.RS
|
|
101
|
-
converts input from the old Russian encoding KOI8\-R to the locale encoding,
|
|
102
|
-
substituting an angle bracket notation with hexadecimal numbers for invalid
|
|
103
|
-
bytes and for valid but unconvertible characters.
|
|
104
|
-
.RE
|
|
105
|
-
.TP
|
|
106
|
-
\fBiconv \-\-list\fP
|
|
107
|
-
lists the supported encodings.
|
|
108
|
-
.SH "CONFORMING TO"
|
|
109
|
-
POSIX:2024
|
|
110
|
-
.SH "SEE ALSO"
|
|
111
|
-
.BR iconv_open (3),
|
|
112
|
-
.BR locale (7)
|