@cpp.js/package-iconv 1.0.0-beta.23 → 2.0.0-beta.1

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.
Files changed (158) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +1 -1
  3. package/cppjs.config.js +12 -16
  4. package/package.json +7 -11
  5. package/charset.xcframework/Info.plist +0 -50
  6. package/charset.xcframework/ios-arm64_arm64e/Headers/iconv.h +0 -243
  7. package/charset.xcframework/ios-arm64_arm64e/Headers/libcharset.h +0 -45
  8. package/charset.xcframework/ios-arm64_arm64e/Headers/localcharset.h +0 -137
  9. package/charset.xcframework/ios-arm64_arm64e/libcharset.a +0 -0
  10. package/charset.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/iconv.h +0 -243
  11. package/charset.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/libcharset.h +0 -45
  12. package/charset.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/localcharset.h +0 -137
  13. package/charset.xcframework/ios-arm64_arm64e_x86_64-simulator/libcharset.a +0 -0
  14. package/dist/prebuilt/Android-arm64-v8a/include/iconv.h +0 -243
  15. package/dist/prebuilt/Android-arm64-v8a/include/libcharset.h +0 -45
  16. package/dist/prebuilt/Android-arm64-v8a/include/localcharset.h +0 -137
  17. package/dist/prebuilt/Android-arm64-v8a/lib/libcharset.la +0 -41
  18. package/dist/prebuilt/Android-arm64-v8a/lib/libcharset.so +0 -0
  19. package/dist/prebuilt/Android-arm64-v8a/lib/libiconv.la +0 -41
  20. package/dist/prebuilt/Android-arm64-v8a/lib/libiconv.so +0 -0
  21. package/dist/prebuilt/Android-arm64-v8a/share/doc/iconv.1.html +0 -217
  22. package/dist/prebuilt/Android-arm64-v8a/share/doc/iconv.3.html +0 -255
  23. package/dist/prebuilt/Android-arm64-v8a/share/doc/iconv_close.3.html +0 -89
  24. package/dist/prebuilt/Android-arm64-v8a/share/doc/iconv_open.3.html +0 -352
  25. package/dist/prebuilt/Android-arm64-v8a/share/doc/iconv_open_into.3.html +0 -132
  26. package/dist/prebuilt/Android-arm64-v8a/share/doc/iconvctl.3.html +0 -244
  27. package/dist/prebuilt/Android-arm64-v8a/share/man/man1/iconv.1 +0 -112
  28. package/dist/prebuilt/Android-arm64-v8a/share/man/man3/iconv.3 +0 -129
  29. package/dist/prebuilt/Android-arm64-v8a/share/man/man3/iconv_close.3 +0 -31
  30. package/dist/prebuilt/Android-arm64-v8a/share/man/man3/iconv_open.3 +0 -260
  31. package/dist/prebuilt/Android-arm64-v8a/share/man/man3/iconv_open_into.3 +0 -47
  32. package/dist/prebuilt/Android-arm64-v8a/share/man/man3/iconvctl.3 +0 -112
  33. package/dist/prebuilt/Android-x86_64/include/iconv.h +0 -243
  34. package/dist/prebuilt/Android-x86_64/include/libcharset.h +0 -45
  35. package/dist/prebuilt/Android-x86_64/include/localcharset.h +0 -137
  36. package/dist/prebuilt/Android-x86_64/lib/libcharset.la +0 -41
  37. package/dist/prebuilt/Android-x86_64/lib/libcharset.so +0 -0
  38. package/dist/prebuilt/Android-x86_64/lib/libiconv.la +0 -41
  39. package/dist/prebuilt/Android-x86_64/lib/libiconv.so +0 -0
  40. package/dist/prebuilt/Android-x86_64/share/doc/iconv.1.html +0 -217
  41. package/dist/prebuilt/Android-x86_64/share/doc/iconv.3.html +0 -255
  42. package/dist/prebuilt/Android-x86_64/share/doc/iconv_close.3.html +0 -89
  43. package/dist/prebuilt/Android-x86_64/share/doc/iconv_open.3.html +0 -352
  44. package/dist/prebuilt/Android-x86_64/share/doc/iconv_open_into.3.html +0 -132
  45. package/dist/prebuilt/Android-x86_64/share/doc/iconvctl.3.html +0 -244
  46. package/dist/prebuilt/Android-x86_64/share/man/man1/iconv.1 +0 -112
  47. package/dist/prebuilt/Android-x86_64/share/man/man3/iconv.3 +0 -129
  48. package/dist/prebuilt/Android-x86_64/share/man/man3/iconv_close.3 +0 -31
  49. package/dist/prebuilt/Android-x86_64/share/man/man3/iconv_open.3 +0 -260
  50. package/dist/prebuilt/Android-x86_64/share/man/man3/iconv_open_into.3 +0 -47
  51. package/dist/prebuilt/Android-x86_64/share/man/man3/iconvctl.3 +0 -112
  52. package/dist/prebuilt/CMakeLists.txt +0 -44
  53. package/dist/prebuilt/Emscripten-x86_64/include/iconv.h +0 -243
  54. package/dist/prebuilt/Emscripten-x86_64/include/libcharset.h +0 -45
  55. package/dist/prebuilt/Emscripten-x86_64/include/localcharset.h +0 -137
  56. package/dist/prebuilt/Emscripten-x86_64/lib/libcharset.a +0 -0
  57. package/dist/prebuilt/Emscripten-x86_64/lib/libcharset.la +0 -41
  58. package/dist/prebuilt/Emscripten-x86_64/lib/libiconv.a +0 -0
  59. package/dist/prebuilt/Emscripten-x86_64/lib/libiconv.la +0 -41
  60. package/dist/prebuilt/Emscripten-x86_64/share/doc/iconv.1.html +0 -217
  61. package/dist/prebuilt/Emscripten-x86_64/share/doc/iconv.3.html +0 -255
  62. package/dist/prebuilt/Emscripten-x86_64/share/doc/iconv_close.3.html +0 -89
  63. package/dist/prebuilt/Emscripten-x86_64/share/doc/iconv_open.3.html +0 -352
  64. package/dist/prebuilt/Emscripten-x86_64/share/doc/iconv_open_into.3.html +0 -132
  65. package/dist/prebuilt/Emscripten-x86_64/share/doc/iconvctl.3.html +0 -244
  66. package/dist/prebuilt/Emscripten-x86_64/share/locale/af/LC_MESSAGES/libiconv.mo +0 -0
  67. package/dist/prebuilt/Emscripten-x86_64/share/locale/be/LC_MESSAGES/libiconv.mo +0 -0
  68. package/dist/prebuilt/Emscripten-x86_64/share/locale/bg/LC_MESSAGES/libiconv.mo +0 -0
  69. package/dist/prebuilt/Emscripten-x86_64/share/locale/ca/LC_MESSAGES/libiconv.mo +0 -0
  70. package/dist/prebuilt/Emscripten-x86_64/share/locale/cs/LC_MESSAGES/libiconv.mo +0 -0
  71. package/dist/prebuilt/Emscripten-x86_64/share/locale/da/LC_MESSAGES/libiconv.mo +0 -0
  72. package/dist/prebuilt/Emscripten-x86_64/share/locale/de/LC_MESSAGES/libiconv.mo +0 -0
  73. package/dist/prebuilt/Emscripten-x86_64/share/locale/el/LC_MESSAGES/libiconv.mo +0 -0
  74. package/dist/prebuilt/Emscripten-x86_64/share/locale/eo/LC_MESSAGES/libiconv.mo +0 -0
  75. package/dist/prebuilt/Emscripten-x86_64/share/locale/es/LC_MESSAGES/libiconv.mo +0 -0
  76. package/dist/prebuilt/Emscripten-x86_64/share/locale/et/LC_MESSAGES/libiconv.mo +0 -0
  77. package/dist/prebuilt/Emscripten-x86_64/share/locale/fi/LC_MESSAGES/libiconv.mo +0 -0
  78. package/dist/prebuilt/Emscripten-x86_64/share/locale/fr/LC_MESSAGES/libiconv.mo +0 -0
  79. package/dist/prebuilt/Emscripten-x86_64/share/locale/ga/LC_MESSAGES/libiconv.mo +0 -0
  80. package/dist/prebuilt/Emscripten-x86_64/share/locale/gl/LC_MESSAGES/libiconv.mo +0 -0
  81. package/dist/prebuilt/Emscripten-x86_64/share/locale/hr/LC_MESSAGES/libiconv.mo +0 -0
  82. package/dist/prebuilt/Emscripten-x86_64/share/locale/hu/LC_MESSAGES/libiconv.mo +0 -0
  83. package/dist/prebuilt/Emscripten-x86_64/share/locale/id/LC_MESSAGES/libiconv.mo +0 -0
  84. package/dist/prebuilt/Emscripten-x86_64/share/locale/it/LC_MESSAGES/libiconv.mo +0 -0
  85. package/dist/prebuilt/Emscripten-x86_64/share/locale/ja/LC_MESSAGES/libiconv.mo +0 -0
  86. package/dist/prebuilt/Emscripten-x86_64/share/locale/ka/LC_MESSAGES/libiconv.mo +0 -0
  87. package/dist/prebuilt/Emscripten-x86_64/share/locale/ko/LC_MESSAGES/libiconv.mo +0 -0
  88. package/dist/prebuilt/Emscripten-x86_64/share/locale/lt/LC_MESSAGES/libiconv.mo +0 -0
  89. package/dist/prebuilt/Emscripten-x86_64/share/locale/nl/LC_MESSAGES/libiconv.mo +0 -0
  90. package/dist/prebuilt/Emscripten-x86_64/share/locale/pl/LC_MESSAGES/libiconv.mo +0 -0
  91. package/dist/prebuilt/Emscripten-x86_64/share/locale/pt_BR/LC_MESSAGES/libiconv.mo +0 -0
  92. package/dist/prebuilt/Emscripten-x86_64/share/locale/rm/LC_MESSAGES/libiconv.mo +0 -0
  93. package/dist/prebuilt/Emscripten-x86_64/share/locale/ro/LC_MESSAGES/libiconv.mo +0 -0
  94. package/dist/prebuilt/Emscripten-x86_64/share/locale/ru/LC_MESSAGES/libiconv.mo +0 -0
  95. package/dist/prebuilt/Emscripten-x86_64/share/locale/sk/LC_MESSAGES/libiconv.mo +0 -0
  96. package/dist/prebuilt/Emscripten-x86_64/share/locale/sl/LC_MESSAGES/libiconv.mo +0 -0
  97. package/dist/prebuilt/Emscripten-x86_64/share/locale/sq/LC_MESSAGES/libiconv.mo +0 -0
  98. package/dist/prebuilt/Emscripten-x86_64/share/locale/sr/LC_MESSAGES/libiconv.mo +0 -0
  99. package/dist/prebuilt/Emscripten-x86_64/share/locale/sv/LC_MESSAGES/libiconv.mo +0 -0
  100. package/dist/prebuilt/Emscripten-x86_64/share/locale/tr/LC_MESSAGES/libiconv.mo +0 -0
  101. package/dist/prebuilt/Emscripten-x86_64/share/locale/uk/LC_MESSAGES/libiconv.mo +0 -0
  102. package/dist/prebuilt/Emscripten-x86_64/share/locale/vi/LC_MESSAGES/libiconv.mo +0 -0
  103. package/dist/prebuilt/Emscripten-x86_64/share/locale/wa/LC_MESSAGES/libiconv.mo +0 -0
  104. package/dist/prebuilt/Emscripten-x86_64/share/locale/zh_CN/LC_MESSAGES/libiconv.mo +0 -0
  105. package/dist/prebuilt/Emscripten-x86_64/share/locale/zh_TW/LC_MESSAGES/libiconv.mo +0 -0
  106. package/dist/prebuilt/Emscripten-x86_64/share/man/man1/iconv.1 +0 -112
  107. package/dist/prebuilt/Emscripten-x86_64/share/man/man3/iconv.3 +0 -129
  108. package/dist/prebuilt/Emscripten-x86_64/share/man/man3/iconv_close.3 +0 -31
  109. package/dist/prebuilt/Emscripten-x86_64/share/man/man3/iconv_open.3 +0 -260
  110. package/dist/prebuilt/Emscripten-x86_64/share/man/man3/iconv_open_into.3 +0 -47
  111. package/dist/prebuilt/Emscripten-x86_64/share/man/man3/iconvctl.3 +0 -112
  112. package/dist/prebuilt/iOS-iphoneos/include/iconv.h +0 -243
  113. package/dist/prebuilt/iOS-iphoneos/include/libcharset.h +0 -45
  114. package/dist/prebuilt/iOS-iphoneos/include/localcharset.h +0 -137
  115. package/dist/prebuilt/iOS-iphoneos/lib/libcharset.a +0 -0
  116. package/dist/prebuilt/iOS-iphoneos/lib/libcharset.la +0 -41
  117. package/dist/prebuilt/iOS-iphoneos/lib/libiconv.a +0 -0
  118. package/dist/prebuilt/iOS-iphoneos/lib/libiconv.la +0 -41
  119. package/dist/prebuilt/iOS-iphoneos/share/doc/iconv.1.html +0 -217
  120. package/dist/prebuilt/iOS-iphoneos/share/doc/iconv.3.html +0 -255
  121. package/dist/prebuilt/iOS-iphoneos/share/doc/iconv_close.3.html +0 -89
  122. package/dist/prebuilt/iOS-iphoneos/share/doc/iconv_open.3.html +0 -352
  123. package/dist/prebuilt/iOS-iphoneos/share/doc/iconv_open_into.3.html +0 -132
  124. package/dist/prebuilt/iOS-iphoneos/share/doc/iconvctl.3.html +0 -244
  125. package/dist/prebuilt/iOS-iphoneos/share/man/man1/iconv.1 +0 -112
  126. package/dist/prebuilt/iOS-iphoneos/share/man/man3/iconv.3 +0 -129
  127. package/dist/prebuilt/iOS-iphoneos/share/man/man3/iconv_close.3 +0 -31
  128. package/dist/prebuilt/iOS-iphoneos/share/man/man3/iconv_open.3 +0 -260
  129. package/dist/prebuilt/iOS-iphoneos/share/man/man3/iconv_open_into.3 +0 -47
  130. package/dist/prebuilt/iOS-iphoneos/share/man/man3/iconvctl.3 +0 -112
  131. package/dist/prebuilt/iOS-iphonesimulator/include/iconv.h +0 -243
  132. package/dist/prebuilt/iOS-iphonesimulator/include/libcharset.h +0 -45
  133. package/dist/prebuilt/iOS-iphonesimulator/include/localcharset.h +0 -137
  134. package/dist/prebuilt/iOS-iphonesimulator/lib/libcharset.a +0 -0
  135. package/dist/prebuilt/iOS-iphonesimulator/lib/libcharset.la +0 -41
  136. package/dist/prebuilt/iOS-iphonesimulator/lib/libiconv.a +0 -0
  137. package/dist/prebuilt/iOS-iphonesimulator/lib/libiconv.la +0 -41
  138. package/dist/prebuilt/iOS-iphonesimulator/share/doc/iconv.1.html +0 -217
  139. package/dist/prebuilt/iOS-iphonesimulator/share/doc/iconv.3.html +0 -255
  140. package/dist/prebuilt/iOS-iphonesimulator/share/doc/iconv_close.3.html +0 -89
  141. package/dist/prebuilt/iOS-iphonesimulator/share/doc/iconv_open.3.html +0 -352
  142. package/dist/prebuilt/iOS-iphonesimulator/share/doc/iconv_open_into.3.html +0 -132
  143. package/dist/prebuilt/iOS-iphonesimulator/share/doc/iconvctl.3.html +0 -244
  144. package/dist/prebuilt/iOS-iphonesimulator/share/man/man1/iconv.1 +0 -112
  145. package/dist/prebuilt/iOS-iphonesimulator/share/man/man3/iconv.3 +0 -129
  146. package/dist/prebuilt/iOS-iphonesimulator/share/man/man3/iconv_close.3 +0 -31
  147. package/dist/prebuilt/iOS-iphonesimulator/share/man/man3/iconv_open.3 +0 -260
  148. package/dist/prebuilt/iOS-iphonesimulator/share/man/man3/iconv_open_into.3 +0 -47
  149. package/dist/prebuilt/iOS-iphonesimulator/share/man/man3/iconvctl.3 +0 -112
  150. package/iconv.xcframework/Info.plist +0 -50
  151. package/iconv.xcframework/ios-arm64_arm64e/Headers/iconv.h +0 -243
  152. package/iconv.xcframework/ios-arm64_arm64e/Headers/libcharset.h +0 -45
  153. package/iconv.xcframework/ios-arm64_arm64e/Headers/localcharset.h +0 -137
  154. package/iconv.xcframework/ios-arm64_arm64e/libiconv.a +0 -0
  155. package/iconv.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/iconv.h +0 -243
  156. package/iconv.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/libcharset.h +0 -45
  157. package/iconv.xcframework/ios-arm64_arm64e_x86_64-simulator/Headers/localcharset.h +0 -137
  158. 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
- &minus; 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
- &lt;iconv.h&gt;</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 &minus;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 &gt;= 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
- &minus; 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
- &lt;iconv.h&gt;</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 &quot;discard invalid
103
- multibyte sequence from the input and continue&quot; 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 &quot;discard invalid
112
- multibyte sequence from the input and continue&quot; 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 &quot;discard character
120
- that cannot be represented in the target character set and
121
- continue&quot; 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 &quot;discard character
130
- that cannot be represented in the target character set and
131
- continue&quot; 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
- &quot;discard&quot; 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 &quot;discard&quot;
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 &minus;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 &gt;= 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>
@@ -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)