INSTALL.windows: Fix MSVC instructions.
[libiconv.git] / ChangeLog
blob93c2fad92c0b3323b7670a5463a06f3258824e50
1 2024-05-23  Bruno Haible  <bruno@clisp.org>
3         INSTALL.windows: Fix MSVC instructions.
4         * INSTALL.windows: Mention the tools needed for 'windres'.
6 2024-04-04  Bruno Haible  <bruno@clisp.org>
8         Fix macro file 'serial' numbers for 'aclocal --install'.
9         * gnulib-local/m4/alloca.m4: Make 'serial' effective. Set value to 100,
10         in order to override gnulib's alloca.m4.
12 2023-12-30  Bruno Haible  <bruno@clisp.org>
14         Switch to autoconf 2.72.
15         * autogen.sh: Update comment.
17 2023-09-18  Bruno Haible  <bruno@clisp.org>
19         Fix shared library support on Android.
20         Patch from <https://savannah.gnu.org/patch/index.php?10393>.
21         * m4/libtool.m4: On Android, fix library_names_spec and
22         hardcode_libdir_flag_spec.
24 2023-09-16  Bruno Haible  <bruno@clisp.org>
26         Fix a misnomer.
27         * include/export.h (LIBICONV_SHLIB_EXPORTED): Renamed from
28         LIBICONV_DLL_EXPORTED. Prefer the term "shared library", since the term
29         "DLL" applies only to Windows.
30         * Makefile.devel (include/iconv.h.build.in): Insert
31         LIBICONV_SHLIB_EXPORTED instead of LIBICONV_DLL_EXPORTED.
32         * configure.ac (DLL_VARIABLE): Update comment.
33         * lib/Makefile.in (DEFS): Update comment.
34         * woe32dll/export.h: Update comment.
36 2023-09-13  Bruno Haible  <bruno@clisp.org>
38         Simplify the library: Don't compile relocatable.c any more.
39         The library does not need relocatable.h any more since 2018-09-22.
40         * lib/relocatable.h: Remove file.
41         * lib/relocatable.c: Remove file.
42         * lib/compat.c: New file.
43         * lib/Makefile.in (DEFS): Don't define LIBDIR, BUILDING_DLL,
44         ENABLE_RELOCATABLE, IN_LIBRARY, INSTALLDIR, NO_XMALLOC,
45         set_relocation_prefix, relocate, relocate2.
46         (SOURCES): Remove relocatable.c. Add compat.c.
47         (OBJECTS): Remove relocatable.lo. Add compat.lo.
48         (localcharset.lo): Update dependencies.
49         (relocatable.lo): Remove rule.
50         (compat.lo): Add rule.
51         (SOURCE_FILES): Remove relocatable.h, relocatable.c. Add compat.c.
53 2023-09-07  Bruno Haible  <bruno@clisp.org>
55         Sync woe32dll/export.h with GNU libunistring and GNU gettext.
56         * woe32dll/export.h: Update comments.
57         (IMP): Define correctly for 64-bit Windows platforms.
59 2023-09-06  Bruno Haible  <bruno@clisp.org>
61         Don't export symbols from static MSVC .obj files.
62         Suggested by Dmitry Bely <dmitry.bely@gmail.com> in
63         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2023-08/msg00002.html>.
64         * include/export.h: Add a copyright notice. Set LIBICONV_DLL_EXPORTED to
65         empty on MSVC when DLL_EXPORT is not defined.
66         * Makefile.devel (include/iconv.h.build.in): Filter out the second
67         copyright notice.
68         * configure.ac (DLL_VARIABLE): Test DLL_EXPORT, not _DLL.
69         * lib/relocatable.h: From gnulib:
70         (RELOCATABLE_DLL_EXPORTED): Don't use __declspec(dllexport) when
71         creating static .obj files with MSVC.
73 2023-08-30  Bruno Haible  <bruno@clisp.org>
75         Recognize the *-*-windows* config triplets introduced on 2023-06-26.
76         * configure.ac: Treat windows* as equivalent to mingw*.
78 2023-06-29  Bruno Haible  <bruno@clisp.org>
80         Update the installation instructions for Windows.
81         * INSTALL.windows: Add a note about MSYS2.
83 2023-05-29  Bruno Haible  <bruno@clisp.org>
85         GB18030: Help transitioning away from PUA code points.
86         * lib/gb18030ext.h (gb18030_2005_ext_wctomb): Remove function.
87         (gb18030ext_wctomb): Renamed from gb18030_2022_ext_wctomb.
88         * lib/gb18030uni.h (gb18030_2005_uni_wctomb): Map 6 Ext-B code points to
89         4-bytes sequences.
90         (gb18030_2022_uni_wctomb): Small refactoring.
91         * lib/gb18030_2005.h (gb18030_2005_pua2charset): Map 6 PUA code points
92         to 4-bytes sequences instead of 2-bytes sequences.
93         (gb18030_2005_wctomb): Update accordingly. Invoke gb18030ext_wctomb
94         instead of gb18030_2005_ext_wctomb.
95         * lib/gb18030_2022.h (gb18030_2022_wctomb): Invoke gb18030ext_wctomb
96         instead of gb18030_2022_ext_wctomb.
97         * tests/GB18030-2005.IRREVERSIBLE.TXT: Update the inverse mappings of 6
98         Ext-B code points and 6 PUA code points.
99         * NEWS: Mention it.
101 2023-05-24  Bruno Haible  <bruno@clisp.org>
103         man pages: List a fifth condition when iconv(3) may stop.
104         Based on the patch to the man-pages project
105         <https://marc.info/?l=linux-man&m=168496625522371&w=2> =
106         <https://lore.kernel.org/linux-man/2f9c4dbd-7aa6-fc7a-f126-453603ef695e@gmail.com/T/#m25e33d4defa1118e5c84951790f0319360abf9d4>
107         * man/iconv.3: List a fifth condition.
109 2023-05-24  Bruno Haible  <bruno@clisp.org>
111         man pages: Use man page section title from groff or the distro.
112         Reported by Mike Fulton <mikefultonpersonal@gmail.com> in
113         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2023-04/msg00027.html>.
114         * man/*.[13]: Remove section title "Linux Programmer's Manual".
116 2023-05-21  Bruno Haible  <bruno@clisp.org>
118         Support creating shared libraries on Hurd/x86_64.
119         Patch from
120         <https://lists.gnu.org/archive/html/bug-hurd/2023-05/msg00086.html>.
121         * m4/libtool.m4 (_LT_ENABLE_LOCK): Treat Hurd/x86_64 like
122         Linux/x86_64.
124 2023-05-21  Bruno Haible  <bruno@clisp.org>
126         Fix link error regarding _libiconv_version on MSVC in C++ mode.
127         Reported at <https://savannah.gnu.org/bugs/?64227>.
128         * include/iconv.h.in (_libiconv_version): Enclose in an extern "C"
129         block.
131 2023-05-20  Bruno Haible  <bruno@clisp.org>
133         Implement GB18030 version 2022.
134         * lib/encodings.def (GB18030): Add alias GB18030:2005.
135         (GB18030:2022): New encoding.
136         * lib/gb18030ext.h (gb18030_2005_ext_2uni_pagefe): Renamed from
137         gb18030ext_2uni_pagefe.
138         (gb18030_2022_ext_2uni_pagefe): New array.
139         (gb18030_2005_ext_mbtowc): Renamed from gb18030ext_mbtowc.
140         (gb18030_2022_ext_mbtowc): New function.
141         (gb18030_2005_ext_wctomb): Renamed from gb18030ext_wctomb.
142         (gb18030_2022_ext_wctomb): New function.
143         * lib/gb18030uni.h (gb18030_2022_charset2uni_pua1,
144         gb18030_2022_charset2uni_pua2): New arrays.
145         (gb18030_2005_uni_mbtowc): Renamed from gb18030uni_mbtowc.
146         (gb18030_2022_uni_mbtowc): New function.
147         (gb18030_2022_uni2charset_pua1, gb18030_2022_uni2charset_pua2): New
148         arrays.
149         (gb18030_2005_uni_wctomb): Renamed from gb18030uni_wctomb.
150         (gb18030_2022_uni_wctomb): New function.
151         * lib/gb18030_2005.h: Renamed from lib/gb18030.h. Update comments.
152         (gb18030_2005_mbtowc): Renamed from gb18030_mbtowc.
153         (gb18030_2005_pua2charset): Renamed from gb18030_pua2charset.
154         (gb18030_2005_wctomb): Renamed from gb18030_wctomb.
155         * lib/gb18030_2022.h: New file, based on lib/gb18030_2005.h.
156         * lib/converters.h: Don't include gb18030.h. Include gb18030_2005.h,
157         gb18030_2022.h.
158         * lib/Makefile.in (SOURCE_FILES): Remove gb18030.h. Add gb18030_2005.h,
159         gb18030_2022.h.
160         * tests/GB18030-2005-BMP.TXT: Renamed from tests/GB18030-BMP.TXT.
161         * tests/GB18030-2005.IRREVERSIBLE.TXT: Renamed from
162         tests/GB18030.IRREVERSIBLE.TXT.
163         * tests/GB18030-2022-BMP.TXT: New file.
164         * tests/Makefile.in (check): Test GB18030:2005 instead of GB18030. Also
165         test GB18030:2022.
166         (clean): Don't remove GB18030.TXT. Instead, remove GB18030-2005.TXT and
167         GB18030-2022.TXT.
168         (SOURCE_FILES): Update. Add GB18030-2022-BMP.TXT.
169         * README: Mention the new encoding.
170         * man/iconv_open.3: Likewise.
171         * NEWS: Likewise.
173 2023-05-19  Bruno Haible  <bruno@clisp.org>
175         Make the compiler used by Makefile.devel customizable.
176         Reported by Mike Fulton <mikefultonpersonal@gmail.com> in
177         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2023-05/msg00006.html>.
178         * Makefile.devel: Require GNU make.
179         (CC): Use value from the environment, if set and non-empty.
180         (CFLAGS): Use value from the environment, if set.
181         * autogen.sh (GMAKE): New variable.
182         Use it for executing Makefile.devel.
184 2023-05-17  Bruno Haible  <bruno@clisp.org>
186         On z/OS, allow charset tagging of temporary shell scripts.
187         Reported by Mike Fulton <mikefultonpersonal@gmail.com> in
188         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2023-05/msg00002.html>.
189         * lib/genaliases.c (BINARY_MODE): New macro.
190         (main): Use it instead of "b".
192 2023-05-12  Bruno Haible  <bruno@clisp.org>
194         Integrate the last change.
195         * src/Makefile.in (SOURCE_FILES): Add zos-tag.h.
196         * tests/Makefile.in (SOURCE_FILES): Add check-tag.
197         * NEWS: Mention the new functionality.
199 2023-05-12  Mike Fulton  <mikefultonpersonal@gmail.com>
201         On z/OS, set a charset tag on iconv's output file.
202         For the concept of charset tags as external metadata on z/OS files, see
203         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2023-04/msg00021.html>.
204         * src/zos-tag.h: New file.
205         * src/iconv.c: Include zos-tag.h.
206         (convert): Add a 'tocode' parameter. On z/OS, turn off auto-conversion
207         and tag the output file.
208         (main): Update callers.
209         * tests/check-ebcdic: On z/OS, make all test files initially untagged.
210         * tests/check-tag: New file.
211         * tests/Makefile.in (check): Pass the host_os to check-ebcdic. Invoke
212         check-tag.
214 2023-04-03  Bruno Haible  <bruno@clisp.org>
216         Fix genflags compilation error.
217         * lib/genflags.c (ICONV_SURFACE_EBCDIC_ZOS_UNIX): New macro, copied from
218         include/iconv.h.in.
220         Allow overriding the newline conversion for EBCDIC encodings.
221         Reported by Mike Fulton <mikefultonpersonal@gmail.com> in
222         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2023-04/msg00009.html>.
223         * include/iconv.h.in (ICONV_SURFACE_NONE,
224         ICONV_SURFACE_EBCDIC_ZOS_UNIX): New macros.
225         (ICONV_GET_FROM_SURFACE, ICONV_SET_FROM_SURFACE, ICONV_GET_TO_SURFACE,
226         ICONV_SET_TO_SURFACE): New macros.
227         * lib/converters.h (struct conv_struct): Add the fields isurface,
228         osurface.
229         (swap_x15_x25): New macro.
230         * lib/iconv.c (iconv_open, iconv_open_into): Add local variables
231         from_surface, to_surface.
232         (ALL_SURFACES): New macro.
233         (iconvctl): Adjust ICONV_TRIVIALP implementation. Implement the
234         ICONV_{GET,SET}_{FROM,TO}_SURFACE requests.
235         * lib/iconv_open1.h: Parse a /ZOS_UNIX surface specifier. Set
236         from_surface, to_surface.
237         * lib/iconv_open2.h: Copy the values of from_surface, to_surface into
238         the conversion descriptor.
239         * lib/ebcdic*.h (*_mbtowc): Test the isurface. If requested, call
240         swap_x15_x25 right after fetching an input byte.
241         (*_wctomb): Test the osurface. If requested, call swap_x15_x25 right
242         before storing an output byte.
243         * man/iconvctl.3 (REQUEST VALUES): Document the
244         ICONV_{GET,SET}_{FROM,TO}_SURFACE requests.
245         * src/iconv.c (main): If ICONV_EBCDIC_ZOS_UNIX is set, set the from/to
246         surfaces accordingly.
247         * man/iconv.1 (ENVIRONMENT): New section.
248         * tests/check-ebcdic: New file.
249         * tests/Makefile.in (check): Invoke it.
250         (SOURCE_FILES): Add it.
251         * NEWS: Mention the new functionality.
253 2023-03-31  Bruno Haible  <bruno@clisp.org>
255         Add some transliterations for mathematical symbols.
256         Based on <https://sourceware.org/bugzilla/show_bug.cgi?id=23132>
257         and the translit_neutral change in
258         <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=513aaa0d782f8fae36732d06ca59d658149f0139>.
259         Reported by Mike Fulton <mikefultonpersonal@gmail.com> in
260         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2023-03/msg00002.html>.
261         * lib/translit.def: Add a couple of transliterations in the range
262         U+27C0..U+29FF.
263         * NEWS: Mention it.
265 2023-03-31  Bruno Haible  <bruno@clisp.org>
267         Upgrade transliterations to Unicode 15.0.0.
268         * tools/gen-translit-def-part.lisp: Update comments.
269         * lib/translit.def: Include differences between the generated files
270         translit-part-4.0.0.def and translit-part-15.0.0.def.
272 2023-03-31  Bruno Haible  <bruno@clisp.org>
274         Make table of transliterations more maintainable.
275         * tools/gen-translit-def-part.lisp: New file.
276         * Makefile.in (SOURCE_FILES): Add it.
278 2023-03-31  Bruno Haible  <bruno@clisp.org>
280         Fix table of transliterations.
281         * lib/translit.def: Sort according to Unicode code point.
283 2023-02-13  Bruno Haible  <bruno@clisp.org>
285         Fix iconv link command for Cygwin.
286         Inspired by https://www.cygwin.com/git-cygwin-packages/?p=git/cygwin-packages/libiconv.git;a=blob;f=1.16-cross-install.patch;h=7b3c5c0d761497a20abf0e4cc38d74f2755445fb;hb=HEAD .
287         Rationale: libintl may depends on libiconv.
288         * src/Makefile.in (install): On the link command line, mention libintl
289         before libiconv.
291 2023-01-29  Bruno Haible  <bruno@clisp.org>
293         Fix a clang warning "a function declaration without a prototype...".
294         * lib/loop_wchar.h (mbrtowc): Don't declare. Drop portability to BeOS.
296 2022-07-18  Bruno Haible  <bruno@clisp.org>
298         Make autopull.sh more suited for continuous integration.
299         * autopull.sh: Support option --one-time.
301 2022-07-18  Bruno Haible  <bruno@clisp.org>
303         Move gnulib-tool invocation back from autopull.sh to autogen.sh.
304         * autogen.sh: Revert last change. Improve comments.
305         * autopull.sh: Only call 'gitsub.sh pull'.
306         * HACKING: Mention autopull.sh.
308 2022-07-17  Bruno Haible  <bruno@clisp.org>
310         Split autogen.sh into autopull.sh and autogen.sh.
311         * autopull.sh: New file, based on autogen.sh.
312         * autogen.sh: Remove code that was moved to autopull.sh. Remove
313         --skip-gnulib option.
314         * Makefile.devel (all): Remove srclib/Makefile.gnulib.
315         * Makefile.in (SOURCE_FILES): Add autogen.sh.
316         * HACKING: Mention autopull.sh.
318 2022-05-22  Bruno Haible  <bruno@clisp.org>
320         Add GNU Project notice.
321         * JOIN-GNU: New file. Inspired by a suggestion from José E. Marchesi
322         on the gnu-prog-discuss mailing list.
323         * README: Refer to it.
324         * Makefile.in (SOURCE_FILES): Add it.
326 2022-05-15  Bruno Haible  <bruno@clisp.org>
328         Switch to libtool 2.4.7.
329         * m4/libtool.m4: Update from libtool-2.4.7, with modifications:
330         2008-04-06  Bruno Haible  <bruno@clisp.org>
331                 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
332                 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
333                 to ${CONFIG_SHELL}.
334         * m4/ltoptions.m4: Likewise.
335         * m4/ltsugar.m4: Likewise.
336         * m4/ltversion.m4: Likewise.
337         * m4/lt~obsolete.m4: Likewise.
338         * build-aux/ltmain.sh: Update from libtool-2.4.7, with modifications:
339         2017-07-15  Bruno Haible  <bruno@clisp.org>
340                 Allow building statically linked binaries, through
341                 LDFLAGS="-static". Apply patch from
342                 <https://lists.gnu.org/archive/html/bug-libtool/2017-07/msg00000.html>.
343                 * build-aux/ltmain.sh (func_mode_help, func_mode_link): In the
344                 link mode, accept option '-static-uninstalled-libs' in place of
345                 '-static', and make '-static' an equivalent of '-all-static'.
347 2022-04-13  Bruno Haible  <bruno@clisp.org>
349         Fix undefined behaviour.
350         * tests/test-shiftseq.c (main2): Make input array larger.
352 2022-02-12  Bruno Haible  <bruno@clisp.org>
354         Update translations.
355         * po/ro.po: Update Romanian translations.
356         * po/wa.po: Update Walloon translations.
358 2022-02-12  Bruno Haible  <bruno@clisp.org>
360         Prepare for version 1.17.
361         * configure.ac: Bump version number to 1.17.
362         * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
363         * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 9:0:7.
364         * src/iconv.c (print_version): Update copyright year.
365         * windows/iconv.rc: Likewise.
366         * windows/libiconv.rc: Likewise.
367         * README: Update download link.
369 2022-02-12  Bruno Haible  <bruno@clisp.org>
371         Update source file list (regression 2022-01-23).
372         * lib/Makefile.in (SOURCE_FILES): Add encodings_zos.def, ebcdic*.h.
373         (GENERATED_FILES): Add aliases_zos.h, canonical_zos.h.
374         * tests/Makefile.in (SOURCE_FILES): Add IBM-*.TXT.
376 2022-01-23  Bruno Haible  <bruno@clisp.org>
378         Update NEWS.
379         * NEWS: Mention the EBCDIC encodings.
381 2022-01-23  Bruno Haible  <bruno@clisp.org>
383         Optimize the EBCDIC table sizes.
384         * lib/converters.h (DEDUPLICATE_TABLES): New macro.
385         * lib/ebcdic1025.h: Deduplicate tables with ebcdic880.h.
386         * lib/ebcdic1123.h: Deduplicate tables with ebcdic1025.h.
387         * lib/ebcdic1132.h: Deduplicate tables with ebcdic838.h.
388         * lib/ebcdic1153.h: Deduplicate tables with ebcdic870.h.
389         * lib/ebcdic1154.h: Deduplicate tables with ebcdic880.h.
390         * lib/ebcdic1155.h: Deduplicate tables with ebcdic1026.h.
391         * lib/ebcdic1156.h: Deduplicate tables with ebcdic1112.h.
392         * lib/ebcdic1157.h: Deduplicate tables with ebcdic1122.h.
393         * lib/ebcdic1158.h: Deduplicate tables with ebcdic1154.h, ebcdic1123.h.
394         * lib/ebcdic1160.h: Deduplicate tables with ebcdic838.h.
395         * lib/ebcdic1164.h: Deduplicate tables with ebcdic1130.h.
396         * lib/ebcdic1165.h: Deduplicate tables with ebcdic870.h.
397         * lib/ebcdic1166.h: Deduplicate tables with ebcdic1154.h.
398         * lib/ebcdic4971.h: Deduplicate tables with ebcdic875.h.
399         * lib/ebcdic12712.h: Deduplicate tables with ebcdic424.h.
401 2022-01-23  Bruno Haible  <bruno@clisp.org>
403         New EBCDIC encodings.
404         Reported by Ulrich Schwab and Calvin Buckley via Jack Woehr.
405         * NOTES: Mention how to enable EBCDIC encodings.
406         * tests/IBM-*.TXT: New files.
407         * tools/8bit_tab_to_h.c (main): Emit copyright header with year 2022.
408         * tools/Makefile: Add rules for generating ebcdic*.h.
409         * lib/ebcdic*.h: New files, automatically generated by tools/Makefile.
410         * lib/ebcdic838.h: Tweak reverse mapping manually.
411         * lib/ebcdic1160.h: Likewise.
412         * lib/converters.h: Include all ebcdic*.h.
413         * lib/encodings_zos.def: New file.
414         * lib/genaliases2.c: Include encodings_zos.def.
415         * lib/genflags.c: Likewise.
416         * Makefile.devel (lib/aliases_zos.h lib/canonical_zos.h): New rule.
417         (lib/flags.h, totally-clean): Update.
418         * lib/aliases2.h: Include aliases_zos.h.
419         * lib/iconv.c (USE_ZOS): New macro.
420         Include encodings_zos.def, canonical_zos.h.
421         * README, man/iconv_open.3: Document the IBM-* encodings.
422         * tests/Makefile.in (check-extra-yes): Also test the EBCDIC encodings.
424 2022-01-04  Bruno Haible  <bruno@clisp.org>
426         Update after gnulib changed.
427         * gnulib-local/m4/alloca.m4 (gl_FUNC_ALLOCA): Set GL_GENERATE_ALLOCA_H
428         instead of ALLOCA_H. Drop AC_SUBST and AM_CONDITIONAL invocations.
430 2021-09-19  Bruno Haible  <bruno@clisp.org>
432         tests: Avoid check-subst failures in QEMU user-mode environments.
433         * Makefile.devel (GNULIB_MODULES): Add stdbool.
434         (gnulib-imported-files): Copy also tests/qemu.h.
435         * tests/is-native.c: New file.
436         * tests/Makefile.in (is-native, is-native.@OBJEXT@): New targets.
437         (clean): Remove the 'is-native' program.
438         (SOURCE_FILES): Add is-native.c.
439         (IMPORTED_FILES): Add qemu.h.
440         * tests/check-subst: Invoke 'locale charmap' only in native
441         environments.
443 2021-06-27  Bruno Haible  <bruno@clisp.org>
445         README: Update.
446         Reported at <https://savannah.gnu.org/bugs/?60837>.
447         * README: Overhaul the paragraph that mentions iconv.m4.
449 2021-06-06  Bruno Haible  <bruno@clisp.org>
451         gnulib-local: Put real license notice into the source files.
452         * gnulib-local/lib/alloca.in.h: Use an LGPLv2+ notice.
454 2021-02-28  Bruno Haible  <bruno@clisp.org>
456         Update DEPENDENCIES.
457         * DEPENDENCIES: List the normal dependencies of a package with an
458         Autoconf-generated configure file.
460 2021-02-07  Bruno Haible  <bruno@clisp.org>
462         Support creating shared libraries on MidnightBSD.
463         Patch from <https://savannah.gnu.org/patch/?10007>.
464         * m4/libtool.m4: Treat MidnightBSD like FreeBSD.
465         * build-aux/ltmain.sh: Likewise.
467 2021-01-31  Bruno Haible  <bruno@clisp.org>
469         Update after gnulib changed on 2020-08-26.
470         * configure.ac: Test $iconv_arg1, not $am_cv_proto_iconv_arg1.
472 2021-01-31  Bruno Haible  <bruno@clisp.org>
474         Switch to autoconf 2.71.
475         * autogen.sh: Update comment.
476         * configure.ac: Use AS_HELP_STRING instead of AC_HELP_STRING. Invoke
477         AC_C_BIGENDIAN instead of CL_WORDS_LITTLEENDIAN.
478         * m4/eilseq.m4: Require Autoconf >= 2.61.
479         (AC_EILSEQ): Improve quoting. Use AC_COMPUTE_INT instead of
480         _AC_COMPUTE_INT.
481         * m4/endian.m4: Remove file.
482         * Makefile.in (SOURCE_FILES): Remove it.
484 2020-12-08  Bruno Haible  <bruno@clisp.org>
486         Switch to autoconf 2.70.
487         * Makefile.devel (AUTOCONF, AUTOHEADER): Remove '-2.69' suffix.
488         * HACKING: Remove sentence about symbolic links.
489         * autogen.sh: Update comment.
491 2020-08-31  Bruno Haible  <bruno@clisp.org>
493         Fix some -Wcast-qual warning, reported by clang.
494         * lib/iconv.c (compare_by_name): Add more 'const'.
495         (iconv_canonicalize): Cast value to 'unsigned char', not pointer to 'unsigned char *'.
496         * lib/iconv_open1.h: Likewise.
498 2020-08-30  Bruno Haible  <bruno@clisp.org>
500         Make sure that build-aux/compile is in the tarball.
501         * autogen.sh: Fetch also 'build-aux/compile' through gnulib-tool.
502         * Makefile.devel (srclib/Makefile.in): Don't fetch nor delete
503         'build-aux/compile'.
504         * Makefile.in (AUTOMAKE_IMPORTED_FILES): Remove build-aux/compile.
505         (IMPORTED_FILES): Add build-aux/compile.
507 2020-08-29  Bruno Haible  <bruno@clisp.org>
509         Update after gnulib changed.
510         * configure.ac (AC_PREREQ): Bump minimum Autoconf version to 2.64.
512 2020-08-06  Bruno Haible  <bruno@clisp.org>
514         Avoid a GCC warning with GCC >= 7.
515         Reported by Reini Urban <rurban@cpan.org>
516         in <https://savannah.gnu.org/bugs/?58903>.
517         * lib/gentranslit.c (main): Reset i to 0 each time p gets a new value.
518         Add assertion about i's possible values.
520 2020-04-05  Bruno Haible  <bruno@clisp.org>
522         Fix an autogen.sh failure (regression from 2016-12-04).
523         Reported by Petr Ovtchenkov <ptr@void-ptr.info> in
524         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2020-04/msg00003.html>.
525         * autogen.sh: Invoke also the Makefile target srclib/Makefile.in, so as
526         to get build-aux/install-sh. Finish the "copy files" phase before recursing
527         through the subpackages tree through Makefile.devel.
528         * Makefile.devel: Reorder targets.
530 2020-04-04  Bruno Haible  <bruno@clisp.org>
532         Don't use LGPLv3.
533         * gnulib-local/modules/mbstate (License): Set to LGPLv2+.
535 2020-04-04  Bruno Haible  <bruno@clisp.org>
537         Change the license of the library from LGPL 2.0 to LGPL 2.1.
538         * COPYING.LIB: Upgrade to LGPL 2.1.
540 2019-12-23  Bruno Haible  <bruno@clisp.org>
542         Do export the symbol 'locale_charset' (needed by GNU bash).
543         * lib/Makefile.in (DEFS): Define also BUILDING_LIBCHARSET.
545 2019-09-01  Bruno Haible  <bruno@clisp.org>
547         build: Add support for shallow-cloning of subdirectories.
548         * gitsub.sh (func_usage): Document allowed git options with 'git pull'.
549         (func_pull): Accept GIT_OPTIONS argument.
550         (pull): Parse git options before complaining about too many arguments.
551         Pass the git options to func_pull.
553 2019-07-05  Bruno Haible  <bruno@clisp.org>
555         Don't export the symbol 'aliases_lookup' on non-ELF platforms.
556         * Makefile.devel (lib/aliases.h, lib/aliases_sysaix.h,
557         lib/aliases_syshpux.h, lib/aliases_sysosf1.h, lib/aliases_syssolaris.h):
558         Add a 'static' keyword in front of the declaration of aliases_lookup.
560 2019-07-02  Bruno Haible  <bruno@clisp.org>
562         Update to current gnulib.
563         * Makefile.devel (GNULIB_MODULES): Add lib-symbol-visibility.
564         (srclib/Makefile.gnulib): Copy codeset.m4.
565         * srclib/Makefile.am (AM_CFLAGS): Initialize.
567 2019-07-02  Bruno Haible  <bruno@clisp.org>
569         Drop unused macro gl_GLIBC21.
570         * autogen.sh: Don't copy glibc21.m4.
572 2019-05-22  Bruno Haible  <bruno@clisp.org>
574         Fix comment.
575         Reported by Paul Hardy <unifoundry@gmail.com>.
576         * lib/jisx0213.h: Fix comment about the underlying standard version.
578 2019-05-11  Bruno Haible  <bruno@clisp.org>
580         Update bug reporting instructions.
581         * README: Tell users to report bugs in the bug tracker or by email.
582         * src/iconv.c (usage): Likewise.
583         (print_version): Move URL out of translatable string.
585 2019-04-26  Bruno Haible  <bruno@clisp.org>
587         Update translations.
588         $ rsync -Lrtvz translationproject.org::tp/latest/libiconv/ po/new
589         $ cd po/new
590         $ for f in *.po; do \
591             msgmerge --update --lang=${f%.po} --previous $f ../libiconv.pot; \
592           done
593         $ mv *.po ../
594         $ cd ..; rm -rf new
596 2019-04-26  Bruno Haible  <bruno@clisp.org>
598         Update POT file.
599         $ cd po; make update-po
601 2019-04-26  Bruno Haible  <bruno@clisp.org>
603         Prepare for version 1.16.
604         * configure.ac: Bump version number to 1.16.
605         * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
606         * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 8:1:6.
607         * src/iconv.c (print_version): Update copyright year.
608         * windows/iconv.rc: Likewise.
609         * windows/libiconv.rc: Likewise.
610         * README: Update download link.
612 2019-04-26  Bruno Haible  <bruno@clisp.org>
614         Tweak exported symbols when --enable-relocatable is used.
615         * lib/Makefile.in (DEFS): Map 'relocate2' to a different symbol.
617 2019-04-01  Bruno Haible  <bruno@clisp.org>
619         build: Separate git operations from build operations.
620         * gitsub.sh: New file, from gnulib.
621         * .gitmodules: New file.
622         * autogen.sh: Remove all git operations. Look at GNULIB_SRCDIR
623         environment variable. Ignore the GNULIB_TOOL environment variable.
624         * HACKING: Explain when to use gitsub.sh.
626 2019-03-07  Bruno Haible  <bruno@clisp.org>
628         Avoid signed integer overflow during shifts.
629         Reported by Jeffrey Walton <noloader@gmail.com>.
630         * lib/tcvn.h (tcvn_wctomb): Use unsigned integer type for bit mask
631         operation.
632         * lib/viscii.h (viscii_wctomb): Likewise.
634 2019-03-04  Bruno Haible  <bruno@clisp.org>
636         Add support for --enable-relocatable to libcharset.
637         * autogen.sh: Copy some more files to libcharset/build-aux/ and
638         libcharset/m4/.
640 2019-03-04  Bruno Haible  <bruno@clisp.org>
642         Update --enable-relocatable support after gnulib changed.
643         * configure.ac: Move the LT_INIT invocation before the gl_RELOCATABLE
644         invocation. Remove unused argument to gl_RELOCATABLE.
646 2019-01-27  Bruno Haible  <bruno@clisp.org>
648         Accommodate a shell that is not in /bin/sh.
649         * Makefile.in (SHELL): Use the value found by configure.
650         * lib/Makefile.in (SHELL): Likewise.
651         * man/Makefile.in (SHELL): Likewise.
652         * src/Makefile.in (SHELL): Likewise.
653         * tests/Makefile.in (SHELL): Likewise.
654         (check, check-extra-yes): Use SHELL to run the check-* scripts.
656 2019-01-27  Bruno Haible  <bruno@clisp.org>
658         Update after gnulib changed.
659         * Makefile.in (GNULIB_IMPORTED_FILES): Remove build-aux/snippet/*.
661 2019-01-27  Bruno Haible  <bruno@clisp.org>
663         Update support for building with MSVC. Automake does not install ar-lib.
664         * autogen.sh: Fetch build-aux/ar-lib here.
665         * Makefile.devel (srclib/Makefile.in): Don't fetch build-aux/ar-lib
666         here.
667         * Makefile.in (AUTOMAKE_IMPORTED_FILES): Remove build-aux/ar-lib.
668         (IMPORTED_FILES): Add build-aux/ar-lib.
670 2019-01-06  Bruno Haible  <bruno@clisp.org>
672         Revisit handling of file descriptors closed by the parent process.
673         * src/iconv.c (main): Add comment.
675 2018-10-23  Bruno Haible  <bruno@clisp.org>
677         Remove outdated DJGPP build infrastructure.
678         Approved by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
679         * djgpp: Remove directory.
680         * INSTALL.djgpp: Remove file.
681         * Makefile.in (SOURCE_FILES): Remove them.
683 2018-10-23  Bruno Haible  <bruno@clisp.org>
685         Update after gnulib changed.
686         * configure.ac (AC_PREREQ): Bump minimum Autoconf version to 2.63.
688 2018-09-22  Bruno Haible  <bruno@clisp.org>
690         Avoid some warnings in MSVC build.
691         * include/export.h: Handle MSVC compiler as well.
693 2018-09-22  Bruno Haible  <bruno@clisp.org>
695         Update from gnulib. Move mapping tables into the code.
696         * autogen.sh: Don't create libcharset/m4/relocatable-lib.m4.
697         * Makefile.in (mostlyclean, clean, distclean, maintainer-clean): Don't
698         remove lib/charset.alias.
699         * tests/check-subst: Don't set CHARSETALIASDIR.
701 2018-05-04  Bruno Haible  <bruno@clisp.org>
703         Drop special instructions for OSF/1.
704         * INSTALL.generic: Remove the recommendation for OSF/1.
706 2018-05-04  Bruno Haible  <bruno@clisp.org>
708         Simplify: Remove the ability to install a preloadable library.
709         * preload/*: Remove directory.
710         * Makefile.devel: Don't recurse into 'preload'.
711         * Makefile.in: Likewise.
712         * configure.ac: Don't declare 'preload' as a subdirectory.
713         * README, NEWS: Update.
715 2018-05-04  Bruno Haible  <bruno@clisp.org>
717         Simplify code. Drop support for Borland C++ on Windows.
718         * lib/iconv.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
719         'defined _WIN32'.
720         * lib/iconv_open1.h: Likewise.
722 2018-05-04  Bruno Haible  <bruno@clisp.org>
724         * lib/relocatable.c: Update from gnulib.
726 2018-05-04  Bruno Haible  <bruno@clisp.org>
728         Switch to automake 1.16.
729         * autogen.sh: Update comment.
730         * Makefile.devel (AUTOMAKE, ACLOCAL): Switch to version 1.16.
731         * libcharset/Makefile.devel (ACLOCAL): Likewise.
732         * preload/Makefile.devel (ACLOCAL): Likewise.
734 2018-03-27  Bruno Haible  <bruno@clisp.org>
736         Doc tweaks.
737         * README: Don't recommend to use --prefix=/usr/local, as it produces
738         problems with GCC (since GCC's treatment of /usr/local/include and
739         /usr/local/lib is inconsistent by default). Don't recommend to use
740         the iconv.m4 installed by GNU gettext, because it won't work when
741         GNU automake and GNU gettext are installed with different --prefix
742         options; instead recommend the 'iconv' module from gnulib.
744 2018-01-27  Bruno Haible  <bruno@clisp.org>
746         Rename some files.
747         * INSTALL.windows: Renamed from README.windows.
748         * INSTALL.djgpp: Renamed from README.djgpp.
749         * Makefile.in (SOURCE_FILES): Update.
751 2018-01-03  Bruno Haible  <bruno@clisp.org>
753         Fix installation in 64-bit mode on AIX.
754         * lib/Makefile.in (AR): New variable.
755         (install): Use it instead of hardcoding 'ar'.
757 2017-11-26  Bruno Haible  <bruno@clisp.org>
759         Avoid end-of-lines problem in generated shell scripts on Cygwin.
760         Patch by Feiyun Wang <feiyunw@yahoo.com>.
761         * lib/genaliases.c (main): Create canonical.sh and canonical_local.sh
762         with Unix end-of-line characters, regardless of Cygwin choice of
763         text mode vs. binary mode.
765 2017-07-15  Bruno Haible  <bruno@clisp.org>
767         Allow building statically linked binaries, through LDFLAGS="-static".
768         Apply patch from
769         <https://lists.gnu.org/archive/html/bug-libtool/2017-07/msg00000.html>.
770         * build-aux/ltmain.sh (func_mode_help, func_mode_link): In the link
771         mode, accept option '-static-uninstalled-libs' in place of '-static',
772         and make '-static' an equivalent of '-all-static'.
774 2017-07-15  Bruno Haible  <bruno@clisp.org>
776         Don't attempt to build preloadable_libiconv.so when linking statically.
777         * preload/configure.ac (enable_shared, enable_static): Don't force
778         shared libraries when LDFLAGS indicates static linking.
779         (PLUGLIB): Set to empty when is not configured for building shared
780         libraries.
782 2017-07-15  Bruno Haible  <bruno@clisp.org>
784         Get rid of autom4te.cache directories, as far as possible.
785         * Makefile.devel (srclib/Makefile.in, aclocal.m4, configure,
786         config.h.in): Remove autom4te.cache after invoking aclocal, autoconf,
787         autoheader, automake.
788         * preload/Makefile.devel (aclocal, configure): Likewise.
790 2017-05-18  Bruno Haible  <bruno@clisp.org>
792         * lib/relocatable.h: Update from gnulib.
793         * lib/relocatable.c: Update from gnulib.
795 2017-01-30  Bruno Haible  <bruno@clisp.org>
797         Prepare for version 1.15.
798         * src/iconv.c (print_version): Update copyright year.
799         * windows/iconv.rc: Likewise.
800         * windows/libiconv.rc: Likewise.
802 2016-12-29  Bruno Haible  <bruno@clisp.org>
804         Make Makefile.devel consistent with .gitignore.
805         * Makefile.devel (srclib/Makefile.in): Depend on aclocal.m4.
806         (totally-clean): Remove also aclocal.m4.
808 2016-12-25  Bruno Haible  <bruno@clisp.org>
810         Tweak autogen.sh.
811         * autogen.sh: Emit a "done" diagnostic when autogen.sh completed
812         successfully.
814 2016-12-25  Bruno Haible  <bruno@clisp.org>
816         Reorder Makefile.devel.
817         * Makefile.devel: Reorder: put gnulib targets before autotools targets.
819 2016-12-14  Bruno Haible  <bruno@clisp.org>
821         Cleanup useless removals.
822         * lib/Makefile.in (distclean): No need to remove 'libtool'.
824 2016-12-04  Bruno Haible  <bruno@clisp.org>
826         Update comments.
827         * Makefile.devel: Update comments about release process.
829 2016-12-04  Bruno Haible  <bruno@clisp.org>
831         Create tarballs through an Automake-like "make dist" command.
832         * Makefile.in (SOURCE_FILES, LIBTOOL_IMPORTED_FILES,
833         AUTOMAKE_OLD_IMPORTED_FILES, AUTOMAKE_IMPORTED_FILES, IMPORTED_FILES,
834         GENERATED_FILES, DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
835         (distdir): New target.
836         (PACKAGE, VERSION, TAR, GZIP): New macros.
837         (dist): New target.
838         * lib/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
839         DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
840         (distdir): New target.
841         * man/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
842         DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
843         (distdir): New target.
844         * preload/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
845         DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
846         (distdir): New target.
847         * src/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
848         DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
849         (distdir): New target.
850         * tests/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
851         DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
852         (distdir): New target.
854 2016-12-04  Bruno Haible  <bruno@clisp.org>
856         Remove duplicates of imported files from version control.
857         * autogen.sh: Copy imported files to libcharset.
859 2016-12-04  Bruno Haible  <bruno@clisp.org>
861         Always use the newest released copies of files brought in from Automake.
862         * Makefile.devel (srclib/Makefile.in): Make sure to get new versions of
863         files brought in by automake.
864         * build-aux/install-sh: Remove from version control.
865         * build-aux/missing: Likewise.
867 2016-12-04  Bruno Haible  <bruno@clisp.org>
869         Always use the newest copies of config.guess, config.sub.
870         * Makefile.devel (gnulib-imported-files): New target.
871         * autogen.sh: Invoke it.
872         * build-aux/config.guess: Remove from version control.
873         * build-aux/config.sub: Likewise.
875 2016-12-04  Bruno Haible  <bruno@clisp.org>
877         Always use the newest copy of fcntl-o.m4.
878         * m4/fcntl-o.m4: Remove file. Rely on srcm4/fcntl-o.m4 instead.
880 2016-12-04  Bruno Haible  <bruno@clisp.org>
882         Remove obsolete documentation.
883         * PORTS: Remove file.
885 2016-12-03  Bruno Haible  <bruno@clisp.org>
887         Make Makefile.devel more useful for the users of the released tarball.
888         * Makefile.devel (srclib/Makefile.gnulib): Don't force this target.
889         (gnulib-clean): New target.
890         (totally-clean): New target. Do the removals from autogen.sh. Also,
891         remove lib/aliases*.gperf, lib/canonical*.h, man/iconvctl.3.html,
892         man/iconv_open_into.3.html.
893         * autogen.sh: Invoke target gnulib-clean before srclib/Makefile.gnulib.
894         Invoke target totally-clean before all.
895         * preload/Makefile.devel (totally-clean): New target.
897 2016-12-03  Bruno Haible  <bruno@clisp.org>
899         Modernize configure.ac.
900         * configure.ac: Use 2-argument AC_INIT. Avoid an AM_INIT_AUTOMAKE
901         warning.
902         * preload/configure.ac: Use 2-argument AC_INIT. Use AC_CONFIG_SRCDIR.
904 2016-12-03  Bruno Haible  <bruno@clisp.org>
906         Towards reproducible builds.
907         * Makefile.devel (man/%.html): Remove the CreationDate comment line
908         from the output.
910 2016-12-04  Bruno Haible  <bruno@clisp.org>
912         Update to gettext-0.19.8.1.
913         * ABOUT-NLS: Update through 'gettextize'.
915 2016-12-03  Bruno Haible  <bruno@clisp.org>
917         Update documentation.
918         * HACKING: Refer to the Git repository.
920 2016-12-03  Bruno Haible  <bruno@clisp.org>
922         Avoid compilation warnings in 'genflags' program.
923         * lib/genflags.c: Avoid warnings from GCC's -Wunused-function option.
925 2016-12-02  Bruno Haible  <bruno@clisp.org>
927         * relocatable.c: Update from gnulib.
929 2016-11-25  Bruno Haible  <bruno@clisp.org>
931         Prepare for version 1.15.
932         * configure.ac: Bump version number to 1.15.
933         * README: Likewise.
934         * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
935         * windows/iconv.rc: Update.
936         * windows/libiconv.rc: Update.
937         * Makefile.devel: Update comments.
938         * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 8:0:6.
939         * src/iconv.c (print_version): Update copyright year.
941 2016-11-23  Bruno Haible  <bruno@clisp.org>
943         Update installation instructions for Windows.
944         * README.windows: Assume a 64-bit Windows. Explain both 32-bit and
945         64-bit builds. Add instructions for the MS Visual C/C++ tool chain.
946         Revamp instructions for Cygwin.
948 2016-11-23  Bruno Haible  <bruno@clisp.org>
950         Drop the nickname "woe32".
951         * README.windows: Renamed from README.woe32.
953 2016-11-22  Bruno Haible  <bruno@clisp.org>
955         Update support for building with MSVC.
956         * Makefile.devel (srclib/Makefile.in): Import 'ar-lib' and 'compile'
957         from gnulib.
958         * lib/Makefile.in (install-lib, install): Install the .la file with
959         $(INSTALL), not $(INSTALL_DATA). Otherwise the native Windows DLL gets
960         installed without execution permissions, and programs linked to it fail:
961         in a Cygwin shell with exit code 127, or from a cmd.exe window with a
962         dialog "The application was unable to start correctly (0xc0000022)."
964 2016-11-19  Bruno Haible  <bruno@clisp.org>
966         Fix link error when compiling with gcc -O0.
967         * lib/iconv.c (aliases2_lookup): Make static.
968         Reported by Chung-Lin Tang <chunglin.tang@gmail.com>
969         at https://savannah.gnu.org/bugs/?47953 .
971 2016-11-17  Bruno Haible  <bruno@clisp.org>
973         UTF-8: Reject surrogates and out-of-range code points.
974         * lib/utf8.h (utf8_mbtowc, utf8_wctomb): Reject code points in the
975         range 0xD800..0xDFFF and >= 0x110000.
976         * tests/genutf8.c (main): Don't emit mappings for 0xD800..0xDFFF.
978 2016-10-22  Bruno Haible  <bruno@clisp.org>
980         Switch to libtool 2.4.6.
981         * m4/libtool.m4: Update from libtool-2.4.6, with modifications:
982         2008-04-06  Bruno Haible  <bruno@clisp.org>
983                 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
984                 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
985                 to ${CONFIG_SHELL}..
986         * m4/ltoptions.m4: Likewise.
987         * m4/ltversion.m4: Likewise.
988         * build-aux/ltmain.sh: Likewise.
990 2016-10-14  Bruno Haible  <bruno@clisp.org>
992         Use 'size_t', not 'int', for the length of a string.
993         * lib/iconv.c: Include <limits.h>.
994         * lib/genflags.c: Likewise.
995         * lib/converters.h (struct mbtowc_funcs, struct wctomb_funcs): Change
996         'int n' parameter to 'size_t n'.
997         (RET_COUNT_MAX): New macro.
998         * lib/*.h: Use 'size_t n' instead of 'int n'.
999         * lib/ucs2.h (ucs2_mbtowc): Make sure 'count' does not cause an 'int'
1000         overflow.
1001         * lib/ucs4.h (ucs4_mbtowc): Likewise.
1002         * lib/utf16.h (utf16_mbtowc): Likewise.
1003         * lib/utf32.h (utf32_mbtowc): Likewise.
1004         * tools/8bit_tab_to_h.c: Generate function signatures with 'size_t n'.
1005         * tools/cjk_tab_to_h.c: Likewise.
1006         * NEWS: Mention the change.
1008 2016-10-04  Bruno Haible  <bruno@clisp.org>
1010         Extend CP1255 mapping.
1011         * lib/cp1255.h (cp1255_2uni, cp1255_page05): Map 0xCA to U+05BA.
1012         * tests/CP1255.TXT: Likewise.
1013         This matches https://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WindowsBestFit/bestfit1255.txt
1014         and what the native Windows converter does since at least Windows XP.
1016 2016-10-01  Ben Noordhuis  <info@bnoordhuis.nl>  (tiny change)
1017             Bruno Haible  <bruno@clisp.org>
1019         Remove large stack requirement from gentranslit.
1020         * lib/gentranslit.c (main): Heap-allocate large arrays.
1021         * Makefile.devel (lib/translit.h): Remove 'ulimit -s unlimited' command.
1023 2015-12-10  Ben Noordhuis  <info@bnoordhuis.nl>  (tiny change)
1025         Remove unused array from gentranslit.
1026         * lib/gentranslit.c (main): Remove unused array.
1027         * Makefile.devel (CC): Add -Wall option.
1028         Reported in https://savannah.gnu.org/bugs/?46663 .
1030 2016-10-01  Bruno Haible  <bruno@clisp.org>
1032         Fix bug #41187.
1033         * src/iconv.c (main): Increment i after parsing the --silent option.
1034         Reported in https://savannah.gnu.org/bugs/?41187 .
1036 2016-10-01  Bruno Haible  <bruno@clisp.org>
1038         Update to current gnulib.
1039         * Makefile.devel (GNULIB_MODULES): Remove memmove.
1040         * tests/Makefile.in (INCLUDES): Make sure to include the top-level
1041         "config.h". Needed for the 'binary-io' module.
1043 2016-10-01  Bruno Haible  <bruno@clisp.org>
1045         Switch to automake 1.15.
1046         * autogen.sh: Update comment.
1047         * Makefile.devel (AUTOMAKE, ACLOCAL): Switch to version 1.15.
1048         (srclib/Makefile.in): Don't remove auxiliary files brought in by
1049         automake.
1050         * preload/Makefile.devel (ACLOCAL): Switch to version 1.15.
1051         * srclib/Makefile.am (AUTOMAKE_OPTIONS): Add subdir-objects.
1052         * build-aux/missing: Update from automake-1.15.
1054 2016-10-01  Bruno Haible  <bruno@clisp.org>
1056         Remove autogenerated doc files from version control.
1057         * man/iconvctl.3.html: Remove file.
1058         * man/iconv_open_into.3.html: Remove file.
1060 2012-12-06  Bruno Haible  <bruno@clisp.org>
1062         Change copyright holder of man pages.
1063         * man/*.[13]: Replace myself with FSF.
1065 2012-06-30  Bruno Haible  <bruno@clisp.org>
1067         Make it possible to run 'genaliases2' on native Windows.
1068         * lib/genaliases2.c (main): Expect 3 arguments. Open the output files
1069         explicitly. Complain if they don't exist.
1070         * Makefile.devel (lib/aliases_*.h): Pass the output filenames as
1071         arguments to genaliases.
1072         Reported at <https://savannah.gnu.org/bugs/?36748>.
1074         Make it possible to run 'genaliases' on native Windows.
1075         * lib/genaliases.c (main): Expect 3 arguments. Open the output files
1076         explicitly. Complain if they don't exist. Improve error checking.
1077         * Makefile.devel (lib/aliases*.h): Pass the output filenames as
1078         arguments to genaliases.
1079         Reported at <https://savannah.gnu.org/bugs/?36748>.
1081 2012-05-13  Bruno Haible  <bruno@clisp.org>
1083         Tweak the GB18030 converter to map 0x8135F437 to U+E7C7.
1084         * lib/gb18030.h (gb18030_pua2charset, gb18030_wctomb): Remove mapping
1085         from U+E7C7 to 0xA8BC.
1086         * lib/gb18030uni.h (gb18030uni_mbtowc): Treat 0x8135F437 as a special
1087         case.
1088         (gb18030uni_wctomb): Treat U+E7C7 as a special case.
1089         * tests/GB18030-BMP.TXT: Map 0x8135F437 to U+E7C7, not U+1E3F.
1090         * tests/GB18030.IRREVERSIBLE.TXT: Remove irreversible mappings for
1091         0x8135F437 and U+E7C7.
1093 2012-04-28  Bruno Haible  <bruno@clisp.org>
1095         Switch to autoconf 2.69 and automake 1.12.
1096         * autogen.sh: Update comment.
1097         * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.69.
1098         (AUTOMAKE, ACLOCAL): Switch to version 1.12.
1099         * preload/Makefile.devel (AUTOCONF): Switch to version 2.69.
1100         (ACLOCAL): Switch to version 1.12.
1102 2012-03-24  Bruno Haible  <bruno@clisp.org>
1104         Avoid a GCC warning.
1105         * lib/isoir165.h (isoir165_mbtowc): Don't shadow the 'ret' variable.
1107 2012-01-26  Bruno Haible  <bruno@clisp.org>
1109         Modernize quoting.
1110         * README: Quote 'like this', not `like this', as per the recent change
1111         to the GNU coding standards.
1112         * NOTES: Likewise.
1113         * gnulib-local/lib/xmalloc.c: Likewise.
1114         * lib/config.h.in: Likewise.
1115         * src/iconv.c (usage): Likewise.
1116         * tests/uniq-u.c: Likewise.
1117         * tools/cjk_tab_to_h.c (output_uni2charset_sparse, do_jisx0213):
1118         Likewise.
1119         * lib/big5.h: Update accordingly.
1120         * lib/cns11643_inv.h: Likewise.
1121         * lib/cp932ext.h: Likewise.
1122         * lib/cp950ext.h: Likewise.
1123         * lib/gb12345ext.h: Likewise.
1124         * lib/gb2312.h: Likewise.
1125         * lib/gbkext_inv.h: Likewise.
1126         * lib/hkscs1999.h: Likewise.
1127         * lib/hkscs2001.h: Likewise.
1128         * lib/hkscs2004.h: Likewise.
1129         * lib/hkscs2008.h: Likewise.
1130         * lib/isoir165ext.h: Likewise.
1131         * lib/jisx0208.h: Likewise.
1132         * lib/jisx0212.h: Likewise.
1133         * lib/jisx0213.h: Likewise.
1134         * lib/ksc5601.h: Likewise.
1135         * lib/uhc_1.h: Likewise.
1136         * lib/uhc_2.h: Likewise.
1138 2012-01-15  Bruno Haible  <bruno@clisp.org>
1140         Support for MSVC 9.
1141         * lib/config.h.in (inline, mode_t, ssize_t): Copy snippets from top
1142         config.h.in.
1143         * tests/genutf8.c: Include config.h.
1144         * tests/gengb18030z.c: Likewise.
1145         * woe32dll/export.h (VARIABLE): Define to empty if not using GCC.
1147 2011-01-28  Bruno Haible  <bruno@clisp.org>
1149         Add a comment.
1150         * woe32dll/export.h: Add a reference to the woe32dll writeup.
1152 2012-01-06  Bruno Haible  <bruno@clisp.org>
1154         Update after gnulib changed.
1155         * gnulib-local/lib/error.h.diff: Update.
1157 2012-01-06  Bruno Haible  <bruno@clisp.org>
1159         Talk about "native Windows API", not "Woe32".
1160         * lib/relocatable.c: Update comments to mention native Windows.
1162 2012-01-04  Bruno Haible  <bruno@clisp.org>
1164         Talk about "native Windows API", not "Win32".
1165         * lib/relocatable.c: Update comments to mention native Windows.
1166         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1168 2011-10-27  Bruno Haible  <bruno@clisp.org>
1170         Fix bug with error handling in UCS-2, UCS-4, UTF-32 decoders.
1171         * lib/ucs2.h (ucs2_mbtowc): Increment count only after validating wc.
1172         * lib/ucs4.h (ucs4_mbtowc): Likewise.
1173         * lib/utf32.h (utf32_mbtowc): Likewise.
1174         Reported at <https://savannah.gnu.org/bugs/?34916>.
1176 2012-06-30  Bruno Haible  <bruno@clisp.org>
1178         Improve ISO-2022-CP-MS versus CP932.
1179         * lib/iso2022_jpms.h (iso2022_jpms_mbtowc): Recognize characters from
1180         the rows 0x79..0x7C as rows from CP932.
1181         * tests/ISO-2022-JP-MS-snippet.alt: New file, renamed from
1182         tests/ISO-2022-JP-MS-snippet.
1183         * tests/ISO-2022-JP-MS-snippet.UTF-8: Update the rows that correspond
1184         to ESC $ B 0x79..0x7C.
1185         * tests/ISO-2022-JP-MS-snippet: Likewise.
1186         * tests/check-stateful: Also test the *-snippet.alt file if it exists.
1187         * tests/check-stateful.bat: Likewise.
1189 2012-06-30  Bruno Haible  <bruno@clisp.org>
1191         Improve ISO-2022-CP-MS versus CP932.
1192         * lib/cp50221_0208_ext.h (cp50221_0208_ext_page30): Map U+301D like
1193         U+301E.
1194         * lib/iso2022_jpms.h (iso2022_jpms_wctomb): Map U+663B to JISX0208
1195         0x7A 0x36, U+FFE2 to 0x7C 0x7B, U+FFE4 to 0x7C 0x7C.
1196         Reported by Jeff Diehl <diehl.jeff@gmail.com>.
1198 2011-10-23  Bruno Haible  <bruno@clisp.org>
1200         New encoding ISO-2022-CP-MS.
1201         * NOTES: Mention ISO-2022-JP-MS.
1202         * tools/CP50221-0208-EXT.TXT: New file.
1203         * tools/CP50221-0212-EXT.TXT: New file.
1204         * tools/8bit_tab_to_h.c: Add comments about how to generate
1205         cp50221_0208_ext.h, cp50221_0212_ext.h.
1206         * tools/Makefile: Add rules for generating cp50221_0208_ext.h,
1207         cp50221_0212_ext.h.
1208         * lib/cp50221_0208_ext.h: New file, mostly generated.
1209         * lib/cp50221_0212_ext.h: New file, mostly generated.
1210         * lib/iso2022_jpms.h: New file.
1211         * lib/converters.h: Include it.
1212         * lib/encodings.def: Add ISO-2022-JP-MS.
1213         * README, man/iconv_open.3: Add ISO-2022-JP-MS.
1214         * tests/ISO-2022-JP-MS-snippet: New file.
1215         * tests/ISO-2022-JP-MS-snippet.UTF-8: New file.
1216         * tests/Makefile.in (check): Also test ISO-2022-JP-MS.
1217         Reported by Jeff Diehl <diehl.jeff@gmail.com>.
1219 2011-10-23  Bruno Haible  <bruno@clisp.org>
1221         * lib/encodings.def: Add comments about Windows names of encodings.
1223 2011-10-18  Bruno Haible  <bruno@clisp.org>
1225         * m4/libtool.m4: Update from libtool-2.4.2, with modifications:
1226         2008-04-06  Bruno Haible  <bruno@clisp.org>
1227                 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
1228                 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
1229                 to ${CONFIG_SHELL}..
1230         * m4/ltoptions.m4: Likewise.
1231         * m4/ltversion.m4: Likewise.
1232         * build-aux/ltmain.sh: Likewise.
1234 2011-10-03  Bruno Haible  <bruno@clisp.org>
1236         * lib/relocatable.c: Update from gnulib.
1238 2011-09-02  Bruno Haible  <bruno@clisp.org>
1240         Fix "make check" failure when $(srcdir) != $(builddir).
1241         * tests/Makefile.in (check): When $(srcdir) != ., temporarily copy
1242         GB18030.IRREVERSIBLE.TXT into the build directory.
1243         Reported by Christian Weisgerber <naddy@mips.inka.de>.
1245 2011-08-07  Bruno Haible  <bruno@clisp.org>
1247         Ensure all HTML-formatted man pages are up-to-date.
1248         * Makefile.devel (all): Depend on man/iconvctl.3.html and
1249         man/iconv_open_into.3.html.
1251 2011-08-07  Bruno Haible  <bruno@clisp.org>
1253         * Version 1.14 released.
1255 2011-08-07  Bruno Haible  <bruno@clisp.org>
1257         * configure.ac: Bump version number to 1.14.
1258         * README: Likewise.
1259         * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
1260         * windows/iconv.rc: Update.
1261         * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 7:1:5.
1262         * src/iconv.c (print_version): Update copyright year.
1264 2011-08-07  Bruno Haible  <bruno@clisp.org>
1266         Avoid a test failure on Solaris 2.6 and HP-UX 11.00.
1267         * tests/test-to-wchar.c (main): Skip the test if conversion to wchar_t
1268         is not supported.
1270 2011-08-07  Bruno Haible  <bruno@clisp.org>
1272         * tests/check-subst: Add comments about OSF/1.
1274 2011-08-07  Bruno Haible  <bruno@clisp.org>
1276         * lib/relocatable.c: Update from gnulib.
1278 2011-08-06  Bruno Haible  <bruno@clisp.org>
1280         Upgrade the GB18030 converter to the version from 2005.
1281         * lib/gb18030ext.h (gb18030ext_2uni_pagefe): Change element type to
1282         'unsigned int'. Change values for 0xFE51..0xFE53, 0xFE59, 0xFE61,
1283         0xFE66, 0xFE67, 0xFE6C, 0xFE6D, 0xFE76, 0xFE7E, 0xFE90, 0xFE91, 0xFEA0.
1284         (gb18030ext_mbtowc): Change type of wc to 'unsigned int'. Change values
1285         for 0xA6D9..0xA6DF, 0xA6EC..0xA6ED, 0xA6F3, 0xA8BC.
1286         (gb18030ext_page9f, gb18030ext_pagefe): New constant arrays.
1287         (gb18030ext_wctomb): Change values for U+1E3F, U+9FB4..U+9FBB,
1288         U+FE10..U+FE19, U+20087, U+20089, U+200CC, U+215D7, U+2298F, U+241FE.
1289         * tests/GB18030-BMP.TXT: Change values for 0xA6D9..0xA6DF,
1290         0xA6EC..0xA6ED, 0xA6F3, 0xA8BC, 0xFE51..0xFE53, 0xFE59, 0xFE61, 0xFE66,
1291         0xFE67, 0xFE6C, 0xFE6D, 0xFE76, 0xFE7E, 0xFE90, 0xFE91, 0xFEA0, to map
1292         to now-assigned Unicode codepoints.
1293         * tests/GB18030.IRREVERSIBLE.TXT: New file.
1295 2011-08-06  Bruno Haible  <bruno@clisp.org>
1297         Fix conversion bug in CP1258 converter.
1298         * lib/vietcomb.h (viet_comp_table_data): Remove entry for
1299         U+00A5 U+0301. Fix entry for U+00A8 U+0301.
1300         (viet_decomp_table): Fix entry for U+0385.
1301         * tests/CP1258.IRREVERSIBLE.TXT: Update.
1302         Reported by Gertjan Halkes <gertjan@ghalkes.nl>.
1304 2011-07-03  Bruno Haible  <bruno@clisp.org>
1306         Improve interactive behaviour of iconv program.
1307         * src/iconv.c (convert): Flush the output before starting a possibly
1308         blocking safe_read call.
1310 2011-07-03  Bruno Haible  <bruno@clisp.org>
1312         Fix interactive behaviour of iconv program.
1313         * Makefile.devel (GNULIB_MODULES): Add safe-read.
1314         * src/iconv.c: Include safe-read.h.
1315         (convert): Take the infile as a file descriptor, not as a FILE stream.
1316         Use safe_read() instead of fread().
1317         (main): Update.
1318         Reported by Xavier Pucel <xpucel@hotmail.com>.
1320 2011-05-02  Bruno Haible  <bruno@clisp.org>
1322         Update after gnulib changed.
1323         * autogen.sh (GNULIB_MODULES): Remove exit, add stdlib.
1325 2011-06-02  Bruno Haible  <bruno@clisp.org>
1327         Update after gnulib changed.
1328         * gnulib-local/m4/alloca.m4 (gl_FUNC_ALLOCA): Update.
1330 2011-06-04  Bruno Haible  <bruno@clisp.org>
1332         Work around <wchar.h> bug on OSF/1 5.1.
1333         * lib/loop_wchar.h: Before including <wchar.h>, include <stdio.h> and
1334         some other includes.
1336 2011-03-27  KO Myung-Hun  <komh@chollian.net>
1338         Fix installation on OS/2.
1339         * src/Makefile.in (all, iconv_no_i18n): Add $(EXEEXT) suffix to
1340         iconv_no_i18n. This is the recommended way to use libtool, see
1341         <https://lists.gnu.org/archive/html/bug-libtool/2009-04/msg00013.html>.
1343 2011-03-31  Bruno Haible  <bruno@clisp.org>
1345         gentranslit: Fix buffer overrun.
1346         * lib/gentranslit.c (main): Allocate more room for the suffix strings
1347         of the translit pages.
1348         Reported by Ben Noordhuis <info@bnoordhuis.nl>.
1350 2011-02-28  Bruno Haible  <bruno@clisp.org>
1352         * lib/relocatable.h: Update from gnulib.
1353         * lib/relocatable.c: Likewise.
1355 2011-01-29  Corinna Vinschen  <corinna-cygwin@cygwin.com>
1356             Bruno Haible  <bruno@clisp.org>
1358         Simplify "wchar_t" handling on Cygwin 1.7.x.
1359         * lib/iconv.c (iconv_canonicalize): On Cygwin >= 1.7, map
1360         ei_local_wchar_t to ei_utf16le or ei_utf16be, not ei_ucs2internal.
1361         * lib/iconv_open1.h: Likewise.
1362         Rationale: <https://cygwin.com/ml/cygwin/2011-01/msg00410.html>.
1364 2011-01-29  Bruno Haible  <bruno@clisp.org>
1366         Adjust the meaning of "wchar_t" on native Windows systems.
1367         * lib/iconv.c (iconv_canonicalize): On native Windows, map
1368         ei_local_wchar_t to ei_utf16le or ei_utf16be, not ei_ucs2internal.
1369         * lib/iconv_open1.h: Likewise.
1370         Reported by Corinna Vinschen <corinna-cygwin@cygwin.com>
1371         in <https://cygwin.com/ml/cygwin/2011-01/msg00410.html>.
1373 2010-11-23  Bruno Haible  <bruno@clisp.org>
1375         Implement newer release of BIG5-HKSCS.
1376         * tools/Makefile (ALL): Add hkscs2008.h.
1377         (hkscs2008.h): New rule.
1378         * tools/cjk_tab_to_h.c (main): Recognize hkscs2008.
1379         * lib/encodings.def: Add BIG5-HKSCS:2008. Change BIG5-HKSCS alias to be
1380         equivalent to BIG5-HKSCS:2008.
1381         * lib/hkscs2008.h: New file, autogenerated.
1382         * lib/big5hkscs2008.h: New file, based on lib/big5hkscs2004.h.
1383         * lib/converters.h: Include the new file.
1384         * README, man/iconv_open.3: Add BIG5-HKSCS:2004.
1385         * tests/BIG5-HKSCS-2008.TXT: New file, based on
1386         tests/BIG5-HKSCS-2004.TXT.
1387         * tests/BIG5-HKSCS-2008.IRREVERSIBLE.TXT: New file, copied from
1388         tests/BIG5-HKSCS-2004.IRREVERSIBLE.TXT
1389         * tests/BIG5-HKSCS-2008-snippet: New file, based on
1390         tests/BIG5-HKSCS-2004-snippet.
1391         * tests/BIG5-HKSCS-2008-snippet.UTF-8: New file, based on
1392         tests/BIG5-HKSCS-2004-snippet.UTF-8.
1393         * tests/Makefile.in (check): Check also BIG5-HKSCS:2008.
1394         Reported by oCameLo <camel322@gmail.com>.
1396 2010-11-23  Bruno Haible  <bruno@clisp.org>
1398         Make cjk_tab_to_h 64-bit clean.
1399         * tools/cjk_tab_to_h.c (do_jisx0213): Add a cast from size_t to int.
1400         (output_title): Update copyright year.
1402 2010-09-23  Bruno Haible  <bruno@clisp.org>
1404         Switch to autoconf 2.68.
1405         * autogen.sh: Update comment.
1406         * configure.ac: Fix AC_COMPILE_IFELSE invocation.
1407         * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.68.
1408         * preload/Makefile.devel (AUTOCONF): Likewise.
1410 2010-09-23  Bruno Haible  <bruno@clisp.org>
1412         * m4/libtool.m4: Update from libtool-2.4, with modifications:
1413         2008-04-06  Bruno Haible  <bruno@clisp.org>
1414                 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
1415                 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
1416                 to ${CONFIG_SHELL}.
1417         * m4/ltversion.m4: Update from libtool-2.4.
1418         * build-aux/ltmain.sh: Likewise.
1420 2010-09-23  Bruno Haible  <bruno@clisp.org>
1422         Simplify use of gnulib-tool now that gnulib-tool --import works better.
1423         * autogen.sh: Don't remove gnulib-cache.m4 before running gnulib-tool.
1424         * Makefile.devel (srclib/Makefile.gnulib): Depend on 'force'.
1426 2010-07-31  Bruno Haible  <bruno@clisp.org>
1428         * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.67.
1429         * preload/Makefile.devel (AUTOCONF): Likewise.
1431 2010-07-03  Bruno Haible  <bruno@clisp.org>
1433         * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.66.
1434         * preload/Makefile.devel (AUTOCONF): Likewise.
1436 2010-06-04  Bruno Haible  <bruno@clisp.org>
1438         Addendum to 2009-10-18 commit.
1439         * m4/fcntl-o.m4: New file, from gnulib.
1440         * configure.ac: Invoke gl_FCNTL_O_FLAGS.
1441         * lib/config.h.in (HAVE_WORKING_O_NOFOLLOW): New macro.
1443 2010-06-04  Bruno Haible  <bruno@clisp.org>
1445         * m4/libtool.m4: Update from libtool-2.2.8, with modifications:
1446         2008-04-06  Bruno Haible  <bruno@clisp.org>
1447                 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
1448                 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
1449                 to ${CONFIG_SHELL}.
1450         * m4/ltoptions.m4: Update from libtool-2.2.8.
1451         * m4/ltversion.m4: Likewise.
1452         * m4/lt~obsolete.m4: Likewise.
1453         * build-aux/ltmain.sh: Likewise.
1455 2010-04-06  Bruno Haible  <bruno@clisp.org>
1457         Avoid a compilation error of gnulib's test-iconv-h-c++.cc on mingw.
1458         * include/iconv.h.in: Restrict the extern "C" { ... } scope so that it
1459         doesn't contains #include directives.
1461 2010-03-30  Bruno Haible  <bruno@clisp.org>
1463         * README.woe32: Update for Cygwin 1.7.x.
1465 2009-12-26  Bruno Haible  <bruno@clisp.org>
1467         * windows/libiconv.rc: Update.
1468         * windows/iconv.rc: Update.
1470 2009-12-11  Bruno Haible  <bruno@clisp.org>
1472         * include/iconv.h.in: Untabify.
1473         * gnulib-local/lib/xalloc.h: Untabify.
1474         * woe32dll/export.h: Untabify.
1475         * tests/uniq-u.c: Untabify.
1477 2009-12-11  Bruno Haible  <bruno@clisp.org>
1479         * srclib/Makefile.am (MOSTLYCLEANDIRS): New macro.
1481 2009-12-11  Bruno Haible  <bruno@clisp.org>
1483         * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.65.
1484         * preload/Makefile.devel (AUTOCONF): Likewise.
1486 2009-11-22  Bruno Haible  <bruno@clisp.org>
1488         * tests/check-subst: Add reference to the Solaris printf bug.
1489         Reported by Dagobert Michelsen <dagobert@familie-michelsen.de>.
1491 2009-09-01  Bruno Haible  <bruno@clisp.org>
1493         * README.woe32: Put the -mno-cygwin option into CC and CXX.
1494         Recommended by Paolo Bonzini and Eric Blake.
1496 2009-08-15  Bruno Haible  <bruno@clisp.org>
1498         * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.64.
1499         * preload/Makefile.devel (AUTOCONF): Likewise.
1501 2009-08-15  Bruno Haible  <bruno@clisp.org>
1503         Use .git/info/exclude, not .gitignore, for imported or generated files.
1504         * Makefile.devel (srclib/Makefile.gnulib): Pass option --no-vc-files to
1505         gnulib-tool.
1507 2009-07-07  Bruno Haible  <bruno@clisp.org>
1509         Fix an endless loop.
1510         * lib/loop_wchar.h (wchar_to_loop_convert): Handle the case of
1511         incomplete input correctly.
1512         * tests/test-to-wchar.c: New file.
1513         * tests/Makefile.in (tests-to-wchar, tests-to-wchar.o): New rules.
1514         (check): Depend on and run tests-to-wchar.
1515         (clean): Add tests-to-wchar.
1516         Reported by Tristan Gingold <gingold@adacore.com>.
1518 2009-06-30  Bruno Haible  <bruno@clisp.org>
1520         * Version 1.13.1 released.
1522 2009-06-30  Bruno Haible  <bruno@clisp.org>
1524         * configure.ac: Bump version number to 1.13.1.
1525         * README: Likewise.
1527 2009-06-04  Bruno Haible  <bruno@clisp.org>
1529         * preload/Makefile.devel (AUTOCONF): Switch to version 2.63.
1530         (ACLOCAL): Switch to version 1.11.
1532 2009-05-19  Bruno Haible  <bruno@clisp.org>
1534         * Makefile.devel (AUTOMAKE, ACLOCAL): Switch to version 1.11.
1535         * autogen.sh: Update comments.
1537 2009-04-24  Bruno Haible  <bruno@clisp.org>
1539         Fix a compilation error on HP-UX 11.00, introduced on 2008-09-16.
1540         * src/iconv_open2.h: Don't initialize nonexistent field if
1541         !(HAVE_WCRTOMB || HAVE_MBRTOWC).
1542         Patch by Joel Brobecker <brobecker@adacore.com>.
1544 2009-04-15  Bruno Haible  <bruno@clisp.org>
1546         * src/Makefile.in (install, uninstall): Append the $(EXEEXT) suffix
1547         explicitly. Needed on Cygwin.
1549 2009-04-11  Bruno Haible  <bruno@clisp.org>
1551         * configure.ac: Move the statements for WOE32 and WINDRES.
1553 2009-03-26  Bruno Haible  <bruno@clisp.org>
1555         * Version 1.13 released.
1557 2009-03-26  Bruno Haible  <bruno@clisp.org>
1559         * src/iconv.c: Update copyright header to GPLv3+.
1560         (print_version): Update license info.
1562 2009-03-26  Bruno Haible  <bruno@clisp.org>
1564         * src/iconv.c (print_version): Bump year.
1566 2009-03-25  Bruno Haible  <bruno@clisp.org>
1568         * build-aux/config.guess: Update to GNU version 2009-02-03.
1569         * build-aux/config.sub: Likewise.
1571 2009-03-25  Bruno Haible  <bruno@clisp.org>
1573         * configure.ac: Bump version number to 1.13.
1574         * README: Likewise.
1575         * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
1576         * windows/iconv.rc: Update.
1577         * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 7:0:5.
1579 2009-03-25  Bruno Haible  <bruno@clisp.org>
1581         Fix the handling of Windows resources in shared libraries.
1582         * configure.ac: Invoke LT_LANG for 'Windows Resource'.
1583         * lib/Makefile.in (RC): New variable.
1584         (WINDRES): Remove variable.
1585         (OBJECTS_RES_yes): Add .lo suffix.
1586         (libiconv.res.lo): Renamed from libiconv.res. Use libtool --tag=RC.
1587         (clean): Simplify.
1588         Based on a patch by Roumen Petrov <bugtrack@roumenpetrov.info>.
1590 2009-03-14  Bruno Haible  <bruno@clisp.org>
1592         * autogen.sh: Checkout gnulib using 'git' instead of 'cvs'.
1594 2009-01-24  Bruno Haible  <bruno@clisp.org>
1596         * tools/Makefile (ALL): Add cp1131.h.
1597         (cp1131.h): New rule.
1598         * lib/encodings.def: Add CP1131.
1599         * lib/cp1131.h: New file.
1600         * lib/converters.h: Include it.
1601         * README, man/iconv_open.3: Add CP1131.
1602         * NOTES: Mention CP1131.
1603         * tests/CP1131.TXT: New file.
1604         * tests/Makefile.in (check): Also test CP1131.
1606 2009-01-17  Bruno Haible  <bruno@clisp.org>
1608         Add support for "make install-strip".
1609         * configure.ac: Search for 'strip'. Invoke AM_PROG_INSTALL_STRIP.
1610         * Makefile.in (install-strip): New rule.
1611         * src/Makefile.in (STRIP, INSTALL_STRIP_PROGRAM, install_sh): New
1612         variables.
1613         (install-strip): New rule.
1614         * lib/Makefile.in (install-strip): New target.
1615         * preload/Makefile.in (install-strip): Likewise.
1616         * man/Makefile.in (install-strip): Likewise.
1617         Reported by Alon Bar-Lev <alon.barlev@gmail.com>.
1619 2009-01-17  Bruno Haible  <bruno@clisp.org>
1621         Update after gnulib changed.
1622         * src/Makefile.in (RELOCATABLE_STRIP): New variable.
1624 2009-01-17  Bruno Haible  <bruno@clisp.org>
1626         Make --enable-relocatable work on glibc systems.
1627         * src/Makefile.in (host): New variable.
1629 2009-01-17  Bruno Haible  <bruno@clisp.org>
1631         * lib/genflags.c: Include <string.h>.
1633 2009-01-14  Bruno Haible  <bruno@clisp.org>
1635         * configure.ac: More consistent m4 quoting.
1636         * preload/configure.ac: Likewise.
1638 2008-09-28  Bruno Haible  <bruno@clisp.org>
1640         * build-aux/ltmain.sh (func_emit_cwrapperexe_src): On mingw,
1641         preprocess the argument vector through prepare_spawn.
1643 2008-09-27  Bruno Haible  <bruno@clisp.org>
1645         * build-aux/config.guess: Update to GNU version 2008-09-08.
1646         * build-aux/config.sub: Likewise.
1648 2008-09-26  Bruno Haible  <bruno@clisp.org>
1650         * tests/test-shiftseq.c (main1, main2): Use ICONV_CONST.
1652 2008-09-26  Bruno Haible  <bruno@clisp.org>
1654         * Makefile.devel (GNULIB_MODULES): Add sigpipe, stdio.
1655         * tests/Makefile.in (check, table-from, table-to, test-shiftseq): Link
1656         all programs against libicrt.a. Needed for the stdio function
1657         replacements on mingw.
1659 2008-09-21  Tadamasa Teranishi  <yw3t-trns@asahi-net.or.jp>
1661         * lib/encodings_extra.def: Add aliases for EUC-JISX0213, SHIFT_JISX0213,
1662         ISO-2022-JP-3, found on <http://x0213.org/codetable/index.en.html>.
1664 2008-09-20  Bruno Haible  <bruno@clisp.org>
1666         * man/iconv_open_into.3: New file.
1668 2008-09-16  Bruno Haible  <bruno@clisp.org>
1670         New function iconv_open_into.
1671         * include/iconv.h.in: Include <wchar.h> and its prerequisites.
1672         (iconv_allocation_t): New type.
1673         (iconv_open_into): New declaration.
1674         * lib/iconv_open1.h: New file, extracted from lib/iconv.c.
1675         * lib/iconv_open2.h: New file, extracted from lib/iconv.c.
1676         * lib/iconv.c (iconv_open): Include iconv_open1.h and iconv_open2.h.
1677         Verify size of iconv_allocation_t.
1678         (iconv_open_into): New function.
1679         * lib/loop_wchar.h (struct wchar_conv_struct): Don't define a state
1680         field if !(HAVE_WCRTOMB || HAVE_MBRTOWC).
1681         * configure.ac: Set and substitute USE_MBSTATE_T, BROKEN_WCHAR_H.
1682         Reported by Roman Rybalko <romanr@romanr.info>.
1684 2008-09-16  Bruno Haible  <bruno@clisp.org>
1686         * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.63.
1688 2008-09-16  Bruno Haible  <bruno@clisp.org>
1690         * include/iconv.h.in: Use Unicode single-quotes in comments.
1692 2008-09-14  Bruno Haible  <bruno@clisp.org>
1694         * Makefile.devel (GNULIB_MODULES): Add strerror.
1696 2008-09-07  Bruno Haible  <bruno@clisp.org>
1698         Make behaviour when encountering invalid input after a shift sequence
1699         more consistent.
1700         * lib/converters.h (RET_SHIFT_ILSEQ): New macro.
1701         (RET_ILSEQ): Define in terms of RET_SHIFT_ILSEQ.
1702         (RET_TOOFEW): Change to avoid collisions with RET_SHIFT_ILSEQ.
1703         (DECODE_SHIFT_ILSEQ, DECODE_TOOFEW): New macros.
1704         * lib/loop_unicode.h (unicode_loop_convert): Take into account the
1705         shift count contained in the negative return values.
1706         * lib/hz.h (hz_mbtowc): When encountering invalid input, store the
1707         modified state and return RET_SHIFT_ILSEQ.
1708         * lib/iso2022_cn.h (iso2022_cn_mbtowc): Likewise.
1709         * lib/iso2022_cnext.h (iso2022_cn_ext_mbtowc): Likewise.
1710         * lib/iso2022_jp.h (iso2022_jp_mbtowc): Likewise.
1711         * lib/iso2022_jp1.h (iso2022_jp1_mbtowc): Likewise.
1712         * lib/iso2022_jp2.h (iso2022_jp2_mbtowc): Likewise.
1713         * lib/iso2022_jp3.h (iso2022_jp3_mbtowc): Likewise.
1714         * lib/iso2022_kr.h (iso2022_kr_mbtowc): Likewise.
1715         * lib/ucs2.h (ucs2_mbtowc): Likewise.
1716         * lib/ucs4.h (ucs4_mbtowc): Likewise.
1717         * lib/utf16.h (utf16_mbtowc): Likewise.
1718         * lib/utf32.h (utf32_mbtowc): Likewise.
1719         * lib/utf7.h (utf7_mbtowc): Likewise.
1720         * lib/utf16be.h (utf16be_mbtowcutf16be_mbtowc): When encountering
1721         invalid input, return RET_SHIFT_ILSEQ.
1722         * lib/utf16le.h (utf16le_mbtowc): Likewise.
1723         * tests/test-shiftseq.c: New file.
1724         * tests/Makefile.in (check): Run test-shiftseq.
1725         (test-shiftseq, test-shiftseq.@OBJEXT@): New rules.
1726         (clean): Remove test-shiftseq executable.
1727         Reported by Roman Rybalko <roman_rybalko@users.sourceforge.net>
1728         at <https://savannah.gnu.org/bugs/?24216>.
1730 2008-09-07  Bruno Haible  <bruno@clisp.org>
1732         * man/iconv.3: Clarify the processing of shift-sequences.
1734 2008-09-07  Bruno Haible  <bruno@clisp.org>
1736         * m4/libtool.m4: Update from libtool-2.2.6, with modifications:
1737         2008-04-06  Bruno Haible  <bruno@clisp.org>
1738                 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
1739                 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
1740                 to ${CONFIG_SHELL}.
1741         * m4/ltoptions.m4: Update from libtool-2.2.6.
1742         * m4/ltsugar.m4: Likewise.
1743         * m4/ltversion.m4: Likewise.
1744         * build-aux/ltmain.sh: Likewise.
1746 2008-09-06  Bruno Haible  <bruno@clisp.org>
1748         * lib/gbk.h (gbk_wctomb): Fix an out-of-bounds write.
1749         Reported by Roman Rybalko <roman_rybalko@users.sourceforge.net>
1750         at <https://savannah.gnu.org/bugs/?24214>.
1752 2008-06-30  Bruno Haible  <bruno@clisp.org>
1754         Fix sed expressions to work with the old sed-3.02 on MSYS.
1755         * windows/windres-options (sed_extract_major, sed_extract_minor,
1756         sed_extract_subminor): Put a semicolon before the closing brace. Use
1757         an i\ command instead of an a\ command.
1758         Reported by Sunil Negi <sunil.negi@morningstar.com>
1759         in <http://article.gmane.org/gmane.comp.gnu.mingw.msys/4410>
1760         via Keith Marshall <keithmarshall@users.sourceforge.net>.
1762 2008-05-22  Bruno Haible  <bruno@clisp.org>
1764         * README.woe32: Update with info from GNU gettext's README.woe32.
1766 2008-05-18  Bruno Haible  <bruno@clisp.org>
1768         * m4/libtool.m4: Update from libtool-2.2.4, with modifications:
1769         2008-04-06  Bruno Haible  <bruno@clisp.org>
1770                 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
1771                 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
1772                 to ${CONFIG_SHELL}.
1773         * m4/ltoptions.m4: Update from libtool-2.2.4.
1774         * m4/ltversion.m4: Likewise.
1775         * m4/lt~obsolete.m4: Likewise.
1776         * build-aux/ltmain.sh: Likewise.
1778 2008-04-14  Bruno Haible  <bruno@clisp.org>
1780         * tests/Makefile.in (check): Remove *.dSYM directories left over by gcc
1781         on MacOS X 10.5.
1783 2008-04-14  Bruno Haible  <bruno@clisp.org>
1785         * preload/configure.ac: Invoke AC_USE_SYSTEM_EXTENSIONS instead of
1786         AC_AIX and AC_MINIX.
1787         * Makefile.devel (AUTOCONF, AUTOHEADER): Require autoconf-2.62.
1788         * preload/Makefile.devel (AUTOCONF): Likewise.
1789         * autogen.sh: Likewise.
1791 2008-04-06  Bruno Haible  <bruno@clisp.org>
1793         * m4/libtool.m4: Update from libtool-2.2.2, with modifications:
1794         2008-04-06  Bruno Haible  <bruno@clisp.org>
1795                 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
1796                 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
1797                 to ${CONFIG_SHELL}.
1798         * m4/ltoptions.m4: New file, from libtool-2.2.2.
1799         * m4/ltsugar.m4: New file, from libtool-2.2.2.
1800         * m4/ltversion.m4: New file, from libtool-2.2.2.
1801         * m4/lt~obsolete.m4: New file, from libtool-2.2.2.
1802         * build-aux/ltmain.sh: New file, from libtool-2.2.2.
1803         * configure.ac: Use LT_INIT instead of AC_PROG_LIBTOOL.
1804         * preload/configure.ac: Likewise.
1806 2008-04-06  Bruno Haible  <bruno@clisp.org>
1808         More portable way of building the preloadable library.
1809         * preload/Makefile.devel: New file.
1810         * preload/Makefile.in: New file, based on lib/Makefile.in.
1811         * preload/configure.ac: New file, based on configure.ac.
1812         * Makefile.devel (all): Recurse into preload directory.
1813         * Makefile.in (all, install, installdirs, uninstall, check,
1814         mostlyclean, clean, distclean, maintainer-clean): Recurse into preload
1815         directory.
1816         * configure.ac: Likewise.
1817         (OS, GCC, PLUGLIB): Remove definitions.
1818         * lib/Makefile.in (all): Don't depend on PLUGLIB.
1819         (preloadable_libiconv.so, preloadable_libiconv_linux.so,
1820         preloadable_libiconv_solaris.so, preloadable_libiconv_osf.so): Remove
1821         rules.
1822         (install, uninstall, clean): Don't handle the preloadable library here.
1824 2008-04-06  Bruno Haible  <bruno@clisp.org>
1826         Avoid a gcc warning.
1827         * lib/loop_unicode.h (unicode_loop_convert): Add a cast.
1829 2008-04-06  Bruno Haible  <bruno@clisp.org>
1831         * src/iconv.c (print_version): Bump year.
1833 2008-04-06  Bruno Haible  <bruno@clisp.org>
1835         Support all possible nl_langinfo(CODESET) results on the respective
1836         platforms, according to libcharset/lib/config.charset.
1837         * lib/encodings.def: Add DEFALIAS statements, conditional on
1838         USE_AIX_ALIASES, USE_HPUX_ALIASES, USE_OSF1_ALIASES,
1839         USE_SOLARIS_ALIASES.
1840         * lib/encodings_aix.def: Add DEFALIAS statements, conditional on
1841         USE_AIX_ALIASES.
1842         * lib/encodings_osf1.def: Add DEFALIAS statements, conditional on
1843         USE_OSF1_ALIASES.
1844         * lib/genaliases.c (emit_alias): New function, extracted from
1845         emit_encoding.
1846         (emit_encoding): Use it.
1847         (main): Define DEFALIAS.
1848         * lib/genaliases2.c (counter): New variable, extracted from
1849         emit_encoding.
1850         (emit_alias): New function, extracted from emit_encoding.
1851         (emit_encoding): Use it.
1852         (main): Define DEFALIAS.
1853         * lib/genflags.c (main): Define DEFALIAS.
1854         * lib/iconv.c (all_encodings): Define DEFALIAS.
1855         Include the system dependent variant of aliases.h on the appropriate
1856         systems.
1857         (all_canonical): Include the system dependent variant of canonical.h,
1858         canonical_aix.h, canonical_osf1.h, canonical_local.h on the appropriate
1859         systems.
1860         * lib/aliases2.h: Include the system dependent variant of
1861         aliases_aix.h or aliases_osf1.h on the appropriate systems.
1862         * lib/Makefile.in (iconv.lo): Depend on aliases_sysaix.h,
1863         aliases_syshpux.h, aliases_sysosf1.h, aliases_syssolaris.h,
1864         aliases_aix_sysaix.h, lib/aliases_osf1_sysosf1.h, and also
1865         aliases_extra.h, translit.h.
1866         * Makefile.devel (all): Depend on lib/aliases_sysaix.h,
1867         lib/aliases_syshpux.h, lib/aliases_sysosf1.h, lib/aliases_syssolaris.h,
1868         lib/aliases_aix_sysaix.h, lib/aliases_osf1_sysosf1.h.
1869         (lib/aliases_sysaix.h, lib/aliases_syshpux.h, lib/aliases_sysosf1.h,
1870         lib/aliases_syssolaris.h): New rules.
1871         (lib/aliases_aix_sysaix.h): New rule.
1872         (lib/aliases_osf1_sysosf1.h): New rule.
1873         * autogen.sh: Also remove lib/aliases_sysaix.h, lib/aliases_syshpux.h,
1874         lib/aliases_sysosf1.h, lib/aliases_syssolaris.h,
1875         lib/aliases_aix_sysaix.h, lib/aliases_osf1_sysosf1.h.
1877 2008-04-06  Bruno Haible  <bruno@clisp.org>
1879         * build-aux/config.libpath: Remove file, brought in by gnulib-tool.
1880         * build-aux/config.rpath: Remove file, brought in by gnulib-tool.
1882 2007-11-11  Bruno Haible  <bruno@clisp.org>
1884         * Version 1.12 released.
1886 2007-11-11  Bruno Haible  <bruno@clisp.org>
1888         * Makefile.devel (AUTOCONF, AUTOHEADER): Require version 2.61.
1889         (AUTOMAKE, ACLOCAL): Require version 1.10.
1890         (srclib/Makefile.in): Avoid error from automake.
1892 2007-10-26  Bruno Haible  <bruno@clisp.org>
1894         * m4/libtool.m4: Update, based on libtool-1.5.24.
1895         * build-aux/ltmain.sh: Update, based on libtool-1.5.24.
1897 2007-10-23  Bruno Haible  <bruno@clisp.org>
1899         * build-aux/config.guess: Update to GNU version 2007-07-22.
1900         * build-aux/config.sub: Likewise.
1902 2007-10-23  Bruno Haible  <bruno@clisp.org>
1904         * configure.ac: Bump version number to 1.12.
1905         * README: Likewise.
1907 2007-10-23  Bruno Haible  <bruno@clisp.org>
1909         Move relocatability infrastructure to gnulib.
1910         * gnulib-local/lib/relocatable.h: Remove file.
1911         * gnulib-local/lib/relocatable.c: Remove file.
1913 2007-10-23  Bruno Haible  <bruno@clisp.org>
1915         Update from GNU gettext.
1916         2006-11-26  Bruno Haible  <bruno@clisp.org>
1917                 * gnulib-local/lib/xalloc.h (xmemdup): Add a typesafe C++
1918                 template variant.
1919                 Based on a patch from Paul Eggert in gnulib.
1920         2006-11-06  Bruno Haible  <bruno@clisp.org>
1921                 * gnulib-local/lib/xalloc.h (xcharalloc): New macro.
1922                 (xmemdup): New declaration.
1923                 * gnulib-local/lib/xstrdup.c (xmemdup): New function.
1924         2006-11-03  Bruno Haible  <bruno@clisp.org>
1925                 * gnulib-local/lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC,
1926                 XCALLOC): New macros.
1927                 (xnboundedmalloc): New inline function.
1928                 * gnulib-local/lib/xstrdup.c (xstrdup): Use XNMALLOC instead of
1929                 xmalloc.
1930         2006-11-02  Bruno Haible  <bruno@clisp.org>
1931                 * lib/xalloc.h (xnmalloc): New declaration. From gnulib
1932                 xalloc.h.
1933                 * lib/xmalloc.c (fixup_null_alloc): Write NULL, not 0.
1934                 (xnmalloc): New function.
1936 2007-10-23  Bruno Haible  <bruno@clisp.org>
1938         Moved module xreadlink to gnulib.
1939         * gnulib-local/modules/xreadlink: Remove file.
1940         * gnulib-local/lib/xreadlink.h: Remove file.
1941         * gnulib-local/lib/xreadlink.c: Remove file.
1942         * gnulib-local/m4/xreadlink.m4: Remove file.
1944 2007-10-07  Bruno Haible  <bruno@clisp.org>
1946         Update program license to GPLv3.
1947         * COPYING: Replace with GPL 3.
1948         * windows/iconv.rc (Comments): Update.
1950 2007-10-07  Bruno Haible  <bruno@clisp.org>
1952         * gnulib-local/lib/alloca.in.h: Renamed from gnulib-local/lib/alloca_.h.
1954 2007-03-30  Bruno Haible  <bruno@clisp.org>
1956         * gnulib-local/lib/alloca_.h: Change prefix of double-inclusion guard
1957         macro to _GL_.
1959 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
1961         * gnulib-local/lib/alloca_.h (alloca) [defined alloca]: Don't define or
1962         declare.
1964 2007-09-29  Bruno Haible  <bruno@clisp.org>
1966         * autogen.sh (GNULIB_CVS_ROOT): Change to read-only git mirror
1967         valid since 2007-09-19.
1969 2007-07-07  Bruno Haible  <bruno@clisp.org>
1971         * autogen.sh: Add an option --skip-gnulib.
1973 2007-07-07  Bruno Haible  <bruno@clisp.org>
1975         * gnulib-local/lib/uniwidth.h: Remove file, moved to gnulib.
1976         * gnulib-local/lib/width.c: Remove file, moved to gnulib.
1977         * gnulib-local/lib/cjk.h: Remove file, moved to gnulib.
1978         * gnulib-local/modules/uniwidth: Remove file.
1979         * Makefile.devel (GNULIB_MODULES): Remove uniwidth, add uniwidth/width.
1980         * src/iconv.c: Include uniwidth/cjk.h instead of cjk.h.
1982 2007-06-30  Bruno Haible  <bruno@clisp.org>
1984         * src/iconv.c (print_version): Use the standard --version output, see
1985         <https://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00302.html>.
1987 2007-06-30  Bruno Haible  <bruno@clisp.org>
1989         * autogen.sh: New file.
1990         * DEPENDENCIES: New file.
1991         * HACKING: New file.
1993 2007-06-30  Bruno Haible  <bruno@clisp.org>
1995         * src/iconv.c: Provide translator comments for many messages.
1996         (conversion_error_EILSEQ, conversion_error_EINVAL,
1997         conversion_error_other): New functions, extracted from convert.
1998         (convert): Use them.
1999         Reported by Tim Van Holder <tim.van.holder@telenet.be>.
2001 2007-06-09  Bruno Haible  <bruno@clisp.org>
2003         * gnulib-local/lib/relocwrapper.c: Remove file.
2005 2007-05-27  Bruno Haible  <bruno@clisp.org>
2007         * windows/libiconv.rc: New file.
2008         * windows/iconv.rc: New file.
2009         * windows/windres-options: New file.
2010         * configure.ac (WOE32): New variable.
2011         (WINDRES) [WOE32]: New variable.
2012         * lib/Makefile.in (WINDRES): New variable.
2013         (PACKAGE_VERSION): New variable.
2014         (OBJECTS_EXP_yes): Renamed from OBJECTS_yes.
2015         (OBJECTS_EXP_no): Renamed from OBJECTS_no.
2016         (OBJECTS_RES_yes, OBJECTS_RES_no): New variables.
2017         (OBJECTS): Add one of them.
2018         (libiconv.res): New rule.
2019         (clean): Remove also libiconv.res.
2020         * src/Makefile.in (WINDRES): New variable.
2021         (PACKAGE_VERSION): New variable.
2022         (OBJECTS_RES_yes, OBJECTS_RES_no): New variables.
2023         (all, iconv_no_i18n, install): Use them.
2024         (iconv.res): New rule.
2025         (clean): Remove also iconv.res.
2026         Suggested and inspired by work by Perry Rapp.
2028 2007-05-27  Bruno Haible  <bruno@clisp.org>
2030         Follow broken iconv() prototype in POSIX.
2031         * configure.ac (ICONV_CONST): Set to empty if the system has no iconv.
2032         * lib/config.h.in (ICONV_CONST): Change default value to an empty
2033         comment.
2034         * src/iconv.c (ICONV_CONST): Change default value to empty.
2035         Reported by Andreas Krennmair <ak@synflood.at>.
2037 2007-05-25  Bruno Haible  <bruno@clisp.org>
2039         * tools/Makefile (ALL): Add rk1048.h.
2040         (rk1048.h): New rule.
2041         * lib/encodings.def: Add RK1048.
2042         * lib/rk1048.h: New file.
2043         * lib/converters.h: Include it.
2044         * README, man/iconv_open.3: Add RK1048.
2045         * NOTES: Mention RK1048.
2046         * tests/RK1048.TXT: New file.
2047         * tests/Makefile.in (check): Also test RK1048.
2048         Suggested by Timur Birsh <team9@host.kz>.
2050 2007-04-24  Bruno Haible  <bruno@clisp.org>
2052         * man/iconv_open.3: Tweak explanation of TRANSLIT.
2053         Reported by Perry Rapp.
2055 2007-04-23  Bruno Haible  <bruno@clisp.org>
2057         * tests/check-subst: Use the output of 'printf' only if it didn't
2058         crash. Needed to work around a buffer overflow in Solaris /bin/printf.
2059         Reported by Arto C. Nirkko <anirkko@insel.ch>.
2061 2007-04-23  Bruno Haible  <bruno@clisp.org>
2063         * lib/iconv.c (iconv_open, iconv_canonicalize): Treat native Woe32
2064         systems like those which define __STDC_ISO_10646__.
2065         Reported by Keith Marshall <keithmarshall@users.sourceforge.net>.
2067 2007-03-31  Bruno Haible  <bruno@clisp.org>
2069         * man/iconv.1: Use HYPHEN-MINUS signs instead of HYPHENs where
2070         appropriate.
2071         * man/iconv_open.3: Likewise.
2072         * man/iconv.3: Likewise.
2073         * man/iconv_close.3: Likewise.
2074         * man/iconvctl.3: Likewise.
2076 2007-03-31  Bruno Haible  <bruno@clisp.org>
2078         * man/iconv.1: Mark as POSIX compliant.
2079         * man/iconv_open.3: Likewise.
2080         * man/iconv.3: Likewise.
2081         * man/iconv_close.3: Likewise.
2083         * man/*.[13]: Syntactic simplifications.
2085 2007-03-19  Bruno Haible  <bruno@clisp.org>
2087         Assume that mkinstalldirs also creates the necessary parent directories.
2088         * Makefile.in (install, installdirs): Don't explicitly create the
2089         parent directories.
2090         * lib/Makefile.in (install, installdirs): Likewise.
2091         * src/Makefile.in (install, installdirs): Likewise.
2092         * man/Makefile.in (install, installdirs): Likewise.
2093         Reported by Thomas Klausner <tk@giga.or.at>.
2095 2007-03-04  Bruno Haible  <bruno@clisp.org>
2097         * Makefile.devel (GNULIB_MODULES): Add relocatable-prog. Remove
2098         relocatable, relocwrapper.
2099         * configure.ac: Invoke gl_RELOCATABLE instead of AC_RELOCATABLE.
2100         * gnulib-local/modules/progreloc: Remove file.
2101         * gnulib-local/modules/relocatable: Remove file.
2102         * gnulib-local/modules/relocwrapper: Remove file.
2103         * gnulib-local/m4/relocatable.m4: Remove file.
2104         * gnulib-local/lib/strerror.c.diff: Remove file.
2105         * src/Makefile.in: Remove SET_RELOCATABLE invocation. Instead get
2106         RELOCATABLE_LDFLAGS and INSTALL_PROGRAM_ENV.
2108 2007-02-19  Bruno Haible  <bruno@clisp.org>
2110         * gnulib-local/lib/xmalloc.c: Don't include exit.h.
2111         * src/iconv.c: Likewise.
2113 2007-02-16  Juan Manuel Guerrero  <juan.guerrero@gmx.de>
2115         * djgpp/*: Update.
2117 2007-02-03  Bruno Haible  <bruno@clisp.org>
2119         * tools/Makefile (ksc5601.h): Add one extra character.
2120         * lib/ksc5601.h: Regenerated.
2121         * lib/cp949.h (cp949_mbtowc, cp949_wctomb): Exclude the new character.
2122         * tests/EUC-KR.TXT: Add CIRCLED HANGUL IEUNG U.
2123         * tests/JOHAB.TXT: Likewise.
2124         Reported by Jungshik Shin (신정식, 申政湜) <jungshik@google.com>.
2126         * lib/euc_kr.h: Update comments.
2127         * lib/johab.h: Likewise.
2129 2007-02-03  Bruno Haible  <bruno@clisp.org>
2131         * tools/cjk_tab_to_h.c (output_title): Bump copyright year.
2133 2007-01-26  Bruno Haible  <bruno@clisp.org>
2135         Moved streq.h to gnulib.
2136         * gnulib-local/lib/streq.h: Remove file.
2137         * gnulib-local/modules/uniwidth (Files): Remove lib/streq.h.
2138         (Depends-on): Add streq.
2139         (lib_SOURCES): Remove streq.h.
2141 2007-01-26  Bruno Haible  <bruno@clisp.org>
2143         Moved unitypes.h to gnulib.
2144         * gnulib-local/lib/unitypes.h: Remove file.
2145         * gnulib-local/modules/uniwidth (Files): Remove lib/unitypes.h.
2146         (Depends-on): Add unitypes.
2147         (lib_SOURCES): Remove unitypes.h.
2149 2007-01-26  Bruno Haible  <bruno@clisp.org>
2151         Moved canonicalize to gnulib.
2152         * gnulib-local/modules/canonicalize: Remove file.
2153         * gnulib-local/lib/canonicalize.h: Remove file.
2154         * gnulib-local/lib/canonicalize.c: Remove file.
2155         * gnulib-local/m4/canonicalize.m4: Remove file.
2156         * gnulib-local/modules/progreloc (Depends-on): Replace 'canonicalize'
2157         with 'canonicalize-lgpl'.
2159 2006-12-20  Bruno Haible  <bruno@clisp.org>
2161         * lib/Makefile.in (install): On AIX, add the contents of
2162         /lib/libiconv.a to libiconv.a.
2164 2006-12-20  Bruno Haible  <bruno@clisp.org>
2166         * Makefile.devel (all): Depend on srclib/Makefile.gnulib, not
2167         srclib/Makefile.am.
2168         (aclocal.m4): Likewise. Touch the resulting file, since aclocal not
2169         always does it.
2170         (srclib/Makefile.gnulib): Renamed from srclib/Makefile.am. Pass
2171         option --makefile-name.
2172         (srclib/Makefile.in): Depend on srclib/Makefile.gnulib too.
2173         * srclib/Makefile.am: New file that includes srclib/Makefile.gnulib.
2175 2006-10-31  Bruno Haible  <bruno@clisp.org>
2177         Update from GNU gettext.
2178         2006-10-29  Bruno Haible  <bruno@clisp.org>
2179                 Make it compile in C++ mode.
2180                 * gnulib-local/lib/xalloc.h (xrealloc): Define as template
2181                 with appropriate return type.
2182                 * gnulib-local/lib/xstrdup.c (xstrdup): Cast xmalloc result.
2183         2006-10-26  Bruno Haible  <bruno@clisp.org>
2184                 * gnulib-local/modules/canonicalize (Makefile.am): Remove
2185                 EXTRA_DIST. Now done by gnulib-tool.
2186                 * gnulib-local/modules/relocatable (Makefile.am): Likewise.
2187                 * gnulib-local/modules/relocwrapper (Makefile.am): Likewise.
2188         2006-10-25  Bruno Haible  <bruno@clisp.org>
2189                 * gnulib-local/m4/relocatable.m4 (AC_RELOCATABLE_BODY):
2190                 Renamed from AC_RELOCATABLE, without the AC_LIBOBJ invocation.
2191                 (AC_RELOCATABLE): New macro. Invoke AC_LIBOBJ here.
2192                 * gnulib-local/modules/relocwrapper (configure.ac): Invoke
2193                 AC_RELOCATABLE instead of requiring it.
2194         2006-10-12  Bruno Haible  <bruno@clisp.org>
2195                 * gnulib-local/modules/canonicalize (Makefile.am): Distribute
2196                 all files in lib/ through EXTRA_DIST.
2197                 * gnulib-local/modules/relocatable (Makefile.am): Likewise.
2198         2006-09-14  Bruno Haible  <bruno@clisp.org>
2199                 * gnulib-local/lib/canonicalize.c: Include <config.h>
2200                 unconditionally.
2201                 * gnulib-local/lib/relocatable.c: Likewise.
2202                 * lib/relocatable.c: Likewise.
2203                 * gnulib-local/lib/relocwrapper.c: Likewise.
2204                 * gnulib-local/lib/xmalloc.c: Likewise.
2205                 * gnulib-local/lib/xreadlink.c: Likewise.
2206                 * gnulib-local/lib/xstrdup.c: Likewise.
2207         2006-08-02  Bruno Haible  <bruno@clisp.org>
2208                 * gnulib-local/modules/canonicalize: Put under LGPL.
2209                 * gnulib-local/modules/relocatable: Likewise.
2210         2006-07-18  Bruno Haible  <bruno@clisp.org>
2211                 * gnulib-local/xalloc.h (xzalloc): New declaration.
2212                 * gnulib-local/xmalloc.c (xzalloc): New function.
2214 2006-10-24  Bruno Haible  <bruno@clisp.org>
2216         * man/Makefile.in (PACKAGE): New variable. Needed for docdir.
2217         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
2219 2006-10-14  Bruno Haible  <bruno@clisp.org>
2221         * COPYING: New file.
2222         * README: Clarify copyright of the iconv program.
2223         Reported by Charles Wilson <cwilson@fastmail.fm>.
2225 2006-08-08  Bruno Haible  <bruno@clisp.org>
2227         * INSTALL.generic: Add a recommendation for Tru64.
2228         Reported by Gary V. Vaughan <gary@gnu.org>.
2230 2006-07-29  Bruno Haible  <bruno@clisp.org>
2232         * tests/check-subst: Set CHARSETALIASDIR.
2233         Needed so that "make check" works before "make install" on systems
2234         such as NetBSD.
2236 2006-07-29  Bruno Haible  <bruno@clisp.org>
2238         * Makefile.devel (aclocal.m4): Depend on srclib/Makefile.am.
2239         (AUTOCONF_FILES): Add the existing *.m4 files.
2241 2006-07-29  Bruno Haible  <bruno@clisp.org>
2243         * gnulib-local/lib/xreadlink.c: Assume <stdlib.h> exists.
2244         * src/iconv.c: Assume <locale.h> exists.
2245         * configure.ac: Remove tests for <locale.h>, <stddef.h>, <stdlib.h>,
2246         <string.h>.
2248 2006-07-29  Bruno Haible  <bruno@clisp.org>
2250         * configure.ac: Remove obsolete calls AC_PROG_GCC_TRADITIONAL,
2251         AC_ISC_POSIX, AC_HEADER_STDC.
2253 2006-07-29  Bruno Haible  <bruno@clisp.org>
2255         * configure.ac: Remove macro invocations that are redundant through
2256         gl_EARLY and gl_INIT.
2258 2006-07-29  Bruno Haible  <bruno@clisp.org>
2260         * gnulib-local/m4/alloca.m4 (gl_PREREQ_ALLOCA): Add a dummy statement.
2261         Avoids a sh syntax error.
2263 2006-07-29  Bruno Haible  <bruno@clisp.org>
2265         * gnulib-local/m4/relocatable.m4: Add comments.
2267 2006-07-29  Bruno Haible  <bruno@clisp.org>
2269         * gnulib-local/modules/libiconv-misc: New file.
2270         * Makefile.devel (GNULIB_MODULES): Add libiconv-misc.
2272         * Makefile.devel (srclib/Makefile.am): Pass --no-libtool.
2274 2006-07-29  Bruno Haible  <bruno@clisp.org>
2276         Note: gnulib macros no longer invoke AC_TYPE_SIZE_T nor
2277         AC_CHECK_TYPE([ptrdiff_t], , [AC_DEFINE([ptrdiff_t], [long], ...)])
2278         because we now assume that the system defines size_t and ptrdiff_t.
2280 2006-07-29  Bruno Haible  <bruno@clisp.org>
2282         Switch to using gnulib.
2283         * configure.ac (AC_PREREQ): Require autoconf-2.60.
2284         Invoke gl_EARLY and gl_INIT.
2285         * Makefile.devel (all): Depend on srclib/Makefile.am.
2286         (aclocal.m4): Pass -I srcm4 to aclocal. Simplify dependencies, assuming
2287         GNU make.
2288         (GNULIB_MODULES): New variable.
2289         (srclib/Makefile.am): New rule.
2290         * gnulib-local: New directory.
2291         * gnulib-local/m4/alloca.m4: Moved here from m4/alloca.m4.
2292         * gnulib-local/m4/canonicalize.m4: Moved here from m4/canonicalize.m4.
2293         * gnulib-local/m4/relocatable.m4: Moved here from m4/relocatable.m4.
2294         * gnulib-local/m4/xreadlink.m4: Moved here from m4/xreadlink.m4.
2295         * gnulib-local/lib/alloca_.h: Moved here from srclib/alloca_.h.
2296         * gnulib-local/lib/canonicalize.h: Moved here from srclib/canonicalize.h.
2297         * gnulib-local/lib/canonicalize.c: Moved here from srclib/canonicalize.c.
2298         * gnulib-local/lib/cjk.h: Moved here from srclib/cjk.h.
2299         * gnulib-local/lib/error.h.diff: New file.
2300         * gnulib-local/lib/progname.h.diff: New file.
2301         * gnulib-local/lib/relocatable.h: Moved here from srclib/relocatable.h.
2302         * gnulib-local/lib/relocatable.c: Moved here from srclib/relocatable.c.
2303         * gnulib-local/lib/relocwrapper.c: Moved here from srclib/relocwrapper.c.
2304         * gnulib-local/lib/streq.h: Moved here from srclib/streq.h.
2305         * gnulib-local/lib/strerror.c.diff: New file.
2306         * gnulib-local/lib/unitypes.h: Moved here from srclib/unitypes.h.
2307         * gnulib-local/lib/uniwidth.h: Moved here from srclib/uniwidth.h.
2308         * gnulib-local/lib/width.c: Moved here from srclib/width.c.
2309         * gnulib-local/lib/xalloc.h: Moved here from srclib/xalloc.h.
2310         * gnulib-local/lib/xmalloc.c: Moved here from srclib/xmalloc.c.
2311         * gnulib-local/lib/xstrdup.c: Moved here from srclib/xstrdup.c.
2312         * gnulib-local/lib/xreadlink.h: Moved here from srclib/xreadlink.h.
2313         * gnulib-local/lib/xreadlink.c: Moved here from srclib/xreadlink.c.
2314         * gnulib-local/modules/canonicalize: New file.
2315         * gnulib-local/modules/progreloc: New file.
2316         * gnulib-local/modules/relocatable: New file.
2317         * gnulib-local/modules/relocwrapper: New file.
2318         * gnulib-local/modules/uniwidth: New file.
2319         * gnulib-local/modules/xalloc: New file.
2320         * gnulib-local/modules/xreadlink: New file.
2322         * m4/allocsa.m4: Remove file. Now taken from gnulib.
2323         * m4/codeset.m4: Likewise.
2324         * m4/eealloc.m4: Likewise.
2325         * m4/error.m4: Likewise.
2326         * m4/extensions.m4: Likewise.
2327         * m4/full-header-path.m4: Likewise.
2328         * m4/gettext.m4: Likewise.
2329         * m4/glibc21.m4: Likewise.
2330         * m4/iconv.m4: Likewise.
2331         * m4/intmax.m4: Likewise.
2332         * m4/inttypes-h.m4: Likewise.
2333         * m4/inttypes_h.m4: Likewise.
2334         * m4/isc-posix.m4: Likewise.
2335         * m4/lcmessage.m4: Likewise.
2336         * m4/lib-ld.m4: Likewise.
2337         * m4/lib-link.m4: Likewise.
2338         * m4/lib-prefix.m4: Likewise.
2339         * m4/longdouble.m4: Likewise.
2340         * m4/longlong.m4: Likewise.
2341         * m4/mbstate_t.m4: Likewise.
2342         * m4/nls.m4: Likewise.
2343         * m4/onceonly.m4: Likewise.
2344         * m4/pathmax.m4: Likewise.
2345         * m4/po.m4: Likewise.
2346         * m4/printf-posix.m4: Likewise.
2347         * m4/progtest.m4: Likewise.
2348         * m4/readlink.m4: Likewise.
2349         * m4/setenv.m4: Likewise.
2350         * m4/signed.m4: Likewise.
2351         * m4/size_max.m4: Likewise.
2352         * m4/ssize_t.m4: Likewise.
2353         * m4/stdbool.m4: Likewise.
2354         * m4/stdint.m4: Likewise.
2355         * m4/stdint_h.m4: Likewise.
2356         * m4/strerror.m4: Likewise.
2357         * m4/strerror_r.m4: Likewise.
2358         * m4/unistd_h.m4: Likewise.
2359         * m4/unlocked-io.m4: Likewise.
2360         * m4/visibility.m4: Likewise.
2361         * m4/wchar_t.m4: Likewise.
2362         * m4/wint_t.m4: Likewise.
2364         * srclib/allocsa.h: Remove file. Now taken from gnulib.
2365         * srclib/allocsa.c: Likewise.
2366         * srclib/binary-io.h: Likewise.
2367         * srclib/error.h: Likewise.
2368         * srclib/error.c: Likewise.
2369         * srclib/exit.h: Likewise.
2370         * srclib/gettext.h: Likewise.
2371         * srclib/memmove.c: Likewise.
2372         * srclib/pathmax.h: Likewise.
2373         * srclib/progname.h: Likewise.
2374         * srclib/progname.c: Likewise.
2375         * srclib/progreloc.c: Likewise.
2376         * srclib/readlink.c: Likewise.
2377         * srclib/setenv.h: Likewise.
2378         * srclib/setenv.c: Likewise.
2379         * srclib/stdbool_.h: Likewise.
2380         * srclib/stdint_.h: Likewise.
2381         * srclib/strerror.c: Likewise.
2382         * srclib/unlocked-io.h: Likewise.
2383         * srclib/unsetenv.c: Likewise.
2384         * srclib/Makefile.am: Remove file.
2386 2006-07-27  Bruno Haible  <bruno@clisp.org>
2388         Remove OS/2 build support that doesn't assume GNU make and GNU bash.
2389         * README.os2: Remove file.
2390         * Makefile.os2: Remove file.
2391         * lib/Makefile.os2: Remove file.
2392         * src/Makefile.os2: Remove file.
2393         * man/Makefile.os2: Remove file.
2394         * tests/Makefile.os2: Remove file.
2395         * tests/check-stateful.cmd: Remove file.
2396         * tests/check-stateless.cmd: Remove file.
2397         * tests/check-translit.cmd: Remove file.
2399 2006-07-25  Bruno Haible  <bruno@clisp.org>
2401         Remove MSVC/nmake build support.
2402         * windows: Remove directory.
2403         * Makefile.msvc: Remove file.
2404         * lib/Makefile.msvc: Remove file.
2405         * srclib/Makefile.msvc: Remove file.
2406         * src/Makefile.msvc: Remove file.
2407         * tests/Makefile.msvc: Remove file.
2408         * man/Makefile.msvc: Remove file.
2409         * po/Rules-msvc: Remove file.
2410         * po/Makefile.msvc.sh: Remove file.
2411         * Makefile.devel (config.h.msvc, lib/config.h.msvc): Remove rules.
2412         (include/iconv.h.msvc-static, include/iconv.h.msvc-shared): Remove
2413         rules.
2414         (po/Makefile.msvc): Remove rule.
2415         (all): Update.
2417 2006-07-25  Bruno Haible  <bruno@clisp.org>
2419         Remove VMS support.
2420         * vms: Remove directory.
2421         * Makefile.vms: Remove file.
2422         * lib/Makefile.vms: Remove file.
2423         * srclib/Makefile.vms: Remove file.
2424         * src/Makefile.vms: Remove file.
2425         * tests/Makefile.vms: Remove file.
2426         * man/Makefile.vms: Remove file.
2427         * Makefile.devel (config.h_vms, lib/config.h_vms): Remove rules.
2428         (include/iconv.h_vms): Remove rule.
2429         (all): Update.
2431 2006-07-23  Bruno Haible  <bruno@clisp.org>
2433         * lib/Makefile.in (libiconv.la): Use the CFLAGS during linking.
2434         * src/Makefile.in (iconv_no_i18n): Likewise.
2435         (install): Likewise.
2436         * tests/Makefile.in (table-from, table-to): Likewise.
2437         Needed because the CFLAGS can e.g. trigger profiling.
2438         Reported by Russell Aspinwall <russell.aspinwall@flomerics.co.uk>.
2440 2006-07-19  Bruno Haible  <bruno@clisp.org>
2442         * Version 1.11 released.
2444 2006-07-19  Bruno Haible  <bruno@clisp.org>
2446         * srclib/Makefile.am (libicrt_a_SOURCES): Remove error.h, error.c.
2447         (LIBADD_SOURCE): Add them here.
2449 2006-07-19  Bruno Haible  <bruno@clisp.org>
2451         * build-aux/config.guess: Update to GNU version 2006-07-02.
2452         * build-aux/config.sub: Likewise.
2454 2006-07-14  Bruno Haible  <bruno@clisp.org>
2456         * lib/Makefile.in (clean): Remove also *.stackdump.
2457         * src/Makefile.in (clean): Likewise.
2458         * tests/Makefile.in (clean): Likewise.
2460 2006-07-14  Bruno Haible  <bruno@clisp.org>
2462         * src/Makefile.in (clean): Remove also iconv_no_i18n. Needed for
2463         cygwin or mingw.
2464         * tests/Makefile.in (clean): Remove also the programs, without
2465         EXEEXT. Needed for cygwin or mingw.
2466         * Makefile.in (mostlyclean, clean, distclean, maintainer-clean):
2467         Remove also bin directory. Needed for cygwin and mingw.
2469 2006-07-03  Bruno Haible  <bruno@clisp.org>
2471         * src/iconv.c (check_subst_formatstring): Use ngettext.
2472         (subst_wc_to_mb_fallback, subst_mb_to_mb_fallback): Fix error messages
2473         after 2006-01-22 change.
2474         * configure.ac: Require a gettext version with ngettext.
2476 2006-06-28  Bruno Haible  <bruno@clisp.org>
2478         * m4/gettext.m4: Update from GNU gettext.
2479         * m4/po.m4: Update from GNU gettext.
2481 2006-06-27  Bruno Haible  <bruno@clisp.org>
2483         * Makefile.devel (AUTOCONF, AUTOHEADER): Use autoconf-2.60.
2484         * Makefile.in (datarootdir): New variable.
2485         (install, installdirs, uninstall): Also pass datarootdir.
2486         * configure.ac (mandir): Remove customization.
2487         * man/Makefile.in (datarootdir): New variable.
2488         (docdir, htmldir): Use autoconf-substituted value.
2489         * src/Makefile.in (datarootdir): New variable.
2490         (localedir): Use autoconf-substituted value.
2492 2006-06-27  Bruno Haible  <bruno@clisp.org>
2494         * m4/stdint.m4: Update from gnulib.
2495         * srclib/stdint_.h: Update from gnulib.
2496         * srclib/Makefile.am: Update.
2498 2006-06-17  Bruno Haible  <bruno@clisp.org>
2500         * srclib/unsetenv.c: Update from GNU gettext.
2501         * srclib/xreadlink.c: Likewise.
2503 2006-06-16  Bruno Haible  <bruno@clisp.org>
2505         * m4/full-header-path.m4: New file, from gnulib.
2506         * m4/size_max.m4: New file, from gnulib.
2507         * m4/stdint.m4: Update from gnulib.
2508         * srclib/stdint_.h: Update from gnulib.
2509         * srclib/Makefile.am (stdint.h): Likewise.
2510         * Makefile.devel (aclocal.m4): Update dependencies.
2512 2006-06-16  Bruno Haible  <bruno@clisp.org>
2514         * m4/ssize_t.m4: Update from GNU gettext.
2516 2006-06-12  Bruno Haible  <bruno@clisp.org>
2518         * m4/gettext.m4: Update from GNU gettext.
2519         * m4/inttypes-h.m4: New file, from GNU gettext.
2520         * m4/inttypes.m4: Remove file.
2521         * m4/stdint.m4 (gl_STDINT_H): Update.
2522         * Makefile.devel (aclocal.m4): Update dependencies.
2524 2006-06-10  Bruno Haible  <bruno@clisp.org>
2526         * src/iconv.c (error) [NO_I18N]: Define here instead of including
2527         error.h. Fixes link failure introduced on 2006-01-22.
2529 2006-03-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2531         * m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [ linux ]: Avoid warning when
2532         "parsing" /etc/ld.so.conf and empty /etc/ld.so.conf.d.
2534 2006-05-20  Bruno Haible  <bruno@clisp.org>
2536         * tests/BIG5-HKSCS-1999-snippet: New file.
2537         * tests/BIG5-HKSCS-1999-snippet.UTF-8: New file.
2538         * tests/BIG5-HKSCS-2001-snippet: New file.
2539         * tests/BIG5-HKSCS-2001-snippet.UTF-8: New file.
2540         * tests/BIG5-HKSCS-2004-snippet: New file.
2541         * tests/BIG5-HKSCS-2004-snippet.UTF-8: New file.
2542         * tests/Makefile.in (check): Test also the stateful parts of
2543         BIG5-HKSCS:1999, BIG5-HKSCS:2001, BIG5-HKSCS:2004.
2545 2006-05-17  Bruno Haible  <bruno@clisp.org>
2547         Implement newer releases of BIG5-HKSCS.
2548         * tools/Makefile (ALL): Remove hkscs.h, add hkscs1999.h, hkscs2001.h,
2549         hkscs2004.h.
2550         (hkscs.h): Remove rule.
2551         (hkscs1999.h, hkscs2001.h, hkscs2004.h): New rules.
2552         * tools/cjk_tab_to_h.c (output_title): Update year.
2553         (main): Recognize hkscs1999, hkscs2001, hkscs2004.
2554         * lib/encodings.def: Rename BIG5-HKSCS to BIG5-HKSCS:1999. Add
2555         BIG5-HKSCS:2001, BIG5-HKSCS:2004. Make all three stateful.
2556         * lib/hkscs.h: Remove file.
2557         * lib/hkscs1999.h: New file.
2558         * lib/hkscs2001.h: New file.
2559         * lib/hkscs2004.h: New file.
2560         * lib/big5hkscs.h: Remove file.
2561         * lib/big5hkscs1999.h: New file.
2562         * lib/big5hkscs2001.h: New file.
2563         * lib/big5hkscs2004.h: New file.
2564         * lib/converters.h: Include the new files.
2565         * README, man/iconv_open.3: Add BIG5-HKSCS:1999, BIG5-HKSCS:2001.
2566         * tests/BIG5-HKSCS.TXT: Remove file.
2567         * tests/BIG5-HKSCS.IRREVERSIBLE.TXT: Remove file.
2568         * tests/BIG5-HKSCS-1999.TXT: New file.
2569         * tests/BIG5-HKSCS-1999.IRREVERSIBLE.TXT: New file.
2570         * tests/BIG5-HKSCS-2001.TXT: New file.
2571         * tests/BIG5-HKSCS-2001.IRREVERSIBLE.TXT: New file.
2572         * tests/BIG5-HKSCS-2004.TXT: New file.
2573         * tests/BIG5-HKSCS-2004.IRREVERSIBLE.TXT: New file.
2574         * tests/check-stateless: Convert colon in the charset name to a dash in
2575         the file name.
2576         * tests/Makefile.in (check): Check BIG5-HKSCS:1999, BIG5-HKSCS:2001,
2577         BIG5-HKSCS:2004 instead of just BIG5-HKSCS.
2578         * tests/Makefile.msvc (check): Don't check BIG5-HKSCS.
2579         * tests/Makefile.os2 (check): Likewise.
2581 2006-05-17  Bruno Haible  <bruno@clisp.org>
2583         * srclib/progreloc.c: Update from GNU gettext.
2585 2006-05-16  Bruno Haible  <bruno@clisp.org>
2587         * src/Makefile.in (clean): Use EXEEXT.
2588         * tests/Makefile.in (check, clean): Likewise.
2590 2006-05-15  Bruno Haible  <bruno@clisp.org>
2592         * configure.ac: Move some checks before AC_RELOCATABLE.
2594 2006-05-15  Bruno Haible  <bruno@clisp.org>
2596         Support for building shared libraries on mingw and Cygwin.
2597         * configure.ac (WOE32DLL, DLL_VARIABLE): New variables.
2598         * include/iconv.h.in (_libiconv_version): Mark as DLL_VARIABLE.
2599         * woe32dll/export.h: New file, from GNU gettext.
2600         * woe32dll/iconv-exports.h: New file.
2601         * Makefile.devel (include/iconv.h_vms, include/iconv.h.msvc-static,
2602         include/iconv.h.msvc-shared): Remove the DLL_VARIABLE annotation.
2603         * lib/Makefile.in (INCLUDES): Add -I for parent directory.
2604         (LDFLAGS): Add WOE32DLL dependent flags.
2605         (LDFLAGS_yes, LDFLAGS_no): New variables.
2606         (OBJECTS): Add WOE32DLL dependent objects.
2607         (OBJECTS_yes, OBJECTS_no): New variables.
2608         (iconv-exports.lo): New rule.
2610 2006-05-15  Bruno Haible  <bruno@clisp.org>
2612         * srclib/gettext.h: Update from GNU gettext.
2613         * srclib/pathmax.h: Update from GNU gettext.
2614         * srclib/progreloc.c: Update from GNU gettext.
2615         * srclib/unsetenv.c: Update from GNU gettext.
2616         * srclib/Makefile.am: Add snippet for creation of unistd.h.
2617         * m4/extensions.m4: Update from GNU gettext.
2618         * m4/gettext.m4: Update from GNU gettext.
2619         * m4/lib-ld.m4: Update from GNU gettext.
2620         * m4/lib-link.m4: Update from GNU gettext.
2621         * m4/lib-prefix.m4: Update from GNU gettext.
2622         * m4/longdouble.m4: Update from GNU gettext.
2623         * m4/nls.m4: Update from GNU gettext.
2624         * m4/onceonly.m4: Update from GNU gettext.
2625         * m4/po.m4: Update from GNU gettext.
2626         * m4/relocatable.m4: Update from GNU gettext.
2627         * m4/unistd_h.m4: New file, from GNU gettext.
2628         * Makefile.devel (aclocal.m4): Depend on it.
2629         * configure.ac: Invoke gl_HEADER_UNISTD.
2631 2006-05-14  Bruno Haible  <bruno@clisp.org>,
2632             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2634         * m4/libtool.m4 [ linux ] (AC_LIBTOOL_LANG_CXX_CONFIG)
2635         (AC_LIBTOOL_POSTDEP_PREDEP, AC_LIBTOOL_PROG_COMPILER_PIC)
2636         (AC_LIBTOOL_PROG_LD_SHLIBS): Add support for Sun C 5.9,
2637         Sun C++ 5.9, and Sun Fortran 8.3 on Linux.
2639 2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
2641         * m4/libtool.m4: On Cygwin, like on mingw, define DLL_EXPORT when
2642         compiling a shared library object.
2644 2006-05-15  Bruno Haible  <bruno@clisp.org>
2646         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
2648 2006-03-31  Juan Manuel Guerrero  <juan.guerrero@gmx.de>
2650         * djgpp/*: Update.
2652 2006-01-23  Bruno Haible  <bruno@clisp.org>
2654         * configure.ac: Invoke gl_ALLOCSA.
2656         * Makefile.devel (aclocal.m4): Depend on $(CONFIGURES_IN).
2658 2006-01-22  Bruno Haible  <bruno@clisp.org>
2660         * src/iconv.c (xmalloc, xalloc_die) [NO_I18N]: Define to avoid using
2661         gettext().
2663 2006-01-22  Bruno Haible  <bruno@clisp.org>
2665         * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 6:0:4.
2667 2006-01-22  Bruno Haible  <bruno@clisp.org>
2669         * src/iconv.c: Include error.h, exit.h.
2670         (print_version): Use EXIT_SUCCESS.
2671         (check_subst_formatstring, subst_mb_to_uc_fallback,
2672         subst_uc_to_mb_fallback, subst_mb_to_wc_fallback,
2673         subst_wc_to_mb_fallback, subst_mb_to_mb_fallback, convert, main): Use
2674         error() instead of fprintf to stderr.
2676 2006-01-22  Bruno Haible  <bruno@clisp.org>
2678         New feature: character-dependent substitutions.
2679         * include/iconv.h.in (iconv_unicode_mb_to_uc_fallback,
2680         iconv_unicode_uc_to_mb_fallback, iconv_wchar_mb_to_wc_fallback,
2681         iconv_wchar_wc_to_mb_fallback): New types.
2682         (struct iconv_fallbacks): New structure type.
2683         (ICONV_SET_FALLBACKS): New macro.
2684         * configure.ac: Invoke gt_TYPE_WCHAR_T and substitute HAVE_WCHAR_T.
2685         * Makefile.os2 (all): Also substitute @HAVE_WCHAR_T@ in build/iconv.h.
2686         * Makefile.devel (include/iconv.h_vms, include/iconv.h.msvc-static,
2687         include/iconv.h.msvc-shared): Also substitute @HAVE_WCHAR_T@.
2688         * lib/converters.h (struct conv_struct): Add field 'fallbacks'.
2689         * lib/loop_unicode.h (struct uc_to_mb_fallback_locals): New type.
2690         (uc_to_mb_write_replacement): New function.
2691         (struct mb_to_uc_fallback_locals): New type.
2692         (mb_to_uc_write_replacement): New function.
2693         (unicode_loop_convert): Call mb_to_uc_fallback and uc_to_mb_fallback.
2694         (unicode_loop_reset): Call uc_to_mb_fallback.
2695         * lib/loop_wchar.h (struct wc_to_mb_fallback_locals): New type.
2696         (wc_to_mb_write_replacement): New function.
2697         (wchar_from_loop_convert): Call wc_to_mb_fallback.
2698         (struct mb_to_wc_fallback_locals): New type.
2699         (mb_to_wc_write_replacement): New function.
2700         (wchar_to_loop_convert): Call mb_to_wc_fallback.
2701         * lib/iconv.c (iconv_open): Initialize the 'fallbacks' field.
2702         (iconvctl): Handle ICONV_SET_FALLBACKS.
2703         * lib/genflags.c (struct iconv_fallbacks): New dummy definition.
2704         * src/iconv.c: Include limits.h.
2705         (isdigit, c_isprint): New macros.
2706         (usage): Document long options and new options.
2707         (check_subst_formatstring): New function.
2708         (ilseq_byte_subst, ilseq_wchar_subst, ilseq_unicode_subst): New
2709         variables.
2710         (ilseq_byte_subst_size, ilseq_wchar_subst_size,
2711         ilseq_unicode_subst_size): New variables.
2712         (ilseq_byte_subst_buffer, ilseq_wchar_subst_buffer,
2713         ilseq_unicode_subst_buffer): New variables.
2714         (subst_mb_to_uc_cd, subst_mb_to_uc_temp_buffer): New variables.
2715         (subst_mb_to_uc_fallback): New function.
2716         (subst_uc_to_mb_cd, subst_uc_to_mb_temp_buffer): New variables.
2717         (subst_uc_to_mb_fallback): New function.
2718         (subst_mb_to_wc_cd, subst_mb_to_wc_temp_buffer): New variables.
2719         (subst_mb_to_wc_fallback): New function.
2720         (subst_wc_to_mb_cd, subst_wc_to_mb_temp_buffer): New variables.
2721         (subst_wc_to_mb_fallback): New function.
2722         (subst_mb_to_mb_cd, subst_mb_to_mb_temp_buffer): New variables.
2723         (subst_mb_to_mb_fallback): New function.
2724         (convert): Enlarge the outbuf when the conversion failed with E2BIG.
2725         (main): Handle new options --byte-subst, --widechar-subst,
2726         --unicode-subst.
2727         * man/iconv.1: Document --unicode-subst, --byte-subst, --widechar-subst
2728         options.
2729         * tests/check-subst: New file.
2730         * tests/Makefile.in (check): Also invoke check-subst.
2731         Suggested by James Taylor <james@oakseed.demon.co.uk>.
2733 2006-01-21  Bruno Haible  <bruno@clisp.org>
2735         * src/iconv.c (print_version): Bump copyright year.
2736         (main): Accept long options --from-code, --to-code, --list, --silent.
2737         Accept abbreviated long options, like getopt() does.
2738         * man/iconv.1: Document long options.
2740 2005-12-29  Bruno Haible  <bruno@clisp.org>
2742         * src/iconv.c (print_version): Update copyright year.
2744 2005-12-29  Bruno Haible  <bruno@clisp.org>
2746         * configure.ac: Renamed from configure.in.
2747         * Makefile.devel (CONFIGURES_IN, configure, config.h.in): Update.
2749 2005-12-29  Bruno Haible  <bruno@clisp.org>
2751         * configure.in: Bump version number.
2752         * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
2753         * windows/iconv.rc: Likewise.
2754         * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 5:1:3.
2756 2005-12-29  Bruno Haible  <bruno@clisp.org>
2758         * build-aux/config.guess: Update to GNU version 2005-12-23.
2759         * build-aux/config.sub: Likewise.
2760         * build-aux/config.libpath: Update from GNU gettext.
2761         * build-aux/install-sh: Upgrade to automake-1.9.5.
2762         * build-aux/missing: Upgrade to automake-1.9.5.
2763         * build-aux/mkinstalldirs: Upgrade to automake-1.9.5.
2765 2005-12-29  Bruno Haible  <bruno@clisp.org>
2767         * m4/alloca.m4: Update from GNU gettext.
2768         * m4/allocsa.m4: Update from GNU gettext.
2769         * m4/canonicalize.m4: Update from GNU gettext.
2770         * m4/codeset.m4: Update from GNU gettext.
2771         * m4/eealloc.m4: Update from GNU gettext.
2772         * m4/error.m4: Update from GNU gettext.
2773         * m4/extensions.m4: Update from GNU gettext.
2774         * m4/gettext.m4: Update from GNU gettext.
2775         * m4/glibc21.m4: Update from GNU gettext.
2776         * m4/iconv.m4: Update from GNU gettext.
2777         * m4/intmax.m4: Update from GNU gettext.
2778         * m4/inttypes_h.m4: New file, from GNU gettext.
2779         * m4/isc-posix.m4: Update from GNU gettext.
2780         * m4/lcmessage.m4: Update from GNU gettext.
2781         * m4/longdouble.m4: Update from GNU gettext.
2782         * m4/longlong.m4: Update from GNU gettext.
2783         * m4/mbstate_t.m4: Update from GNU gettext.
2784         * m4/nls.m4: Update from GNU gettext.
2785         * m4/onceonly.m4: Update from GNU gettext.
2786         * m4/pathmax.m4: Update from GNU gettext.
2787         * m4/po.m4: Update from GNU gettext.
2788         * m4/printf-posix.m4: Update from GNU gettext.
2789         * m4/progtest.m4: Update from GNU gettext.
2790         * m4/readlink.m4: Update from GNU gettext.
2791         * m4/relocatable.m4: Update from GNU gettext.
2792         * m4/setenv.m4: Update from GNU gettext.
2793         * m4/signed.m4: Update from GNU gettext.
2794         * m4/ssize_t.m4: Update from GNU gettext.
2795         * m4/stdbool.m4: Update from GNU gettext.
2796         * m4/stdint_h.m4: New file, from GNU gettext.
2797         * m4/strerror.m4: Update from GNU gettext.
2798         * m4/strerror_r.m4: Update from GNU gettext.
2799         * m4/unlocked-io.m4: Update from GNU gettext.
2800         * m4/wchar_t.m4: Update from GNU gettext.
2801         * m4/wint_t.m4: Update from GNU gettext.
2802         * m4/xreadlink.m4: Update from GNU gettext.
2803         * Makefile.devel (aclocal.m4): Depend on m4/inttypes_h.m4 and
2804         m4/stdint_h.m4 as well.
2805         * configure.in: Invoke AC_TYPE_MBSTATE_T instead of AC_MBSTATE_T.
2806         Invoke gl_FUNC_GLIBC_UNLOCKED_IO instead of jm_FUNC_GLIBC_UNLOCKED_IO.
2807         Invoke gl_ERROR instead of gt_FUNC_ERROR_AT_LINE.
2808         Don't invoke AC_AIX and AC_MINIX, done by gl_USE_SYSTEM_EXTENSIONS.
2809         Temporarily redefine AC_LIBOBJ and AC_REPLACE_FUNCS, so as to fill
2810         SRCLIBOBJS instead of LIBOBJS.
2811         * srclib/alloca_.h: Update from GNU gettext.
2812         * srclib/allocsa.h: Update from GNU gettext.
2813         * srclib/canonicalize.c: Update from GNU gettext.
2814         * srclib/error.h: Update from GNU gettext.
2815         * srclib/error.c: Update from GNU gettext.
2816         * srclib/gettext.h: Update from GNU gettext.
2817         * srclib/memmove.c: Update from GNU gettext.
2818         * srclib/progname.h: Update from GNU gettext.
2819         * srclib/progname.c: Update from GNU gettext.
2820         * srclib/progreloc.c: Update from GNU gettext.
2821         * srclib/readlink.c: Update from GNU gettext.
2822         * srclib/relocatable.c: Update from GNU gettext.
2823         * srclib/relocwrapper.c: Update from GNU gettext.
2824         * srclib/setenv.h: Update from GNU gettext.
2825         * srclib/setenv.c: Update from GNU gettext.
2826         * srclib/stdbool_.h: Update from GNU gettext.
2827         * srclib/stdint_.h: Update from gnulib.
2828         * srclib/strerror.c: Update from GNU gettext.
2829         * srclib/unlocked-io.h: Update from GNU gettext.
2830         * srclib/unsetenv.c: Update from GNU gettext.
2831         * srclib/xalloc.h: Update from GNU gettext.
2832         * srclib/xmalloc.c: Update from GNU gettext.
2833         * srclib/xreadlink.c: Update from GNU gettext.
2834         * srclib/xstrdup.c: Update from GNU gettext.
2835         * srclib/Makefile.am (DEFS): Also define EXEEXT.
2836         (libicrt_a_LIBADD): Use SRCLIBOBJS instead of LIBOBJS.
2837         (libicrt_a_DEPENDENCIES): New variable.
2838         * src/Makefile.in (EXEEXT): New variable.
2839         * build-aux/install-reloc: Update from GNU gettext.
2840         * build-aux/reloc-ldflags: Update from GNU gettext.
2841         * build-aux/config.rpath: Update from GNU gettext.
2843 2005-12-29  Bruno Haible  <bruno@clisp.org>
2845         * m4/libtool.m4: Update, based on libtool-1.5.22.
2846         * build-aux/ltmain.sh: Update, based on libtool-1.5.22.
2848 2005-12-24  Bruno Haible  <bruno@clisp.org>
2850         Check the whole range of GB18030.
2851         * tests/GB18030-BMP.TXT: Renamed from tests/GB18030.TXT.
2852         * tests/gengb18030z.c: New file.
2853         * tests/table-from.c (main): For GB18030, don't stop at U+10000.
2854         * tests/table-to.c (main): Likewise.
2855         * tests/Makefile.in (check): Generate GB18030.TXT on the fly from
2856         GB18030-BMP.TXT.
2857         (clean): Remove also gengb18030z and GB18030.TXT.
2858         * tests/Makefile.msvc (check): Generate GB18030.TXT on the fly from
2859         GB18030-BMP.TXT.
2860         (clean): Remove also GB18030Z.TXT, GB18030TMP.TXT, GB18030.TXT.
2861         * tests/Makefile.os2 (check): Depend on gengb18030z.exe. Generate
2862         GB18030.TXT on the fly from GB18030-BMP.TXT.
2863         (clean): Remove also GB18030Z.TXT, GB18030TMP.TXT, GB18030.TXT.
2865 2005-12-20  Bruno Haible  <bruno@clisp.org>
2867         * tests/table-to.c (main): Test the mappings up to U+10FFFF, not only
2868         up to U+2FFFF. Tolerate that Unicode language tags are silently mapped
2869         to nothing.
2871 2005-12-22  Bruno Haible  <bruno@clisp.org>
2873         Extend GB18030 converter to cover the entire Unicode PUA.
2874         * lib/gb18030.h: Update comments, based on second printing.
2875         (gb18030_mbtowc): Add mapping for range U+E000..U+E765.
2876         (gb18030_pua2charset): New array.
2877         (gb18030_wctomb): Add mapping for range U+E000..U+E765 and the two-byte
2878         part of range U+E766..U+E864.
2879         * lib/gb18030ext.h (gb18030ext_2uni_pagefe): Add mappings to private
2880         area.
2881         (gb18030ext_mbtowc): Add mapping for the two-byte part of range
2882         U+E766..U+E864.
2883         * lib/gb18030uni.h (gb18030uni_charset2uni_ranges,
2884         gb18030uni_uni2charset_ranges, gb18030uni_ranges): Add 12 more
2885         intervals.
2886         (gb18030uni_mbtowc, gb18030uni_wctomb): Update.
2887         * tests/GB18030.TXT: Complete mappings to private area.
2889 2005-12-22  Bruno Haible  <bruno@clisp.org>
2891         * lib/gbk.h: Update comments.
2893 2005-12-20  Bruno Haible  <bruno@clisp.org>
2895         Add private area mappings to CP949.
2896         * lib/cp949.h (cp949_mbtowc, cp949_wctomb): Map U+E000..U+E0BB like
2897         many others do it.
2898         * tests/CP949.TXT: Add mappings for U+E000..U+E0BB.
2900 2005-12-15  Bruno Haible  <bruno@clisp.org>
2902         Add private area mappings to CP950.
2903         * lib/cp950.h (cp950_mbtowc, cp950_wctomb): Map U+E000..U+F6B0 like
2904         most others do it.
2905         * tests/CP950.TXT: Add mappings for U+E000..U+F6B0.
2907 2005-12-15  Bruno Haible  <bruno@clisp.org>
2909         Make CP936 follow what Microsoft does.
2910         In http://www.microsoft.com/globaldev/reference/dbcs/936.mspx they
2911         added a 0x80 - U+20AC mapping to the code chart, but not to the
2912         tooltips and not to the list of mappings.
2913         * lib/cp936.h: New file.
2914         * lib/gbk.h: Update comments.
2915         * lib/ces_gbk.h: Update comments.
2916         * lib/converters.h: Include cp936.h.
2917         * lib/encodings.def (CP936): New encoding.
2918         (GBK): Remove CP936 aliases.
2919         * README, man/iconv_open.3: Add CP936.
2920         * tests/Makefile.in (check): Check CP936.
2921         * tests/Makefile.msvc (check): Likewise.
2922         * tests/Makefile.os2 (check): Likewise.
2923         * tests/CP936.TXT: New file.
2925 2005-12-14  Bruno Haible  <bruno@clisp.org>
2927         * lib/cp932.h (cp932_wctomb): Map U+FF5E, U+2225, U+FF0D, U+FFE0,
2928         U+FFE1 like Microsoft does it.
2929         * lib/CP932.IRREVERSIBLE.TXT: Add these mappings.
2930         Reported by Lei Wang <lwang@qilinsoft.com>.
2932 2005-12-14  Bruno Haible  <bruno@clisp.org>
2934         Follow Euro sign addition done in 1999 in
2935         http://www.microsoft.com/globaldev/reference/dbcs/950/950_A3.mspx
2936         * lib/cp950.h (cp950_mbtowc, cp950_wctomb): Add mapping for 0xA3E1.
2937         * tests/CP950.TXT: Add mapping for 0xA3E1.
2939 2005-11-11  Bruno Haible  <bruno@clisp.org>
2941         * lib/euc_jp.h (euc_jp_wctomb): When writing a 3-bytes byte sequence
2942         and only two bytes are available in the output buffer, return
2943         RET_TOOSMALL instead of overrunning the output buffer.
2944         * lib/isoir165.h (isoir165_wctomb): When only one byte is available
2945         in the output buffer, don't overrun the output buffer.
2946         Reported by William Bardwell <bardwell@curl.com>.
2948 2005-09-18  Bruno Haible  <bruno@clisp.org>
2950         * m4/libtool.m4: Update, based on libtool-1.5.20.
2951         * build-aux/ltmain.sh: Update, based on libtool-1.5.20.
2953 2005-08-12  Bruno Haible  <bruno@clisp.org>
2955         * lib/big5_2003.h: Map 0xF9FA..0xF9FD differently.
2956         * tests/BIG5-2003.TXT: Likewise.
2957         * tests/BIG5-2003.IRREVERSIBLE.TXT: New file.
2958         Reported by Ping Yeh <ping@pingyeh.net>.
2960 2005-07-24  Bruno Haible  <bruno@clisp.org>
2962         Tidy up exported symbols.
2963         * m4/visibility.m4: New file.
2964         * include/export.h: New file.
2965         * configure.in: Invoke gl_VISIBILITY. Use AC_CONFIG_FILES. Arrange to
2966         create also include/iconv.h.inst.
2967         * Makefile.devel (all): Depend on include/iconv.h.build.in.
2968         (aclocal.m4): Depend on m4/visibility.m4.
2969         (include/iconv.h.build.in): New rule.
2970         * Makefile.in (install-lib, install): Install include/iconv.h.inst,
2971         not the include/iconv.h that was used for building.
2972         (distclean, maintainer-clean): Remove also include/iconv.h.inst.
2973         * lib/Makefile.in (CFLAGS): Add @CFLAG_VISIBILITY@.
2974         (DEFS): Also define BUILDING_LIBICONV and BUILDING_DLL.
2975         * lib/config.h.in (HAVE_VISIBILITY): New macro.
2976         * lib/relocatable.h (RELOCATABLE_DLL_EXPORTED) [HAVE_VISIBILITY]:
2977         Define to the gcc visibility attribute.
2978         * srclib/relocatable.h (RELOCATABLE_DLL_EXPORTED) [HAVE_VISIBILITY]:
2979         Likewise.
2981 2005-07-25  Bruno Haible  <bruno@clisp.org>
2983         2003-08-24  Bruno Haible  <bruno@clisp.org>
2984         * lib/relocatable.h: Make this file includable in C++ mode: add extern
2985         "C".
2987 2005-07-08  Bruno Haible  <bruno@clisp.org>
2989         * Version 1.10 released.
2991 2005-07-08  Bruno Haible  <bruno@clisp.org>
2993         * m4/libtool.m4 (postinstall_cmds) [cygwin,mingw,pw32]: Make DLL
2994         executable after installing it.
2996 2005-07-08  Bruno Haible  <bruno@clisp.org>
2998         * configure.in: Bump version number.
2999         * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
3000         * windows/iconv.rc: Likewise.
3001         * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 5:0:3.
3003 2005-07-05  Bruno Haible  <bruno@clisp.org>
3005         * Makefile.devel (ACLOCAL): New variable.
3006         (aclocal.m4): Use it.
3008 2005-07-05  Bruno Haible  <bruno@clisp.org>
3010         * m4/relocatable.m4 (AC_RELOCATABLE): On mingw, simply set
3011         SET_RELOCATABLE to a trivial value.
3013 2004-08-08  Bruno Haible  <bruno@clisp.org>
3015         * srclib/progreloc.c (xstrdup): Define as strdup if no xmalloc should
3016         be used.
3018 2004-04-28  Bruno Haible  <bruno@clisp.org>
3020         * srclib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
3021         Treat Cygwin like Windows, since it now accepts Windows pathnames.
3023 2005-06-09  Bruno Haible  <bruno@clisp.org>
3025         * Makefile.in (mkinstalldirs): Use build-aux/ instead of autoconf/.
3026         * lib/Makefile.in (mkinstalldirs): Likewise.
3027         * src/Makefile.in (mkinstalldirs): Likewise.
3028         * man/Makefile.in (mkinstalldirs): Likewise.
3030 2005-06-08  Bruno Haible  <bruno@clisp.org>
3032         * srclib/canonicalize.c (__realpath): Avoid gcc warnings on platforms
3033         that don't support symbolic links.
3035 2005-06-08  Bruno Haible  <bruno@clisp.org>
3037         * srclib/binary-io.h (fileno): Undefine before defining it. Avoids a
3038         gcc warning on mingw.
3040 2005-05-22  Bruno Haible  <bruno@clisp.org>
3042         Implement and document BIG5-2003.
3043         * lib/big5_2003.h: New file.
3044         * lib/converters.h: Include it.
3045         * lib/encodings_extra.def (BIG5-2003): New encoding.
3046         * README, man/iconv_open.3: Add BIG5-2003.
3047         * tests/Makefile.in (check-extra-yes): Check BIG5-2003.
3048         * tests/BIG5-2003.TXT: New file.
3050 2005-05-21  Bruno Haible  <bruno@clisp.org>
3052         Add EURO SIGN to EUC-TW converter.
3053         * lib/cns11643_1.h (cns11643_1_2uni_page42): Add entry for 0x14242.
3054         (cns11643_1_mbtowc): Update.
3055         * lib/cns11643_inv.h (cns11643_inv_2charset): Add entry for 0x20AC.
3056         (cns11643_inv_uni2indx_page*): Update.
3057         * lib/dec_hanyu.h (dec_hanyu_mbtowc, dec_hanyu_wctomb): Consider only
3058         part of row 42.
3059         * tests/EUC-TW.TXT: Add entry for 0x20AC.
3060         * tests/EUC-TW.IRREVERSIBLE.TXT: Likewise.
3062 2005-05-03  Bruno Haible  <bruno@clisp.org>
3064         * tools/Makefile (ALL): Add pt154.h.
3065         (pt154.h): New rule.
3066         * lib/encodings.def: Add PT154.
3067         * lib/pt154.h: New file.
3068         * lib/converters.h: Include it.
3069         * README, man/iconv_open.3: Add PT154.
3070         * NOTES: Mention PT154.
3071         * tests/PT154.TXT: New file.
3072         * tests/Makefile.in (check): Also test PT154.
3073         * tests/Makefile.msvc (check): Likewise.
3074         * tests/Makefile.os2 (check): Likewise.
3076 2005-03-29  Bruno Haible  <bruno@clisp.org>
3078         Rename libiconv_plug.so to preloadable_libiconv.so.
3079         * configure.in (PLUGLIB): Set to preloadable_libiconv.so instead of
3080         libiconv_plug.so.
3081         * lib/Makefile.in (preloadable_libiconv.so): Renamed from
3082         libiconv_plug.so.
3083         (preloadable_libiconv_linux.so): Renamed from libiconv_plug_linux.so.
3084         (preloadable_libiconv_solaris.so): Renamed from
3085         libiconv_plug_solaris.so.
3086         (preloadable_libiconv_osf.so): Renamed from libiconv_plug_osf.so.
3087         (clean): Update.
3088         * README: Update.
3090 2005-03-29  Bruno Haible  <bruno@clisp.org>
3092         Implement and document ATARIST.
3093         * tools/Makefile (ALL): Add atarist.h.
3094         (atarist.h): New rule.
3095         * lib/atarist.h: New file.
3096         * lib/converters.h: Include it.
3097         * lib/encodings_extra.def (ATARIST): New encoding.
3098         * README, man/iconv_open.3: Add ATARIST.
3099         * tests/Makefile.in (check-extra-yes): Check ATARIST.
3100         * tests/ATARIST.TXT: New file.
3102 2005-03-22  Bruno Haible  <bruno@clisp.org>
3104         * build-aux: New directory, renamed from autoconf.
3105         * configure.in (AC_CONFIG_AUX_DIR): Use build-aux.
3107 2005-03-16  Bruno Haible  <bruno@clisp.org>
3109         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
3110         HAVE_LONGLONG_64BIT.
3111         * srclib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
3112         HAVE_LONGLONG_64BIT.
3113         * srclib/Makefile.am (stdint.h): Likewise.
3115 2005-03-14  Bruno Haible  <bruno@clisp.org>
3117         * Makefile.devel (aclocal.m4): Depend also on allocsa.m4, eealloc.m4,
3118         extensions.m4, intmax.m4, inttypes.m4, longdouble.m4, longlong.m4,
3119         printf-posix.m4, readlink.m4, signed.m4, ssize_t.m4, stdint.m4,
3120         wchar_t.m4, wint_t.m4.
3122 2005-03-13  Bruno Haible  <bruno@clisp.org>
3124         Make stdout error checking reliable, also when writing to a NFS file.
3125         * src/iconv.c (main): Check the return value of fclose(stdout).
3126         * lib/genaliases.c (main): Likewise.
3127         * lib/genaliases2.c (main): Likewise.
3128         * lib/genflags.c (main): Likewise.
3129         * lib/gentranslit.c (main): Likewise.
3130         * tests/genutf8.c (main): Likewise.
3131         * tests/table-from.c (main): Likewise.
3132         * tests/table-to.c (main): Likewise.
3134 2005-03-13  Bruno Haible  <bruno@clisp.org>
3136         * src/iconv.c (convert): Before outputting an error message, flush
3137         stdout and output a newline if suitable.
3139 2005-03-13  Bruno Haible  <bruno@clisp.org>
3141         Improved error messages.
3142         * srclib/width.c: New file, from GNU clisp.
3143         * srclib/uniwidth.h: New file, from GNU clisp with modifications.
3144         * srclib/unitypes.h: New file, from GNU clisp with modifications.
3145         * srclib/cjk.h: New file, from GNU clisp.
3146         * srclib/streq.h: New file, from GNU clisp.
3147         * srclib/stdint_.h: New file, from gnulib.
3148         * m4/stdint.m4: New file, from gnulib.
3149         * m4/inttypes.m4: New file, from gnulib.
3150         * srclib/Makefile.am: Add gnulib module 'stdint' snippet.
3151         (BUILT_SOURCES): New variable.
3152         (libicrt_a_SOURCES): Add width.c, uniwidth.h, unitypes.h, cjk.h,
3153         streq.h.
3154         * configure.in: Invoke gl_STDINT_H.
3155         * src/iconv.c: Include cjk.h, uniwidth.h.
3156         (line, column, cjkcode): New variables.
3157         (update_line_column): New function.
3158         (convert): Initialize line and column. In all error message, show also
3159         the line and column number.
3160         (main): Initialize cjkcode. Set up hooks to call update_line_column.
3162 2005-03-13  Bruno Haible  <bruno@clisp.org>
3164         * include/iconv.h.in (iconv_canonicalize): New declaration.
3165         * lib/genaliases.c (emit_encoding): Take two output streams as
3166         arguments. To the second stream, emit a shell command for extracting
3167         offsets into the gperf generated string pool.
3168         (main): Write the shell commands into file descriptors 3 and 4.
3169         * lib/genaliases2.c (emit_encoding): Take two output streams as
3170         arguments. To the second stream, emit an expression for the offset
3171         into the string pool.
3172         (main): Write the offsets into file descriptor 3.
3173         * Makefile.devel (lib/aliases.gperf): Remove target.
3174         (lib/aliases.h): Generate lib/aliases.gperf temporarily. Generate also
3175         lib/canonical.h and lib/canonical_local.h.
3176         (lib/aliases_aix.h): Generate also lib/canonical_aix.h.
3177         (lib/aliases_osf1.h): Generate also lib/canonical_osf1.h.
3178         (lib/aliases_dos.h): Generate also lib/canonical_dos.h.
3179         (lib/aliases_extra.h): Generate also lib/canonical_extra.h.
3180         * lib/iconv.c (stringpool2): Provide default definition when it doesn't
3181         exist.
3182         (all_canonical): New array.
3183         (iconv_canonicalize): New function.
3185 2005-03-13  Bruno Haible  <bruno@clisp.org>
3187         * include/iconv.h.in (iconv_unicode_char_hook, iconv_wide_char_hook,
3188         iconv_hooks): New types.
3189         (ICONV_SET_HOOKS): New macro.
3190         * lib/converters.h (struct conv_struct): Add field 'hooks'.
3191         * lib/iconv.c (iconv_open): Initialize hooks to NULL.
3192         (iconvctl): Handle ICONV_SET_HOOKS.
3193         * lib/loop_unicode.h (unicode_loop_convert, unicode_loop_reset): After
3194         conversion of a character, call the uc_hook.
3195         * lib/loop_wchar.h (wchar_id_loop_convert): After every character, call
3196         the wc_hook.
3197         * lib/genflags.c (iconv_hooks): Provide a dummy definition.
3199 2005-02-05  Bruno Haible  <bruno@clisp.org>
3201         * src/iconv.c (main): In case of unsupported encodings, show a hint
3202         towards "iconv -l".
3204 2005-01-06  Bruno Haible  <bruno@clisp.org>
3206         * lib/Makefile.msvc (CFLAGS): Define also INSTALLPREFIX.
3207         * lib/Makefile.vms (DEFS): Likewise.
3208         Reported by Troels Walsted Hansen <Troels.W.Hansen@fast.no>.
3210 2005-01-05  Bruno Haible  <bruno@clisp.org>
3212         * autoconf/config.rpath: Update from GNU gettext.
3214 2005-01-05  Bruno Haible  <bruno@clisp.org>
3216         Assume automake-1.9.
3217         * Makefile.devel (AUTOMAKE): Assume automake-1.9.
3219 2005-01-05  Bruno Haible  <bruno@clisp.org>
3221         * m4/libtool.m4: Update from GNU gettext, based on libtool-1.5.10.
3222         * autoconf/ltmain.sh: Update from GNU gettext, based on libtool-1.5.10.
3224 2004-11-11  Bruno Haible  <bruno@clisp.org>
3226         * lib/iconv.c (iconv_open): Accept the suffixes //TRANSLIT and //IGNORE
3227         in arbitrary order.
3228         Reported by Lukas Gebauer <gebauerl@mlp.cz>.
3230 2004-09-21  Juan Manuel Guerrero  <st001906@hrz1.hrz.tu-darmstadt.de>
3232         * djgpp/config.bat: Update.
3233         * djgpp/config.sed: Update.
3234         * djgpp/config.site: Update.
3235         * djgpp/edtest.bat: Update.
3236         * djgpp/fnchange.in: Update.
3237         * djgpp/Makefile.maint: Update.
3238         * djgpp/makefile.sed: Update.
3239         * djgpp/README.in: Update.
3240         * djgpp/sources.sed: Update.
3241         * djgpp/translit-check.sed: Update.
3243 2004-08-25  Bruno Haible  <bruno@clisp.org>
3245         * m4/libtool.m4: Update from GNU gettext, based on libtool-1.5.6.
3246         * autoconf/ltmain.sh: Update from GNU gettext, based on libtool-1.5.6.
3248 2004-07-31  Bruno Haible  <bruno@clisp.org>
3250         Update to JISX 0213 plane 1 to 2004 version (ISO-IR-233).
3251         * tools/Makefile (jisx0213.h): Bump version number.
3252         * tools/JISX0213.TXT: Change mappings U+2015 -> U+2014,
3253         U+2299 -> U+29BF, and add 10 new characters.
3254         * tools/cjk_tab_to_h.c (output_title): Bump year.
3255         (do_jisx0213): Update comments. Emit a conditional 'inline'.
3256         * lib/jisx0213.h: Regenerated.
3257         * lib/iso2022_jp3.h (iso2022_jp3_mbtowc): Accept escape sequence
3258         ESC $ ( Q as a synonym of ESC $ ( O.
3259         (iso2022_jp3_wctomb): Emit ESC $ ( Q instead of ESC $ ( O.
3260         * tests/EUC-JISX0213.TXT: Change mappings U+2015 -> U+2014,
3261         U+2299 -> U+29BF, and add 10 new characters.
3262         * tests/SHIFT_JISX0213.TXT: Likewise.
3263         * tests/ISO-2022-JP-3-snippet: Update.
3264         * tests/ISO-2022-JP-3-snippet.UTF-8: Update.
3266 2004-07-22  Bruno Haible  <bruno@clisp.org>
3268         * lib/encodings.def (ISO-8859-7): Add alias ISO_8859-7:2003.
3269         * tools/Makefile (iso8859_7.h): Use conversion table from 2003.
3270         * lib/iso8859_7.h: Add mappings for 0xa4, 0xa5, 0xaa.
3271         * tests/ISO-8859-7.TXT: Update to ISO_8859-7:2003.
3273 2004-07-22  Bruno Haible  <bruno@clisp.org>
3275         * tools/Makefile (ALL): Add iso8859_11.h.
3276         (iso8859_11.h): New rule.
3277         * lib/encodings.def: Add ISO-8859-11.
3278         * lib/iso8859_11.h: New file.
3279         * lib/converters.h: Include it.
3280         * tests/ISO-8859-11.TXT: New file.
3281         * tests/Makefile.in (check): Also test ISO-8859-11.
3282         * tests/Makefile.msvc (check): Likewise.
3283         * tests/Makefile.os2 (check): Likewise.
3285 2004-07-17  Bruno Haible  <bruno@clisp.org>
3287         * src/iconv.c (main): Terminate option parsing when option -- is seen.
3288         Reported by Len Lattanzi <zardoz@users.sourceforge.net>.
3290 2004-03-05  Bruno Haible  <bruno@clisp.org>
3292         * src/Makefile.in (install): Make DESTDIR work on HP-UX.
3293         Reported by Bob Proulx <box@proulx.com>.
3295 2004-02-19  Bruno Haible  <bruno@clisp.org>
3297         * lib/vietcomb.h (viet_comp_table_data): Un-uncomment 0x00D5, 0x00F5,
3298         0x0168, 0x0169. Needed for TCVN-5712 but not for CP1258.
3299         (viet_comp_table0301_len): Increment by 4.
3301         * lib/cp1255.h (cp1255_mbtowc): Don't delay the handling of characters
3302         which are not entries in cp1255_comp_table_data.
3303         * lib/cp1258.h (cp1258_comp_bases): New array.
3304         (cp1258_mbtowc): Don't delay the handling of characters which are not
3305         relevant entries in viet_comp_table_data.
3306         * lib/tcvn.h (tcvn_comp_bases): New array.
3307         (tcvn_mbtowc): Don't delay the handling of characters which are not
3308         relevant entries in viet_comp_table_data.
3309         Reported by Alain Bench <veronatif@free.fr>.
3311 2004-02-02  Perry Rapp  <lifelines_3_0_18@hotmail.com>
3312             Bruno Haible  <bruno@clisp.org>
3314         * man/iconvctl.3: New file.
3315         * man/iconv.3: Refer to it in "See also".
3316         * man/iconv_open.3: Likewise.
3318 2004-01-24  Bruno Haible  <bruno@clisp.org>
3320         * srclib/progreloc.c (xstrdup): Define as strdup if no xmalloc should
3321         be used.
3323 2004-01-20  Bruno Haible  <bruno@clisp.org>
3325         Upgrade from gettext-0.14.
3327         * configure.in: Call gl_USE_SYSTEM_EXTENSIONS. Call AM_STDBOOL_H
3328         instead of gt_STDBOOL_H. Provide a definition for DLL_VARIABLE.
3329         * srclib/Makefile.am (libicrt_a_SOURCES): Add allocsa.h, allocsa.c,
3330         xalloc.h. Remove xmalloc.h.
3331         (libicrt_a_LIBADD): Remove @ALLOCA@.
3332         * srclib/Makefile.msvc (OBJECTS): Add allocsa.obj.
3333         (allocsa.obj): New rule.
3334         * srclib/Makefile.vms (OBJECTS): Add allocsa.obj.
3335         (allocsa.obj): New rule.
3336         * Makefile.devel (config.h_vms): Set MALLOC_0_IS_NONNULL to 0.
3337         (config.h.msvc): Set MALLOC_0_IS_NONNULL to 1.
3339     lib/:
3341         2003-10-09  Bruno Haible  <bruno@clisp.org>
3342         * lib/relocatable.c: Include xalloc.h instead of xmalloc.h.
3344         2003-08-01  Bruno Haible  <bruno@clisp.org>
3345         * lib/relocatable.c (find_shared_library_fullname): Disable the code on
3346         Linux/libc5. Reported by Alain Guibert <derogaton+bgli@oreka.com>.
3348         2003-06-22  Bruno Haible  <bruno@clisp.org>
3349         * lib/relocatable.c (compute_curr_prefix): Comment out this function in
3350         the case when it is not used.
3351         Reported by Pavel Roskin <proski@gnu.org>.
3353     m4/:
3355         * m4/gettext.m4: Upgrade from GNU gettext. Many changes.
3356         * m4/po.m4: Likewise.
3358         * m4/readlink.m4: New file, from GNU gettext.
3360         2003-11-30  Bruno Haible  <bruno@clisp.org>
3361         * m4/allocsa.m4: New file.
3362         * m4/eealloc.m4: New file.
3363         * m4/setenv.m4 (gl_PREREQ_SETENV): Require gl_ALLOCSA instead of
3364         AC_FUNC_ALLOCA.
3366         2003-10-21  Bruno Haible  <bruno@clisp.org>
3367         * m4/canonicalize.m4 (gl_PREREQ_CANONICALIZE): Also test for
3368         readlink().
3370         2003-08-24  Bruno Haible  <bruno@clisp.org>
3371         * m4/relocatable.m4 (AC_RELOCATABLE): Use $(host) instead of @host@,
3372         since the substitution of @host@ may occur before the substitution of
3373         @SET_RELOCATABLE@.
3375         2003-08-23  Bruno Haible  <bruno@clisp.org>
3376         * stdbool.m4: Replace with the version from gnulib, without
3377         AC_HEADER_STDBOOL.
3379         2003-08-08  Paul Eggert  <eggert@twinsun.com>
3380         * m4/extensions.m4: New file.
3381         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
3382         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
3384         2003-07-01  Bruno Haible  <bruno@clisp.org>
3385         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
3386         <sys/types.h> should be sufficient.
3387         Reported by Paul Eggert.
3389         2003-07-01  Bruno Haible  <bruno@clisp.org>
3390         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Avoid "duplicated macro" error
3391         from aclocal-1.4-p4.
3392         Reported by Luke Schierer <lschiere@rackspace.com> and
3393         Michael C. Toren <mct@toren.net>.
3395         2003-07-01  Paul Eggert  <eggert@twinsun.com>
3396         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
3397         xreadlink.c now includes it unconditionally.
3399         2003-06-17  Paul Eggert  <eggert@twinsun.com>
3400         * m4/lib-ld.m4 (AC_LIB_PROG_LD_GNU, AC_LIB_PROG_LD): Don't use egrep,
3401         for portability to POSIX 1003.1-2001.  Backported from libtool-1.5.
3403         2003-05-28  Paul Eggert  <eggert@twinsun.com>
3404         * m4/pathmax.m4 (gl_PATHMAX): Don't check for limits.h.
3405         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
3407         2002-12-24  Bruno Haible  <bruno@clisp.org>
3408         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
3409         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
3410         when invoked twice.
3411         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
3412         gt_FUNC_SETENV.
3414     srclib/:
3416         2003-11-30  Bruno Haible  <bruno@clisp.org>
3417         * srclib/alloca.c: Remove file.
3419         2003-11-30  Bruno Haible  <bruno@clisp.org>
3420         Safer stack allocation.
3421         * srclib/allocsa.h: New file.
3422         * srclib/allocsa.c: New file.
3423         * canonicalize.c: Include allocsa.h.
3424         (__realpath): Use allocsa instead of alloca. Don't clobber errno right
3425         before returning NULL.
3426         * srclib/relocwrapper.c: Indirectly depends on allocsa.
3427         * srclib/setenv.c: Include allocsa.h.
3428         (alloca): Remove fallback definition.
3429         (freea): Remove macro.
3430         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
3431         instead of freea.
3433         2003-11-17  Bruno Haible  <bruno@clisp.org>
3434         * srclib/canonicalize.c: #undef realpath after <config.h> but before
3435         the system includes, so as to avoid a prototype clash on Solaris 2.5.1.
3436         Reported by Warren L. Dodge <warrend@mdhost.cse.tek.com>.
3438         2003-10-21  Bruno Haible  <bruno@clisp.org>
3439         * srclib/canonicalize.c (lstat): Define as an alias to 'stat' on
3440         systems without symbolic links.
3442         2003-10-17  Bruno Haible  <bruno@clisp.org>
3443         * srclib/binary-io.h: Avoid warnings on Cygwin.
3445         2003-10-09  Bruno Haible  <bruno@clisp.org>
3446         * srclib/xalloc.h: Renamed from xmalloc.h.
3447         * srclib/progreloc.c: Include xalloc.h instead of xmalloc.h.
3448         * srclib/relocatable.c: Likewise.
3449         * srclib/xmalloc.c: Likewise.
3450         * srclib/xreadlink.c: Likewise.
3451         * srclib/xstrdup.c: Likewise.
3453         2003-09-12  Paul Eggert  <eggert@twinsun.com>
3454         * srclib/progreloc.c (get_full_program_name): Define via prototype.
3456         2003-09-12  Paul Eggert  <eggert@twinsun.com>
3457         * srclib/setenv.c (clearenv): Define via prototype.
3459         2003-09-10  Bruno Haible  <bruno@clisp.org>
3460         * srclib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
3461         * srclib/unsetenv.c: Likewise.
3463         2003-08-28  Bruno Haible  <bruno@clisp.org>
3464         * srclib/binary-io.h: Undefine O_BINARY before defining it. This avoids
3465         a warning on QNX, which defines O_BINARY to 000000.
3467         2003-08-24  Bruno Haible  <bruno@clisp.org>
3468         * srclib/binary-io.h: Include <stdio.h>, to avoid a compilation error
3469         when MSVC7 <stdio.h> is included later.
3471         2003-08-24  Bruno Haible  <bruno@clisp.org>
3472         * srclib/error.h: Use ANSI C "..." declarations when compiling with
3473         MSVC, even though it doesn't define __STDC__ by default.
3474         * srclib/error.c: Use <stdarg.h> when compiling with MSVC, even though
3475         it doesn't define __STDC__ by default.
3477         2003-08-24  Bruno Haible  <bruno@clisp.org>
3478         Support for building DLLs on Windows.
3479         * srclib/error.h (error_print_progname, error_message_count,
3480         error_one_per_line): Add DLL_VARIABLE attribute.
3481         * srclib/progname.h (program_name): Likewise.
3483         2003-08-24  Bruno Haible  <bruno@clisp.org>
3484         * srclib/progname.h: Make this file includable in C++ mode: add extern
3485         "C".
3486         * srclib/relocatable.h: Likewise.
3487         * srclib/xmalloc.h: Likewise.
3489         2003-08-22  Bruno Haible  <bruno@clisp.org>
3490         * srclib/progname.h (error_with_progname, maybe_print_progname): Remove
3491         declarations.
3492         * srclib/progname.c (error_with_progname): Remove variable.
3493         (maybe_print_progname): Remove function.
3495         2003-08-01  Bruno Haible  <bruno@clisp.org>
3496         * srclib/relocatable.c (find_shared_library_fullname): Disable the code
3497         on Linux/libc5. Reported by Alain Guibert <derogaton+bgli@oreka.com>.
3499         2003-07-01  Paul Eggert  <eggert@twinsun.com>
3500         * srclib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
3501         having it depend on HAVE_SYS_TYPES_H.
3503         2003-06-23  Bruno Haible  <bruno@clisp.org>
3504         Avoid compilation units that are empty after preprocessing.
3505         * srclib/canonicalize.c: Add dummy declaration.
3506         * srclib/strerror.c: Likewise.
3507         * srclib/error.c: Include <stdio.h> even if there's nothing to be
3508         compiled.
3510         2003-06-22  Bruno Haible  <bruno@clisp.org>
3511         * srclib/relocatable.c (compute_curr_prefix): Comment out this function
3512         in the case when it is not used.
3513         Reported by Pavel Roskin <proski@gnu.org>.
3515         2003-05-28  Paul Eggert  <eggert@twinsun.com>
3516         * srclib/pathmax.h: Include <limits.h> without checking for
3517         HAVE_LIMITS_H.
3518         * srclib/xreadlink.c: Likewise.
3520 2004-01-20  Bruno Haible  <bruno@clisp.org>
3522         Assume automake-1.8.
3523         * Makefile.devel (AUTOCONF, AUTOHEADER): Assume autoconf-2.59.
3524         (AUTOMAKE): Assume automake-1.8.
3525         * Makefile.in (am--refresh): New target.
3527 2004-01-23  Bruno Haible  <bruno@clisp.org>
3529         * Version 1.9.2 released.
3531 2004-01-23  Bruno Haible  <bruno@clisp.org>
3533         * tests/table-from.c: Include binary-io.h.
3534         (main): Switch stdout to binary mode.
3535         * tests/table-to.c: Include binary-io.h.
3536         (main): Switch stdout to binary mode.
3537         * tests/genutf8.c: Include binary-io.h.
3538         (main): Switch stdout to binary mode.
3539         * tests/Makefile.in (INCLUDES): Also look in srclib.
3540         (check): Pass INCLUDES when compiling genutf8.c.
3541         * tests/Makefile.os2 (INCLUDES): Also look in srclib.
3542         (genutf8.exe): Pass INCLUDES when compiling genutf8.c.
3543         * tests/Makefile.msvc (INCLUDES): Also look in srclib.
3544         (check): Pass INCLUDES when compiling genutf8.c.
3546 2004-01-21  Bruno Haible  <bruno@clisp.org>
3548         * src/iconv.c (force_binary): Remove variable.
3549         (usage): Don't document --binary any more.
3550         (convert, main): Always switch to binary mode.
3551         * tests/check-stateful.bat: Remove --binary option.
3552         * tests/check-translit.bat: Likewise.
3553         * tests/check-stateful.cmd: Likewise.
3554         * tests/check-translit.cmd: Likewise.
3555         * djgpp/stateful-check.sed: Remove MODE variable.
3556         * djgpp/translit-check.sed: Likewise.
3558 2004-01-21  Bruno Haible  <bruno@clisp.org>
3560         * man/iconv.3: Fix description of return value in case of error.
3561         Reported by Jonathan Wakely <redi@users.sf.net>.
3563 2003-09-12  Paul Eggert  <eggert@twinsun.com>
3565         * srclib/progreloc.c (get_full_program_name): Define via prototype.
3567 2003-08-15  Bruno Haible  <bruno@clisp.org>
3569         * Makefile.devel (lib/translit.h): Add ulimit command so that the
3570         gentranslit program gets the stack it needs. Many Linux distributions
3571         allow only 8 MB of stack by default.
3573 2003-08-01  Bruno Haible  <bruno@clisp.org>
3575         * lib/relocatable.c (find_shared_library_fullname): Disable the code on
3576         Linux/libc5.
3577         * srclib/relocatable.c (find_shared_library_fullname): Likewise.
3578         Reported by Alain Guibert <derogaton+bgli@oreka.com>.
3580 2003-07-02  Bruno Haible  <bruno@clisp.org>
3582         * m4/lib-ld.m4: Update from GNU gettext.
3583         * m4/lib-prefix.m4: Update from GNU gettext.
3584         * m4/gettext.m4: Update from GNU gettext.
3585         * m4/intmax.m4: New file, from GNU gettext.
3586         * m4/longdouble.m4: New file, from GNU gettext.
3587         * m4/longlong.m4: New file, from GNU gettext.
3588         * m4/printf-posix.m4: New file, from GNU gettext.
3589         * m4/signed.m4: New file, from GNU gettext.
3590         * m4/wchar_t.m4: New file, from GNU gettext.
3591         * m4/wint_t.m4: New file, from GNU gettext.
3592         * m4/pathmax.m4: Update from GNU gettext and gnulib.
3593         * m4/ssize_t.m4: Update from GNU gettext and gnulib.
3594         * m4/xreadlink.m4: Update from GNU gettext and gnulib.
3595         * m4/readlink.m4: New file, from gnulib.
3596         * autoconf/install-reloc: Update from GNU gettext.
3597         * srclib/stdbool_.h: Renamed from srclib/stdbool.h.in.
3598         * srclib/readlink.c: New file, from GNU gettext and gnulib.
3599         * srclib/Makefile.am (LIBADD_SOURCE): Add readlink.c.
3600         (EXTRA_DIST, stdbool.h): Use stdbool_.h instead of stdbool.h.in.
3601         * configure.in: Invoke gl_FUNC_READLINK.
3603 2003-06-22  Bruno Haible  <bruno@clisp.org>
3605         * src/Makefile.in (install): Link with the already installed library.
3606         This fixes a link error on Solaris.
3607         Reported by Paul Eggert.
3609 2003-06-08  Bruno Haible  <bruno@clisp.org>
3611         * srclib/canonicalize.c (__getcwd) [VMS]: Pass 3 arguments to getcwd.
3613 2003-05-02  Bruno Haible  <bruno@clisp.org>
3615         Support for libtool-1.5.
3616         * srclib/progname.c (set_program_name): Remove a leading
3617         "<dirname>/.libs/lt-" or "<dirname>/.libs/", not only "lt-".
3619 2003-06-23  Bruno Haible  <bruno@clisp.org>
3621         Avoid compilation units that are empty after preprocessing.
3622         * srclib/canonicalize.c: Add dummy declaration.
3623         * srclib/strerror.c: Likewise.
3624         * srclib/error.c: Include <stdio.h> even if there's nothing to be
3625         compiled.
3627 2003-06-22  Bruno Haible  <bruno@clisp.org>
3629         Portability to mingw32.
3630         * m4/ssize_t.m4: New file, from GNU gettext.
3631         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
3632         Reported by Jeff Bonggren <jbon@cfl.rr.com>.
3634 2003-06-22  Bruno Haible  <bruno@clisp.org>
3636         Portability to mingw32.
3637         * lib/relocatable.c [WIN32]: Include <windows.h>.
3638         * srclib/relocatable.c: Likewise.
3639         Reported by Jeff Bonggren <jbon@cfl.rr.com>.
3641 2003-06-22  Bruno Haible  <bruno@clisp.org>
3643         * lib/relocatable.c (compute_curr_prefix): Comment out this function in
3644         the case when it is not used.
3645         * srclib/relocatable.c (compute_curr_prefix): Likewise.
3646         Reported by Pavel Roskin <proski@gnu.org>.
3648 2003-06-18  Bruno Haible  <bruno@clisp.org>
3650         * config/install-sh: Update from automake-1.7.5.
3652 2003-06-16  Bruno Haible  <bruno@clisp.org>
3654         * lib/encodings.def (ISO-8859-15): Add alias LATIN-9.
3655         (ISO-8859-16): Add aliases ISO_8859-16:2001, LATIN10, L10. Remove alias
3656         ISO_8859-16:2000.
3657         (GBK): Add aliases MS936, WINDOWS-936.
3658         Reported by Guido Flohr <guido@imperia.net>.
3660 2003-05-09  Bruno Haible  <bruno@clisp.org>
3662         * srclib/canonicalize.c: Add #ifdef around versioned_symbol. Avoids an
3663         "extraneous semicolon" warning from Tru64 cc.
3665 2003-06-07  Bruno Haible  <bruno@clisp.org>
3667         * Makefile.devel (config.h_vms): Don't define HAVE_ENVIRON_DECL.
3668         * Makefile.vms (config.h): New rule.
3669         (all, install): Depend on it.
3670         (all, install, installdirs, uninstall, check): Fix typo.
3671         (mostlyclean, clean, distclean, maintainer-clean): Likewise. Remove
3672         config.h.
3673         * lib/Makefile.vms (DEFS): Fix value of INSTALLDIR.
3674         (OBJECTS): Use libiconv.obj instead of iconv.obj.
3675         (libiconv.obj): Renamed from iconv.obj.
3676         * srclib/Makefile.vms (INCLUDES): Add parent directory.
3677         (OBJECTS): Remove strtoul.obj, setenv.obj, unsetenv.obj.
3678         (strtoul.obj, setenv.obj, unsetenv.obj): Remove rules.
3679         (alloca.h): New rule.
3680         (canonicalize.obj): Depend on it.
3681         (clean): Remove alloca.h.
3682         * src/Makefile.vms (datadir, localedir): New variables.
3683         (DEFS): Also define LOCALEDIR.
3684         (iconv.obj): Add flags for relocatability,
3685         (iconv.exe): Link with libicrt. Use link_options.
3686         * vms/link_options.opt: New file.
3687         Reported by Jouk Jansen <joukj@hrem.stm.tudelft.nl>.
3689 2003-06-07  Bruno Haible  <bruno@clisp.org>
3691         Support for relocatable data files even on Woe32.
3692         * lib/Makefile.msvc (PICFLAGS): Also define PIC.
3694 2003-05-22  Bruno Haible  <bruno@clisp.org>
3696         * Version 1.9.1 released.
3698 2003-05-22  Bruno Haible  <bruno@clisp.org>
3700         * lib/genaliases.c (main): Emit %pic instead of %null-strings.
3701         Change type of 'name' field to 'int'.
3702         * lib/genaliases2.c (emit_encoding): Add a 'tag' argument. Emit an
3703         invocation of macro S(), including the tag and a counter.
3704         (main): Use the command-line argument as tag.
3705         * Makefile.devel (lib/aliases_aix.h, lib/aliases_osf1.h,
3706         lib/aliases_dos.h, lib/aliases_extra.h): Pass a tag to the program.
3707         * lib/iconv.c (stringpool2_t): New type.
3708         (stringpool2_contents): New data table.
3709         (stringpool2): New macro.
3710         (sysdep_aliases): Make position-independent. Move #includes out to
3711         aliases2.h.
3712         (aliases2_lookup): Update.
3713         (nalias): New type.
3714         (compare_by_index): Use 'struct nalias' instead of 'struct alias'.
3715         (iconvlist): Convert 'struct alias' to 'struct nalias' while copying.
3716         * lib/aliases2.h: New file, extracted from lib/iconv.c.
3718 2003-05-20  Bruno Haible  <bruno@clisp.org>
3720         * lib/iconv.c (iconvlist): Test p->name against NULL, not against "".
3721         Reported by Muraoka Taro <koron@tka.att.ne.jp>.
3723 2003-05-19  Bruno Haible  <bruno@clisp.org>
3725         * windows/iconv.rc: Include <winver.h>.
3726         Reported by Perry Rapp.
3728 2003-05-18  Bruno Haible  <bruno@clisp.org>
3730         * Version 1.9 released.
3732 2003-05-18  Bruno Haible  <bruno@clisp.org>
3734         * lib/Makefile.in (libiconv_plug_osf.so): Avoid using LIBTOOL_LINK.
3736 2003-05-18  Bruno Haible  <bruno@clisp.org>
3738         * lib/Makefile.msvc (DEBUGFLAGS): New variable.
3739         (iconv.lib): Use it.
3740         * src/Makefile.msvc (DEBUGFLAGS): New variable.
3741         * tests/Makefile.msvc (DEBUGFLAGS): New variable.
3743 2003-05-17  Bruno Haible  <bruno@clisp.org>
3745         * src/Makefile.msvc (libdir, datadir, localedir): New variables.
3746         (IIlibdir, IIdatadir, IIlocaledir): New variables.
3747         (CFLAGS): Define LOCALEDIR.
3748         (iconv_no_i18n.exe): New rule.
3749         (all): Depend on it.
3750         * tests/check-stateful.bat: Invoke iconv_no_i18n instead of iconv.
3751         * tests/check-translit.bat: Likewise.
3753 2003-05-16  Bruno Haible  <bruno@clisp.org>
3755         * lib/genaliases.c (main): Emit declarations for gperf-3.0.
3756         * Makefile.devel (lib/aliases.h): Remove gperf command line options;
3757         add new option "-m 10" for gperf-3.0.
3759 2003-05-12  Bruno Haible  <bruno@clisp.org>
3761         * m4/error.m4: Update from gettext.
3763 2003-05-12  Bruno Haible  <bruno@clisp.org>
3765         * configure.in: Invoke AC_GNU_SOURCE and jm_FUNC_GLIBC_UNLOCKED_IO.
3767 2003-05-12  Bruno Haible  <bruno@clisp.org>
3769         * lib/Makefile.msvc (PICFLAGS, CFLAGS): Move BUILDING_* macros from
3770         CFLAGS to PICFLAGS.
3772 2003-05-09  Bruno Haible  <bruno@clisp.org>
3774         * srclib/error.c: Update from gnulib with modifications.
3775         * srclib/unlocked-io.h: New file, from gnulib.
3776         * m4/strerror_r.m4: New file, from gnulib.
3777         * m4/unlocked-io.m4: New file, from gnulib.
3778         * Makefile.devel (aclocal.m4): Depend on them.
3780 2003-05-08  Bruno Haible  <bruno@clisp.org>
3782         * Makefile.msvc (IIPREFIX): New variable.
3783         * srclib/Makefile.msvc (INCLUDES): Add -I..\windows.
3784         * src/Makefile.msvc (IIPREFIX, IIprefix, IIexec_prefix, IIbindir,
3785         IIincludedir): New variables.
3786         (INCLUDES): Add -I..\windows.
3787         (iconv.exe): Define INSTALLPREFIX and INSTALLDIR. Link with
3788         ../srclib/icrt.lib.
3789         Patches by Perry Rapp.
3791 2003-05-07  Bruno Haible  <bruno@clisp.org>
3793         * README.woe32: Fix instructions for step 1.
3794         * srclib/Makefile.msvc (OBJECTS): Remove strtoul.obj.
3795         (strtoul.obj): Remove rule.
3796         Reported by Perry Rapp.
3798 2003-05-07  Bruno Haible  <bruno@clisp.org>
3800         * Makefile.vms: New file.
3801         * lib/Makefile.vms: New file.
3802         * srclib/Makefile.vms: New file.
3803         * src/Makefile.vms: New file.
3804         * man/Makefile.vms: New file.
3805         * tests/Makefile.vms: New file.
3806         * Makefile.devel (config.h_vms, lib/config.h_vms, include/iconv.h_vms):
3807         New rules.
3808         (all): Depend on them.
3810 2003-05-07  Bruno Haible  <bruno@clisp.org>
3812         * srclib/Makefile.msvc (OBJECTS): Remove findprog.obj.
3813         (findprog.obj): Remove rule.
3814         * src/Makefile.msvc (includedir): New variable.
3816 2003-05-06  Bruno Haible  <bruno@clisp.org>
3818         * lib/translit.def: Upgrade to Unicode 4.0.
3820 2003-05-06  Bruno Haible  <bruno@clisp.org>
3822         * srclib/Makefile.am (DEFS): Fix spelling of DEPENDS_ON_LIBICONV.
3823         * srclib/Makefile.msvc (CFLAGS): Likewise.
3825         * srclib/Makefile.msvc (INCLUDES): Add -I.. .
3826         Reported by Perry Rapp.
3828         * Makefile.msvc (config.h): New rule.
3829         (all): Depend on it.
3830         (mostlyclean, clean, distclean, maintainer-clean): Erase config.h.
3831         Reported by Perry Rapp.
3833 2003-05-06  Bruno Haible  <bruno@clisp.org>
3835         * autoconf/config.guess: Update to GNU version 2003-02-22.
3836         * autoconf/config.sub: Likewise.
3838 2003-05-06  Bruno Haible  <bruno@clisp.org>
3840         * m4/lib-link.m4: Update from GNU gettext.
3841         * autoconf/config.rpath: Update from GNU gettext.
3843         * m4/libtool.m4: Update from GNU gettext, based on libtool-1.5.
3844         * autoconf/ltmain.sh: Update from GNU gettext, based on libtool-1.5.
3846         * m4/gettext.m4: Update from GNU gettext.
3847         * m4/nls.m4: Update from GNU gettext.
3848         * m4/po.m4: Update from GNU gettext.
3849         * Makefile.devel (aclocal.m4): Depend on m4/nls.m4 and m4/po.m4.
3851 2003-04-12  Bruno Haible  <bruno@clisp.org>
3853         Support for OpenVMS 7.3.
3854         * lib/iconv.c (USE_OSF1): Define also on VMS.
3856 2003-04-12  Bruno Haible  <bruno@clisp.org>
3858         Better support for FreeBSD.
3859         * lib/encodings.def (ISO8859-{1,2,3,4,5,6,7,8,9,10,13,14,15,16): New
3860         aliases, for compatibility with earlier FreeBSD iconv implementation
3861         by Konstantin Chuguev.
3862         * lib/iconv.c (iconv_open, iconv, iconv_close) [FreeBSD]: Define as
3863         aliases.
3864         * src/Makefile.in (install) [FreeBSD]: Avoid installation problem.
3866 2003-04-12  Bruno Haible  <bruno@clisp.org>
3868         * configure.in (mandir): Change default value.
3869         * Makefile.in (datadir): New variable.
3870         (install, installdirs, uninstall): Pass datadir to po and man
3871         directories.
3872         * Makefile.os2 (datadir): New variable.
3873         (mandir): Use it instead of prefix.
3874         (install, uninstall): Pass datadir to man directory.
3875         * Makefile.msvc (mandir, docdir): Use datadir instead of prefix.
3876         * man/Makefile.in (datadir): New variable.
3877         (docdir): Use it instead of prefix.
3878         (install, installdirs): Update.
3879         * man/Makefile.os2 (datadir): New variable.
3880         (mandir): Use it instead of prefix.
3881         * man/Makefile.msvc (datadir): New variable.
3882         (mandir, docdir): Use it instead of prefix.
3883         (install, installdirs): Update.
3885 2003-04-06  Bruno Haible  <bruno@clisp.org>
3887         Make it possible to build with or without libintl support on Woe32.
3888         * Makefile.devel (config.h.msvc): Remove ENABLE_NLS.
3889         * Makefile.msvc (NO_NLS): New variable.
3890         * srclib/Makefile.msvc (NO_NLS): New variable.
3891         (CFLAGS, INCLUDES): Use them.
3892         * src/Makefile.msvc (NO_NLS): New variable.
3893         (NLSFLAGS, INCINTL, LIBINTL): New variables.
3894         (CFLAGS, INCLUDES, iconv.exe): Use them.
3896 2003-04-12  Bruno Haible  <bruno@clisp.org>
3898         * lib/loop_unicode.h (unicode_transliterate): When the Hangul or
3899         variants transliteration failed with RET_ILUNI, don't return
3900         RET_TOOSMALL.
3901         Reported by the FreeBSD porters.
3903 2003-04-06  Bruno Haible  <bruno@clisp.org>
3905         * srclib/binary-io.h: New file, from GNU gettext.
3906         * src/iconv.c: Include it.
3907         (O_BINARY, O_TEXT, SET_BINARY): Remove definitions.
3909 2003-04-05  Bruno Haible  <bruno@clisp.org>
3911         Support for relocatable installation.
3912         * m4/alloca.m4: New file, from GNU gettext.
3913         * m4/canonicalize.m4: New file, from GNU gettext.
3914         * m4/error.m4: New file, from GNU gettext.
3915         * m4/onceonly.m4: New file, from GNU gettext.
3916         * m4/pathmax.m4: New file, from GNU gettext.
3917         * m4/relocatable.m4: New file, from GNU gettext.
3918         * m4/setenv.m4: New file, from GNU gettext.
3919         * m4/stdbool.m4: New file, from GNU gettext.
3920         * m4/strerror.m4: New file, from GNU gettext.
3921         * m4/xreadlink.m4: New file, from GNU gettext.
3922         * autoconf/config.libpath: New file, from GNU gettext.
3923         * autoconf/install-reloc: New file, from GNU gettext.
3924         * autoconf/reloc-ldflags: New file, from GNU gettext.
3925         * autoconf/missing: New file, from GNU automake 1.7.3.
3926         * lib/relocatable.h: New file, from GNU gettext.
3927         * lib/relocatable.c: New file, from GNU gettext.
3928         * srclib/alloca.c: New file, from GNU gettext.
3929         * srclib/alloca_.h: New file, from GNU gettext.
3930         * srclib/canonicalize.c: New file, from GNU gettext.
3931         * srclib/canonicalize.h: New file, from GNU gettext.
3932         * srclib/error.c: New file, from GNU gettext.
3933         * srclib/error.h: New file, from GNU gettext.
3934         * srclib/exit.h: New file, from GNU gettext.
3935         * srclib/gettext.h: New file, from GNU gettext.
3936         * srclib/memmove.c: New file, from GNU gettext.
3937         * srclib/pathmax.h: New file, from GNU gettext.
3938         * srclib/progname.c: New file, from GNU gettext.
3939         * srclib/progname.h: New file, from GNU gettext.
3940         * srclib/progreloc.c: New file, from GNU gettext.
3941         * srclib/relocatable.c: New file, from GNU gettext.
3942         * srclib/relocatable.h: New file, from GNU gettext.
3943         * srclib/relocwrapper.c: New file, from GNU gettext.
3944         * srclib/setenv.c: New file, from GNU gettext.
3945         * srclib/setenv.h: New file, from GNU gettext.
3946         * srclib/stdbool.h.in: New file, from GNU gettext.
3947         * srclib/strerror.c: New file, from GNU gettext.
3948         * srclib/unsetenv.c: New file, from GNU gettext.
3949         * srclib/xmalloc.c: New file, from GNU gettext.
3950         * srclib/xmalloc.h: New file, from GNU gettext.
3951         * srclib/xreadlink.c: New file, from GNU gettext.
3952         * srclib/xreadlink.h: New file, from GNU gettext.
3953         * srclib/xstrdup.c: New file, from GNU gettext.
3954         * srclib/Makefile.am: New file.
3955         * srclib/Makefile.msvc: New file.
3956         * windows/alloca.h: New file, from GNU gettext.
3957         * windows/stdbool.h: New file, from GNU gettext.
3958         * configure.in (AC_CONFIG_HEADERS): Replace src/config.h with config.h.
3959         Add AC_RELOCATABLE, AC_HEADER_STDC, AC_CHECK_HEADERS(stddef.h stdlib.h
3960         string.h), AC_CHECK_FUNCS(getc_unlocked), AC_REPLACE_FUNCS(memmove),
3961         AM_LANGINFO_CODESET, gl_FUNC_ALLOCA, gl_CANONICALIZE,
3962         gt_FUNC_ERROR_AT_LINE, gl_PATHMAX, gt_FUNC_SETENV, gt_STDBOOL_H,
3963         gl_FUNC_STRERROR, gl_XREADLINK, AC_OUTPUT(srclib/Makefile).
3964         * lib/config.h.in: Add HAVE_GETC_UNLOCKED, HAVE_LANGINFO_CODESET,
3965         HAVE_SETLOCALE, HAVE_STDDEF_H, HAVE_STDLIB_H, HAVE_STRING_H, for
3966         localcharset.c. Add ENABLE_RELOCATABLE, INSTALLPREFIX, for
3967         relocatable.c.
3968         * lib/Makefile.in (DEFS): New variable.
3969         (SOURCES): Add localcharset.c and relocatable.c.
3970         (OBJECTS): Add localcharset.lo and relocatable.lo.
3971         (LIBCHARSET_OBJECTS): Remove variable.
3972         (libiconv_plug_linux.so, libiconv_plug_solaris.so,
3973         libiconv_plug_osf.so): Use $(DEFS). Don't use $(LIBCHARSET_OBJECTS).
3974         (iconv.lo): Use $(DEFS).
3975         (localcharset.lo, relocatable.lo): New rules.
3976         * lib/Makefile.msvc (CFLAGS): Define HAVE_CONFIG_H, BUILDING_DLL,
3977         ENABLE_RELOCATABLE, IN_LIBRARY, INSTALLDIR, NO_XMALLOC,
3978         set_relocation_prefix, relocate. Remove $(PICFLAGS).
3979         (INCLUDES): Simplify.
3980         (SOURCES): Remove variable.
3981         (OBJECTS): Add localcharset.obj and relocatable.obj.
3982         (LIBCHARSET_OBJECTS): Remove variable.
3983         (iconv.obj): Add $(PICFLAGS).
3984         (localcharset.obj, relocatable.obj): New rules.
3985         (iconv.lib): Drop $(LIBCHARSET_OBJECTS).
3986         * include/iconv.h.in (libiconv_set_relocation_prefix): New declaration.
3987         * src/gettext.h: Remove file.
3988         * src/iconv.c: Include progname.h and relocatable.h.
3989         (ICONV_CONST): Define to const if the system has no iconv.
3990         (main): Invoke set_program_name. Relocate LOCALEDIR.
3991         * src/Makefile.in (top_srcdir): New variable.
3992         (INCLUDES): Add .. and ../srclib.
3993         (iconv_no_i18n, iconv): Link with ../srclib/libicrt.a.
3994         (iconv_no_i18n.@OBJEXT@, iconv.@OBJEXT@): Define INSTALLDIR.
3995         (RELOCATABLE_LIBRARY_PATH, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR,
3996         RELOCATABLE_CONFIG_H_DIR, @SET_RELOCATABLE@, iconv_LDFLAGS): New
3997         variables.
3998         (iconv): Use $(iconv_LDFLAGS).
3999         (install): Use $(INSTALL_PROGRAM_ENV).
4000         (distclean): Drop removing config.h.
4001         * src/Makefile.msvc (INCLUDES): Add .., simplify.
4002         * tests/Makefile.msvc (INCLUDES): Simplify.
4003         * Makefile.devel (AUTOHEADER, AUTOMAKE): New variables.
4004         (config.h.in, srclib/Makefile.in, config.h.msvc): New rules.
4005         (all): Depend on them.
4006         (aclocal.m4) Depend also on m4/alloca.m4, m4/canonicalize.m4,
4007         m4/error.m4, m4/onceonly.m4, m4/pathmax.m4, m4/relocatable.m4,
4008         m4/setenv.m4, m4/stdbool.m4, m4/strerror.m4, m4/xreadlink.m4.
4009         (lib/config.h.msvc): Additional processing.
4010         * Makefile.in (all, install, installdirs, uninstall, check): Recurse
4011         into srclib.
4012         (mostlyclean, clean, distclean, maintainerclean): Likewise. Remove
4013         lib/localcharset.h.
4014         (distclean, maintainerclean): Remove also config.h and some stamps.
4015         * Makefile.msvc (all, install, installdirs, uninstall, check,
4016         mostlyclean, clean, distclean, maintainerclean): Recurse into srclib.
4017         * INSTALL.generic: Document --enable-relocatable and
4018         --with-libintl-prefix. Remove the recommendation to set CPPFLAGS and
4019         LDFLAGS. The lib-link.m4 macros make this unnecessary.
4021 2003-04-05  Bruno Haible  <bruno@clisp.org>
4023         * configure.in: Bump version number to 1.9.
4024         * include/iconv.h.in (_LIBICONV_VERSION): Bump.
4025         * windows/iconv.rc: Bump version number.
4026         * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 4:0:2.
4028 2003-04-05  Bruno Haible  <bruno@clisp.org>
4030         * Makefile.msvc (PREFIX): New variable.
4031         (prefix): Use it.
4032         (distclean, maintainer-clean): Drop Unix specific removals.
4033         * lib/Makefile.msvc (PREFIX, IIPREFIX): New variables.
4034         (prefix): Use it.
4035         (IIprefix, IIexec_prefix, IIbindir, IIlibdir): New variables.
4036         (clean): Drop Unix specific removal.
4037         * src/Makefile.msvc (PREFIX): New variable.
4038         (prefix): Use it.
4039         (clean): Drop Unix specific removal.
4040         (distclean): Likewise.
4041         * tests/Makefile.msvc (clean): Drop Unix specific removal.
4042         (distclean): Likewise.
4044 2003-04-05  Bruno Haible  <bruno@clisp.org>
4046         * m4/endian.m4 (CL_WORDS_LITTLEENDIAN): Use 3-argument AC_DEFINE.
4048 2003-04-05  Bruno Haible  <bruno@clisp.org>
4050         * m4/general.m4 (CL_CONFIG_SUBDIRS, CL_CANONICAL_HOST,
4051         CL_CANONICAL_HOST_CPU, CL_CANONICAL_HOST_CPU_FOR_FFCALL): Remove
4052         macros.
4053         * m4/gettext.m4: Update from GNU gettext.
4054         * m4/iconv.m4: Update from GNU gettext.
4055         * m4/lcmessage.m4: Update from GNU gettext.
4056         * m4/progtest.m4: Update from GNU gettext.
4057         * m4/libtool.m4: Update from GNU gettext.
4058         2003-02-16  Bruno Haible  <bruno@clisp.org>
4059                 Workaround autoconf >= 2.52 breakage.
4060                 * libtool.m4 (AC_LIBTOOL_ARG_WITH): New macro.
4061                 (_LT_AC_LTCONFIG_HACK, AC_PROG_LD): Use it.
4062         * autoconf/ltmain.sh: Update from GNU gettext.
4063         2003-02-18  Bruno Haible  <bruno@clisp.org>
4064                 Fix the 2002-09-16 fix.
4065                 * ltmain.sh (install): If "ln -s -f" fails (this is the case
4066                 with /usr/bin/ln on Solaris 2.7), fall back to "rm && ln -s".
4068 2003-04-05  Bruno Haible  <bruno@clisp.org>
4070         Start using automake.
4071         * configure.in: Add AM_INIT_AUTOMAKE invocation.
4072         (PACKAGE, VERSION): Remove.
4073         Use AC_CANONICAL_HOST instead of CL_CANONICAL_HOST.
4074         Use AC_PROG_LN_S instead of CL_PROG_LN_S.
4075         Use AC_PROG_RANLIB instead of CL_PROG_RANLIB.
4076         Reorder so that AC_CANONICAL_HOST comes early but still after
4077         AC_PROG_CC.
4078         * m4/ranlib.m4: Remove file.
4079         * m4/libtool.m4: Undo AC_ -> CL_ substitutions.
4080         * Makefile.devel (CLISP_DIR): Comment out.
4081         (AUTOCONF_FILES): Change to aclocal.m4.
4082         (aclocal.m4): Renamed from autoconf/aclocal.m4. Update dependencies.
4083         (configure.in): Drop --include option.
4085 2003-03-17  Bruno Haible  <bruno@clisp.org>
4087         Improved MSVC support.
4088         * Makefile.msvc (prefix): Use less Unixy value.
4089         (local_prefix): Remove variable.
4090         (libdir, includedir, mandir): Use backslashes.
4091         (bindir, datadir, localedir, docdir): New variables.
4092         (INSTALL, INSTALL_PROGRAM, INSTALL_DATA): New variables.
4093         (all): Recurse into po/ and man/.
4094         (install, installdirs, uninstall): Rewritten.
4095         (check, mostlyclean, clean, distclean, maintainer-clean): Recurse
4096         into po/ and man/.
4097         * lib/Makefile.msvc (prefix): Use less Unixy value.
4098         (local_prefix): Remove variable.
4099         (libdir): Use backslashes.
4100         (bindir): New variable.
4101         (INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Set to real values.
4102         (RESOURCES): Enable iconv.res.
4103         (install, installdirs, uninstall): New rules.
4104         (clean): Remove config.h.
4105         (distclean): Don't remove config.h here.
4106         * src/Makefile.msvc (prefix, exec_prefix, bindir): New variables.
4107         (INSTALL, INSTALL_PROGRAM, INSTALL_DATA): New variables.
4108         (install, installdirs, uninstall): New rules.
4109         * man/Makefile.msvc: New file.
4110         * tests/Makefile.msvc (install, installdirs, uninstall): New rules.
4111         * Makefile.devel (all): Depend on po/Makefile.msvc.
4112         (po/Makefile.msvc): New rule.
4113         * windows/iconv.rc: Update.
4114         * README.woe32: Mention automatic installation command.
4116         Rename libcharset.h to localcharset.h.
4117         * lib/iconv.c: Include localcharset.h, not libcharset.h.
4118         * Makefile.in (lib/localcharset.h): Renamed from lib/libcharset.h.
4119         (all, install): Update dependencies.
4120         (all): Create lib/localcharset.h, not lib/libcharset.h.
4121         (mostlyclean, clean, distclean, maintainer-clean): Remove
4122         lib/localcharset.h, not lib/libcharset.h.
4123         * djgpp/README.in, djgpp/README: Update.
4124         * djgpp/config.bat: Update.
4125         * djgpp/config.sed: Update.
4126         * djgpp/fnchange.in, djgpp/fnchange.lst: Update.
4128 2003-01-31  Bruno Haible  <bruno@clisp.org>
4130         * src/Makefile.in (all): Don't do the chmod if it has already been
4131         done.
4133 2003-01-31  Bruno Haible  <bruno@clisp.org>
4135         * lib/loop_unicode.h (unicode_transliterate): Enable recursive
4136         transliteration. Idea from Perry Rapp.
4137         * lib/gentranslit.c (main): Change bound from 0x10000 to 0x110000.
4138         Change element type of translit_data to 'unsigned int'.
4139         * lib/translit.def: Many new transliterations, mostly taken from glibc.
4140         * lib/translit.h: Regenerated.
4141         * tests/Translit1.ISO-8859-1, tests/Translit1.ASCII: New files.
4142         * tests/Makefile.in (check): Add Translit1 check.
4143         * tests/Makefile.msvc (check): Likewise.
4144         * tests/Makefile.os2 (check): Likewise.
4145         * tests/TranslitFail1.ISO-8859-1: Choose a sentence which the new
4146         improved transliteration cannot do.
4148 2003-02-14  Bruno Haible  <bruno@clisp.org>
4150         * Makefile.devel (AUTOCONF): Switch to autoconf-2.57.
4151         (configure): Update rule.
4153 2003-01-03  Albert Chin  <libtool@thewrittenword.com>
4155         * autoconf/ltmain.sh: Don't pass -R flags found in a .la's
4156         dependency_libs variable directly down to the linker.
4157         Reported by Tim Mooney <mooney@dogbert.cc.ndsu.nodak.edu>.
4159 2003-01-01  Bruno Haible  <bruno@clisp.org>
4161         * src/Makefile.in (install): Use libiconv.la in ../lib, not in
4162         $(libdir), so that installing with DESTDIR works.
4163         Reported by Michael Adams <michael@michaeladams.org>.
4165 2003-01-01  Bruno Haible  <bruno@clisp.org>
4167         * Makefile.in (mkinstalldirs): New variable.
4168         (install-lib, install, installdirs): Use it instead of mkdir.
4169         * lib/Makefile.in (mkinstalldirs): New variable.
4170         (install-lib, install, installdirs): Use it instead of mkdir.
4171         * man/Makefile.in (mkinstalldirs): New variable.
4172         (install, installdirs): Use it instead of mkdir.
4173         * src/Makefile.in (mkinstalldirs): New variable.
4174         (install, installdirs): Use it instead of mkdir.
4176 2002-09-27  Bruno Haible  <bruno@clisp.org>
4178         * autoconf/mkinstalldirs: Upgrade to automake-1.7.2 version.
4180 2002-11-07  Bruno Haible  <bruno@clisp.org>
4182         * m4/libtool.m4: Upgrade to libtool-1.4.3.
4183         * autoconf/ltmain.sh: Upgrade to libtool-1.4.3.
4185 2002-07-14  Bruno Haible  <bruno@clisp.org>
4187         * m4/libtool.m4 (_LT_AC_LTCONFIG_HACK): Add support for GNU/FreeBSD.
4189 2002-06-12  Bruno Haible  <bruno@clisp.org>
4191         * configure.in: Use new AC_* names of libtool macros. Invoke
4192         AC_LIBTOOL_WIN32_DLL.
4194 2002-12-19  Bruno Haible  <bruno@clisp.org>
4196         * lib/Makefile.in (libiconv_plug_solaris.so): Change rule if using gcc.
4197         Reported by Henry Nelson <henry@irm.nara.kindai.ac.jp>.
4199 2002-11-07  Bruno Haible  <bruno@clisp.org>
4201         Make "make install" without prior "make" work.
4202         * Makefile.in (lib/libcharset.h): New rule.
4203         (all, install): Depend on it.
4204         Reported by Martin Mokrejš <mmokrejs@natur.cuni.cz>.
4206 2002-10-28  Bruno Haible  <bruno@clisp.org>
4208         * man/Makefile.in (install): Change directory back to the working
4209         directory, so that install-sh (which may be a relative pathname) is
4210         found in the right place.
4212 2002-09-16  Bruno Haible  <bruno@clisp.org>
4214         * autoconf/ltmain.sh (install): Use "ln -s -f" instead of
4215         "rm -f && ln -s" to make a symlink for a shared library.
4216         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4218 2002-09-02  Bruno Haible  <bruno@clisp.org>
4220         * src/iconv.c (main): Don't call bindtextdomain if !ENABLE_NLS.
4222 2002-08-16  Bruno Haible  <bruno@clisp.org>
4224         * src/iconv.c (main): Perform fflush before testing ferror(stdout).
4226 2002-05-29  Bruno Haible  <bruno@clisp.org>
4228         * Version 1.8 released.
4230 2002-05-26  Bruno Haible  <bruno@clisp.org>
4232         * lib/c99.h: New file.
4233         * lib/converters.h: Include it.
4234         * lib/encodings.def (C99): New encoding.
4235         * README, man/iconv_open.3: Document C99 encoding.
4237 2002-05-26  Bruno Haible  <bruno@clisp.org>
4239         * lib/java.h (java_mbtowc): Accept 12-byte sequences for non-BMP
4240         characters.
4241         (java_wctomb): Produce 12-byte sequences for non-BMP characters.
4243 2002-05-29  Bruno Haible  <bruno@clisp.org>
4245         Fix installation of iconv program when linked with a libintl that was
4246         built against an earlier libiconv.
4247         * src/iconv.c: Conditionally disable NLS.
4248         * src/iconv_no_i18n.c: New file.
4249         * src/Makefile.in (libdir): New variable.
4250         (all): Depend on iconv_no_i18n, iconv.@OBJEXT@ but not iconv. Make
4251         directory writable, so iconv executable can be created during "make
4252         install".
4253         (iconv): Remove rule.
4254         (iconv_no_i18n, iconv_no_i18n.@OBJEXT@): New rules.
4255         (install): Link iconv now, after the new libiconv.so is installed.
4256         (clean): Also remove iconv_no_i18n.
4257         * tests/Makefile.in: (check, check-extra-yes): Depend on iconv_no_i18n,
4258         not iconv.
4259         * tests/check-stateful: Use iconv_no_i18n, not iconv.
4260         * tests/check-translit: LIkewise.
4261         * tests/check-translitfailure: Likewise.
4263 2002-05-29  Bruno Haible  <bruno@clisp.org>
4265         * configure.in: Call AC_PROG_INSTALL instead of CL_PROG_INSTALL.
4266         * m4/install.m4: Remove file.
4267         * Makefile.devel (autoconf/aclocal.m4): Don't depend on m4/install.m4.
4269 2002-05-24  Bruno Haible  <bruno@clisp.org>
4271         * lib/jisx0213.h: Use 'inline' only conditionally.
4273 2002-05-18  Bruno Haible  <bruno@clisp.org>
4275         * configure.in (AC_INIT), include/iconv.h.in (_LIBICONV_VERSION),
4276         README, windows/iconv.rc, djgpp/README, djgpp/fnchange.lst:
4277         Bump version number.
4278         * lib/Makefile.in (LIBICONV_VERSION_INFO): Define to 3:0:1.
4280 2002-02-06  Bruno Haible  <bruno@clisp.org>
4282         * autoconf/ltmain.sh: Upgrade from libtool-1.4 to libtool-1.4.2.
4284 2002-02-02  Bruno Haible  <bruno@clisp.org>
4286         * autoconf/ltmain.sh: Add DESTDIR support on ELF systems.
4288 2001-11-03  Bruno Haible  <haible@clisp.cons.org>
4290         * autoconf/ltmain.sh: chmod 777 the .libs directory, so that
4291         "make install" succeeds.
4293 2002-05-18  Bruno Haible  <bruno@clisp.org>
4295         * src/Makefile.in (iconv): Remove the -liconv dependency of -lintl
4296         from the command line. Needed to ensure that the new libiconv version
4297         is used on FreeBSD.
4299 2002-05-14  Bruno Haible  <bruno@clisp.org>
4301         Implement and document CP853, TDS565, RISCOS-LATIN1.
4302         * tools/Makefile (ALL): Add cp853.h, tds565.h, riscos1.h.
4303         (cp853.h, tds565.h, riscos1.h): New rules.
4304         * lib/cp853.h: New file.
4305         * lib/tds565.h: New file.
4306         * lib/riscos1.h: New file.
4307         * lib/converters.h: Include them.
4308         * lib/encodings_dos.def (CP853): New encoding.
4309         * lib/encodings_extra.def (TDS565, RISCOS-LATIN1): New encodings.
4310         * README, man/iconv_open.3: Add CP853, TDS565, RISCOS-LATIN1.
4311         * tests/Makefile.in (check-extra-yes): Check CP853, TDS565,
4312         RISCOS-LATIN1.
4313         * tests/Makefile.msvc (check): Check CP853.
4314         * tests/CP853.TXT: New file.
4315         * tests/TDS565.TXT: New file.
4316         * tests/RISCOS-LATIN1.TXT: New file.
4318         * lib/cp860.h (cp860_wctomb): Optimize.
4320 2002-05-12  Bruno Haible  <bruno@clisp.org>
4322         * tools/Makefile (ksc5601.h): Add two extra characters.
4323         * lib/ksc5601.h: Regenerated.
4324         * tests/EUC-KR.TXT: Add EURO SIGN and REGISTERED SIGN.
4325         * tests/CP949.TXT: Likewise.
4326         * tests/JOHAB.TXT: Likewise.
4328 2002-05-12  Bruno Haible  <bruno@clisp.org>
4330         * README: Mention extra encodings.
4331         * man/iconv_open.3: Likewise. Improve formatting in text and html
4332         output formats.
4334 2002-05-12  Bruno Haible  <bruno@clisp.org>
4336         * tests/SHIFT_JIS.TXT: Renamed from tests/SHIFT-JIS.TXT.
4338 2002-05-12  Bruno Haible  <bruno@clisp.org>
4340         * Makefile.devel (AUTOCONF): New variable.
4341         (AUTOCONF_FILES): Remove autoconf/autoconf.m4f.
4342         (configure): Use the AUTOCONF variable.
4343         * autoconf/autoconf: Remove file.
4344         * autoconf/autoconf.m4: Remove file.
4345         * autoconf/autoconf.m4f: Remove file.
4347 2002-05-12  Bruno Haible  <bruno@clisp.org>
4349         * tools/JISX0213.TXT: New file.
4350         * tools/cjk_tab_to_h.c (do_jisx0213): New function.
4351         (main): Accept "jisx0213".
4352         * tools/Makefile (all): Add jisx0213.h.
4353         (jisx0213.h): New rule.
4354         * lib/jisx0213.h: New file, generated by cjk_tab_to_h.
4355         * lib/euc_jisx0213.h: New file.
4356         * lib/shift_jisx0213.h: New file.
4357         * lib/iso2022_jp3.h: New file.
4358         * lib/converters.h: Include them.
4359         * lib/encodings_extra.def (EUC-JISX0213, SHIFT_JISX0213,
4360         ISO-2022-JP-3): New encodings.
4361         * tests/EUC-JISX0213.TXT: New file.
4362         * tests/SHIFT_JISX0213.TXT: New file.
4363         * tests/ISO-2022-JP-3-snippet: New file.
4364         * tests/ISO-2022-JP-3-snippet.UTF-8: New file.
4365         * tests/Makefile.in (check-extra): Also check EUC-JISX0213,
4366         SHIFT_JISX0213, ISO-2022-JP-3.
4367         * tests/check-stateless: Add support for encodings which contain
4368         precomposed Unicode characters, by eliminating precomposed characters
4369         before the comparison.
4370         * tests/table-from.c (main): Fix usage message.
4371         * tests/table-to.c (main): Make it work for encodings for which the
4372         "to" direction is stateful.
4374 2002-05-09  Bruno Haible  <bruno@clisp.org>
4376         New configure option --enable-extra-encodings.
4377         * lib/encodings_extra.def: New file.
4378         * lib/converters.h: Handle USE_EXTRA.
4379         * lib/genaliases2.c (main): Handle USE_EXTRA.
4380         * lib/genflags.c: Define USE_EXTRA.
4381         (main): Include encodings_extra.def.
4382         * lib/iconv.c: Handle ENABLE_EXTRA, conditionally set USE_EXTRA.
4383         Handle USE_EXTRA.
4384         * lib/config.h.in (ENABLE_EXTRA): New macro.
4385         * configure.in: Accept option --enable-extra-encodings.
4386         * Makefile.devel (all): Depend on lib/aliases_extra.h.
4387         (lib/aliases_extra.h): New rule.
4388         (lib/flags.h): Depend on lib/encodings_extra.def.
4389         * tests/Makefile.in (check-extra, check-extra-no, check-extra-yes):
4390         New rules.
4391         (check): Invoke check-extra.
4392         * tests/Makefile.msvc (check): Also check the DOS encodings.
4394         Support for testing the AIX encodings.
4395         * tests/CP856.TXT: New file.
4396         * tests/CP922.TXT: New file.
4397         * tests/CP1046.TXT: New file.
4398         * tests/CP1124.TXT: New file.
4399         * tests/CP1129.TXT: New file.
4400         * tests/CP1161.TXT, tests/CP1161.IRREVERSIBLE.TXT: New files.
4401         * tests/CP1162.TXT: New file.
4402         * tests/CP1163.TXT, tests/CP1163.IRREVERSIBLE.TXT: New files.
4404         Support for testing the OSF/1 encodings.
4405         * tests/DEC-KANJI.TXT: New file.
4406         * tests/DEC-HANYU.TXT, tests/DEC-HANYU.IRREVERSIBLE.TXT: New files.
4408         Support for testing the DOS encodings.
4409         * tests/CP437.TXT: New file.
4410         * tests/CP737.TXT: New file.
4411         * tests/CP775.TXT: New file.
4412         * tests/CP852.TXT: New file.
4413         * tests/CP855.TXT: New file.
4414         * tests/CP857.TXT: New file.
4415         * tests/CP858.TXT: New file.
4416         * tests/CP860.TXT: New file.
4417         * tests/CP861.TXT: New file.
4418         * tests/CP863.TXT: New file.
4419         * tests/CP864.TXT: New file.
4420         * tests/CP865.TXT: New file.
4421         * tests/CP869.TXT: New file.
4422         * tests/CP1125.TXT: New file.
4424 2002-05-09  Bruno Haible  <bruno@clisp.org>
4426         Implement more ASCII compatible DOS encodings.
4427         * tools/Makefile (ALL): Add cp737.h, cp858.h, cp860.h, cp863.h.
4428         (cp737.h, cp858.h, cp860.h, cp863.h): New rules.
4429         * lib/cp737.h: New file.
4430         * lib/cp858.h: New file.
4431         * lib/cp860.h: New file.
4432         * lib/cp863.h: New file.
4433         * lib/converters.h: Include them.
4434         * lib/encodings_dos.def (CP737, CP858, CP860, CP863): New encodings.
4436 2002-05-09  Bruno Haible  <bruno@clisp.org>
4438         Implement new ASCII compatible encodings from IBM.
4439         * tools/Makefile (ALL): Add cp1161.h, cp1162.h, cp1163.h.
4440         (cp1161.h, cp1162.h, cp1163.h): New rules.
4441         * lib/cp1161.h: New file.
4442         * lib/cp1162.h: New file.
4443         * lib/cp1163.h: New file.
4444         * lib/converters.h: Include them.
4445         * lib/encodings_aix.def (CP1161, CP1162, CP1163): New encodings.
4447 2002-05-09  Bruno Haible  <bruno@clisp.org>
4449         Implement and document KOI8-T.
4450         * tools/Makefile (ALL): Add koi8_t.h.
4451         (koi8_t.h): New rule.
4452         * lib/koi8_t.h: New file.
4453         * lib/converters.h: Include it.
4454         * lib/encodings.def (KOI8-T): New encoding.
4455         * README, man/iconv_open.3: Add KOI8-T.
4456         * tests/Makefile.in (tests): Check KOI8-T.
4457         * tests/Makefile.os2 (tests): Likewise.
4458         * tests/Makefile.msvc (tests): Likewise.
4459         * tests/KOI8-T.TXT: New file.
4461 2002-05-09  Bruno Haible  <bruno@clisp.org>
4463         * tools/8bit_tab_to_h.c (main): Update copyright year.
4464         * tools/cjk_variants.c (main): Likewise.
4466 2002-05-08  Bruno Haible  <bruno@clisp.org>
4468         * README.woe32: Renamed from README.win32.
4470 2002-05-08  Bruno Haible  <bruno@clisp.org>
4472         * lib/iconv.c: Enable DOS encodings also when compiling for Woe32,
4473         because the Woe32 consoles use them.
4475 2002-05-04  Bruno Haible  <bruno@clisp.org>
4477         * lib/loop_unicode.h (unicode_loop_convert): When quitting the loop
4478         without writing an output character, restore cd->istate to its value
4479         before the xxx_mbtowc call. Otherwise we lose some characters during
4480         CP1255/CP1258/TCVN to Unicode conversion.
4481         (unicode_loop_reset): Likewise for the xxx_flushwc call.
4482         * tests/CP1255-snippet, tests/CP1255-snippet.UTF-8: Make the test
4483         files large enough to test against the bug.
4484         * tests/CP1258-snippet, tests/CP1258-snippet.UTF-8: Likewise.
4485         * tests/TCVN-snippet, tests/TCVN-snippet.UTF-8: Likewise.
4487 2002-04-28  Bruno Haible  <bruno@clisp.org>
4489         * tools/Makefile (armscii_8.h): Use table from glibc-2.2.90.
4490         * tests/ARMSCII-8.TXT: Update to glibc-2.2.90 version.
4491         * tests/ARMSCII-8.IRREVERSIBLE.TXT: Remove 0x0027.
4492         * lib/armscii_8.h: Regenerated.
4494 2002-04-28  Bruno Haible  <bruno@clisp.org>
4496         * src/iconv.c: Include gettext.h.
4497         (_): New macro.
4498         (usage, print_version, convert, main): Internationalize.
4499         (main): Call setlocale, bindtextdomain, textdomain.
4500         * src/gettext.h: New file, from GNU gettext 0.11.2.
4501         * src/config.h.in: New file, needed for ENABLE_NLS.
4502         * src/Makefile.in (datadir, localedir): New variables.
4503         (iconv): Link with @LTLIBINTL@.
4504         (iconv.@OBJEXT@): Define LOCALEDIR.
4505         (distclean): Remove config.h.
4506         * po: New directory.
4507         * Makefile.in (all, install, installdirs, uninstall, check,
4508         mostlyclean, clean, distclean, maintainer-clean): Recurse into the po
4509         directory.
4510         * autoconf/mkinstalldirs: New file, from automake-1.5.
4511         * ABOUT-NLS: New file, from GNU gettext 0.11.2.
4512         * m4/codeset.m4: New file, from GNU gettext 0.11.2.
4513         * m4/gettext.m4: New file, from GNU gettext 0.11.2.
4514         * m4/glibc21.m4: New file, from GNU gettext 0.11.2.
4515         * m4/isc-posix.m4: New file, from GNU gettext 0.11.2.
4516         * m4/lcmessage.m4: New file, from GNU gettext 0.11.2.
4517         * m4/progtest.m4: New file, from GNU gettext 0.11.2.
4518         * configure.in: Require autoconf-2.52, needed for multiple config.h.in
4519         files. Use new form of AC_INIT. Invoke AM_GNU_GETTEXT.
4520         (PACKAGE, VERSION): Define, needed for po/Makefile.in.in.
4521         * lib/config.h.in (HAVE_LOCALE_H, HAVE_SETLOCALE): Remove.
4523 2002-04-28  gettextize  <bug-gnu-gettext@gnu.org>
4525         * configure.in (AC_OUTPUT): Add po/Makefile.in.
4527 2002-04-28  Bruno Haible  <bruno@clisp.org>
4529         * m4/eilseq.m4: Renamed from autoconf/eilseq.m4.
4530         * m4/mbstate_t.m4: Renamed from autoconf/mbstate_t.m4.
4531         * m4/general.m4: New file, from GNU clisp.
4532         * m4/proto.m4: New file, from GNU clisp.
4533         * m4/ranlib.m4: New file, from GNU clisp.
4534         * m4/install.m4: New file, from GNU clisp.
4535         * m4/cp.m4: New file, from GNU clisp.
4536         * m4/ln.m4: New file, from GNU clisp.
4537         * m4/endian.m4: New file, from GNU clisp.
4538         * m4/iconv.m4: New file, from GNU gettext 0.11.2.
4539         * m4/lib-ld.m4: New file, from GNU gettext 0.11.2.
4540         * m4/lib-link.m4: New file, from GNU gettext 0.11.2.
4541         * m4/lib-prefix.m4: New file, from GNU gettext 0.11.2.
4542         * autoconf/config.rpath: New file, from GNU gettext 0.11.2.
4543         * m4/libtool.m4: New file, based on libtool-1.4.2.
4544         * Makefile.devel (ACLOCAL): Remove variable.
4545         (ACSELECT): Remove variable.
4546         (OTHERMACROS): Remove variable.
4547         (m4/*.m4): New rules.
4548         (autoconf/aclocal.m4): Construct using aclocal instead of acselect.
4549         * configure.in: Invoke AM_ICONV instead of CL_ICONV.
4551 2002-04-06  Bruno Haible  <bruno@clisp.org>
4553         Upgrade to Unicode 3.2.
4554         * tools/cjk_tab_to_h.c (output_title): Bump copyright year.
4555         (compact_large_charset2uni): Add an argument. Determine optimal shift.
4556         Copy modified enc->charset2uni table.
4557         (output_charset2uni): Deal with shift other than 8. Copy encoding, so
4558         as to not disturb subsequent output_uni2charset[_sparse] call.
4559         * lib/hkscs.h: Regenerated.
4560         * tests/BIG5-HKSCS.TXT: Update.
4561         * tests/BIG5-HKSCS.IRREVERSIBLE.TXT: Update.
4563 2002-04-06  Bruno Haible  <bruno@clisp.org>
4565         Upgrade to Unicode 3.2.
4566         * tools/Makefile (cns11643_1.h, cns11643_2.h, cns11643_3.h,
4567         cns11643_4a.h, cns11643_4b.h, cns11643_5.h, cns11643_6.h,
4568         cns11643_7.h, cns11643_15.h, cns11643_inv.h): Use
4569         CNS11643-Unicode32.TXT instead of CNS11643-Unicode31.TXT.
4570         * lib/cns11643_3.h: Regenerated.
4571         * lib/cns11643_4a.h: Regenerated.
4572         * lib/cns11643_4b.h: Regenerated.
4573         * lib/cns11643_5.h: Regenerated.
4574         * lib/cns11643_6.h: Regenerated.
4575         * lib/cns11643_7.h: Regenerated.
4576         * lib/cns11643_15.h: Regenerated.
4577         * lib/cns11643_inv.h: Regenerated.
4578         * tests/EUC-TW.TXT: Update.
4580 2002-01-17  Bruno Haible  <bruno@clisp.org>
4582         * lib/tcvn.h (tcvn_2uni_1): Make it smaller.
4583         (tcvn_mbtowc): Small optimization.
4585 2002-01-13  Bruno Haible  <bruno@clisp.org>
4587         New options -l, -c, -s.
4588         * src/iconv.c (discard_unconvertible, silent): New variables.
4589         (usage): Document options -l, -c, -s.
4590         (print_one): New function.
4591         (convert): If silent is true, don't print error messages about the
4592         conversion to stderr. If discard_unconvertible is true, set the
4593         iconv descriptor to DISCARD_ILSEQ the first time, but make sure to
4594         return the same return code as when discard_unconvertible is false.
4595         (main): Accept options -l, -c, -s. Implement option -l.
4596         * man/iconv.1: Document options -l, -c, -s.
4598 2002-01-13  Bruno Haible  <bruno@clisp.org>
4600         Support for "iconv -c".
4601         * include/iconv.h.in (ICONV_GET_DISCARD_ILSEQ): New macro.
4602         (ICONV_SET_DISCARD_ILSEQ): Likewise.
4603         * lib/converters.h (struct conv_struct): New field discard_ilseq.
4604         * lib/iconv.c (iconv_open): Set discard_ilseq to true if tocode
4605         has an "//IGNORE" suffix, and to false otherwise.
4606         (iconvctl): Implement ICONV_GET_DISCARD_ILSEQ, ICONV_SET_DISCARD_ILSEQ.
4607         * lib/loop_unicode.h (unicode_loop_convert): If discard_ilseq is
4608         true, skip one input character instead of returning EILSEQ.
4609         (unicode_loop_reset): Likewise.
4610         * lib/loop_wchar.h (wchar_from_loop_convert): Likewise.
4611         (wchar_to_loop_convert): Likewise.
4613 2002-01-13  Bruno Haible  <bruno@clisp.org>
4615         Support for "iconv -l".
4616         * include/iconv.h.in (iconvlist): New declaration.
4617         * Makefile.devel (lib/aliases.h): Change gperf options.
4618         * lib/iconv.c (compare_by_index, compare_by_name, iconvlist): New
4619         functions.
4621 2002-01-06  Bruno Haible  <bruno@clisp.org>
4623         * lib/loop_unicode.h (unicode_transliterate): If the transliteration
4624         fails due to limited output encoding, return RET_ILUNI, not
4625         RET_TOOSMALL. Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4626         * tests/check-translitfailure: New file.
4627         * tests/TranslitFail1.ISO-8859-1: New file.
4628         * tests/Makefile.in (check): Call check-translitfailure.
4630 2001-12-15  Bruno Haible  <bruno@clisp.org>
4632         * lib/euc_jp.h (euc_jp_wctomb): Add irreversible mappings for
4633         Shift_JIS characters 0x5C and 0x7E.
4634         * tests/EUC-JP.IRREVERSIBLE.TXT: New file.
4636 2001-12-05  Bruno Haible  <bruno@clisp.org>
4638         * lib/iconv.c (iconv_open): Recognize the empty encoding name. Avoid
4639           endless loop if locale_charset() returns the empty string.
4640         * README, man/iconv_open.3: Add the empty encoding name.
4642 2001-11-10  Bruno Haible  <haible@clisp.cons.org>
4644         * lib/Makefile.in (libiconv_plug_linux.so): Allow building it with a
4645           non-gcc compiler.
4647 2001-10-23  Bruno Haible  <haible@clisp.cons.org>
4649         * tools/Makefile (cp1125.h): New target.
4650           (ALL): Add it.
4651         * lib/cp1125.h: New file.
4652         * lib/converters.h: Include it.
4653         * lib/encodings_dos.def (CP1125): New encoding.
4655 2001-09-08  Bruno Haible  <haible@clisp.cons.org>
4657         * autoconf/eilseq.m4: New file.
4658         * Makefile.devel (OTHERMACROS): Add it.
4659         * configure.in: Call AC_EILSEQ.
4660         * include/iconv.h.in (EILSEQ): Define to the autoconf determined value.
4662 2001-08-25  Bruno Haible  <haible@clisp.cons.org>
4664         Upgrade to autoconf-2.52.
4665         * autoconf/autoconf: Upgrade to autoconf-2.52.
4666         * autoconf/acgeneral.m4: Remove file.
4667         * autoconf/acspecific.m4: Remove file.
4668         * autoconf/autoconf.m4f: New file, from autoconf-2.52.
4669         * autoconf/aclocal.m4: Require autoconf-2.52.
4670         (CL_CANONICAL_HOST): Call AC_CANONICAL_HOST. Don't cache the result,
4671         AC_CANONICAL_HOST does it itself. Add $SHELL in front of
4672         $ac_config_guess and $ac_config_sub.
4673         * Makefile.devel (AUTOCONF_FILES): Remove acgeneral.m4, acspecific.m4.
4674         Add autoconf.m4f.
4675         (configure): Use autoconf options -A, -l instead of -m.
4676         * configure.in: Use AC_CONFIG_SUBDIRS, not AC_OUTPUT_SUBDIRS.
4678 2001-08-05  Bruno Haible  <haible@clisp.cons.org>
4680         * autoconf/acgeneral.m4 (AC_MSG_RESULTPROTO): Remove macro.
4681         (AC_LANG_EXTERN): Move to aclocal.m4.
4682         * autoconf/aclocal.m4 (AC_LANG_EXTERN): Moved here from acgeneral.m4.
4683         (CL_PROTO): Use AC_MSG_RESULT directly, instead of AC_MSG_RESULTPROTO.
4684         (CL_SILENT): No need to pushdef AC_MSG_RESULTPROTO.
4686 2001-08-05  Bruno Haible  <haible@clisp.cons.org>
4688         Make it possible to build libiconv with CC=gcc CFLAGS="-x c++".
4689         * lib/loop_wchar.h (wchar_to_loop_convert): Rename local variable
4690         'try' to 'incount'.
4691         * lib/Makefile.in (libiconv_plug_linux.so): Add "-x none" option
4692         between sources and libs.
4693         (libiconv_plug_solaris.so) [GCC]: Likewise.
4694         (libiconv_plug_osf.so) [GCC]: Likewise.
4695         * src/Makefile.in (iconv.@OBJEXT@): New rule.
4696         (iconv): Depend on it.
4697         (clean): Erase *.@OBJEXT@, not *.o.
4698         * tests/Makefile.in (table-from.@OBJEXT@): New rule.
4699         (table-from): Depend on it.
4700         (table-to.@OBJEXT@): New rule.
4701         (table-to): Depend on it.
4702         (clean): Erase *.@OBJEXT@, not *.o.
4704 2001-07-28  Bruno Haible  <haible@clisp.cons.org>
4706         * tools/Makefile (iso8859_16.h): Generate from the unicode.org table.
4707         * lib/iso8859_16.h: Regenerated.
4708         * tests/ISO-8859-16.TXT: Swap the values of 0xA5 and 0xAB.
4710 2001-07-17  Bruno Haible  <haible@clisp.cons.org>
4712         * configure.in (VERSION): Define. Needed by djgpp/Makefile.maint.
4714 2001-07-03  Bruno Haible  <haible@clisp.cons.org>
4716         * configure.in: Also check for mbsinit.
4717         * lib/loop_wchar.h (mbsinit): Define to 1 if not defined.
4718         Needed for SCO 3.2v5.0.2.
4720 2001-06-27  Bruno Haible  <haible@clisp.cons.org>
4722         * Version 1.7 released.
4724 2001-06-27  Bruno Haible  <haible@clisp.cons.org>
4726         * INSTALL.generic (Particular Systems): Generalize section about
4727         /usr/local to "most systems".
4729         * lib/Makefile.in (all): Build @PLUGLIB@ before libiconv.la, because
4730         Solaris cc destroys iconv.o and iconv.lo while building
4731         libiconv_plug_solaris.so.
4732         (clean): Remove so_locations, left there by the OSF/1 linker.
4734         * lib/cp1255.h (cp1255_decomp): Use 'signed int' instead of 'int'.
4736         * lib/vietcomb.h (viet_decomp): Use 'unsigned int' instead of
4737         'unsigned short'.
4739         * tests/table-from.c: Include string.h.
4740         * tests/table-to.c: Likewise.
4742 2001-06-26  Bruno Haible  <haible@clisp.cons.org>
4744         * tools/Makefile (jisx0208.h): Replace U+005C with U+FF3C.
4745         (jisx0212.h): Replace U+007E with U+FF5E.
4746         * lib/jisx0208.h: Regenerated.
4747         * lib/jisx0212.h: Regenerated.
4748         * tests/EUC-JP.TXT: Map 0xA1C0 to U+FF3C. Map 0x8FA2B7 to U+FF5E.
4749         * tests/EUC-JP.IRREVERSIBLE.TXT: Remove file.
4750         * tests/SHIFT-JIS.TXT: Map 0x815F to U+FF3C.
4751         * tests/CP932.TXT: Likewise.
4752         * tests/CP932.IRREVERSIBLE.TXT: 0x815F mapping is now reversible.
4754 2001-06-25  Bruno Haible  <haible@clisp.cons.org>
4756         * src/Makefile.in (iconv): Mention $(INCLUDES) before $(CFLAGS) and
4757         $(CPPFLAGS).
4758         * src/Makefile.msvc (iconv.exe): Likewise.
4759         * src/Makefile.os2 (iconv.exe): Likewise.
4760         * lib/Makefile.in (libiconv_plug_linux.so): Likewise.
4761         (libiconv_plug_solaris.so): Likewise.
4762         (libiconv_plug_osf.so): Likewise.
4763         (iconv.lo): Likewise.
4764         * lib/Makefile.msvc (iconv.obj): Likewise.
4765         * lib/Makefile.os2 (iconv.obj): Likewise.
4766         * tests/Makefile.in (table-from, table-to): Likewise.
4767         * tests/Makefile.msvc (table-from.exe, table-to.exe): Likewise.
4768         * tests/Makefile.os2 (table-from.exe, table-to.exe): Likewise.
4769         (genutf8.exe): Don't use $(INCLUDES).
4771 2001-06-25  Bruno Haible  <haible@clisp.cons.org>
4773         * include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
4774           Bump version number.
4775         * lib/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:4:0.
4777 2001-06-25  Bruno Haible  <haible@clisp.cons.org>
4779         * Makefile.devel (OTHERMACROS): Use libtool.m4 in libcharset subdir.
4781 2001-06-25  Bruno Haible  <haible@clisp.cons.org>
4783         * lib/encodings.def: Make SHIFT_JIS the primary name of SJIS.
4785 2001-06-08  Bruno Haible  <haible@clisp.cons.org>
4787         * autoconf/ltmain.sh: Upgrade to libtool-1.4.
4788         * autoconf/ltconfig: Remove file.
4790 2001-06-08  Bruno Haible  <haible@clisp.cons.org>
4792         * autoconf/config.guess: Update to GNU version 2001-05-11.
4793         * autoconf/config.sub: Likewise.
4795 2001-06-03  Bruno Haible  <haible@clisp.cons.org>
4797         * lib/loop_unicode.h (unicode_loop_convert): Ignore Unicode 3.1 tag
4798           characters if they cannot be converted.
4799           (unicode_loop_reset): Likewise.
4800         * lib/iso2022_jp2.h (STATE_TAG_NONE, STATE_TAG_LANGUAGE,
4801            STATE_TAG_LANGUAGE_j, STATE_TAG_LANGUAGE_ja, STATE_TAG_LANGUAGE_k,
4802            STATE_TAG_LANGUAGE_ko, STATE_TAG_LANGUAGE_z, STATE_TAG_LANGUAGE_zh):
4803           New macros.
4804           (SPLIT_STATE, COMBINE_STATE): Different differently for wctomb
4805           direction.
4806           (iso2022_jp2_wctomb): Keep track of Unicode 3.1 language tag.
4807           If "ja", prefer conversion to Japanese character sets. If "zh",
4808           prefer conversion to GB2312. If "ko", prefer conversion to KSC5601.
4810         * lib/converters.h (RET_ILUNI): Change value from 0 to -1.
4811           (RET_TOOSMALL): Change value from -1 to -2.
4812         * lib/loop_unicode.h (unicode_transliterate): Allow xxx_wctomb to
4813           return 0 written bytes.
4815 2001-06-06  Bruno Haible  <haible@clisp.cons.org>
4817         * lib/encodings.def: Align with IANA character-set registry.
4818           (US-ASCII): Add alias "ANSI_X3.4-1986".
4819           (ISO-8859-14): Add alias "ISO-CELTIC".
4820           (JIS_X0208): Add alias "JIS_C6226-1983".
4821           (BIG5HKSCS): Add alias "BIG5-HKSCS".
4822         * README, man/iconv_open.3: Rename BIG5HKSCS to BIG5-HKSCS.
4823         * tests/Makefile.in (check): Likewise.
4824         * tests/Makefile.os2 (check): Likewise.
4825         * tests/Makefile.msvc (check): Likewise.
4826         * tests/BIG5-HKSCS.TXT: Renamed from BIG5HKSCS.TXT.
4827         * tests/BIG5-HKSCS.IRREVERSIBLE.TXT: Renamed from
4828           BIG5HKSCS.IRREVERSIBLE.TXT.
4830 2001-06-02  Bruno Haible  <haible@clisp.cons.org>
4832         * tools/cjk_tab_to_h.c (Encoding): Add fffd field.
4833           (is_charset2uni_large, compact_large_charset2uni): New functions.
4834           (find_charset2uni_pages): Use enc->fffd instead of 0xfffd.
4835           (output_charset2uni): If mapping to more than the Unicode BMP,
4836           use an extra indirection to keep each value in 16 bits.
4837           (invert): Bump limit from U+10000 to U+30000.
4838           (output_uni2charset_dense): Likewise.
4839           (output_uni2charset_sparse): Likewise. If mapping to more than one
4840           CJK plane, use three bytes per value instead of two bytes.
4841           (byte_row_cns11643): Allow more than 3 CJK planes.
4842           (do_cns11643_only_uni2charset): Increase number of rows, to include
4843           plane 15. Remove plane bits hack.
4844           (main): Accept names cns11643_4a,4b,5,6,7,15 as well.
4845         * tools/Makefile (ALL): Add cns11643_4a.h, cns11643_4b.h, cns11643_5.h,
4846           cns11643_6.h, cns11643_7.h, cns11643_15.h.
4847           (cns11643_1.h, cns11643_2.h, cns11643_3.h): Use new Unicode 3.1
4848           derived table.
4849           (cns11643_4a.h, cns11643_4b.h, cns11643_5.h, cns11643_6.h,
4850            cns11643_7.h, cns11643_15.h): New rules.
4851           (cns11643_inv.h): Change title.
4852         * lib/cns11643_1.h: Regenerated from Unicode 3.1 derived table.
4853         * lib/cns11643_3.h: Likewise.
4854         * lib/cns11643_4a.h: New file.
4855         * lib/cns11643_4b.h: New file.
4856         * lib/cns11643_4.h: New file.
4857         * lib/cns11643_5.h: New file.
4858         * lib/cns11643_6.h: New file.
4859         * lib/cns11643_7.h: New file.
4860         * lib/cns11643_15.h: New file.
4861         * lib/cns11643_inv.h: Regenerated from Unicode 3.1 derived table.
4862           (cns11643_inv_wctomb): Return 3 bytes now.
4863         * lib/cns11643.h: Include cns11643_4.h, cns11643_5.h, cns11643_6.h,
4864           cns11643_7.h, cns11643_15.h.
4865           (cns11643_wctomb): Now a simple alias to cns11643_inv_wctomb. Return
4866           plane number starting at 1, not 0.
4867         * lib/dec_hanyu.h (dec_hanyu_wctomb): Update for cns11643_wctomb
4868           change.
4869         * lib/euc_tw.h (euc_tw_mbtowc): Accept CNS11643 planes 4,5,6,7,15 as
4870           well.
4871           (euc_tw_wctomb): Update for cns11643_wctomb change.
4872         * lib/iso2022_cn.h (iso2022_cn_wctomb): Likewise.
4873         * lib/iso2022_cnext.h (iso2022_cn_ext_mbtowc): Accept CNS11643 planes
4874           4,5,6,7 as well.
4875           (iso2022_cn_ext_wctomb): Update for cns11643_wctomb change.
4876           Try CNS11643 planes 4,5,6,7 as well.
4877         * tests/EUC-TW.TXT: Many additions, mostly in planes 3,4,5,6,7,15.
4878         * tests/EUC-TW.IRREVERSIBLE.TXT: Reflect additions to CNS11643 plane 1.
4879           Add U+5344.
4881 2001-06-01  Bruno Haible  <haible@clisp.cons.org>
4883         * tests/table-from.c (bmp_only): New variable.
4884           (ucs4_decode): If bmp_only, don't return characters outside Unicode
4885           plane 0.
4886           (main): When testing UTF-8 or GB18030, set bmp_only to 1. Don't print
4887           a conversion line if ucs4_decode returns NULL.
4888         * tests/table-to.c (main): When testing encodings other than UTF-8 and
4889           GB18030, loop upto U+30000 instead of U+10000.
4891 2001-05-24  Bruno Haible  <haible@clisp.cons.org>
4893         * lib/converters.h (mbtowc_funcs): Add flushwc member function.
4894         * lib/flushwc.h: New file.
4895         * lib/cp1255.h: Include flushwc.h.
4896           (cp1255_comp_table_data, cp1255_comp_table): New arrays.
4897           (cp1255_mbtowc): Compose base and combining characters.
4898           (cp1255_flushwc): New macro.
4899         * lib/vietcomb.h (viet_comp_table_data, viet_comp_table): New arrays.
4900         * lib/cp1258.h: Include flushwc.h.
4901           (cp1258_mbtowc): Compose base and combining characters.
4902           (cp1258_flushwc): New macro.
4903         * lib/tcvn.h: Include flushwc.h.
4904           (tcvn_mbtowc): Compose base and combining characters.
4905           (tcvn_flushwc): New macro.
4906         * lib/loop_unicode.h: (unicode_transliterate): New function, extracted
4907           from unicode_loop_convert.
4908           (unicode_loop_convert): Use unicode_transliterate.
4909           (unicode_loop_reset): Call xxx_flushwc and output the resulting
4910           character.
4911         * lib/encodings.def: Add xxx_flushwc member.
4912         * lib/encodings_aix.def: Likewise.
4913         * lib/encodings_dos.def: Likewise.
4914         * lib/encodings_local.def: Likewise.
4915         * lib/encodings_osf1.def: Likewise.
4916         * lib/genaliases.c: Add an argument to the DEFENCODING macro.
4917         * lib/genaliases2.c: Likewise.
4918         * lib/genflags.c: Likewise.
4919         * lib/iconv.c: Likewise.
4920         * tests/table-from.c (try): Reset the iconv descriptor before the main
4921           call, and flush it afterwards.
4922           (ucs4_decode): New function.
4923           (main): Allow up to 3 Unicode characters output. Call ucs4_decode.
4924         * tests/CP1255-snippet: New file.
4925         * tests/CP1255-snippet.UTF-8: New file.
4926         * tests/CP1258-snippet: New file.
4927         * tests/CP1258-snippet.UTF-8: New file.
4928         * tests/TCVN-snippet: New file.
4929         * tests/TCVN-snippet.UTF-8: New file.
4930         * tests/Makefile.in (check): Check combining behaviour of CP1255,
4931           CP1258, TCVN.
4932         * tests/Makefile.msvc (check): Likewise.
4933         * tests/Makefile.os2 (check): Likewise.
4935 2001-05-22  Bruno Haible  <haible@clisp.cons.org>
4937         * lib/converters.h (RET_ILUNI): New macro.
4938           (RET_ILSEQ): Change value to -1.
4939           (RET_TOOFEW): Change value.
4940         * lib/loop_unicode.h (unicode_loop_convert): Write RET_ILUNI instead
4941           of 0. Update handling of xxx_mbtowc return value.
4942         * lib/genflags.c (emit_encoding): Likewise.
4943         * lib/ascii.h (ascii_wctomb): Use RET_ILUNI instead of RET_ILSEQ.
4944         * lib/armscii_8.h (armscii_8_wctomb): Likewise.
4945         * lib/big5.h (big5_wctomb): Likewise.
4946         * lib/big5hkscs.h (big5hkscs_wctomb): Likewise.
4947         * lib/ces_big5.h (ces_big5_wctomb): Likewise.
4948         * lib/ces_gbk.h (ces_gbk_wctomb): Likewise.
4949         * lib/cns11643.h (cns11643_wctomb): Likewise.
4950         * lib/cns11643_inv.h (cns11643_inv_wctomb): Likewise.
4951         * lib/cp437.h (cp437_wctomb): Likewise.
4952         * lib/cp775.h (cp775_wctomb): Likewise.
4953         * lib/cp850.h (cp850_wctomb): Likewise.
4954         * lib/cp852.h (cp852_wctomb): Likewise.
4955         * lib/cp855.h (cp855_wctomb): Likewise.
4956         * lib/cp856.h (cp856_wctomb): Likewise.
4957         * lib/cp857.h (cp857_wctomb): Likewise.
4958         * lib/cp861.h (cp861_wctomb): Likewise.
4959         * lib/cp862.h (cp862_wctomb): Likewise.
4960         * lib/cp864.h (cp864_wctomb): Likewise.
4961         * lib/cp865.h (cp865_wctomb): Likewise.
4962         * lib/cp866.h (cp866_wctomb): Likewise.
4963         * lib/cp869.h (cp869_wctomb): Likewise.
4964         * lib/cp874.h (cp874_wctomb): Likewise.
4965         * lib/cp922.h (cp922_wctomb): Likewise.
4966         * lib/cp932ext.h (cp932ext_wctomb): Likewise.
4967         * lib/cp932.h (cp932_wctomb): Likewise.
4968         * lib/cp936ext.h (cp936ext_wctomb): Likewise.
4969         * lib/cp949.h (cp949_wctomb): Likewise.
4970         * lib/cp950ext.h (cp950ext_wctomb): Likewise.
4971         * lib/cp950.h (cp950_wctomb): Likewise.
4972         * lib/cp1046.h (cp1046_wctomb): Likewise.
4973         * lib/cp1124.h (cp1124_wctomb): Likewise.
4974         * lib/cp1129.h (cp1129_wctomb): Likewise.
4975         * lib/cp1133.h (cp1133_wctomb): Likewise.
4976         * lib/cp1250.h (cp1250_wctomb): Likewise.
4977         * lib/cp1251.h (cp1251_wctomb): Likewise.
4978         * lib/cp1252.h (cp1252_wctomb): Likewise.
4979         * lib/cp1253.h (cp1253_wctomb): Likewise.
4980         * lib/cp1254.h (cp1254_wctomb): Likewise.
4981         * lib/cp1255.h (cp1255_wctomb): Likewise.
4982         * lib/cp1256.h (cp1256_wctomb): Likewise.
4983         * lib/cp1257.h (cp1257_wctomb): Likewise.
4984         * lib/cp1258.h (cp1258_wctomb): Likewise.
4985         * lib/dec_hanyu.h (dec_hanyu_wctomb): Likewise.
4986         * lib/dec_kanji.h (dec_kanji_wctomb): Likewise.
4987         * lib/euc_cn.h (euc_cn_wctomb): Likewise.
4988         * lib/euc_jp.h (euc_jp_wctomb): Likewise.
4989         * lib/euc_kr.h (euc_kr_wctomb): Likewise.
4990         * lib/euc_tw.h (euc_tw_wctomb): Likewise.
4991         * lib/gb12345ext.h (gb12345ext_wctomb): Likewise.
4992         * lib/gb12345.h (gb12345_wctomb): Likewise.
4993         * lib/gb18030ext.h (gb18030ext_wctomb): Likewise.
4994         * lib/gb18030.h (gb18030_wctomb): Likewise.
4995         * lib/gb18030uni.h (gb18030uni_wctomb): Likewise.
4996         * lib/gb2312.h (gb2312_wctomb): Likewise.
4997         * lib/gbkext_inv.h (gbkext_inv_wctomb): Likewise.
4998         * lib/gbk.h (gbk_wctomb): Likewise.
4999         * lib/georgian_academy.h (georgian_academy_wctomb): Likewise.
5000         * lib/georgian_ps.h (georgian_ps_wctomb): Likewise.
5001         * lib/hkscs.h (hkscs_wctomb): Likewise.
5002         * lib/hp_roman8.h (hp_roman8_wctomb): Likewise.
5003         * lib/hz.h (hz_wctomb): Likewise.
5004         * lib/iso2022_cnext.h (iso2022_cn_ext_wctomb): Likewise.
5005         * lib/iso2022_cn.h (iso2022_cn_wctomb): Likewise.
5006         * lib/iso2022_jp1.h (iso2022_jp1_wctomb): Likewise.
5007         * lib/iso2022_jp2.h (iso2022_jp2_wctomb): Likewise.
5008         * lib/iso2022_jp.h (iso2022_jp_wctomb): Likewise.
5009         * lib/iso2022_kr.h (iso2022_kr_wctomb): Likewise.
5010         * lib/iso646_cn.h (iso646_cn_wctomb): Likewise.
5011         * lib/iso646_jp.h (iso646_jp_wctomb): Likewise.
5012         * lib/iso8859_1.h (iso8859_1_wctomb): Likewise.
5013         * lib/iso8859_2.h (iso8859_2_wctomb): Likewise.
5014         * lib/iso8859_3.h (iso8859_3_wctomb): Likewise.
5015         * lib/iso8859_4.h (iso8859_4_wctomb): Likewise.
5016         * lib/iso8859_5.h (iso8859_5_wctomb): Likewise.
5017         * lib/iso8859_6.h (iso8859_6_wctomb): Likewise.
5018         * lib/iso8859_7.h (iso8859_7_wctomb): Likewise.
5019         * lib/iso8859_8.h (iso8859_8_wctomb): Likewise.
5020         * lib/iso8859_9.h (iso8859_9_wctomb): Likewise.
5021         * lib/iso8859_10.h (iso8859_10_wctomb): Likewise.
5022         * lib/iso8859_13.h (iso8859_13_wctomb): Likewise.
5023         * lib/iso8859_14.h (iso8859_14_wctomb): Likewise.
5024         * lib/iso8859_15.h (iso8859_15_wctomb): Likewise.
5025         * lib/iso8859_16.h (iso8859_16_wctomb): Likewise.
5026         * lib/isoir165ext.h (isoir165ext_wctomb): Likewise.
5027         * lib/isoir165.h (isoir165_wctomb): Likewise.
5028         * lib/jisx0201.h (jisx0201_wctomb): Likewise.
5029         * lib/jisx0208.h (jisx0208_wctomb): Likewise.
5030         * lib/jisx0212.h (jisx0212_wctomb): Likewise.
5031         * lib/johab.h (johab_wctomb): Likewise.
5032         * lib/johab_hangul.h (johab_hangul_wctomb, johab_hangul_decompose):
5033           Likewise.
5034         * lib/koi8_r.h (koi8_r_wctomb): Likewise.
5035         * lib/koi8_ru.h (koi8_ru_wctomb): Likewise.
5036         * lib/koi8_u.h (koi8_u_wctomb): Likewise.
5037         * lib/ksc5601.h (ksc5601_wctomb): Likewise.
5038         * lib/mac_arabic.h (mac_arabic_wctomb): Likewise.
5039         * lib/mac_centraleurope.h (mac_centraleurope_wctomb): Likewise.
5040         * lib/mac_croatian.h (mac_croatian_wctomb): Likewise.
5041         * lib/mac_cyrillic.h (mac_cyrillic_wctomb): Likewise.
5042         * lib/mac_greek.h (mac_greek_wctomb): Likewise.
5043         * lib/mac_hebrew.h (mac_hebrew_wctomb): Likewise.
5044         * lib/mac_iceland.h (mac_iceland_wctomb): Likewise.
5045         * lib/mac_roman.h (mac_roman_wctomb): Likewise.
5046         * lib/mac_romania.h (mac_romania_wctomb): Likewise.
5047         * lib/mac_thai.h (mac_thai_wctomb): Likewise.
5048         * lib/mac_turkish.h (mac_turkish_wctomb): Likewise.
5049         * lib/mac_ukraine.h (mac_ukraine_wctomb): Likewise.
5050         * lib/mulelao.h (mulelao_wctomb): Likewise.
5051         * lib/nextstep.h (nextstep_wctomb): Likewise.
5052         * lib/sjis.h (sjis_wctomb): Likewise.
5053         * lib/tcvn.h (tcvn_wctomb): Likewise.
5054         * lib/tis620.h (tis620_wctomb): Likewise.
5055         * lib/ucs2be.h (ucs2be_wctomb): Likewise.
5056         * lib/ucs2.h (ucs2_wctomb): Likewise.
5057         * lib/ucs2internal.h (ucs2internal_wctomb): Likewise.
5058         * lib/ucs2le.h (ucs2le_wctomb): Likewise.
5059         * lib/ucs2swapped.h (ucs2swapped_wctomb): Likewise.
5060         * lib/ucs4.h (ucs4_wctomb): Likewise.
5061         * lib/uhc_1.h (uhc_1_wctomb): Likewise.
5062         * lib/uhc_2.h (uhc_2_wctomb): Likewise.
5063         * lib/utf16be.h (utf16be_wctomb): Likewise.
5064         * lib/utf16.h (utf16_wctomb): Likewise.
5065         * lib/utf16le.h (utf16le_wctomb): Likewise.
5066         * lib/utf32be.h (utf32be_wctomb): Likewise.
5067         * lib/utf32.h (utf32_wctomb): Likewise.
5068         * lib/utf32le.h (utf32le_wctomb): Likewise.
5069         * lib/utf7.h (utf7_wctomb): Likewise.
5070         * lib/utf8.h (utf8_wctomb): Likewise.
5071         * lib/viscii.h (viscii_wctomb): Likewise.
5072         * tools/8bit_tab_to_h.c (main): Likewise.
5073         * tools/cjk_tab_to_h.c (output_uni2charset_dense,
5074            output_uni2charset_sparse, do_gb18030uni): Likewise.
5076 2001-05-19  Bruno Haible  <haible@clisp.cons.org>
5078         * Makefile.devel (all): Add man/{iconv.1,iconv*.3}.html.
5079           (man/%.html): New rule.
5080         * man/Makefile.in (docdir, htmldir): New variables.
5081           (install, installdirs): Install the HTML formatted man pages in
5082           $(htmldir).
5083           (uninstall): Uninstall them.
5085 2001-05-20  Bruno Haible  <haible@clisp.cons.org>
5087         * lib/cp1255.h (cp1255_decomp_table): New array.
5088           (cp1255_comb_table): New array.
5089           (cp1255_wctomb): Decompose Unicode characters.
5090         * tests/CP1255.IRREVERSIBLE.TXT: New file.
5092 2001-05-13  Bruno Haible  <haible@clisp.cons.org>
5094         * lib/vietcomb.h: New file.
5095         * lib/cp1258.h: Include it.
5096           (cp1258_comb_table): New array.
5097           (cp1258_wctomb): Decompose Unicode characters.
5098         * lib/tcvn.h: Include it.
5099           (tcvn_comb_table): New array.
5100           (tcvn_wctomb): Decompose Unicode characters.
5101         * tests/CP1258.IRREVERSIBLE.TXT: New file.
5102         * tests/TCVN.IRREVERSIBLE.TXT: New file.
5104 2001-05-06  Bruno Haible  <haible@clisp.cons.org>
5106         * lib/Makefile.msvc (config.h): Allow the 'del' command to fail.
5107         (iconv.lib): Likewise.
5109 2001-05-06  Bruno Haible  <haible@clisp.cons.org>
5111         * lib/Makefile.in (CPPFLAGS, LDFLAGS): New variables.
5112         (CPP): Remove variable.
5113         (libiconv.la, libiconv_plug_linux.so, libiconv_plug_solaris.so,
5114          libiconv_plug_osf.so): Use LDFLAGS.
5115         (libiconv_plug_linux.so, libiconv_plug_solaris.so,
5116          libiconv_plug_osf.so, iconv.lo): Use CPPFLAGS.
5117         * lib/Makefile.msvc (CPP): Remove variable.
5118         * src/Makefile.in (CPPFLAGS, LDFLAGS): New variables.
5119         (CPP): Remove variable.
5120         (iconv): Use CPPFLAGS and LDFLAGS.
5121         * src/Makefile.msvc (CPP): Remove variable.
5122         * tests/Makefile.in (CPPFLAGS, LDFLAGS): New variables.
5123         (check, table-from, table-to): Use CPPFLAGS and LDFLAGS.
5124         * tests/Makefile.msvc (CPP): Remove variable.
5126 2001-05-06  Bruno Haible  <haible@clisp.cons.org>
5128         * lib/Makefile.in (libiconv_plug_solaris.so): Change rule if not using
5129           gcc. Reported by Paananen Mikko <mikkopa@cs.tut.fi>.
5131 2001-04-11  Bruno Haible  <haible@clisp.cons.org>
5133         Implement and document UTF-32, UTF-32BE, UTF-32LE.
5134         * src/utf32.h, src/utf32be.h, src/utf32le.h: New files.
5135         * src/converters.h: Include them.
5136         * src/encodings.def (UTF-32, UTF-32BE, UTF32LE): New encodings.
5137         * README, man/iconv_open.3: Add UTF-32, UTF-32BE, UTF32LE.
5138         * tests/Makefile.in (check): Check UTF-32, UTF-32BE, UTF32LE.
5139         * tests/Makefile.os2 (check): Likewise.
5140         * tests/Makefile.msvc (check): Likewise.
5141         * tests/UTF-32*snippet*: New files.
5143         * lib/ucs4.h (ucs4_mbtowc): Fix value of other-endian byte order.
5144           (ucs4_wctomb): Allow any 31-bit codepoint.
5146 2001-04-11  Bruno Haible  <haible@clisp.cons.org>
5148         * tests/GB18030.TXT: Add mappings for all of U+0000..U+FFFF, including
5149           unassigned code points.
5150         * tests/table-from.c (main); When dumping GB18030, don't print code
5151           points larger than U+FFFF.
5153 2001-03-30  Bruno Haible  <haible@clisp.cons.org>
5155         * tools/Makefile (GB18030uni.TXT): Use a table source which includes
5156           the unassigned Unicode code points.
5157         * lib/gb18030uni.h: Update.
5158           (gb18030uni_ranges): Remove bitmap_offset field.
5159           (gb18030uni_bitmap): Remove array.
5160           (gb18030uni_mbtowc): Omit gb18030uni_bitmap access.
5161           (gb18030uni_wctomb): Likewise.
5162         * lib/gb18030.h (gb18030_mbtowc): Handle Unicode characters >= 0x10000.
5163           (gb18030_wctomb): Likewise.
5165 2001-03-21  Bruno Haible  <haible@clisp.cons.org>
5167         * INSTALL.generic (Particular Systems): Add recommendations for AIX 3.
5169 2001-03-21  Bruno Haible  <haible@clisp.cons.org>
5171         * src/iconv.c (print_version): Now called GNU libiconv.
5173 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
5175         * README: This package is now called GNU libiconv.
5177         * tools/8bit_tab_to_h.c (main): Emit copyright notice to the output
5178           file.
5179         * tools/cjk_tab_to_h.c (output_title): Likewise.
5180         * tools/cjk_variants.c (main): Likewise.
5181         * lib/gentranslit.c (main): Likewise.
5183 2001-03-19  Bruno Haible  <haible@clisp.cons.org>
5185         * autoconf/aclocal.m4 (CL_CANONICAL_HOST): Always define
5186           ac_config_guess and ac_config_sub. Then ignore requests for
5187           AC_CONFIG_AUX_DIR_DEFAULT or AC_CANONICAL_HOST.
5189 2001-03-10  Bruno Haible  <haible@clisp.cons.org>
5191         * INSTALL.generic: New section "Particular Systems".
5193 2001-03-10  Bruno Haible  <haible@clisp.cons.org>
5195         * lib/Makefile.in (libiconv.la): Pass flag -no-undefined. Needed on
5196           platforms like BeOS.
5198         * lib/loop_wchar.h (mbstate_t): Don't typedef if already #defined in
5199           config.h.
5201 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
5203         * Version 1.6 released.
5204         * include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
5205           Bump version number.
5206         * lib/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:3:0.
5208 2001-03-05  Bruno Haible  <haible@clisp.cons.org>
5210         Provide all encodings used by OSF/1 5.1 locales.
5211         * lib/dec_kanji.h: New file.
5212         * lib/dec_hanyu.h: New file.
5213         * lib/converters.h: Include them if USE_OSF1 is defined.
5214         * lib/encodings_osf1.def: New file.
5215         * lib/genflags.c (main): Include it. Define USE_OSF1.
5216         * lib/genaliases2.c (main): Include it conditionally.
5217         * lib/iconv.c: Define USE_OSF1 on OSF/1.
5218           Include encodings_osf1.def and aliases_osf1.h.
5219         * lib/Makefile.in (iconv.lo): Depend on encodings_osf1.def and
5220           aliases_osf1.h.
5221         * Makefile.devel (lib/aliases_osf1.h): New target.
5222           (all): Depend on lib/aliases_osf1.h.
5223           (lib/flags.h): Depend on lib/encodings_osf1.def.
5225 2001-03-01  Bruno Haible  <haible@clisp.cons.org>
5227         * tools/Makefile (cp775.h): New target.
5228           (ALL): Add it.
5229         * lib/cp775.h: New file.
5230         * lib/converters.h: Include it.
5231         * lib/encodings_dos.def (CP775): New encoding.
5233 2001-02-25  Bruno Haible  <haible@clisp.cons.org>
5235         * lib/iconv.c (iconv_open): locale_charset() doesn't return NULL any
5236           more.
5238 2001-02-24  Bruno Haible  <haible@clisp.cons.org>
5240         * src/iconv.c (convert): Use ICONV_CONST.
5241         * tests/table-from.c: Include config.h.
5242           (try): Use ICONV_CONST.
5243         * tests/table-to.c: Include config.h.
5244           (main): Use ICONV_CONST.
5245         * tests/Makefile.in (INCLUDES): Add -I../lib.
5246         * tests/Makefile.os2 (INCLUDES): Likewise.
5247         * tests/Makefile.msvc (INCLUDES): Add -I..\lib.
5249 2001-02-24  Bruno Haible  <haible@clisp.cons.org>
5251         Provide all encodings used by DOS locales.
5252         * tools/Makefile (cp437.h, cp852.h, cp855.h, cp857.h, cp861.h,
5253            cp864.h, cp865.h, cp869.h): New targets.
5254           (ALL): Add them.
5255         * lib/cp437.h: New file.
5256         * lib/cp852.h: New file.
5257         * lib/cp855.h: New file.
5258         * lib/cp857.h: New file.
5259         * lib/cp861.h: New file.
5260         * lib/cp864.h: New file.
5261         * lib/cp865.h: New file.
5262         * lib/cp869.h: New file.
5263         * lib/converters.h: Include them if USE_DOS is defined.
5264         * lib/encodings_dos.def: New file.
5265         * lib/genflags.c (main): Include it. Define USE_DOS.
5266         * lib/genaliases2.c (main): Include it conditionally.
5267         * lib/iconv.c: Define USE_DOS on DJGPP.
5268           Include encodings_dos.def and aliases_dos.h.
5269         * lib/Makefile.in (iconv.lo): Depend on encodings_dos.def and
5270           aliases_dos.h.
5271         * Makefile.devel (lib/aliases_dos.h): New target.
5272           (all): Depend on lib/aliases_dos.h.
5273           (lib/flags.h): Depend on lib/encodings_dos.def.
5275 2001-02-23  Bruno Haible  <haible@clisp.cons.org>
5277         * src/iconv.c [DJGPP]: Include <io.h> and <unistd.h>.
5278           (SET_BINARY) [O_BINARY]: New macro.
5279           (usage): Mention --binary if available.
5280           (convert): Use SET_BINARY instead of setmode.
5281           (main): Likewise.
5282           Reported by Juan Manuel Guerrero <st001906@hrz1.hrz.tu-darmstadt.de>.
5284 2001-02-25  Bruno Haible  <haible@clisp.cons.org>
5286         * autoconf/ltconfig:
5287           sed -e 's/reload object files/produce relocatable object files/'.
5289 2001-02-20  Bruno Haible  <haible@clisp.cons.org>
5291         * src/iconv.c (usage, main): Make -f and -t options optional.
5292         * man/iconv.1: Mark them as optional.
5294 2001-02-20  Bruno Haible  <haible@clisp.cons.org>
5296         * tools/Makefile (GB18030ext.TXT, GB18030uni.TXT): Generate from
5297           glibc-2.2.2 table.
5298         * lib/gb18030uni.h, lib/gb18030ext.h: Add mapping 0xA989 -> U+303E,
5299           0xFE5E -> U+2E97. Shift the entire four-byte range.
5300         * tests/GB18030.TXT: Regenerated.
5302 2001-02-20  Bruno Haible  <haible@clisp.cons.org>
5304         Better support for DOS/Windows platforms.
5305         * autoconf/ltconfig: Upgrade to libtool-1.3.5.
5306         * autoconf/ltmain.sh: Likewise.
5307         * autoconf/aclocal.m4: Likewise.
5308         * autoconf/install-sh: New file.
5309         * configure.in: Call AC_OBJEXT and AC_EXEEXT. Call AC_CONFIG_AUX_DIR.
5311 2001-02-20  Bruno Haible  <haible@clisp.cons.org>
5313         * Makefile.in (libdir, includedir, mandir): Use the autoconf
5314           determined value, in order to respect the configure arguments.
5315         * lib/Makefile.in (libdir): Likewise.
5316         * src/Makefile.in (bindir): Likewise.
5317         * man/Makefile.in (mandir): Likewise.
5319 2001-02-04  Bruno Haible  <haible@clisp.cons.org>
5321         * lib/translit.def: Add all the neutral transliterations from glibc.
5322         * lib/gentranslit.c (main): Allow UTF-8 replacements which are in
5323           UCS-2 but not in ISO-8859-1. Generate a table of 'unsigned short'.
5324           Avoid accessing data[-1].
5325         * lib/loop_unicode.h (unicode_loop_convert): Change type of pointer
5326           into translit_data.
5328 2001-01-05  Bruno Haible  <haible@clisp.cons.org>
5330         Implement and document CP862.
5331         * tools/Makefile (ALL): Add cp862.h.
5332           (cp862.h): New target.
5333         * lib/cp862.h: New file.
5334         * lib/converters.h: Include it.
5335         * lib/encodings.def (CP862): New encoding.
5336         * README, man/iconv_open.3: Add CP862.
5337         * tests/Makefile.in (check): Check CP862.
5338         * tests/Makefile.msvc (check): Likewise.
5339         * tests/Makefile.os2 (check): Likewise.
5340         * tests/CP862.TXT: New file.
5342 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
5344         * autoconf/mbstate_t.m4: New file, from textutils-2.0.10.
5345         * Makefile.devel (OTHERMACROS): Add it.
5346         * configure.in: Call AC_MBSTATE_T.
5347         * lib/config.h.in (mbstate_t): New definition.
5348         * lib/loop_wchar.h (mbrtowc): For BeOS, declare and define fallback.
5350 2000-12-12  Bruno Haible  <haible@clisp.cons.org>
5352         * Makefile.in: Use $(MAKE) instead of $(MAKE) -r. Needed with Solaris
5353           "make", which doesn't set MAKE as expected by @SET_MAKE@ if -r is
5354           given. Reported by Toshimitsu Fujiwara.
5356 2000-12-08  Bruno Haible  <haible@clisp.cons.org>
5358         * Makefile.in (exec_prefix): Use configure's --exec-prefix argument.
5359         * lib/Makefile.in (exec_prefix): Likewise.
5360         * src/Makefile.in (exec_prefix): Likewise.
5361         * man/Makefile.in (exec_prefix): Likewise.
5363 2000-12-02  Bruno Haible  <haible@clisp.cons.org>
5365         * Version 1.5 released.
5366         * include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
5367           Bump version number.
5368         * lib/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:2:0.
5370 2000-12-02  Bruno Haible  <haible@clisp.cons.org>
5372         * Makefile.in (mostlyclean, clean, distclean, maintainer-clean):
5373           Remove files installed in lib by libcharset.
5374         * Makefile.msvc (mostlyclean): Likewise.
5376         * Makefile.in (check): Depend on target 'all'.
5377         * Makefile.os2 (check): Likewise.
5378         * Makefile.msvc (check): Depend on target 'force' as well.
5380         * src/iconv.c (usage): Take an exitcode argument.
5381           (print_version): New function.
5382           (main): Recognize --help and --version command line options.
5384 2000-12-02  Bruno Haible  <haible@clisp.cons.org>
5386         * Makefile.msvc: Replace STATIC with its opposite flag, DLL.
5387         * lib/Makefile.msvc: Likewise.
5388         * src/Makefile.msvc: Likewise.
5389         * tests/Makefile.msvc: Likewise.
5391 2000-12-01  Bruno Haible  <haible@clisp.cons.org>
5393         * src/iconv.c: Include <fcntl.h>. Define fallbacks for setmode, fileno.
5394           (force_binary): New variable.
5395           (convert): If requested, set the input O_BINARY.
5396           (main): Accept --binary option. If requested, set the output O_BINARY.
5397         * tests/check-stateful.bat: Pass --binary to iconv.
5398         * tests/check-stateful.cmd: Likewise.
5399         * tests/check-translit.bat: Likewise.
5400         * tests/check-translit.cmd: Likewise.
5402 2000-12-01  Bruno Haible  <haible@clisp.cons.org>
5404         * include/iconv.h.in (_libiconv_version): New declaration.
5405         * lib/iconv.c (_libiconv_version): New variable.
5407 2000-11-30  Bruno Haible  <haible@clisp.cons.org>
5409         * Makefile.msvc (all): File now named lib/libcharset.h.
5410           (clean, distclean, maintainer-clean): Likewise.
5412 2000-11-23  Bruno Haible  <haible@clisp.cons.org>
5414         * lib/*: Move here all files from src/*.
5415         * src/*: Move all files to lib.
5416         * lib/Makefile.in (distclean): No need to remove config.status,
5417           config.log, config.cache.
5418         * configure.in: Require lib/iconv.c, not src/iconv.c. Create
5419           lib/config.h, not src/config.h. Also create lib/Makefile.
5420         * Makefile.in (all): Install libcharset into lib, not src. Recurse
5421           into lib and src.
5422           (install-lib): Recurse into lib, not src.
5423           (install): Recurse into libcharset, lib and src.
5424           (installdirs, uninstall): Likewise.
5425           (check, mostlyclean, clean, distclean, maintainer-clean): Likewise.
5426         * Makefile.msvc (all): Recurse into lib and src.
5427           (install): Recurse into libcharset, lib and src.
5428           (installdirs, uninstall): Likewise.
5429           (check, mostlyclean, clean, distclean, maintainer-clean): Likewise.
5430         * Makefile.os2 (all): Recurse into lib and src.
5431           (install-lib): Recurse into lib, not src.
5432           (install, uninstall): Recurse into lib and src.
5433           (check, mostlyclean, clean, distclean, maintainer-clean): Likewise.
5434         * Makefile.devel (lib/config.h.msvc): Renamed from src/config.h.msvc.
5435           (lib/aliases.h): Renamed from src/aliases.h.
5436           (lib/aliases.gperf): Renamed from src/aliases.gperf.
5437           (lib/aliases_aix.h): Renamed from src/aliases_aix.h.
5438           (lib/flags.h): Renamed from src/flags.h.
5439           (lib/translit.h): Renamed from src/translit.h.
5440         * src/iconv.c: Moved here from tests/iconv.c.
5441         * src/Makefile.in: New file.
5442         * src/Makefile.msvc: New file.
5443         * src/Makefile.os2: New file.
5444         * tests/Makefile.in (iconv): Remove target.
5445           (../lib/libiconv.la): Renamed from ../src/libiconv.la.
5446           (clean): No need to remove iconv.
5447         * tests/Makefile.msvc (iconv.exe): Remove target.
5448         * tests/Makefile.os2 (iconv.exe): Likewise.
5449         * tests/check-stateful: iconv is in ../src.
5450         * tests/check-stateful.bat: Likewise.
5451         * tests/check-stateful.cmd: Likewise.
5452         * tests/check-translit: iconv is in ../src.
5453         * tests/check-translit.bat: Likewise.
5454         * tests/check-translit.cmd: Likewise.
5455         * man/iconv.1: New file.
5456         * man/Makefile.in (install, installdirs, uninstall): Also install *.1
5457           man pages.
5458         * man/Makefile.os2 (MAN3): Renamed from MAN.
5459           (MAN1): New variable.
5460           (install, uninstall): Also install *.1 man pages.
5462 2000-11-21  Bruno Haible  <haible@clisp.cons.org>
5464         * Makefile.msvc (all, check, mostlyclean, clean, distclean,
5465            maintainer-clean): Recurse into libcharset.
5466           (clean, distclean, maintainer-clean): Remove src\libcharset.h.
5467         * src/Makefile.msvc (LIBCHARSET_OBJECTS): New variable.
5468           (iconv.lib): Link with $(LIBCHARSET_OBJECTS).
5470 2000-11-18  Bruno Haible  <haible@clisp.cons.org>
5472         * src/cp950.h (cp950_mbtowc, cp950_wctomb): Change implementation
5473           so that it agrees with Microsoft's definition of CP950.
5474         * tests/CP950.TXT: Likewise.
5475         * tests/CP950.IRREVERSIBLE.TXT: Add 0xA244, 0xA2CC, 0xA2CE.
5477 2000-11-18  Bruno Haible  <haible@clisp.cons.org>
5479         Add support for locale dependent "char" and "wchar_t" encodings.
5480         * libcharset: New subdirectory.
5481         * src/loop_unicode.h: New file, extracted from src/iconv.c.
5482         * src/loop_wchar.h: New file.
5483         * src/loops.h: New file. Include loop_unicode.h and loop_wchar.h.
5484         * src/encodings_local.def: New file.
5485         * src/genaliases.c: Also create aliases for encodings_local.def.
5486         * src/converters.h (conv_struct): Add lfuncs field.
5487         * src/genflags.c: Add dummy definitions of struct loop_funcs.
5488         * src/iconv.c: Include libcharset.h.
5489           (loop_funcs): New structure.
5490           Treat encodings_local.def like encodings.def.
5491           Include loops.h.
5492           (iconv_open): Move the bulk of the code to loop_unicode.h.
5493           (iconv): Likewise.
5494           (iconvctl): Extend determination of TRIVIALP to wchar_t conversion
5495           descriptors.
5496         * src/Makefile.in (PLUG_SOURCES): Remove variable.
5497           (LIBCHARSET_OBJECTS): New variable.
5498           (libiconv.la): Link in the LIBCHARSET_OBJECTS.
5499           (libiconv_plug_linux.so, libiconv_plug_solaris.so,
5500            libiconv_plug_osf.so): Link in the LIBCHARSET_OBJECTS, using
5501           LIBTOOL_LINK.
5502           (iconv.lo): Depend on encodings_local.def.
5503         * src/Makefile.msvc (iconv.obj): Depend on encodings_local.def.
5504         * src/Makefile.os2 (iconv.obj): Likewise.
5505         * configure.in: Add tests for locale.h, mbrtowc, wcrtomb, setlocale.
5506           Recurse into libcharset.
5507         * src/config.h.in (HAVE_LOCALE_H, HAVE_MBRTOWC, HAVE_WCRTOMB,
5508            HAVE_SETLOCALE): New macros.
5509         * tests/iconv.c: Include config.h and locale.h.
5510           (main): Call setlocale.
5511         * tests/Makefile.in (iconv): Search for config.h in ../src.
5512         * tests/Makefile.os2 (iconv.exe): Likewise.
5513         * tests/Makefile.msvc (iconv.exe): Likewise.
5514         * README, man/iconv_open.3: Document "char" and "wchar_t" encodings.
5515         * Makefile.in: After "cd", use "&&" not ";".
5516           (all, check, mostlyclean, clean, distclean, maintainer-clean):
5517           Recurse into libcharset.
5518         * Makefile.devel (all): Recurse into libcharset.
5519           (src/aliases.gperf): Depend on src/encodings_local.def.
5521 2000-11-18  Bruno Haible  <haible@clisp.cons.org>
5523         * src/converters.h (ucs4_t): New type.
5524           (wchar_t): Remove locally defined override.
5525           (mbtowc_funcs, wctomb_funcs): Use ucs4_t instead of wchar_t.
5526         * src/iconv.c (iconv): Likewise.
5527         * src/genflags.c (emit_encoding): Use ucs4_t instead of wchar_t.
5528         * tools/8bit_tab_to_h.c: Use "ucs4_t" instead of "wchar_t".
5529         * tools/cjk_tab_to_h.c: Likewise.
5530         * src/armscii_8.h: Use ucs4_t instead of wchar_t.
5531         * src/ascii.h: Likewise.
5532         * src/big5.h: Likewise.
5533         * src/big5hkscs.h: Likewise.
5534         * src/ces_big5.h: Likewise.
5535         * src/ces_gbk.h: Likewise.
5536         * src/cns11643.h: Likewise.
5537         * src/cns11643_1.h: Likewise.
5538         * src/cns11643_2.h: Likewise.
5539         * src/cns11643_3.h: Likewise.
5540         * src/cns11643_inv.h: Likewise.
5541         * src/cp1046.h: Likewise.
5542         * src/cp1124.h: Likewise.
5543         * src/cp1129.h: Likewise.
5544         * src/cp1133.h: Likewise.
5545         * src/cp1250.h: Likewise.
5546         * src/cp1251.h: Likewise.
5547         * src/cp1252.h: Likewise.
5548         * src/cp1253.h: Likewise.
5549         * src/cp1254.h: Likewise.
5550         * src/cp1255.h: Likewise.
5551         * src/cp1256.h: Likewise.
5552         * src/cp1257.h: Likewise.
5553         * src/cp1258.h: Likewise.
5554         * src/cp850.h: Likewise.
5555         * src/cp856.h: Likewise.
5556         * src/cp866.h: Likewise.
5557         * src/cp874.h: Likewise.
5558         * src/cp922.h: Likewise.
5559         * src/cp932.h: Likewise.
5560         * src/cp932ext.h: Likewise.
5561         * src/cp936ext.h: Likewise.
5562         * src/cp949.h: Likewise.
5563         * src/cp950.h: Likewise.
5564         * src/cp950ext.h: Likewise.
5565         * src/euc_cn.h: Likewise.
5566         * src/euc_jp.h: Likewise.
5567         * src/euc_kr.h: Likewise.
5568         * src/euc_tw.h: Likewise.
5569         * src/gb12345.h: Likewise.
5570         * src/gb12345ext.h: Likewise.
5571         * src/gb18030.h: Likewise.
5572         * src/gb18030ext.h: Likewise.
5573         * src/gb18030uni.h: Likewise.
5574         * src/gb2312.h: Likewise.
5575         * src/gbk.h: Likewise.
5576         * src/gbkext1.h: Likewise.
5577         * src/gbkext2.h: Likewise.
5578         * src/gbkext_inv.h: Likewise.
5579         * src/georgian_academy.h: Likewise.
5580         * src/georgian_ps.h: Likewise.
5581         * src/hkscs.h: Likewise.
5582         * src/hp_roman8.h: Likewise.
5583         * src/hz.h: Likewise.
5584         * src/iso2022_cn.h: Likewise.
5585         * src/iso2022_cnext.h: Likewise.
5586         * src/iso2022_jp.h: Likewise.
5587         * src/iso2022_jp1.h: Likewise.
5588         * src/iso2022_jp2.h: Likewise.
5589         * src/iso2022_kr.h: Likewise.
5590         * src/iso646_cn.h: Likewise.
5591         * src/iso646_jp.h: Likewise.
5592         * src/iso8859_1.h: Likewise.
5593         * src/iso8859_10.h: Likewise.
5594         * src/iso8859_13.h: Likewise.
5595         * src/iso8859_14.h: Likewise.
5596         * src/iso8859_15.h: Likewise.
5597         * src/iso8859_16.h: Likewise.
5598         * src/iso8859_2.h: Likewise.
5599         * src/iso8859_3.h: Likewise.
5600         * src/iso8859_4.h: Likewise.
5601         * src/iso8859_5.h: Likewise.
5602         * src/iso8859_6.h: Likewise.
5603         * src/iso8859_7.h: Likewise.
5604         * src/iso8859_8.h: Likewise.
5605         * src/iso8859_9.h: Likewise.
5606         * src/isoir165.h: Likewise.
5607         * src/isoir165ext.h: Likewise.
5608         * src/java.h: Likewise.
5609         * src/jisx0201.h: Likewise.
5610         * src/jisx0208.h: Likewise.
5611         * src/jisx0212.h: Likewise.
5612         * src/johab.h: Likewise.
5613         * src/johab_hangul.h: Likewise.
5614         * src/koi8_r.h: Likewise.
5615         * src/koi8_ru.h: Likewise.
5616         * src/koi8_u.h: Likewise.
5617         * src/ksc5601.h: Likewise.
5618         * src/mac_arabic.h: Likewise.
5619         * src/mac_centraleurope.h: Likewise.
5620         * src/mac_croatian.h: Likewise.
5621         * src/mac_cyrillic.h: Likewise.
5622         * src/mac_greek.h: Likewise.
5623         * src/mac_hebrew.h: Likewise.
5624         * src/mac_iceland.h: Likewise.
5625         * src/mac_roman.h: Likewise.
5626         * src/mac_romania.h: Likewise.
5627         * src/mac_thai.h: Likewise.
5628         * src/mac_turkish.h: Likewise.
5629         * src/mac_ukraine.h: Likewise.
5630         * src/mulelao.h: Likewise.
5631         * src/nextstep.h: Likewise.
5632         * src/sjis.h: Likewise.
5633         * src/tcvn.h: Likewise.
5634         * src/tis620.h: Likewise.
5635         * src/ucs2.h: Likewise.
5636         * src/ucs2be.h: Likewise.
5637         * src/ucs2internal.h: Likewise.
5638         * src/ucs2le.h: Likewise.
5639         * src/ucs2swapped.h: Likewise.
5640         * src/ucs4.h: Likewise.
5641         * src/ucs4be.h: Likewise.
5642         * src/ucs4internal.h: Likewise.
5643         * src/ucs4le.h: Likewise.
5644         * src/ucs4swapped.h: Likewise.
5645         * src/uhc_1.h: Likewise.
5646         * src/uhc_2.h: Likewise.
5647         * src/utf16.h: Likewise.
5648         * src/utf16be.h: Likewise.
5649         * src/utf16le.h: Likewise.
5650         * src/utf7.h: Likewise.
5651         * src/utf8.h: Likewise.
5652         * src/viscii.h: Likewise.
5654 2000-11-18  Bruno Haible  <haible@clisp.cons.org>
5656         Make transliteration optional.
5657         * src/iconv.c (iconv_open): Strip off //TRANSLIT suffix from names.
5658           Set transliteration on if and only if tocode ends in //TRANSLIT.
5659         * README, man/iconv_open.3: Document how to enable transliteration.
5660         * tests/check-translit: Add //TRANSLIT to iconv's 't' argument.
5661         * tests/check-translit.bat: Likewise.
5662         * tests/check-translit.cmd: Likewise.
5664 2000-11-18  Bruno Haible  <haible@clisp.cons.org>
5666         * man/iconv.3: Fix typo.
5668 2000-10-31  Bruno Haible  <haible@clisp.cons.org>
5670         * README, man/iconv_open.3: Document JOHAB again.
5672 2000-11-15  Bruno Haible  <haible@clisp.cons.org>
5674         * Makefile.msvc: Add support for MFLAGS and DEBUG parameters.
5675           (STATIC): Change default from 0 to 1.
5676         * src/Makefile.msvc: Likewise.
5677         * tests/Makefile.msvc: Likewise.
5678         * tests/check-stateless.bat: Call 'sort' with no arguments.
5680 2000-11-12  Bruno Haible  <haible@clisp.cons.org>
5682         * autoconf/config.guess, autoconf/config.sub: Upgrade to newest
5683           version from GNU CVS.
5685 2000-10-24  Bruno Haible  <haible@clisp.cons.org>
5687         * Version 1.4 released.
5688         * include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
5689           Bump version number.
5690         * src/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:1:0.
5692 2000-10-23  Bruno Haible  <haible@clisp.cons.org>
5694         Implement and document GB18030 and BIG5HKSCS.
5695         * tools/cjk_tab_to_h.c (row_byte_hkscs, byte_row_hkscs, do_hkscs): New
5696           functions.
5697           (do_gb18030uni): New function.
5698           (main): Accept gb18030ext, gb18030uni, hkscs.
5699         * tools/Makefile (ALL): Add gb18030ext.h, gb18030uni.h, hkscs.h.
5700           (gb18030ext.h, GB18030ext.TXT, gb18030uni.h, GB18030uni.TXT,
5701            hkscs.h): New targets.
5702         * src/gb18030ext.h, src/gb18030uni.h, src/gb18030.h: New files.
5703         * src/hkscs.h, src/big5hkscs.h: New files.
5704         * src/converters.h: Include gb18030.h and big5hkscs.h.
5705         * src/encodings.def (GB18030, BIG5HKSCS): New encodings.
5706         * README, man/iconv_open.3: Add GB18030, BIG5HKSCS.
5707         * tests/Makefile.in (check): Check GB18030, BIG5HKSCS.
5708         * tests/Makefile.msvc (check): Likewise.
5709         * tests/Makefile.os2 (check): Likewise.
5710         * tests/GB18030.TXT: New file.
5711         * tests/BIG5HKSCS.TXT, tests/BIG5HKSCS.IRREVERSIBLE.TXT: New files.
5713 2000-10-23  Bruno Haible  <haible@clisp.cons.org>
5715         * tests/table-from.c (try, main): Use UCS-4-INTERNAL instead of
5716           UCS-2-INTERNAL, to avoid problems with UCS-2 surrogate handling.
5717         * tests/table-to.c (main): Likewise.
5719 2000-10-22  Bruno Haible  <haible@clisp.cons.org>
5721         * src/gentranslit.c (main): Read the input in UTF-8 encoding.
5723 2000-10-09  Bruno Haible  <haible@clisp.cons.org>
5725         CPU recognition on OpenBSD.
5726         * autoconf/aclocal.m4 (CL_WORDS_LITTLEENDIAN): Recognize __m68k__,
5727           __mc68020__, __MIPSEB__, __MIPSEL__, __m88k__ as CPU indicators.
5729 2000-10-03  Bruno Haible  <haible@clisp.cons.org>
5731         * src/gentranslit.c (main): Don't output non-ASCII ISO-8859-1
5732           character literals, use the numeric value instead.
5733           Reported by Shin-Hsien Yeh <shyeh@alcatel.com.tw>.
5735 2000-09-29  Bruno Haible  <haible@clisp.cons.org>
5737         * autoconf/aclocal.m4 (CL_CANONICAL_HOST): Fix bug in 2000-05-23
5738           change.
5740 2000-09-25  Bruno Haible  <haible@clisp.cons.org>
5742         * autoconf/aclocal.m4 (CL_WORDS_LITTLEENDIAN): Recognize __i386__
5743           as equivalent to __i386. For OpenBSD.
5745 2000-09-21  Bruno Haible  <haible@clisp.cons.org>
5747         * src/utf16.h (utf16_wctomb): Reject single surrogates.
5748         * src/utf16be.h (utf16be_wctomb): Likewise.
5749         * src/utf16le.h (utf16le_wctomb): Likewise.
5750         * src/ucs2.h (ucs2_mbtowc, ucs2_wctomb): Likewise.
5751         * src/ucs2be.h (ucs2be_mbtowc, ucs2be_wctomb): Likewise.
5752         * src/ucs2le.h (ucs2le_mbtowc, ucs2le_wctomb): Likewise.
5753         * src/ucs2internal.h (ucs2internal_mbtowc, ucs2internal_wctomb):
5754           Likewise.
5755         * src/ucs2swapped.h (ucs2swapped_mbtowc, ucs2swapped_wctomb):
5756           Likewise.
5758 2000-09-15  Bruno Haible  <haible@clisp.cons.org>
5760         * Makefile.in (install, installdirs, uninstall): Support DESTDIR.
5761         * src/Makefile.in (install, installdirs, uninstall): Likewise.
5762         * man/Makefile.in (install, installdirs, uninstall): Likewise.
5764 2000-09-11  Bruno Haible  <haible@clisp.cons.org>
5766         * src/utf7.h (utf7_mbtowc): Fix combining of UTF-16 surrogates.
5768 2000-08-26  Bruno Haible  <haible@clisp.cons.org>
5770         * autoconf/acgeneral.m4 (AC_OUTPUT): Use braces in exec_prefix default
5771           value, not parens.
5773 2000-07-04  Akira Hatakeyama  <akira@sra.co.jp>
5774             Bruno Haible  <haible@clisp.cons.org>
5776         * os2/iconv.def, README.os2, Makefile.os2, src/Makefile.os2,
5777           tests/Makefile.os2, man/Makefile.os2, tests/check-stateful.cmd,
5778           tests/check-stateless.cmd, tests/check-translit.cmd: New files.
5780 2000-06-28  Bruno Haible  <haible@clisp.cons.org>
5782         * src/ucs2internal.h (ucs2internal_mbtowc): Avoid gcc warning about
5783           cast.
5784         * src/ucs4internal.h (ucs4internal_mbtowc): Likewise.
5785         * src/ucs2swapped.h (ucs2swapped_mbtowc, ucs2swapped_wctomb): Verify
5786           sizeof(unsigned short).
5787         * src/ucs4swapped.h (ucs4swapped_mbtowc, ucs4swapped_mbtowc): Verify
5788           sizeof(unsigned int).
5789         Reported by François Pinard <pinard@iro.umontreal.ca>.
5791 2000-05-29  Bruno Haible  <haible@clisp.cons.org>
5793         * autoconf/aclocal.m4 (CL_PROG_INSTALL): Fix typo.
5794         Reported by Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>.
5796 2000-05-23  Bruno Haible  <haible@clisp.cons.org>
5798         * autoconf/aclocal.m4 (CL_CANONICAL_HOST): Determine host_cpu,
5799           host_vendor, host_os correctly if $host has more than two hyphens.
5801 2000-04-15  Bruno Haible  <haible@clisp.cons.org>
5803         * Version 1.3 released.
5804         * include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
5805           Bump version number.
5806         * src/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:0:0.
5808 2000-04-15  Bruno Haible  <haible@clisp.cons.org>
5810         * THANKS: New file.
5811         * INSTALL.generic: New file.
5813         Implement and document UCS-2BE, UCS-2LE, UCS-4BE, UCS-4LE.
5814         * src/ucs2be.h, src/ucs2le.h, src/ucs4be.h, src/ucs4le.h: New files.
5815         * src/converters.h: Include them.
5816         * src/ucs2swapped.h: Remove #defines for UCS-2-BE, UCS-2-LE.
5817         * src/ucs4swapped.h: Remove #defines for UCS-4-BE, UCS-4-LE.
5818         * src/encodings.def (UCS-2BE): Renamed from UCS-2-BE.
5819           (UCS-2LE): Renamed from UCS-2-LE.
5820           (UCS-4BE): Renamed from UCS-4-BE.
5821           (UCS-4LE): Renamed from UCS-4-LE.
5822         * Makefile.devel (src/aliases.h): Pass option "-i 1" to gperf.
5823         * README, man/iconv_open.3: Add UCS-2BE, UCS-2LE, UCS-4BE, UCS-4LE.
5824         * tests/Makefile.in (check): Check UCS-2BE, UCS-2LE, UCS-4BE, UCS-4LE.
5825         * tests/Makefile.msvc (check): Likewise.
5826         * tests/UCS-*snippet*: New files.
5828         Allow building as a shared library on Windows.
5829         Allow running the tests on Windows.
5830         * Makefile.devel (include/iconv.h.msvc): Remove rule.
5831           (include/iconv.h.msvc-static, include/iconv.h.msvc-shared): New
5832           rules.
5833           (all): Update.
5834         * windows/dllexport.h: New file.
5835         * include/iconv.h.msvc: Remove file.
5836         * include/iconv.h.msvc-static, include/iconv.h.msvc-shared: New
5837           autogenerated files.
5838         * Makefile.msvc (STATIC, DEBUG): Default to 0.
5839           (all): Choose either include\iconv.h.msvc-static or
5840           include\iconv.h.msvc-shared.
5841           (check): Depend on all.
5842           (all, check, mostlyclean, clean, distclean, maintainer-clean):
5843           Recurse into tests directory.
5844         * src/Makefile.msvc (STATIC, DEBUG): Default to 0.
5845           (WARN_CFLAGS, PICFLAGS, OPTIMFLAGS): New variables.
5846           (CFLAGS): Use them. Add -MD and -DBUILDING_LIBICONV.
5847           (RESOURCES): New variable.
5848           (iconv.lib): Change rule when building DLL.
5849           (clean, distclean): One filename per line.
5850         * tests/Makefile.msvc: New file.
5851         * tests/check-stateful.bat, tests/check-stateless.bat,
5852           tests/check-translit.bat: New files.
5853         * tests/uniq-u.c: New file, taken from GNU textutils.
5854         * README.win32: Update.
5855         Based on patches by Taro Muraoka <koron@tka.att.ne.jp>.
5857 2000-04-14  Bruno Haible  <haible@clisp.cons.org>
5859         Fix an OSF/1 problem.
5860         * configure.in: Define GCC variable for substitution.
5861         * src/Makefile.in (libiconv_plug_osf.so): Change rule if not using
5862           gcc.
5864 2000-04-13  Bruno Haible  <haible@clisp.cons.org>
5866         Fix a SunOS 4 problem.
5867         * include/iconv.h.in: If EILSEQ is not defined by the system, define
5868           it to ENOENT, not EINVAL.
5870 2000-04-02  Bruno Haible  <haible@clisp.cons.org>
5872         Allow building on filesystems lacking symlinks and hard links.
5873         * Makefile.devel (autoconf/aclocal.m4): Replace AC_PROG_LN_S with
5874           CL_PROG_LN_S.
5875         * configure.in: Add CL_PROG_LN, CL_PROG_LN_S.
5876         * src/Makefile.in (LN): Use autoconfigured value @LN@.
5877           (LN_S): Use autoconfigured value @LN_S@.
5879 2000-03-15  Bruno Haible  <haible@clisp.cons.org>
5881         * Version 1.2 released.
5882         * include/iconv.h.in (_LIBICONV_VERSION): Bump version number.
5883         * src/Makefile.in (LIBICONV_VERSION_INFO): Define to 1:1:1.
5885 2000-03-14  Bruno Haible  <haible@clisp.cons.org>
5887         Implement and document UTF-16BE and UTF16LE.
5888         * src/utf16be.h, src/utf16le.h: New files.
5889         * src/converters.h: Include them.
5890         * src/encodings.def (UTF-16BE, UTF16LE): New encodings.
5891         * README, man/iconv_open.3: Add UTF-16BE, UTF16LE.
5892         * tests/Makefile.in (check): Check UTF-16, UTF-16BE, UTF16LE.
5893         * tests/UTF-16*snippet*: New files.
5895         * src/utf16.h (utf16_wctomb): Output a byte order mark.
5897 2000-03-13  Bruno Haible  <haible@clisp.cons.org>
5899         Provide all encodings used by AIX locales.
5900         * tools/Makefile (all): Add cp856.h, cp922.h, cp1046.h, cp1124.h,
5901           cp1129.h.
5902           (cp856.h, cp922.h, cp1046.h, cp1124.h, cp1129.h): New targets.
5903         * src/cp856.h, src/cp922.h, src/cp943.h, src/cp1046.h, src/cp1124.h,
5904           src/cp1129.h: New files.
5905         * src/converters.h: Include them if USE_AIX is defined.
5906         * src/encodings_aix.def: New file, with CP856, CP922, CP943, CP1046,
5907           CP1124, CP1129.
5908         * src/genflags.c: Define USE_AIX. Include encodings_aix.def.
5909         * src/genaliases2.c: New file.
5910         * src/iconv.c: Define USE_AIX on AIX.
5911           Include encodings_aix.def and aliases_aix.h.
5912           (aliases2_lookup): New function.
5913           (iconv_open): Call aliases2_lookup.
5914         * src/Makefile.in (iconv.lo): Depend on encodings_aix.def and
5915           aliases_aix.h.
5916         * Makefile.devel (all): Add src/aliases_aix.h.
5917           (src/aliases_aix.h): New rule.
5918           (src/flags.h): Depend on src/encodings_aix.def.
5920 2000-02-24  Bruno Haible  <haible@clisp.cons.org>
5922         * src/iconv.c (iconv): Don't write beyond the end of the output buffer.
5923           Reported by Edmund Grimley Evans <edmundo@rano.org>.
5925 2000-02-22  Bruno Haible  <haible@clisp.cons.org>
5927         * src/utf7.h (direct_tab, xdirect_tab): Treat tab like space.
5929 2000-02-15  Bruno Haible  <haible@clisp.cons.org>
5931         * src/iconv.c (iconv): Add cast in xxx_reset call.
5933 2000-02-05  Bruno Haible  <haible@clisp.cons.org>
5935         * src/tis620.h: Simplify.
5937 2000-01-27  Bruno Haible  <haible@clisp.cons.org>
5939         * Makefile.devel (CLISP_DIR): Change to "..".
5941 2000-01-24  Bruno Haible  <haible@clisp.cons.org>
5943         * Version 1.1 released.
5944         * include/iconv.h.in (_LIBICONV_VERSION): Bump version number.
5945         * src/Makefile.in (LIBICONV_VERSION_INFO): Define to 1:0:1.
5947 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
5949         * src/utf7.h (utf7_wctomb): If base64 encoding is not active, encode
5950           '+' as "+-".
5952 2000-01-22  Bruno Haible  <haible@clisp.cons.org>
5954         * include/iconv.h.in (iconvctl): New declaration.
5955           (ICONV_TRIVIALP, ICONV_GET_TRANSLITERATE, ICONV_SET_TRANSLITERATE):
5956           New macros.
5957         * src/iconv.c (iconvctl): New function.
5959         * tests/Makefile.in: Add a rule for ../src/libiconv.la. Define $(MAKE).
5961         Solve a build problem.
5962         * include/iconv.h.in: Renamed from include/libiconv.h.in.
5963         * Makefile.devel: libiconv.h -> iconv.h.
5964         * Makefile.in: Likewise.
5965         * configure.in: Likewise. Remove check for <iconv.h>.
5966         * src/iconv.c: Include iconv.h instead of libiconv.h.
5967         * tests/iconv.c, tests/table-from.c, tests/table-to.c: Likewise.
5969         * README, man/iconv_open.3: Don't document JOHAB any more.
5971         * man/iconv.3: Clarify return value again.
5973 2000-01-16  Bruno Haible  <haible@clisp.cons.org>
5975         Add aliases.
5976         * src/encodings.def (ISO-8859-14): Add alias ISO-IR-199.
5977           (ISO-8859-15): Add alias ISO-IR-203.
5978           (EUC-CN): Add alias CN-GB, from RFC 1922.
5979           (BIG5): Add alias CN-BIG5, from RFC 1922.
5980         * Makefile.devel (src/aliases.h): Add 8th character to key set.
5982         Drop X11 aliases.
5983         * src/encodings.def (JIS_X0201): Drop JISX0201.1976-0 alias.
5984           (JIS_X0208): Drop JIS_X0208.1983-0, JIS_X0208.1983-1 aliases.
5985           (KSC_5601): Drop KSC5601.1987-0 alias.
5987         Improve GB/T 12345 (not used yet).
5988         * tools/Makefile (gb12345ext.h): Use GB12345-more.TXT.
5989         * src/gb12345ext.h: Regenerated.
5991         Improve and document CP949.
5992         * tools/Makefile (all): Add uhc_1.h and uhc_2.h.
5993           (uhc_1.h, uhc_2.h): New rules.
5994         * tools/cjk_tab_to_h.c (output_charset2uni_noholes_monotonic): New
5995           function.
5996           (output_uni2charset_sparse): Take an additional boolean argument.
5997           All callers changed.
5998           (*_uhc_1, *_uhc_2): New functions.
5999           (main): Treat uhc_1 and uhc_2.
6000         * src/uhc_1.h, src/uhc_2.h: New files.
6001         * src/cp949.h: New file, include them.
6002         * src/converters.h: Include it.
6003         * src/encodings.def (KSC_5601): Remove alias CP949.
6004           (CP949): New encoding.
6005         * README, man/iconv_open.3: Add CP949.
6006         * tests/Makefile.in (check): Check CP949.
6007         * tests/CP949.TXT: New file.
6009         Document CP932.
6010         * README, man/iconv_open.3: Add CP932.
6011         * tests/Makefile.in (check): Check CP932.
6012         * tests/CP932.TXT, tests/CP932.IRREVERSIBLE.TXT: New files.
6014         * Makefile.devel (src/flags.h): Depend on src/converters.h.
6016         * tests/Makefile.in (check): Check JIS_X0201.
6017         * tests/JIS_X0201.TXT: New file.
6019         * src/euc_kr.h (euc_kr_wctomb): Shrink size of buf.
6020         * src/iso2022_kr.h (iso2022_kr_wctomb): Likewise.
6022         * src/iso2022_cnext.h (iso2022_cn_ext_mbtowc): Use isoir165_mbtowc.
6023           (iso2022_cn_ext_wctomb): Use isoir165_wctomb.
6025         Add ISO-IR-165 (undocumented).
6026         * tools/Makefile (all): Add isoir165ext.h.
6027           (isoir165ext.h): New rule.
6028         * tools/cjk_tab_to_h.c (main): Treat isoir165ext like gb2312.
6029         * src/isoir165.h, src/isoir165ext.h: New files.
6030         * src/converters.h: Include it.
6031         * src/encodings.def: Add ISO-IR-165.
6032         * tests/Makefile.in (check): Check ISO-IR-165.
6033         * tests/ISO-IR-165.TXT, tests/ISO-IR-165.IRREVERSIBLE.TXT: New files.
6035         Add ISO646-CN (undocumented).
6036         * src/iso646_cn.h: New file.
6037         * src/converters.h: Include it.
6038         * src/encodings.def: Add ISO646-CN.
6039         * tests/Makefile.in (check): Check ISO646-CN.
6040         * tests/ISO646-CN.TXT: New file.
6042         Add ISO646-JP (undocumented).
6043         * src/iso646_jp.h: New file.
6044         * src/converters.h: Include it.
6045         * src/encodings.def: Add ISO646-JP.
6046         * tests/Makefile.in (check): Check ISO646-JP.
6047         * tests/ISO646-JP.TXT: New file.
6049 2000-01-05  Bruno Haible  <haible@clisp.cons.org>
6051         Add ISO-8859-16.
6052         * tools/Makefile (all): Add iso8859_16.h.
6053           (iso8859_16.h): New rule.
6054         * src/iso8859_16.h: New file.
6055         * src/converters.h: Include it.
6056         * src/encodings.def: Add ISO-8859-16.
6057         * README, man/iconv_open.3: Add ISO-8859-16.
6058         * tests/Makefile.in (check): Check ISO-8859-16.
6059         * tests/ISO-8859-16.TXT: New file.
6061         * man/iconv.3: Clarify what happens *inbuf in case 3.
6063         * src/iso8859_8.h: Update using newest table from ftp.unicode.org.
6064         * tests/ISO-8859-8.TXT: Likewise.
6066 2000-01-04  Bruno Haible  <haible@clisp.cons.org>
6068         * Version 1.0 released.
6069         * include/libiconv.h.in (_LIBICONV_VERSION): Bump version number.
6070         * src/Makefile.in (LIBICONV_VERSION_INFO): Define to 0:1:0.
6071           (libiconv.la): Use LIBICONV_VERSION_INFO.
6073 2000-01-03  Bruno Haible  <haible@clisp.cons.org>
6075         * tests/Makefile.in: New file.
6076           tests/check-stateless, tests/table-from.c, tests/table-to.c,
6077           tests/*.TXT, tests/genutf8.c: New files, checks for stateless
6078           encodings.
6079           tests/check-stateful, tests/iconv.c, tests/*-snippet*: New files,
6080           checks for stateful encodings.
6081         * Makefile.in (all, check, mostlyclean, clean, distclean,
6082            maintainer-clean): Descend into tests directory.
6083         * configure.in: Add tests/Makefile to AC_OUTPUT duties.
6085         * src/gentranslit.c: New file.
6086         * Makefile.devel (src/translit.h): New rule.
6087         * src/translit.def, src/translit.h: New files.
6088         * src/iconv.c: Include it.
6089           (iconv): Transliterate using translit.h table.
6091         * src/genflags.c: New file.
6092         * Makefile.devel (src/flags.h): New rule.
6093         * src/flags.h: New file.
6094         * src/iconv.c: Include it.
6095           (encoding): Add field 'oflags'.
6096           (all_encodings): Initialize the field 'oflags'.
6097           (iconv_open): Copy field 'oflags'.
6098           (iconv): Transliterate quotation marks U+2018, U+2019, U+201A.
6099         * src/Makefile.in (iconv.lo): Update dependencies.
6101         * src/converters.h: New file, extracted from src/iconv.c.
6102         * src/iconv.c: Include it.
6103         * src/Makefile.in (iconv.lo): Update dependencies.
6105         * tools/cjk_variants.c: New file.
6106         * tools/Makefile (ALL): Add cjk_variants.h.
6107           (cjk_variants.h, cjk_variants): New rules.
6108         * src/cjk_variants.h: New file.
6109         * src/iconv.c: Include it.
6110           (iconv): Use cjk_variants for transliteration.
6112         * man/iconv.3: Fix description of return value.
6113         * euc_kr.h (euc_kr_wctomb): Remove Hangul transliteration.
6114         * iso2022_kr.h (iso2022kr_wctomb): Likewise.
6115         * src/iconv.c (iconv): Do Hangul transliteration here and increment
6116           result once for every transliterated character.
6117         * src/johab_hangul.h (johab_hangul_decompose): Change result array
6118           from 'unsigned char*' to 'wchar_t*'.
6120         * src/cp1258.h (cp1258_mbtowc): Return RET_ILSEQ instead of storing
6121           0xfffd.
6123         * src/georgian_ps.h (georgian_ps_wctomb): Accept 0x00e6.
6125         * src/euc_jp.h (euc_jp_wctomb): Don't treat U+005C and U+007E like
6126           Katakana.
6128         * src/euc_tw.h (euc_tw_mbtowc): Fix typo.
6130         * src/cp950.h (cp950_mbtowc, cp950_wctomb): Exclude the range
6131           0xC6A1..0xC7FE.
6133         * tools/cjk_tab_to_h.c (read_table_ksc5601): Some Hangul range was
6134           not being excluded. Fix that.
6135         * src/ksc5601.h: Regenerated.
6136         * src/johab.h (johab_mbtowc): Don't accept 0xDA{A1..D3} - this is
6137           valid in KSC5601/KSX1001 but not in JOHAB.
6139         * src/iconv.c (conv_struct): Add fields iindex, oindex.
6140           (iconv_open): Fill in iindex, oindex.
6142         * src/encodings.def (UCS-2-BE): Add aliases "UNICODE-1-1" and
6143           "csUnicode11", from IANA charset list.
6144           (MacRoman): Add aliases "MAC" and "csMacintosh" for "MACINTOSH",
6145           from IANA charset list.
6146           (JIS_X0208): Add aliases "X0208", "ISO-IR-87", "csISO87JISX0208",
6147           from IANA charset list.
6148           (GB_2312-80): New encoding, from IANA charset list.
6150         * README, man/iconv_open.3: Add MacIceland and MacUkraine.
6152         * Makefile.devel: Add rules for src/aliases.h and src/aliases.gperf.
6153           (all): Depend on src/aliases.h.
6154         * src/Makefile.in: Remove rules for $(srcdir)/aliases.h and
6155           $(srcdir)/aliases.gperf.
6156           (clean): Clean up.
6158         * src/Makefile.in (libiconv_plug_linux.so): Remove unneeded "-ldl".
6160 1999-12-31  Bruno Haible  <haible@clisp.cons.org>
6162         * Version 0.3 released.