Skip to content

Commit 0b480b2

Browse files
committed
Upgrade to version 1.17
1 parent d0fb033 commit 0b480b2

File tree

276 files changed

+10291
-940
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

276 files changed

+10291
-940
lines changed

ChangeLog

+260-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,262 @@
1+
2022-05-15 Bruno Haible <[email protected]>
2+
3+
Switch to libtool 2.4.7.
4+
* m4/libtool.m4: Update from libtool-2.4.7, with modifications:
5+
2008-04-06 Bruno Haible <[email protected]>
6+
* m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
7+
CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
8+
to ${CONFIG_SHELL}.
9+
* m4/ltoptions.m4: Likewise.
10+
* m4/ltsugar.m4: Likewise.
11+
* m4/ltversion.m4: Likewise.
12+
* m4/lt~obsolete.m4: Likewise.
13+
* build-aux/ltmain.sh: Update from libtool-2.4.7, with modifications:
14+
2017-07-15 Bruno Haible <[email protected]>
15+
Allow building statically linked binaries, through
16+
LDFLAGS="-static". Apply patch from
17+
<https://lists.gnu.org/archive/html/bug-libtool/2017-07/msg00000.html>.
18+
* build-aux/ltmain.sh (func_mode_help, func_mode_link): In the
19+
link mode, accept option '-static-uninstalled-libs' in place of
20+
'-static', and make '-static' an equivalent of '-all-static'.
21+
22+
2022-04-13 Bruno Haible <[email protected]>
23+
24+
Fix undefined behaviour.
25+
* tests/test-shiftseq.c (main2): Make input array larger.
26+
27+
2022-02-12 Bruno Haible <[email protected]>
28+
29+
Update translations.
30+
* po/ro.po: Update Romanian translations.
31+
* po/wa.po: Update Walloon translations.
32+
33+
2022-02-12 Bruno Haible <[email protected]>
34+
35+
Prepare for version 1.17.
36+
* configure.ac: Bump version number to 1.17.
37+
* include/iconv.h.in (_LIBICONV_VERSION): Likewise.
38+
* lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 9:0:7.
39+
* src/iconv.c (print_version): Update copyright year.
40+
* windows/iconv.rc: Likewise.
41+
* windows/libiconv.rc: Likewise.
42+
* README: Update download link.
43+
44+
2022-02-12 Bruno Haible <[email protected]>
45+
46+
Update source file list (regression 2022-01-23).
47+
* lib/Makefile.in (SOURCE_FILES): Add encodings_zos.def, ebcdic*.h.
48+
(GENERATED_FILES): Add aliases_zos.h, canonical_zos.h.
49+
* tests/Makefile.in (SOURCE_FILES): Add IBM-*.TXT.
50+
51+
2022-01-23 Bruno Haible <[email protected]>
52+
53+
Update NEWS.
54+
* NEWS: Mention the EBCDIC encodings.
55+
56+
2022-01-23 Bruno Haible <[email protected]>
57+
58+
Optimize the EBCDIC table sizes.
59+
* lib/converters.h (DEDUPLICATE_TABLES): New macro.
60+
* lib/ebcdic1025.h: Deduplicate tables with ebcdic880.h.
61+
* lib/ebcdic1123.h: Deduplicate tables with ebcdic1025.h.
62+
* lib/ebcdic1132.h: Deduplicate tables with ebcdic838.h.
63+
* lib/ebcdic1153.h: Deduplicate tables with ebcdic870.h.
64+
* lib/ebcdic1154.h: Deduplicate tables with ebcdic880.h.
65+
* lib/ebcdic1155.h: Deduplicate tables with ebcdic1026.h.
66+
* lib/ebcdic1156.h: Deduplicate tables with ebcdic1112.h.
67+
* lib/ebcdic1157.h: Deduplicate tables with ebcdic1122.h.
68+
* lib/ebcdic1158.h: Deduplicate tables with ebcdic1154.h, ebcdic1123.h.
69+
* lib/ebcdic1160.h: Deduplicate tables with ebcdic838.h.
70+
* lib/ebcdic1164.h: Deduplicate tables with ebcdic1130.h.
71+
* lib/ebcdic1165.h: Deduplicate tables with ebcdic870.h.
72+
* lib/ebcdic1166.h: Deduplicate tables with ebcdic1154.h.
73+
* lib/ebcdic4971.h: Deduplicate tables with ebcdic875.h.
74+
* lib/ebcdic12712.h: Deduplicate tables with ebcdic424.h.
75+
76+
2022-01-23 Bruno Haible <[email protected]>
77+
78+
New EBCDIC encodings.
79+
Reported by Ulrich Schwab and Calvin Buckley via Jack Woehr.
80+
* NOTES: Mention how to enable EBCDIC encodings.
81+
* tests/IBM-*.TXT: New files.
82+
* tools/8bit_tab_to_h.c (main): Emit copyright header with year 2022.
83+
* tools/Makefile: Add rules for generating ebcdic*.h.
84+
* lib/ebcdic*.h: New files, automatically generated by tools/Makefile.
85+
* lib/ebcdic838.h: Tweak reverse mapping manually.
86+
* lib/ebcdic1160.h: Likewise.
87+
* lib/converters.h: Include all ebcdic*.h.
88+
* lib/encodings_zos.def: New file.
89+
* lib/genaliases2.c: Include encodings_zos.def.
90+
* lib/genflags.c: Likewise.
91+
* Makefile.devel (lib/aliases_zos.h lib/canonical_zos.h): New rule.
92+
(lib/flags.h, totally-clean): Update.
93+
* lib/aliases2.h: Include aliases_zos.h.
94+
* lib/iconv.c (USE_ZOS): New macro.
95+
Include encodings_zos.def, canonical_zos.h.
96+
* README, man/iconv_open.3: Document the IBM-* encodings.
97+
* tests/Makefile.in (check-extra-yes): Also test the EBCDIC encodings.
98+
99+
2022-01-04 Bruno Haible <[email protected]>
100+
101+
Update after gnulib changed.
102+
* gnulib-local/m4/alloca.m4 (gl_FUNC_ALLOCA): Set GL_GENERATE_ALLOCA_H
103+
instead of ALLOCA_H. Drop AC_SUBST and AM_CONDITIONAL invocations.
104+
105+
2021-09-19 Bruno Haible <[email protected]>
106+
107+
tests: Avoid check-subst failures in QEMU user-mode environments.
108+
* Makefile.devel (GNULIB_MODULES): Add stdbool.
109+
(gnulib-imported-files): Copy also tests/qemu.h.
110+
* tests/is-native.c: New file.
111+
* tests/Makefile.in (is-native, is-native.@OBJEXT@): New targets.
112+
(clean): Remove the 'is-native' program.
113+
(SOURCE_FILES): Add is-native.c.
114+
(IMPORTED_FILES): Add qemu.h.
115+
* tests/check-subst: Invoke 'locale charmap' only in native
116+
environments.
117+
118+
2021-06-27 Bruno Haible <[email protected]>
119+
120+
README: Update.
121+
Reported at <https://savannah.gnu.org/bugs/?60837>.
122+
* README: Overhaul the paragraph that mentions iconv.m4.
123+
124+
2021-06-06 Bruno Haible <[email protected]>
125+
126+
gnulib-local: Put real license notice into the source files.
127+
* gnulib-local/lib/alloca.in.h: Use an LGPLv2+ notice.
128+
129+
2021-02-28 Bruno Haible <[email protected]>
130+
131+
Update DEPENDENCIES.
132+
* DEPENDENCIES: List the normal dependencies of a package with an
133+
Autoconf-generated configure file.
134+
135+
2021-02-07 Bruno Haible <[email protected]>
136+
137+
Support creating shared libraries on MidnightBSD.
138+
Patch from <https://savannah.gnu.org/patch/?10007>.
139+
* m4/libtool.m4: Treat MidnightBSD like FreeBSD.
140+
* build-aux/ltmain.sh: Likewise.
141+
142+
2021-01-31 Bruno Haible <[email protected]>
143+
144+
Update after gnulib changed on 2020-08-26.
145+
* configure.ac: Test $iconv_arg1, not $am_cv_proto_iconv_arg1.
146+
147+
2021-01-31 Bruno Haible <[email protected]>
148+
149+
Switch to autoconf 2.71.
150+
* autogen.sh: Update comment.
151+
* configure.ac: Use AS_HELP_STRING instead of AC_HELP_STRING. Invoke
152+
AC_C_BIGENDIAN instead of CL_WORDS_LITTLEENDIAN.
153+
* m4/eilseq.m4: Require Autoconf >= 2.61.
154+
(AC_EILSEQ): Improve quoting. Use AC_COMPUTE_INT instead of
155+
_AC_COMPUTE_INT.
156+
* m4/endian.m4: Remove file.
157+
* Makefile.in (SOURCE_FILES): Remove it.
158+
159+
2020-12-08 Bruno Haible <[email protected]>
160+
161+
Switch to autoconf 2.70.
162+
* Makefile.devel (AUTOCONF, AUTOHEADER): Remove '-2.69' suffix.
163+
* HACKING: Remove sentence about symbolic links.
164+
* autogen.sh: Update comment.
165+
166+
2020-08-31 Bruno Haible <[email protected]>
167+
168+
Fix some -Wcast-qual warning, reported by clang.
169+
* lib/iconv.c (compare_by_name): Add more 'const'.
170+
(iconv_canonicalize): Cast value to 'unsigned char', not pointer to 'unsigned char *'.
171+
* lib/iconv_open1.h: Likewise.
172+
173+
2020-08-30 Bruno Haible <[email protected]>
174+
175+
Make sure that build-aux/compile is in the tarball.
176+
* autogen.sh: Fetch also 'build-aux/compile' through gnulib-tool.
177+
* Makefile.devel (srclib/Makefile.in): Don't fetch nor delete
178+
'build-aux/compile'.
179+
* Makefile.in (AUTOMAKE_IMPORTED_FILES): Remove build-aux/compile.
180+
(IMPORTED_FILES): Add build-aux/compile.
181+
182+
2020-08-29 Bruno Haible <[email protected]>
183+
184+
Update after gnulib changed.
185+
* configure.ac (AC_PREREQ): Bump minimum Autoconf version to 2.64.
186+
187+
2020-08-06 Bruno Haible <[email protected]>
188+
189+
Avoid a GCC warning with GCC >= 7.
190+
Reported by Reini Urban <[email protected]>
191+
in <https://savannah.gnu.org/bugs/?58903>.
192+
* lib/gentranslit.c (main): Reset i to 0 each time p gets a new value.
193+
Add assertion about i's possible values.
194+
195+
2020-04-05 Bruno Haible <[email protected]>
196+
197+
Fix an autogen.sh failure (regression from 2016-12-04).
198+
Reported by Petr Ovtchenkov <[email protected]> in
199+
<https://lists.gnu.org/archive/html/bug-gnu-libiconv/2020-04/msg00003.html>.
200+
* autogen.sh: Invoke also the Makefile target srclib/Makefile.in, so as
201+
to get build-aux/install-sh. Finish the "copy files" phase before recursing
202+
through the subpackages tree through Makefile.devel.
203+
* Makefile.devel: Reorder targets.
204+
205+
2020-04-04 Bruno Haible <[email protected]>
206+
207+
Don't use LGPLv3.
208+
* gnulib-local/modules/mbstate (License): Set to LGPLv2+.
209+
210+
2020-04-04 Bruno Haible <[email protected]>
211+
212+
Change the license of the library from LGPL 2.0 to LGPL 2.1.
213+
* COPYING.LIB: Upgrade to LGPL 2.1.
214+
215+
2019-12-23 Bruno Haible <[email protected]>
216+
217+
Do export the symbol 'locale_charset' (needed by GNU bash).
218+
* lib/Makefile.in (DEFS): Define also BUILDING_LIBCHARSET.
219+
220+
2019-09-01 Bruno Haible <[email protected]>
221+
222+
build: Add support for shallow-cloning of subdirectories.
223+
* gitsub.sh (func_usage): Document allowed git options with 'git pull'.
224+
(func_pull): Accept GIT_OPTIONS argument.
225+
(pull): Parse git options before complaining about too many arguments.
226+
Pass the git options to func_pull.
227+
228+
2019-07-05 Bruno Haible <[email protected]>
229+
230+
Don't export the symbol 'aliases_lookup' on non-ELF platforms.
231+
* Makefile.devel (lib/aliases.h, lib/aliases_sysaix.h,
232+
lib/aliases_syshpux.h, lib/aliases_sysosf1.h, lib/aliases_syssolaris.h):
233+
Add a 'static' keyword in front of the declaration of aliases_lookup.
234+
235+
2019-07-02 Bruno Haible <[email protected]>
236+
237+
Update to current gnulib.
238+
* Makefile.devel (GNULIB_MODULES): Add lib-symbol-visibility.
239+
(srclib/Makefile.gnulib): Copy codeset.m4.
240+
* srclib/Makefile.am (AM_CFLAGS): Initialize.
241+
242+
2019-07-02 Bruno Haible <[email protected]>
243+
244+
Drop unused macro gl_GLIBC21.
245+
* autogen.sh: Don't copy glibc21.m4.
246+
247+
2019-05-22 Bruno Haible <[email protected]>
248+
249+
Fix comment.
250+
Reported by Paul Hardy <[email protected]>.
251+
* lib/jisx0213.h: Fix comment about the underlying standard version.
252+
253+
2019-05-11 Bruno Haible <[email protected]>
254+
255+
Update bug reporting instructions.
256+
* README: Tell users to report bugs in the bug tracker or by email.
257+
* src/iconv.c (usage): Likewise.
258+
(print_version): Move URL out of translatable string.
259+
1260
2019-04-26 Bruno Haible <[email protected]>
2261

3262
Update translations.
@@ -17,7 +276,7 @@
17276
2019-04-26 Bruno Haible <[email protected]>
18277

19278
Prepare for version 1.16.
20-
* configure.ac: Bump version number to 1.15.
279+
* configure.ac: Bump version number to 1.16.
21280
* include/iconv.h.in (_LIBICONV_VERSION): Likewise.
22281
* lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 8:1:6.
23282
* src/iconv.c (print_version): Update copyright year.

HACKING

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ You will need reasonably recent versions of the build tools:
1111
+ Homepage:
1212
https://gcc.gnu.org/
1313

14-
* GNU automake
14+
* GNU automake 1.16.x
1515
+ Homepage:
1616
https://www.gnu.org/software/automake/
1717

18-
* GNU autoconf
18+
* GNU autoconf 2.69 or newer
1919
+ Homepage:
2020
https://www.gnu.org/software/autoconf/
2121

Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,12 @@ CFLAGS = $(CFLAGS) -DNDEBUG -DWIN32 -D_WIN32_WINNT=$(WINVER) -DWINVER=$(WINVER)
4141
CFLAGS = $(CFLAGS) -D_CMSC_VERSION=$(CMSC_VERSION)
4242
!ENDIF
4343
CFLAGS = $(CFLAGS) -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE $(EXTRA_CFLAGS)
44-
CFLAGS = $(CFLAGS) -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DNO_XMALLOC -DHAVE_CONFIG_H
44+
CFLAGS = $(CFLAGS) -DIN_LIBRARY -DNO_XMALLOC -DHAVE_CONFIG_H
45+
!IF DEFINED(_RELOCATABLE)
46+
CFLAGS = $(CFLAGS) -DENABLE_RELOCATABLE=1
4547
CFLAGS = $(CFLAGS) -Dset_relocation_prefix=libiconv_set_relocation_prefix
4648
CFLAGS = $(CFLAGS) -Drelocate=libiconv_relocate -Drelocate2=libiconv_relocate2
49+
!ENDIF
4750

4851
PROJECT = iconv
4952
!IF DEFINED(_STATIC)

NEWS

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
New in 1.17:
2+
* The libiconv library is now licensed under the LGPL version 2.1, instead of
3+
the LGPL version 2.0. The iconv program continues to be licensed under GPL
4+
version 3.
5+
* Added converters for many single-byte EBCDIC encodings:
6+
IBM-{037,273,277,278,280,282,284,285,297,423,424,425,500,838,870,871,875},
7+
IBM-{880,905,924,1025,1026,1047,1097,1112,1122,1123,1130,1132,1137,1140},
8+
IBM-{1141,1142,1143,1144,1145,1146,1147,1148,1149,1153,1154,1155,1156,1157},
9+
IBM-{1158,1160,1164,1165,1166,4971,12712,16804}.
10+
They are available through the configure option '--enable-extra-encodings'.
11+
112
New in 1.16:
213
* The preloadable library has been removed.
314

NOTES

+3-1
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,9 @@ A: No, they are not in use any more. Supporting ISO-646 variants is pointless
328328
since ISO-8859-* have been adopted.
329329

330330
Q: Support EBCDIC ?
331-
A: No!
331+
A: Available through --enable-extra-encodings.
332+
Why? Because several people (Ulrich Schwab, Calvin Buckley) have shown
333+
interest in these encodings, by preparing forks of GNU libiconv.
332334

333335
Q: How do I add a new character set?
334336
A: 1. Explain the "why" in this file, above.

README

+29-11
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,24 @@ support for a few extra encodings:
7272
TDS565
7373
Platform specifics
7474
ATARIST, RISCOS-LATIN1
75+
EBCDIC compatible (not ASCII compatible, very rarely used)
76+
European languages
77+
IBM-{037,273,277,278,280,282,284,285,297,423,500,870,871,875,880},
78+
IBM-{905,924,1025,1026,1047,1112,1122,1123,1140,1141,1142,1143},
79+
IBM-{1144,1145,1146,1147,1148,1149,1153,1154,1155,1156,1157,1158},
80+
IBM-{1165,1166,4971}
81+
Semitic languages
82+
IBM-{424,425,12712,16804}
83+
Persian
84+
IBM-1097
85+
Thai
86+
IBM-{838,1160}
87+
Laotian
88+
IBM-1132
89+
Vietnamese
90+
IBM-{1130,1164}
91+
Indic languages
92+
IBM-1137
7593

7694
It can convert from any of these encodings to any other, through Unicode
7795
conversion.
@@ -115,16 +133,14 @@ This library installs:
115133

116134
To use it, simply #include <iconv.h> and use the functions.
117135

118-
To use it in an autoconfiguring package:
119-
- If you don't use automake, append m4/iconv.m4 to your aclocal.m4
120-
file.
121-
- If you do use automake, add m4/iconv.m4 to your m4 macro repository.
136+
To use it in a package that uses GNU autoconf and GNU automake:
137+
- Use gnulib-tool to import the Gnulib module 'iconv'. It consists
138+
of a couple of *.m4 files (iconv.m4 and its dependencies) and a
139+
file 'build-aux/config.rpath'.
122140
- Add to the link command line of libraries and executables that use
123141
the functions the placeholder @LIBICONV@ (or, if using libtool for
124-
the link, @LTLIBICONV@). If you use automake, the right place for
142+
the link, @LTLIBICONV@). In Makefile.am files, the right place for
125143
these additions are the *_LDADD variables.
126-
Note that 'iconv.m4' is also part of GNU gnulib, available through
127-
the gnulib module 'iconv'.
128144

129145

130146
Copyright
@@ -139,17 +155,19 @@ The iconv _program_ and the documentation are under GPL, see file COPYING.
139155
Download
140156
--------
141157

142-
https://ftp.gnu.org/gnu/libiconv/libiconv-1.16.tar.gz
158+
https://ftp.gnu.org/gnu/libiconv/libiconv-1.17.tar.gz
143159

144160
Homepage
145161
--------
146162

147163
https://www.gnu.org/software/libiconv/
148164

149-
Bug reports to
150-
--------------
165+
Bug reports
166+
-----------
151167

152-
168+
Report bugs
169+
- in the bug tracker at <https://savannah.gnu.org/projects/libiconv>
170+
- or by email to <[email protected]>.
153171

154172

155173
Bruno Haible <[email protected]>

0 commit comments

Comments
 (0)