Switch to automake 1.17.
[libiconv.git] / ChangeLog
blob2a1f8e214a20a712a49faa086eb95f32eef3b262
1 2024-07-12  Bruno Haible  <bruno@clisp.org>
3         Switch to automake 1.17.
4         * autogen.sh: Update comment.
6 2024-07-12  Bruno Haible  <bruno@clisp.org>
8         Assume wchar_t.
9         * include/iconv.h.in (iconv_wchar_mb_to_wc_fallback,
10         iconv_wchar_wc_to_mb_fallback): Assume HAVE_WCHAR_T is 1.
11         * src/iconv.c (ilseq_wchar_subst_buffer, subst_mb_to_wc_fallback,
12         subst_wc_to_mb_fallback, main): Likewise.
13         * configure.ac (HAVE_WCHAR_T): Remove variable.
14         (gt_TYPE_WCHAR_T): Remove invocation.
16 2024-06-11  Bruno Haible  <bruno@clisp.org>
18         POSIX compliance: Interpret '-' file name as standard input.
19         Reported by Brian Inglis at <https://savannah.gnu.org/bugs/?65874>.
20         * src/iconv.c (main): Recognize the argument '-' as denoting standard
21         input.
23 2024-05-23  Bruno Haible  <bruno@clisp.org>
25         INSTALL.windows: Fix MSVC instructions.
26         * INSTALL.windows: Mention the tools needed for 'windres'.
28 2024-04-04  Bruno Haible  <bruno@clisp.org>
30         Fix macro file 'serial' numbers for 'aclocal --install'.
31         * gnulib-local/m4/alloca.m4: Make 'serial' effective. Set value to 100,
32         in order to override gnulib's alloca.m4.
34 2023-12-30  Bruno Haible  <bruno@clisp.org>
36         Switch to autoconf 2.72.
37         * autogen.sh: Update comment.
39 2023-09-18  Bruno Haible  <bruno@clisp.org>
41         Fix shared library support on Android.
42         Patch from <https://savannah.gnu.org/patch/index.php?10393>.
43         * m4/libtool.m4: On Android, fix library_names_spec and
44         hardcode_libdir_flag_spec.
46 2023-09-16  Bruno Haible  <bruno@clisp.org>
48         Fix a misnomer.
49         * include/export.h (LIBICONV_SHLIB_EXPORTED): Renamed from
50         LIBICONV_DLL_EXPORTED. Prefer the term "shared library", since the term
51         "DLL" applies only to Windows.
52         * Makefile.devel (include/iconv.h.build.in): Insert
53         LIBICONV_SHLIB_EXPORTED instead of LIBICONV_DLL_EXPORTED.
54         * configure.ac (DLL_VARIABLE): Update comment.
55         * lib/Makefile.in (DEFS): Update comment.
56         * woe32dll/export.h: Update comment.
58 2023-09-13  Bruno Haible  <bruno@clisp.org>
60         Simplify the library: Don't compile relocatable.c any more.
61         The library does not need relocatable.h any more since 2018-09-22.
62         * lib/relocatable.h: Remove file.
63         * lib/relocatable.c: Remove file.
64         * lib/compat.c: New file.
65         * lib/Makefile.in (DEFS): Don't define LIBDIR, BUILDING_DLL,
66         ENABLE_RELOCATABLE, IN_LIBRARY, INSTALLDIR, NO_XMALLOC,
67         set_relocation_prefix, relocate, relocate2.
68         (SOURCES): Remove relocatable.c. Add compat.c.
69         (OBJECTS): Remove relocatable.lo. Add compat.lo.
70         (localcharset.lo): Update dependencies.
71         (relocatable.lo): Remove rule.
72         (compat.lo): Add rule.
73         (SOURCE_FILES): Remove relocatable.h, relocatable.c. Add compat.c.
75 2023-09-07  Bruno Haible  <bruno@clisp.org>
77         Sync woe32dll/export.h with GNU libunistring and GNU gettext.
78         * woe32dll/export.h: Update comments.
79         (IMP): Define correctly for 64-bit Windows platforms.
81 2023-09-06  Bruno Haible  <bruno@clisp.org>
83         Don't export symbols from static MSVC .obj files.
84         Suggested by Dmitry Bely <dmitry.bely@gmail.com> in
85         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2023-08/msg00002.html>.
86         * include/export.h: Add a copyright notice. Set LIBICONV_DLL_EXPORTED to
87         empty on MSVC when DLL_EXPORT is not defined.
88         * Makefile.devel (include/iconv.h.build.in): Filter out the second
89         copyright notice.
90         * configure.ac (DLL_VARIABLE): Test DLL_EXPORT, not _DLL.
91         * lib/relocatable.h: From gnulib:
92         (RELOCATABLE_DLL_EXPORTED): Don't use __declspec(dllexport) when
93         creating static .obj files with MSVC.
95 2023-08-30  Bruno Haible  <bruno@clisp.org>
97         Recognize the *-*-windows* config triplets introduced on 2023-06-26.
98         * configure.ac: Treat windows* as equivalent to mingw*.
100 2023-06-29  Bruno Haible  <bruno@clisp.org>
102         Update the installation instructions for Windows.
103         * INSTALL.windows: Add a note about MSYS2.
105 2023-05-29  Bruno Haible  <bruno@clisp.org>
107         GB18030: Help transitioning away from PUA code points.
108         * lib/gb18030ext.h (gb18030_2005_ext_wctomb): Remove function.
109         (gb18030ext_wctomb): Renamed from gb18030_2022_ext_wctomb.
110         * lib/gb18030uni.h (gb18030_2005_uni_wctomb): Map 6 Ext-B code points to
111         4-bytes sequences.
112         (gb18030_2022_uni_wctomb): Small refactoring.
113         * lib/gb18030_2005.h (gb18030_2005_pua2charset): Map 6 PUA code points
114         to 4-bytes sequences instead of 2-bytes sequences.
115         (gb18030_2005_wctomb): Update accordingly. Invoke gb18030ext_wctomb
116         instead of gb18030_2005_ext_wctomb.
117         * lib/gb18030_2022.h (gb18030_2022_wctomb): Invoke gb18030ext_wctomb
118         instead of gb18030_2022_ext_wctomb.
119         * tests/GB18030-2005.IRREVERSIBLE.TXT: Update the inverse mappings of 6
120         Ext-B code points and 6 PUA code points.
121         * NEWS: Mention it.
123 2023-05-24  Bruno Haible  <bruno@clisp.org>
125         man pages: List a fifth condition when iconv(3) may stop.
126         Based on the patch to the man-pages project
127         <https://marc.info/?l=linux-man&m=168496625522371&w=2> =
128         <https://lore.kernel.org/linux-man/2f9c4dbd-7aa6-fc7a-f126-453603ef695e@gmail.com/T/#m25e33d4defa1118e5c84951790f0319360abf9d4>
129         * man/iconv.3: List a fifth condition.
131 2023-05-24  Bruno Haible  <bruno@clisp.org>
133         man pages: Use man page section title from groff or the distro.
134         Reported by Mike Fulton <mikefultonpersonal@gmail.com> in
135         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2023-04/msg00027.html>.
136         * man/*.[13]: Remove section title "Linux Programmer's Manual".
138 2023-05-21  Bruno Haible  <bruno@clisp.org>
140         Support creating shared libraries on Hurd/x86_64.
141         Patch from
142         <https://lists.gnu.org/archive/html/bug-hurd/2023-05/msg00086.html>.
143         * m4/libtool.m4 (_LT_ENABLE_LOCK): Treat Hurd/x86_64 like
144         Linux/x86_64.
146 2023-05-21  Bruno Haible  <bruno@clisp.org>
148         Fix link error regarding _libiconv_version on MSVC in C++ mode.
149         Reported at <https://savannah.gnu.org/bugs/?64227>.
150         * include/iconv.h.in (_libiconv_version): Enclose in an extern "C"
151         block.
153 2023-05-20  Bruno Haible  <bruno@clisp.org>
155         Implement GB18030 version 2022.
156         * lib/encodings.def (GB18030): Add alias GB18030:2005.
157         (GB18030:2022): New encoding.
158         * lib/gb18030ext.h (gb18030_2005_ext_2uni_pagefe): Renamed from
159         gb18030ext_2uni_pagefe.
160         (gb18030_2022_ext_2uni_pagefe): New array.
161         (gb18030_2005_ext_mbtowc): Renamed from gb18030ext_mbtowc.
162         (gb18030_2022_ext_mbtowc): New function.
163         (gb18030_2005_ext_wctomb): Renamed from gb18030ext_wctomb.
164         (gb18030_2022_ext_wctomb): New function.
165         * lib/gb18030uni.h (gb18030_2022_charset2uni_pua1,
166         gb18030_2022_charset2uni_pua2): New arrays.
167         (gb18030_2005_uni_mbtowc): Renamed from gb18030uni_mbtowc.
168         (gb18030_2022_uni_mbtowc): New function.
169         (gb18030_2022_uni2charset_pua1, gb18030_2022_uni2charset_pua2): New
170         arrays.
171         (gb18030_2005_uni_wctomb): Renamed from gb18030uni_wctomb.
172         (gb18030_2022_uni_wctomb): New function.
173         * lib/gb18030_2005.h: Renamed from lib/gb18030.h. Update comments.
174         (gb18030_2005_mbtowc): Renamed from gb18030_mbtowc.
175         (gb18030_2005_pua2charset): Renamed from gb18030_pua2charset.
176         (gb18030_2005_wctomb): Renamed from gb18030_wctomb.
177         * lib/gb18030_2022.h: New file, based on lib/gb18030_2005.h.
178         * lib/converters.h: Don't include gb18030.h. Include gb18030_2005.h,
179         gb18030_2022.h.
180         * lib/Makefile.in (SOURCE_FILES): Remove gb18030.h. Add gb18030_2005.h,
181         gb18030_2022.h.
182         * tests/GB18030-2005-BMP.TXT: Renamed from tests/GB18030-BMP.TXT.
183         * tests/GB18030-2005.IRREVERSIBLE.TXT: Renamed from
184         tests/GB18030.IRREVERSIBLE.TXT.
185         * tests/GB18030-2022-BMP.TXT: New file.
186         * tests/Makefile.in (check): Test GB18030:2005 instead of GB18030. Also
187         test GB18030:2022.
188         (clean): Don't remove GB18030.TXT. Instead, remove GB18030-2005.TXT and
189         GB18030-2022.TXT.
190         (SOURCE_FILES): Update. Add GB18030-2022-BMP.TXT.
191         * README: Mention the new encoding.
192         * man/iconv_open.3: Likewise.
193         * NEWS: Likewise.
195 2023-05-19  Bruno Haible  <bruno@clisp.org>
197         Make the compiler used by Makefile.devel customizable.
198         Reported by Mike Fulton <mikefultonpersonal@gmail.com> in
199         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2023-05/msg00006.html>.
200         * Makefile.devel: Require GNU make.
201         (CC): Use value from the environment, if set and non-empty.
202         (CFLAGS): Use value from the environment, if set.
203         * autogen.sh (GMAKE): New variable.
204         Use it for executing Makefile.devel.
206 2023-05-17  Bruno Haible  <bruno@clisp.org>
208         On z/OS, allow charset tagging of temporary shell scripts.
209         Reported by Mike Fulton <mikefultonpersonal@gmail.com> in
210         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2023-05/msg00002.html>.
211         * lib/genaliases.c (BINARY_MODE): New macro.
212         (main): Use it instead of "b".
214 2023-05-12  Bruno Haible  <bruno@clisp.org>
216         Integrate the last change.
217         * src/Makefile.in (SOURCE_FILES): Add zos-tag.h.
218         * tests/Makefile.in (SOURCE_FILES): Add check-tag.
219         * NEWS: Mention the new functionality.
221 2023-05-12  Mike Fulton  <mikefultonpersonal@gmail.com>
223         On z/OS, set a charset tag on iconv's output file.
224         For the concept of charset tags as external metadata on z/OS files, see
225         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2023-04/msg00021.html>.
226         * src/zos-tag.h: New file.
227         * src/iconv.c: Include zos-tag.h.
228         (convert): Add a 'tocode' parameter. On z/OS, turn off auto-conversion
229         and tag the output file.
230         (main): Update callers.
231         * tests/check-ebcdic: On z/OS, make all test files initially untagged.
232         * tests/check-tag: New file.
233         * tests/Makefile.in (check): Pass the host_os to check-ebcdic. Invoke
234         check-tag.
236 2023-04-03  Bruno Haible  <bruno@clisp.org>
238         Fix genflags compilation error.
239         * lib/genflags.c (ICONV_SURFACE_EBCDIC_ZOS_UNIX): New macro, copied from
240         include/iconv.h.in.
242         Allow overriding the newline conversion for EBCDIC encodings.
243         Reported by Mike Fulton <mikefultonpersonal@gmail.com> in
244         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2023-04/msg00009.html>.
245         * include/iconv.h.in (ICONV_SURFACE_NONE,
246         ICONV_SURFACE_EBCDIC_ZOS_UNIX): New macros.
247         (ICONV_GET_FROM_SURFACE, ICONV_SET_FROM_SURFACE, ICONV_GET_TO_SURFACE,
248         ICONV_SET_TO_SURFACE): New macros.
249         * lib/converters.h (struct conv_struct): Add the fields isurface,
250         osurface.
251         (swap_x15_x25): New macro.
252         * lib/iconv.c (iconv_open, iconv_open_into): Add local variables
253         from_surface, to_surface.
254         (ALL_SURFACES): New macro.
255         (iconvctl): Adjust ICONV_TRIVIALP implementation. Implement the
256         ICONV_{GET,SET}_{FROM,TO}_SURFACE requests.
257         * lib/iconv_open1.h: Parse a /ZOS_UNIX surface specifier. Set
258         from_surface, to_surface.
259         * lib/iconv_open2.h: Copy the values of from_surface, to_surface into
260         the conversion descriptor.
261         * lib/ebcdic*.h (*_mbtowc): Test the isurface. If requested, call
262         swap_x15_x25 right after fetching an input byte.
263         (*_wctomb): Test the osurface. If requested, call swap_x15_x25 right
264         before storing an output byte.
265         * man/iconvctl.3 (REQUEST VALUES): Document the
266         ICONV_{GET,SET}_{FROM,TO}_SURFACE requests.
267         * src/iconv.c (main): If ICONV_EBCDIC_ZOS_UNIX is set, set the from/to
268         surfaces accordingly.
269         * man/iconv.1 (ENVIRONMENT): New section.
270         * tests/check-ebcdic: New file.
271         * tests/Makefile.in (check): Invoke it.
272         (SOURCE_FILES): Add it.
273         * NEWS: Mention the new functionality.
275 2023-03-31  Bruno Haible  <bruno@clisp.org>
277         Add some transliterations for mathematical symbols.
278         Based on <https://sourceware.org/bugzilla/show_bug.cgi?id=23132>
279         and the translit_neutral change in
280         <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=513aaa0d782f8fae36732d06ca59d658149f0139>.
281         Reported by Mike Fulton <mikefultonpersonal@gmail.com> in
282         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2023-03/msg00002.html>.
283         * lib/translit.def: Add a couple of transliterations in the range
284         U+27C0..U+29FF.
285         * NEWS: Mention it.
287 2023-03-31  Bruno Haible  <bruno@clisp.org>
289         Upgrade transliterations to Unicode 15.0.0.
290         * tools/gen-translit-def-part.lisp: Update comments.
291         * lib/translit.def: Include differences between the generated files
292         translit-part-4.0.0.def and translit-part-15.0.0.def.
294 2023-03-31  Bruno Haible  <bruno@clisp.org>
296         Make table of transliterations more maintainable.
297         * tools/gen-translit-def-part.lisp: New file.
298         * Makefile.in (SOURCE_FILES): Add it.
300 2023-03-31  Bruno Haible  <bruno@clisp.org>
302         Fix table of transliterations.
303         * lib/translit.def: Sort according to Unicode code point.
305 2023-02-13  Bruno Haible  <bruno@clisp.org>
307         Fix iconv link command for Cygwin.
308         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 .
309         Rationale: libintl may depends on libiconv.
310         * src/Makefile.in (install): On the link command line, mention libintl
311         before libiconv.
313 2023-01-29  Bruno Haible  <bruno@clisp.org>
315         Fix a clang warning "a function declaration without a prototype...".
316         * lib/loop_wchar.h (mbrtowc): Don't declare. Drop portability to BeOS.
318 2022-07-18  Bruno Haible  <bruno@clisp.org>
320         Make autopull.sh more suited for continuous integration.
321         * autopull.sh: Support option --one-time.
323 2022-07-18  Bruno Haible  <bruno@clisp.org>
325         Move gnulib-tool invocation back from autopull.sh to autogen.sh.
326         * autogen.sh: Revert last change. Improve comments.
327         * autopull.sh: Only call 'gitsub.sh pull'.
328         * HACKING: Mention autopull.sh.
330 2022-07-17  Bruno Haible  <bruno@clisp.org>
332         Split autogen.sh into autopull.sh and autogen.sh.
333         * autopull.sh: New file, based on autogen.sh.
334         * autogen.sh: Remove code that was moved to autopull.sh. Remove
335         --skip-gnulib option.
336         * Makefile.devel (all): Remove srclib/Makefile.gnulib.
337         * Makefile.in (SOURCE_FILES): Add autogen.sh.
338         * HACKING: Mention autopull.sh.
340 2022-05-22  Bruno Haible  <bruno@clisp.org>
342         Add GNU Project notice.
343         * JOIN-GNU: New file. Inspired by a suggestion from José E. Marchesi
344         on the gnu-prog-discuss mailing list.
345         * README: Refer to it.
346         * Makefile.in (SOURCE_FILES): Add it.
348 2022-05-15  Bruno Haible  <bruno@clisp.org>
350         Switch to libtool 2.4.7.
351         * m4/libtool.m4: Update from libtool-2.4.7, with modifications:
352         2008-04-06  Bruno Haible  <bruno@clisp.org>
353                 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
354                 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
355                 to ${CONFIG_SHELL}.
356         * m4/ltoptions.m4: Likewise.
357         * m4/ltsugar.m4: Likewise.
358         * m4/ltversion.m4: Likewise.
359         * m4/lt~obsolete.m4: Likewise.
360         * build-aux/ltmain.sh: Update from libtool-2.4.7, with modifications:
361         2017-07-15  Bruno Haible  <bruno@clisp.org>
362                 Allow building statically linked binaries, through
363                 LDFLAGS="-static". Apply patch from
364                 <https://lists.gnu.org/archive/html/bug-libtool/2017-07/msg00000.html>.
365                 * build-aux/ltmain.sh (func_mode_help, func_mode_link): In the
366                 link mode, accept option '-static-uninstalled-libs' in place of
367                 '-static', and make '-static' an equivalent of '-all-static'.
369 2022-04-13  Bruno Haible  <bruno@clisp.org>
371         Fix undefined behaviour.
372         * tests/test-shiftseq.c (main2): Make input array larger.
374 2022-02-12  Bruno Haible  <bruno@clisp.org>
376         Update translations.
377         * po/ro.po: Update Romanian translations.
378         * po/wa.po: Update Walloon translations.
380 2022-02-12  Bruno Haible  <bruno@clisp.org>
382         Prepare for version 1.17.
383         * configure.ac: Bump version number to 1.17.
384         * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
385         * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 9:0:7.
386         * src/iconv.c (print_version): Update copyright year.
387         * windows/iconv.rc: Likewise.
388         * windows/libiconv.rc: Likewise.
389         * README: Update download link.
391 2022-02-12  Bruno Haible  <bruno@clisp.org>
393         Update source file list (regression 2022-01-23).
394         * lib/Makefile.in (SOURCE_FILES): Add encodings_zos.def, ebcdic*.h.
395         (GENERATED_FILES): Add aliases_zos.h, canonical_zos.h.
396         * tests/Makefile.in (SOURCE_FILES): Add IBM-*.TXT.
398 2022-01-23  Bruno Haible  <bruno@clisp.org>
400         Update NEWS.
401         * NEWS: Mention the EBCDIC encodings.
403 2022-01-23  Bruno Haible  <bruno@clisp.org>
405         Optimize the EBCDIC table sizes.
406         * lib/converters.h (DEDUPLICATE_TABLES): New macro.
407         * lib/ebcdic1025.h: Deduplicate tables with ebcdic880.h.
408         * lib/ebcdic1123.h: Deduplicate tables with ebcdic1025.h.
409         * lib/ebcdic1132.h: Deduplicate tables with ebcdic838.h.
410         * lib/ebcdic1153.h: Deduplicate tables with ebcdic870.h.
411         * lib/ebcdic1154.h: Deduplicate tables with ebcdic880.h.
412         * lib/ebcdic1155.h: Deduplicate tables with ebcdic1026.h.
413         * lib/ebcdic1156.h: Deduplicate tables with ebcdic1112.h.
414         * lib/ebcdic1157.h: Deduplicate tables with ebcdic1122.h.
415         * lib/ebcdic1158.h: Deduplicate tables with ebcdic1154.h, ebcdic1123.h.
416         * lib/ebcdic1160.h: Deduplicate tables with ebcdic838.h.
417         * lib/ebcdic1164.h: Deduplicate tables with ebcdic1130.h.
418         * lib/ebcdic1165.h: Deduplicate tables with ebcdic870.h.
419         * lib/ebcdic1166.h: Deduplicate tables with ebcdic1154.h.
420         * lib/ebcdic4971.h: Deduplicate tables with ebcdic875.h.
421         * lib/ebcdic12712.h: Deduplicate tables with ebcdic424.h.
423 2022-01-23  Bruno Haible  <bruno@clisp.org>
425         New EBCDIC encodings.
426         Reported by Ulrich Schwab and Calvin Buckley via Jack Woehr.
427         * NOTES: Mention how to enable EBCDIC encodings.
428         * tests/IBM-*.TXT: New files.
429         * tools/8bit_tab_to_h.c (main): Emit copyright header with year 2022.
430         * tools/Makefile: Add rules for generating ebcdic*.h.
431         * lib/ebcdic*.h: New files, automatically generated by tools/Makefile.
432         * lib/ebcdic838.h: Tweak reverse mapping manually.
433         * lib/ebcdic1160.h: Likewise.
434         * lib/converters.h: Include all ebcdic*.h.
435         * lib/encodings_zos.def: New file.
436         * lib/genaliases2.c: Include encodings_zos.def.
437         * lib/genflags.c: Likewise.
438         * Makefile.devel (lib/aliases_zos.h lib/canonical_zos.h): New rule.
439         (lib/flags.h, totally-clean): Update.
440         * lib/aliases2.h: Include aliases_zos.h.
441         * lib/iconv.c (USE_ZOS): New macro.
442         Include encodings_zos.def, canonical_zos.h.
443         * README, man/iconv_open.3: Document the IBM-* encodings.
444         * tests/Makefile.in (check-extra-yes): Also test the EBCDIC encodings.
446 2022-01-04  Bruno Haible  <bruno@clisp.org>
448         Update after gnulib changed.
449         * gnulib-local/m4/alloca.m4 (gl_FUNC_ALLOCA): Set GL_GENERATE_ALLOCA_H
450         instead of ALLOCA_H. Drop AC_SUBST and AM_CONDITIONAL invocations.
452 2021-09-19  Bruno Haible  <bruno@clisp.org>
454         tests: Avoid check-subst failures in QEMU user-mode environments.
455         * Makefile.devel (GNULIB_MODULES): Add stdbool.
456         (gnulib-imported-files): Copy also tests/qemu.h.
457         * tests/is-native.c: New file.
458         * tests/Makefile.in (is-native, is-native.@OBJEXT@): New targets.
459         (clean): Remove the 'is-native' program.
460         (SOURCE_FILES): Add is-native.c.
461         (IMPORTED_FILES): Add qemu.h.
462         * tests/check-subst: Invoke 'locale charmap' only in native
463         environments.
465 2021-06-27  Bruno Haible  <bruno@clisp.org>
467         README: Update.
468         Reported at <https://savannah.gnu.org/bugs/?60837>.
469         * README: Overhaul the paragraph that mentions iconv.m4.
471 2021-06-06  Bruno Haible  <bruno@clisp.org>
473         gnulib-local: Put real license notice into the source files.
474         * gnulib-local/lib/alloca.in.h: Use an LGPLv2+ notice.
476 2021-02-28  Bruno Haible  <bruno@clisp.org>
478         Update DEPENDENCIES.
479         * DEPENDENCIES: List the normal dependencies of a package with an
480         Autoconf-generated configure file.
482 2021-02-07  Bruno Haible  <bruno@clisp.org>
484         Support creating shared libraries on MidnightBSD.
485         Patch from <https://savannah.gnu.org/patch/?10007>.
486         * m4/libtool.m4: Treat MidnightBSD like FreeBSD.
487         * build-aux/ltmain.sh: Likewise.
489 2021-01-31  Bruno Haible  <bruno@clisp.org>
491         Update after gnulib changed on 2020-08-26.
492         * configure.ac: Test $iconv_arg1, not $am_cv_proto_iconv_arg1.
494 2021-01-31  Bruno Haible  <bruno@clisp.org>
496         Switch to autoconf 2.71.
497         * autogen.sh: Update comment.
498         * configure.ac: Use AS_HELP_STRING instead of AC_HELP_STRING. Invoke
499         AC_C_BIGENDIAN instead of CL_WORDS_LITTLEENDIAN.
500         * m4/eilseq.m4: Require Autoconf >= 2.61.
501         (AC_EILSEQ): Improve quoting. Use AC_COMPUTE_INT instead of
502         _AC_COMPUTE_INT.
503         * m4/endian.m4: Remove file.
504         * Makefile.in (SOURCE_FILES): Remove it.
506 2020-12-08  Bruno Haible  <bruno@clisp.org>
508         Switch to autoconf 2.70.
509         * Makefile.devel (AUTOCONF, AUTOHEADER): Remove '-2.69' suffix.
510         * HACKING: Remove sentence about symbolic links.
511         * autogen.sh: Update comment.
513 2020-08-31  Bruno Haible  <bruno@clisp.org>
515         Fix some -Wcast-qual warning, reported by clang.
516         * lib/iconv.c (compare_by_name): Add more 'const'.
517         (iconv_canonicalize): Cast value to 'unsigned char', not pointer to 'unsigned char *'.
518         * lib/iconv_open1.h: Likewise.
520 2020-08-30  Bruno Haible  <bruno@clisp.org>
522         Make sure that build-aux/compile is in the tarball.
523         * autogen.sh: Fetch also 'build-aux/compile' through gnulib-tool.
524         * Makefile.devel (srclib/Makefile.in): Don't fetch nor delete
525         'build-aux/compile'.
526         * Makefile.in (AUTOMAKE_IMPORTED_FILES): Remove build-aux/compile.
527         (IMPORTED_FILES): Add build-aux/compile.
529 2020-08-29  Bruno Haible  <bruno@clisp.org>
531         Update after gnulib changed.
532         * configure.ac (AC_PREREQ): Bump minimum Autoconf version to 2.64.
534 2020-08-06  Bruno Haible  <bruno@clisp.org>
536         Avoid a GCC warning with GCC >= 7.
537         Reported by Reini Urban <rurban@cpan.org>
538         in <https://savannah.gnu.org/bugs/?58903>.
539         * lib/gentranslit.c (main): Reset i to 0 each time p gets a new value.
540         Add assertion about i's possible values.
542 2020-04-05  Bruno Haible  <bruno@clisp.org>
544         Fix an autogen.sh failure (regression from 2016-12-04).
545         Reported by Petr Ovtchenkov <ptr@void-ptr.info> in
546         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2020-04/msg00003.html>.
547         * autogen.sh: Invoke also the Makefile target srclib/Makefile.in, so as
548         to get build-aux/install-sh. Finish the "copy files" phase before recursing
549         through the subpackages tree through Makefile.devel.
550         * Makefile.devel: Reorder targets.
552 2020-04-04  Bruno Haible  <bruno@clisp.org>
554         Don't use LGPLv3.
555         * gnulib-local/modules/mbstate (License): Set to LGPLv2+.
557 2020-04-04  Bruno Haible  <bruno@clisp.org>
559         Change the license of the library from LGPL 2.0 to LGPL 2.1.
560         * COPYING.LIB: Upgrade to LGPL 2.1.
562 2019-12-23  Bruno Haible  <bruno@clisp.org>
564         Do export the symbol 'locale_charset' (needed by GNU bash).
565         * lib/Makefile.in (DEFS): Define also BUILDING_LIBCHARSET.
567 2019-09-01  Bruno Haible  <bruno@clisp.org>
569         build: Add support for shallow-cloning of subdirectories.
570         * gitsub.sh (func_usage): Document allowed git options with 'git pull'.
571         (func_pull): Accept GIT_OPTIONS argument.
572         (pull): Parse git options before complaining about too many arguments.
573         Pass the git options to func_pull.
575 2019-07-05  Bruno Haible  <bruno@clisp.org>
577         Don't export the symbol 'aliases_lookup' on non-ELF platforms.
578         * Makefile.devel (lib/aliases.h, lib/aliases_sysaix.h,
579         lib/aliases_syshpux.h, lib/aliases_sysosf1.h, lib/aliases_syssolaris.h):
580         Add a 'static' keyword in front of the declaration of aliases_lookup.
582 2019-07-02  Bruno Haible  <bruno@clisp.org>
584         Update to current gnulib.
585         * Makefile.devel (GNULIB_MODULES): Add lib-symbol-visibility.
586         (srclib/Makefile.gnulib): Copy codeset.m4.
587         * srclib/Makefile.am (AM_CFLAGS): Initialize.
589 2019-07-02  Bruno Haible  <bruno@clisp.org>
591         Drop unused macro gl_GLIBC21.
592         * autogen.sh: Don't copy glibc21.m4.
594 2019-05-22  Bruno Haible  <bruno@clisp.org>
596         Fix comment.
597         Reported by Paul Hardy <unifoundry@gmail.com>.
598         * lib/jisx0213.h: Fix comment about the underlying standard version.
600 2019-05-11  Bruno Haible  <bruno@clisp.org>
602         Update bug reporting instructions.
603         * README: Tell users to report bugs in the bug tracker or by email.
604         * src/iconv.c (usage): Likewise.
605         (print_version): Move URL out of translatable string.
607 2019-04-26  Bruno Haible  <bruno@clisp.org>
609         Update translations.
610         $ rsync -Lrtvz translationproject.org::tp/latest/libiconv/ po/new
611         $ cd po/new
612         $ for f in *.po; do \
613             msgmerge --update --lang=${f%.po} --previous $f ../libiconv.pot; \
614           done
615         $ mv *.po ../
616         $ cd ..; rm -rf new
618 2019-04-26  Bruno Haible  <bruno@clisp.org>
620         Update POT file.
621         $ cd po; make update-po
623 2019-04-26  Bruno Haible  <bruno@clisp.org>
625         Prepare for version 1.16.
626         * configure.ac: Bump version number to 1.16.
627         * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
628         * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 8:1:6.
629         * src/iconv.c (print_version): Update copyright year.
630         * windows/iconv.rc: Likewise.
631         * windows/libiconv.rc: Likewise.
632         * README: Update download link.
634 2019-04-26  Bruno Haible  <bruno@clisp.org>
636         Tweak exported symbols when --enable-relocatable is used.
637         * lib/Makefile.in (DEFS): Map 'relocate2' to a different symbol.
639 2019-04-01  Bruno Haible  <bruno@clisp.org>
641         build: Separate git operations from build operations.
642         * gitsub.sh: New file, from gnulib.
643         * .gitmodules: New file.
644         * autogen.sh: Remove all git operations. Look at GNULIB_SRCDIR
645         environment variable. Ignore the GNULIB_TOOL environment variable.
646         * HACKING: Explain when to use gitsub.sh.
648 2019-03-07  Bruno Haible  <bruno@clisp.org>
650         Avoid signed integer overflow during shifts.
651         Reported by Jeffrey Walton <noloader@gmail.com>.
652         * lib/tcvn.h (tcvn_wctomb): Use unsigned integer type for bit mask
653         operation.
654         * lib/viscii.h (viscii_wctomb): Likewise.
656 2019-03-04  Bruno Haible  <bruno@clisp.org>
658         Add support for --enable-relocatable to libcharset.
659         * autogen.sh: Copy some more files to libcharset/build-aux/ and
660         libcharset/m4/.
662 2019-03-04  Bruno Haible  <bruno@clisp.org>
664         Update --enable-relocatable support after gnulib changed.
665         * configure.ac: Move the LT_INIT invocation before the gl_RELOCATABLE
666         invocation. Remove unused argument to gl_RELOCATABLE.
668 2019-01-27  Bruno Haible  <bruno@clisp.org>
670         Accommodate a shell that is not in /bin/sh.
671         * Makefile.in (SHELL): Use the value found by configure.
672         * lib/Makefile.in (SHELL): Likewise.
673         * man/Makefile.in (SHELL): Likewise.
674         * src/Makefile.in (SHELL): Likewise.
675         * tests/Makefile.in (SHELL): Likewise.
676         (check, check-extra-yes): Use SHELL to run the check-* scripts.
678 2019-01-27  Bruno Haible  <bruno@clisp.org>
680         Update after gnulib changed.
681         * Makefile.in (GNULIB_IMPORTED_FILES): Remove build-aux/snippet/*.
683 2019-01-27  Bruno Haible  <bruno@clisp.org>
685         Update support for building with MSVC. Automake does not install ar-lib.
686         * autogen.sh: Fetch build-aux/ar-lib here.
687         * Makefile.devel (srclib/Makefile.in): Don't fetch build-aux/ar-lib
688         here.
689         * Makefile.in (AUTOMAKE_IMPORTED_FILES): Remove build-aux/ar-lib.
690         (IMPORTED_FILES): Add build-aux/ar-lib.
692 2019-01-06  Bruno Haible  <bruno@clisp.org>
694         Revisit handling of file descriptors closed by the parent process.
695         * src/iconv.c (main): Add comment.
697 2018-10-23  Bruno Haible  <bruno@clisp.org>
699         Remove outdated DJGPP build infrastructure.
700         Approved by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
701         * djgpp: Remove directory.
702         * INSTALL.djgpp: Remove file.
703         * Makefile.in (SOURCE_FILES): Remove them.
705 2018-10-23  Bruno Haible  <bruno@clisp.org>
707         Update after gnulib changed.
708         * configure.ac (AC_PREREQ): Bump minimum Autoconf version to 2.63.
710 2018-09-22  Bruno Haible  <bruno@clisp.org>
712         Avoid some warnings in MSVC build.
713         * include/export.h: Handle MSVC compiler as well.
715 2018-09-22  Bruno Haible  <bruno@clisp.org>
717         Update from gnulib. Move mapping tables into the code.
718         * autogen.sh: Don't create libcharset/m4/relocatable-lib.m4.
719         * Makefile.in (mostlyclean, clean, distclean, maintainer-clean): Don't
720         remove lib/charset.alias.
721         * tests/check-subst: Don't set CHARSETALIASDIR.
723 2018-05-04  Bruno Haible  <bruno@clisp.org>
725         Drop special instructions for OSF/1.
726         * INSTALL.generic: Remove the recommendation for OSF/1.
728 2018-05-04  Bruno Haible  <bruno@clisp.org>
730         Simplify: Remove the ability to install a preloadable library.
731         * preload/*: Remove directory.
732         * Makefile.devel: Don't recurse into 'preload'.
733         * Makefile.in: Likewise.
734         * configure.ac: Don't declare 'preload' as a subdirectory.
735         * README, NEWS: Update.
737 2018-05-04  Bruno Haible  <bruno@clisp.org>
739         Simplify code. Drop support for Borland C++ on Windows.
740         * lib/iconv.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
741         'defined _WIN32'.
742         * lib/iconv_open1.h: Likewise.
744 2018-05-04  Bruno Haible  <bruno@clisp.org>
746         * lib/relocatable.c: Update from gnulib.
748 2018-05-04  Bruno Haible  <bruno@clisp.org>
750         Switch to automake 1.16.
751         * autogen.sh: Update comment.
752         * Makefile.devel (AUTOMAKE, ACLOCAL): Switch to version 1.16.
753         * libcharset/Makefile.devel (ACLOCAL): Likewise.
754         * preload/Makefile.devel (ACLOCAL): Likewise.
756 2018-03-27  Bruno Haible  <bruno@clisp.org>
758         Doc tweaks.
759         * README: Don't recommend to use --prefix=/usr/local, as it produces
760         problems with GCC (since GCC's treatment of /usr/local/include and
761         /usr/local/lib is inconsistent by default). Don't recommend to use
762         the iconv.m4 installed by GNU gettext, because it won't work when
763         GNU automake and GNU gettext are installed with different --prefix
764         options; instead recommend the 'iconv' module from gnulib.
766 2018-01-27  Bruno Haible  <bruno@clisp.org>
768         Rename some files.
769         * INSTALL.windows: Renamed from README.windows.
770         * INSTALL.djgpp: Renamed from README.djgpp.
771         * Makefile.in (SOURCE_FILES): Update.
773 2018-01-03  Bruno Haible  <bruno@clisp.org>
775         Fix installation in 64-bit mode on AIX.
776         * lib/Makefile.in (AR): New variable.
777         (install): Use it instead of hardcoding 'ar'.
779 2017-11-26  Bruno Haible  <bruno@clisp.org>
781         Avoid end-of-lines problem in generated shell scripts on Cygwin.
782         Patch by Feiyun Wang <feiyunw@yahoo.com>.
783         * lib/genaliases.c (main): Create canonical.sh and canonical_local.sh
784         with Unix end-of-line characters, regardless of Cygwin choice of
785         text mode vs. binary mode.
787 2017-07-15  Bruno Haible  <bruno@clisp.org>
789         Allow building statically linked binaries, through LDFLAGS="-static".
790         Apply patch from
791         <https://lists.gnu.org/archive/html/bug-libtool/2017-07/msg00000.html>.
792         * build-aux/ltmain.sh (func_mode_help, func_mode_link): In the link
793         mode, accept option '-static-uninstalled-libs' in place of '-static',
794         and make '-static' an equivalent of '-all-static'.
796 2017-07-15  Bruno Haible  <bruno@clisp.org>
798         Don't attempt to build preloadable_libiconv.so when linking statically.
799         * preload/configure.ac (enable_shared, enable_static): Don't force
800         shared libraries when LDFLAGS indicates static linking.
801         (PLUGLIB): Set to empty when is not configured for building shared
802         libraries.
804 2017-07-15  Bruno Haible  <bruno@clisp.org>
806         Get rid of autom4te.cache directories, as far as possible.
807         * Makefile.devel (srclib/Makefile.in, aclocal.m4, configure,
808         config.h.in): Remove autom4te.cache after invoking aclocal, autoconf,
809         autoheader, automake.
810         * preload/Makefile.devel (aclocal, configure): Likewise.
812 2017-05-18  Bruno Haible  <bruno@clisp.org>
814         * lib/relocatable.h: Update from gnulib.
815         * lib/relocatable.c: Update from gnulib.
817 2017-01-30  Bruno Haible  <bruno@clisp.org>
819         Prepare for version 1.15.
820         * src/iconv.c (print_version): Update copyright year.
821         * windows/iconv.rc: Likewise.
822         * windows/libiconv.rc: Likewise.
824 2016-12-29  Bruno Haible  <bruno@clisp.org>
826         Make Makefile.devel consistent with .gitignore.
827         * Makefile.devel (srclib/Makefile.in): Depend on aclocal.m4.
828         (totally-clean): Remove also aclocal.m4.
830 2016-12-25  Bruno Haible  <bruno@clisp.org>
832         Tweak autogen.sh.
833         * autogen.sh: Emit a "done" diagnostic when autogen.sh completed
834         successfully.
836 2016-12-25  Bruno Haible  <bruno@clisp.org>
838         Reorder Makefile.devel.
839         * Makefile.devel: Reorder: put gnulib targets before autotools targets.
841 2016-12-14  Bruno Haible  <bruno@clisp.org>
843         Cleanup useless removals.
844         * lib/Makefile.in (distclean): No need to remove 'libtool'.
846 2016-12-04  Bruno Haible  <bruno@clisp.org>
848         Update comments.
849         * Makefile.devel: Update comments about release process.
851 2016-12-04  Bruno Haible  <bruno@clisp.org>
853         Create tarballs through an Automake-like "make dist" command.
854         * Makefile.in (SOURCE_FILES, LIBTOOL_IMPORTED_FILES,
855         AUTOMAKE_OLD_IMPORTED_FILES, AUTOMAKE_IMPORTED_FILES, IMPORTED_FILES,
856         GENERATED_FILES, DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
857         (distdir): New target.
858         (PACKAGE, VERSION, TAR, GZIP): New macros.
859         (dist): New target.
860         * lib/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
861         DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
862         (distdir): New target.
863         * man/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
864         DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
865         (distdir): New target.
866         * preload/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
867         DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
868         (distdir): New target.
869         * src/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
870         DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
871         (distdir): New target.
872         * tests/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
873         DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
874         (distdir): New target.
876 2016-12-04  Bruno Haible  <bruno@clisp.org>
878         Remove duplicates of imported files from version control.
879         * autogen.sh: Copy imported files to libcharset.
881 2016-12-04  Bruno Haible  <bruno@clisp.org>
883         Always use the newest released copies of files brought in from Automake.
884         * Makefile.devel (srclib/Makefile.in): Make sure to get new versions of
885         files brought in by automake.
886         * build-aux/install-sh: Remove from version control.
887         * build-aux/missing: Likewise.
889 2016-12-04  Bruno Haible  <bruno@clisp.org>
891         Always use the newest copies of config.guess, config.sub.
892         * Makefile.devel (gnulib-imported-files): New target.
893         * autogen.sh: Invoke it.
894         * build-aux/config.guess: Remove from version control.
895         * build-aux/config.sub: Likewise.
897 2016-12-04  Bruno Haible  <bruno@clisp.org>
899         Always use the newest copy of fcntl-o.m4.
900         * m4/fcntl-o.m4: Remove file. Rely on srcm4/fcntl-o.m4 instead.
902 2016-12-04  Bruno Haible  <bruno@clisp.org>
904         Remove obsolete documentation.
905         * PORTS: Remove file.
907 2016-12-03  Bruno Haible  <bruno@clisp.org>
909         Make Makefile.devel more useful for the users of the released tarball.
910         * Makefile.devel (srclib/Makefile.gnulib): Don't force this target.
911         (gnulib-clean): New target.
912         (totally-clean): New target. Do the removals from autogen.sh. Also,
913         remove lib/aliases*.gperf, lib/canonical*.h, man/iconvctl.3.html,
914         man/iconv_open_into.3.html.
915         * autogen.sh: Invoke target gnulib-clean before srclib/Makefile.gnulib.
916         Invoke target totally-clean before all.
917         * preload/Makefile.devel (totally-clean): New target.
919 2016-12-03  Bruno Haible  <bruno@clisp.org>
921         Modernize configure.ac.
922         * configure.ac: Use 2-argument AC_INIT. Avoid an AM_INIT_AUTOMAKE
923         warning.
924         * preload/configure.ac: Use 2-argument AC_INIT. Use AC_CONFIG_SRCDIR.
926 2016-12-03  Bruno Haible  <bruno@clisp.org>
928         Towards reproducible builds.
929         * Makefile.devel (man/%.html): Remove the CreationDate comment line
930         from the output.
932 2016-12-04  Bruno Haible  <bruno@clisp.org>
934         Update to gettext-0.19.8.1.
935         * ABOUT-NLS: Update through 'gettextize'.
937 2016-12-03  Bruno Haible  <bruno@clisp.org>
939         Update documentation.
940         * HACKING: Refer to the Git repository.
942 2016-12-03  Bruno Haible  <bruno@clisp.org>
944         Avoid compilation warnings in 'genflags' program.
945         * lib/genflags.c: Avoid warnings from GCC's -Wunused-function option.
947 2016-12-02  Bruno Haible  <bruno@clisp.org>
949         * relocatable.c: Update from gnulib.
951 2016-11-25  Bruno Haible  <bruno@clisp.org>
953         Prepare for version 1.15.
954         * configure.ac: Bump version number to 1.15.
955         * README: Likewise.
956         * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
957         * windows/iconv.rc: Update.
958         * windows/libiconv.rc: Update.
959         * Makefile.devel: Update comments.
960         * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 8:0:6.
961         * src/iconv.c (print_version): Update copyright year.
963 2016-11-23  Bruno Haible  <bruno@clisp.org>
965         Update installation instructions for Windows.
966         * README.windows: Assume a 64-bit Windows. Explain both 32-bit and
967         64-bit builds. Add instructions for the MS Visual C/C++ tool chain.
968         Revamp instructions for Cygwin.
970 2016-11-23  Bruno Haible  <bruno@clisp.org>
972         Drop the nickname "woe32".
973         * README.windows: Renamed from README.woe32.
975 2016-11-22  Bruno Haible  <bruno@clisp.org>
977         Update support for building with MSVC.
978         * Makefile.devel (srclib/Makefile.in): Import 'ar-lib' and 'compile'
979         from gnulib.
980         * lib/Makefile.in (install-lib, install): Install the .la file with
981         $(INSTALL), not $(INSTALL_DATA). Otherwise the native Windows DLL gets
982         installed without execution permissions, and programs linked to it fail:
983         in a Cygwin shell with exit code 127, or from a cmd.exe window with a
984         dialog "The application was unable to start correctly (0xc0000022)."
986 2016-11-19  Bruno Haible  <bruno@clisp.org>
988         Fix link error when compiling with gcc -O0.
989         * lib/iconv.c (aliases2_lookup): Make static.
990         Reported by Chung-Lin Tang <chunglin.tang@gmail.com>
991         at https://savannah.gnu.org/bugs/?47953 .
993 2016-11-17  Bruno Haible  <bruno@clisp.org>
995         UTF-8: Reject surrogates and out-of-range code points.
996         * lib/utf8.h (utf8_mbtowc, utf8_wctomb): Reject code points in the
997         range 0xD800..0xDFFF and >= 0x110000.
998         * tests/genutf8.c (main): Don't emit mappings for 0xD800..0xDFFF.
1000 2016-10-22  Bruno Haible  <bruno@clisp.org>
1002         Switch to libtool 2.4.6.
1003         * m4/libtool.m4: Update from libtool-2.4.6, with modifications:
1004         2008-04-06  Bruno Haible  <bruno@clisp.org>
1005                 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
1006                 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
1007                 to ${CONFIG_SHELL}..
1008         * m4/ltoptions.m4: Likewise.
1009         * m4/ltversion.m4: Likewise.
1010         * build-aux/ltmain.sh: Likewise.
1012 2016-10-14  Bruno Haible  <bruno@clisp.org>
1014         Use 'size_t', not 'int', for the length of a string.
1015         * lib/iconv.c: Include <limits.h>.
1016         * lib/genflags.c: Likewise.
1017         * lib/converters.h (struct mbtowc_funcs, struct wctomb_funcs): Change
1018         'int n' parameter to 'size_t n'.
1019         (RET_COUNT_MAX): New macro.
1020         * lib/*.h: Use 'size_t n' instead of 'int n'.
1021         * lib/ucs2.h (ucs2_mbtowc): Make sure 'count' does not cause an 'int'
1022         overflow.
1023         * lib/ucs4.h (ucs4_mbtowc): Likewise.
1024         * lib/utf16.h (utf16_mbtowc): Likewise.
1025         * lib/utf32.h (utf32_mbtowc): Likewise.
1026         * tools/8bit_tab_to_h.c: Generate function signatures with 'size_t n'.
1027         * tools/cjk_tab_to_h.c: Likewise.
1028         * NEWS: Mention the change.
1030 2016-10-04  Bruno Haible  <bruno@clisp.org>
1032         Extend CP1255 mapping.
1033         * lib/cp1255.h (cp1255_2uni, cp1255_page05): Map 0xCA to U+05BA.
1034         * tests/CP1255.TXT: Likewise.
1035         This matches https://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WindowsBestFit/bestfit1255.txt
1036         and what the native Windows converter does since at least Windows XP.
1038 2016-10-01  Ben Noordhuis  <info@bnoordhuis.nl>  (tiny change)
1039             Bruno Haible  <bruno@clisp.org>
1041         Remove large stack requirement from gentranslit.
1042         * lib/gentranslit.c (main): Heap-allocate large arrays.
1043         * Makefile.devel (lib/translit.h): Remove 'ulimit -s unlimited' command.
1045 2015-12-10  Ben Noordhuis  <info@bnoordhuis.nl>  (tiny change)
1047         Remove unused array from gentranslit.
1048         * lib/gentranslit.c (main): Remove unused array.
1049         * Makefile.devel (CC): Add -Wall option.
1050         Reported in https://savannah.gnu.org/bugs/?46663 .
1052 2016-10-01  Bruno Haible  <bruno@clisp.org>
1054         Fix bug #41187.
1055         * src/iconv.c (main): Increment i after parsing the --silent option.
1056         Reported in https://savannah.gnu.org/bugs/?41187 .
1058 2016-10-01  Bruno Haible  <bruno@clisp.org>
1060         Update to current gnulib.
1061         * Makefile.devel (GNULIB_MODULES): Remove memmove.
1062         * tests/Makefile.in (INCLUDES): Make sure to include the top-level
1063         "config.h". Needed for the 'binary-io' module.
1065 2016-10-01  Bruno Haible  <bruno@clisp.org>
1067         Switch to automake 1.15.
1068         * autogen.sh: Update comment.
1069         * Makefile.devel (AUTOMAKE, ACLOCAL): Switch to version 1.15.
1070         (srclib/Makefile.in): Don't remove auxiliary files brought in by
1071         automake.
1072         * preload/Makefile.devel (ACLOCAL): Switch to version 1.15.
1073         * srclib/Makefile.am (AUTOMAKE_OPTIONS): Add subdir-objects.
1074         * build-aux/missing: Update from automake-1.15.
1076 2016-10-01  Bruno Haible  <bruno@clisp.org>
1078         Remove autogenerated doc files from version control.
1079         * man/iconvctl.3.html: Remove file.
1080         * man/iconv_open_into.3.html: Remove file.
1082 2012-12-06  Bruno Haible  <bruno@clisp.org>
1084         Change copyright holder of man pages.
1085         * man/*.[13]: Replace myself with FSF.
1087 2012-06-30  Bruno Haible  <bruno@clisp.org>
1089         Make it possible to run 'genaliases2' on native Windows.
1090         * lib/genaliases2.c (main): Expect 3 arguments. Open the output files
1091         explicitly. Complain if they don't exist.
1092         * Makefile.devel (lib/aliases_*.h): Pass the output filenames as
1093         arguments to genaliases.
1094         Reported at <https://savannah.gnu.org/bugs/?36748>.
1096         Make it possible to run 'genaliases' on native Windows.
1097         * lib/genaliases.c (main): Expect 3 arguments. Open the output files
1098         explicitly. Complain if they don't exist. Improve error checking.
1099         * Makefile.devel (lib/aliases*.h): Pass the output filenames as
1100         arguments to genaliases.
1101         Reported at <https://savannah.gnu.org/bugs/?36748>.
1103 2012-05-13  Bruno Haible  <bruno@clisp.org>
1105         Tweak the GB18030 converter to map 0x8135F437 to U+E7C7.
1106         * lib/gb18030.h (gb18030_pua2charset, gb18030_wctomb): Remove mapping
1107         from U+E7C7 to 0xA8BC.
1108         * lib/gb18030uni.h (gb18030uni_mbtowc): Treat 0x8135F437 as a special
1109         case.
1110         (gb18030uni_wctomb): Treat U+E7C7 as a special case.
1111         * tests/GB18030-BMP.TXT: Map 0x8135F437 to U+E7C7, not U+1E3F.
1112         * tests/GB18030.IRREVERSIBLE.TXT: Remove irreversible mappings for
1113         0x8135F437 and U+E7C7.
1115 2012-04-28  Bruno Haible  <bruno@clisp.org>
1117         Switch to autoconf 2.69 and automake 1.12.
1118         * autogen.sh: Update comment.
1119         * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.69.
1120         (AUTOMAKE, ACLOCAL): Switch to version 1.12.
1121         * preload/Makefile.devel (AUTOCONF): Switch to version 2.69.
1122         (ACLOCAL): Switch to version 1.12.
1124 2012-03-24  Bruno Haible  <bruno@clisp.org>
1126         Avoid a GCC warning.
1127         * lib/isoir165.h (isoir165_mbtowc): Don't shadow the 'ret' variable.
1129 2012-01-26  Bruno Haible  <bruno@clisp.org>
1131         Modernize quoting.
1132         * README: Quote 'like this', not `like this', as per the recent change
1133         to the GNU coding standards.
1134         * NOTES: Likewise.
1135         * gnulib-local/lib/xmalloc.c: Likewise.
1136         * lib/config.h.in: Likewise.
1137         * src/iconv.c (usage): Likewise.
1138         * tests/uniq-u.c: Likewise.
1139         * tools/cjk_tab_to_h.c (output_uni2charset_sparse, do_jisx0213):
1140         Likewise.
1141         * lib/big5.h: Update accordingly.
1142         * lib/cns11643_inv.h: Likewise.
1143         * lib/cp932ext.h: Likewise.
1144         * lib/cp950ext.h: Likewise.
1145         * lib/gb12345ext.h: Likewise.
1146         * lib/gb2312.h: Likewise.
1147         * lib/gbkext_inv.h: Likewise.
1148         * lib/hkscs1999.h: Likewise.
1149         * lib/hkscs2001.h: Likewise.
1150         * lib/hkscs2004.h: Likewise.
1151         * lib/hkscs2008.h: Likewise.
1152         * lib/isoir165ext.h: Likewise.
1153         * lib/jisx0208.h: Likewise.
1154         * lib/jisx0212.h: Likewise.
1155         * lib/jisx0213.h: Likewise.
1156         * lib/ksc5601.h: Likewise.
1157         * lib/uhc_1.h: Likewise.
1158         * lib/uhc_2.h: Likewise.
1160 2012-01-15  Bruno Haible  <bruno@clisp.org>
1162         Support for MSVC 9.
1163         * lib/config.h.in (inline, mode_t, ssize_t): Copy snippets from top
1164         config.h.in.
1165         * tests/genutf8.c: Include config.h.
1166         * tests/gengb18030z.c: Likewise.
1167         * woe32dll/export.h (VARIABLE): Define to empty if not using GCC.
1169 2011-01-28  Bruno Haible  <bruno@clisp.org>
1171         Add a comment.
1172         * woe32dll/export.h: Add a reference to the woe32dll writeup.
1174 2012-01-06  Bruno Haible  <bruno@clisp.org>
1176         Update after gnulib changed.
1177         * gnulib-local/lib/error.h.diff: Update.
1179 2012-01-06  Bruno Haible  <bruno@clisp.org>
1181         Talk about "native Windows API", not "Woe32".
1182         * lib/relocatable.c: Update comments to mention native Windows.
1184 2012-01-04  Bruno Haible  <bruno@clisp.org>
1186         Talk about "native Windows API", not "Win32".
1187         * lib/relocatable.c: Update comments to mention native Windows.
1188         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1190 2011-10-27  Bruno Haible  <bruno@clisp.org>
1192         Fix bug with error handling in UCS-2, UCS-4, UTF-32 decoders.
1193         * lib/ucs2.h (ucs2_mbtowc): Increment count only after validating wc.
1194         * lib/ucs4.h (ucs4_mbtowc): Likewise.
1195         * lib/utf32.h (utf32_mbtowc): Likewise.
1196         Reported at <https://savannah.gnu.org/bugs/?34916>.
1198 2012-06-30  Bruno Haible  <bruno@clisp.org>
1200         Improve ISO-2022-CP-MS versus CP932.
1201         * lib/iso2022_jpms.h (iso2022_jpms_mbtowc): Recognize characters from
1202         the rows 0x79..0x7C as rows from CP932.
1203         * tests/ISO-2022-JP-MS-snippet.alt: New file, renamed from
1204         tests/ISO-2022-JP-MS-snippet.
1205         * tests/ISO-2022-JP-MS-snippet.UTF-8: Update the rows that correspond
1206         to ESC $ B 0x79..0x7C.
1207         * tests/ISO-2022-JP-MS-snippet: Likewise.
1208         * tests/check-stateful: Also test the *-snippet.alt file if it exists.
1209         * tests/check-stateful.bat: Likewise.
1211 2012-06-30  Bruno Haible  <bruno@clisp.org>
1213         Improve ISO-2022-CP-MS versus CP932.
1214         * lib/cp50221_0208_ext.h (cp50221_0208_ext_page30): Map U+301D like
1215         U+301E.
1216         * lib/iso2022_jpms.h (iso2022_jpms_wctomb): Map U+663B to JISX0208
1217         0x7A 0x36, U+FFE2 to 0x7C 0x7B, U+FFE4 to 0x7C 0x7C.
1218         Reported by Jeff Diehl <diehl.jeff@gmail.com>.
1220 2011-10-23  Bruno Haible  <bruno@clisp.org>
1222         New encoding ISO-2022-CP-MS.
1223         * NOTES: Mention ISO-2022-JP-MS.
1224         * tools/CP50221-0208-EXT.TXT: New file.
1225         * tools/CP50221-0212-EXT.TXT: New file.
1226         * tools/8bit_tab_to_h.c: Add comments about how to generate
1227         cp50221_0208_ext.h, cp50221_0212_ext.h.
1228         * tools/Makefile: Add rules for generating cp50221_0208_ext.h,
1229         cp50221_0212_ext.h.
1230         * lib/cp50221_0208_ext.h: New file, mostly generated.
1231         * lib/cp50221_0212_ext.h: New file, mostly generated.
1232         * lib/iso2022_jpms.h: New file.
1233         * lib/converters.h: Include it.
1234         * lib/encodings.def: Add ISO-2022-JP-MS.
1235         * README, man/iconv_open.3: Add ISO-2022-JP-MS.
1236         * tests/ISO-2022-JP-MS-snippet: New file.
1237         * tests/ISO-2022-JP-MS-snippet.UTF-8: New file.
1238         * tests/Makefile.in (check): Also test ISO-2022-JP-MS.
1239         Reported by Jeff Diehl <diehl.jeff@gmail.com>.
1241 2011-10-23  Bruno Haible  <bruno@clisp.org>
1243         * lib/encodings.def: Add comments about Windows names of encodings.
1245 2011-10-18  Bruno Haible  <bruno@clisp.org>
1247         * m4/libtool.m4: Update from libtool-2.4.2, with modifications:
1248         2008-04-06  Bruno Haible  <bruno@clisp.org>
1249                 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
1250                 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
1251                 to ${CONFIG_SHELL}..
1252         * m4/ltoptions.m4: Likewise.
1253         * m4/ltversion.m4: Likewise.
1254         * build-aux/ltmain.sh: Likewise.
1256 2011-10-03  Bruno Haible  <bruno@clisp.org>
1258         * lib/relocatable.c: Update from gnulib.
1260 2011-09-02  Bruno Haible  <bruno@clisp.org>
1262         Fix "make check" failure when $(srcdir) != $(builddir).
1263         * tests/Makefile.in (check): When $(srcdir) != ., temporarily copy
1264         GB18030.IRREVERSIBLE.TXT into the build directory.
1265         Reported by Christian Weisgerber <naddy@mips.inka.de>.
1267 2011-08-07  Bruno Haible  <bruno@clisp.org>
1269         Ensure all HTML-formatted man pages are up-to-date.
1270         * Makefile.devel (all): Depend on man/iconvctl.3.html and
1271         man/iconv_open_into.3.html.
1273 2011-08-07  Bruno Haible  <bruno@clisp.org>
1275         * Version 1.14 released.
1277 2011-08-07  Bruno Haible  <bruno@clisp.org>
1279         * configure.ac: Bump version number to 1.14.
1280         * README: Likewise.
1281         * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
1282         * windows/iconv.rc: Update.
1283         * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 7:1:5.
1284         * src/iconv.c (print_version): Update copyright year.
1286 2011-08-07  Bruno Haible  <bruno@clisp.org>
1288         Avoid a test failure on Solaris 2.6 and HP-UX 11.00.
1289         * tests/test-to-wchar.c (main): Skip the test if conversion to wchar_t
1290         is not supported.
1292 2011-08-07  Bruno Haible  <bruno@clisp.org>
1294         * tests/check-subst: Add comments about OSF/1.
1296 2011-08-07  Bruno Haible  <bruno@clisp.org>
1298         * lib/relocatable.c: Update from gnulib.
1300 2011-08-06  Bruno Haible  <bruno@clisp.org>
1302         Upgrade the GB18030 converter to the version from 2005.
1303         * lib/gb18030ext.h (gb18030ext_2uni_pagefe): Change element type to
1304         'unsigned int'. Change values for 0xFE51..0xFE53, 0xFE59, 0xFE61,
1305         0xFE66, 0xFE67, 0xFE6C, 0xFE6D, 0xFE76, 0xFE7E, 0xFE90, 0xFE91, 0xFEA0.
1306         (gb18030ext_mbtowc): Change type of wc to 'unsigned int'. Change values
1307         for 0xA6D9..0xA6DF, 0xA6EC..0xA6ED, 0xA6F3, 0xA8BC.
1308         (gb18030ext_page9f, gb18030ext_pagefe): New constant arrays.
1309         (gb18030ext_wctomb): Change values for U+1E3F, U+9FB4..U+9FBB,
1310         U+FE10..U+FE19, U+20087, U+20089, U+200CC, U+215D7, U+2298F, U+241FE.
1311         * tests/GB18030-BMP.TXT: Change values for 0xA6D9..0xA6DF,
1312         0xA6EC..0xA6ED, 0xA6F3, 0xA8BC, 0xFE51..0xFE53, 0xFE59, 0xFE61, 0xFE66,
1313         0xFE67, 0xFE6C, 0xFE6D, 0xFE76, 0xFE7E, 0xFE90, 0xFE91, 0xFEA0, to map
1314         to now-assigned Unicode codepoints.
1315         * tests/GB18030.IRREVERSIBLE.TXT: New file.
1317 2011-08-06  Bruno Haible  <bruno@clisp.org>
1319         Fix conversion bug in CP1258 converter.
1320         * lib/vietcomb.h (viet_comp_table_data): Remove entry for
1321         U+00A5 U+0301. Fix entry for U+00A8 U+0301.
1322         (viet_decomp_table): Fix entry for U+0385.
1323         * tests/CP1258.IRREVERSIBLE.TXT: Update.
1324         Reported by Gertjan Halkes <gertjan@ghalkes.nl>.
1326 2011-07-03  Bruno Haible  <bruno@clisp.org>
1328         Improve interactive behaviour of iconv program.
1329         * src/iconv.c (convert): Flush the output before starting a possibly
1330         blocking safe_read call.
1332 2011-07-03  Bruno Haible  <bruno@clisp.org>
1334         Fix interactive behaviour of iconv program.
1335         * Makefile.devel (GNULIB_MODULES): Add safe-read.
1336         * src/iconv.c: Include safe-read.h.
1337         (convert): Take the infile as a file descriptor, not as a FILE stream.
1338         Use safe_read() instead of fread().
1339         (main): Update.
1340         Reported by Xavier Pucel <xpucel@hotmail.com>.
1342 2011-05-02  Bruno Haible  <bruno@clisp.org>
1344         Update after gnulib changed.
1345         * autogen.sh (GNULIB_MODULES): Remove exit, add stdlib.
1347 2011-06-02  Bruno Haible  <bruno@clisp.org>
1349         Update after gnulib changed.
1350         * gnulib-local/m4/alloca.m4 (gl_FUNC_ALLOCA): Update.
1352 2011-06-04  Bruno Haible  <bruno@clisp.org>
1354         Work around <wchar.h> bug on OSF/1 5.1.
1355         * lib/loop_wchar.h: Before including <wchar.h>, include <stdio.h> and
1356         some other includes.
1358 2011-03-27  KO Myung-Hun  <komh@chollian.net>
1360         Fix installation on OS/2.
1361         * src/Makefile.in (all, iconv_no_i18n): Add $(EXEEXT) suffix to
1362         iconv_no_i18n. This is the recommended way to use libtool, see
1363         <https://lists.gnu.org/archive/html/bug-libtool/2009-04/msg00013.html>.
1365 2011-03-31  Bruno Haible  <bruno@clisp.org>
1367         gentranslit: Fix buffer overrun.
1368         * lib/gentranslit.c (main): Allocate more room for the suffix strings
1369         of the translit pages.
1370         Reported by Ben Noordhuis <info@bnoordhuis.nl>.
1372 2011-02-28  Bruno Haible  <bruno@clisp.org>
1374         * lib/relocatable.h: Update from gnulib.
1375         * lib/relocatable.c: Likewise.
1377 2011-01-29  Corinna Vinschen  <corinna-cygwin@cygwin.com>
1378             Bruno Haible  <bruno@clisp.org>
1380         Simplify "wchar_t" handling on Cygwin 1.7.x.
1381         * lib/iconv.c (iconv_canonicalize): On Cygwin >= 1.7, map
1382         ei_local_wchar_t to ei_utf16le or ei_utf16be, not ei_ucs2internal.
1383         * lib/iconv_open1.h: Likewise.
1384         Rationale: <https://cygwin.com/ml/cygwin/2011-01/msg00410.html>.
1386 2011-01-29  Bruno Haible  <bruno@clisp.org>
1388         Adjust the meaning of "wchar_t" on native Windows systems.
1389         * lib/iconv.c (iconv_canonicalize): On native Windows, map
1390         ei_local_wchar_t to ei_utf16le or ei_utf16be, not ei_ucs2internal.
1391         * lib/iconv_open1.h: Likewise.
1392         Reported by Corinna Vinschen <corinna-cygwin@cygwin.com>
1393         in <https://cygwin.com/ml/cygwin/2011-01/msg00410.html>.
1395 2010-11-23  Bruno Haible  <bruno@clisp.org>
1397         Implement newer release of BIG5-HKSCS.
1398         * tools/Makefile (ALL): Add hkscs2008.h.
1399         (hkscs2008.h): New rule.
1400         * tools/cjk_tab_to_h.c (main): Recognize hkscs2008.
1401         * lib/encodings.def: Add BIG5-HKSCS:2008. Change BIG5-HKSCS alias to be
1402         equivalent to BIG5-HKSCS:2008.
1403         * lib/hkscs2008.h: New file, autogenerated.
1404         * lib/big5hkscs2008.h: New file, based on lib/big5hkscs2004.h.
1405         * lib/converters.h: Include the new file.
1406         * README, man/iconv_open.3: Add BIG5-HKSCS:2004.
1407         * tests/BIG5-HKSCS-2008.TXT: New file, based on
1408         tests/BIG5-HKSCS-2004.TXT.
1409         * tests/BIG5-HKSCS-2008.IRREVERSIBLE.TXT: New file, copied from
1410         tests/BIG5-HKSCS-2004.IRREVERSIBLE.TXT
1411         * tests/BIG5-HKSCS-2008-snippet: New file, based on
1412         tests/BIG5-HKSCS-2004-snippet.
1413         * tests/BIG5-HKSCS-2008-snippet.UTF-8: New file, based on
1414         tests/BIG5-HKSCS-2004-snippet.UTF-8.
1415         * tests/Makefile.in (check): Check also BIG5-HKSCS:2008.
1416         Reported by oCameLo <camel322@gmail.com>.
1418 2010-11-23  Bruno Haible  <bruno@clisp.org>
1420         Make cjk_tab_to_h 64-bit clean.
1421         * tools/cjk_tab_to_h.c (do_jisx0213): Add a cast from size_t to int.
1422         (output_title): Update copyright year.
1424 2010-09-23  Bruno Haible  <bruno@clisp.org>
1426         Switch to autoconf 2.68.
1427         * autogen.sh: Update comment.
1428         * configure.ac: Fix AC_COMPILE_IFELSE invocation.
1429         * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.68.
1430         * preload/Makefile.devel (AUTOCONF): Likewise.
1432 2010-09-23  Bruno Haible  <bruno@clisp.org>
1434         * m4/libtool.m4: Update from libtool-2.4, with modifications:
1435         2008-04-06  Bruno Haible  <bruno@clisp.org>
1436                 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
1437                 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
1438                 to ${CONFIG_SHELL}.
1439         * m4/ltversion.m4: Update from libtool-2.4.
1440         * build-aux/ltmain.sh: Likewise.
1442 2010-09-23  Bruno Haible  <bruno@clisp.org>
1444         Simplify use of gnulib-tool now that gnulib-tool --import works better.
1445         * autogen.sh: Don't remove gnulib-cache.m4 before running gnulib-tool.
1446         * Makefile.devel (srclib/Makefile.gnulib): Depend on 'force'.
1448 2010-07-31  Bruno Haible  <bruno@clisp.org>
1450         * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.67.
1451         * preload/Makefile.devel (AUTOCONF): Likewise.
1453 2010-07-03  Bruno Haible  <bruno@clisp.org>
1455         * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.66.
1456         * preload/Makefile.devel (AUTOCONF): Likewise.
1458 2010-06-04  Bruno Haible  <bruno@clisp.org>
1460         Addendum to 2009-10-18 commit.
1461         * m4/fcntl-o.m4: New file, from gnulib.
1462         * configure.ac: Invoke gl_FCNTL_O_FLAGS.
1463         * lib/config.h.in (HAVE_WORKING_O_NOFOLLOW): New macro.
1465 2010-06-04  Bruno Haible  <bruno@clisp.org>
1467         * m4/libtool.m4: Update from libtool-2.2.8, with modifications:
1468         2008-04-06  Bruno Haible  <bruno@clisp.org>
1469                 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
1470                 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
1471                 to ${CONFIG_SHELL}.
1472         * m4/ltoptions.m4: Update from libtool-2.2.8.
1473         * m4/ltversion.m4: Likewise.
1474         * m4/lt~obsolete.m4: Likewise.
1475         * build-aux/ltmain.sh: Likewise.
1477 2010-04-06  Bruno Haible  <bruno@clisp.org>
1479         Avoid a compilation error of gnulib's test-iconv-h-c++.cc on mingw.
1480         * include/iconv.h.in: Restrict the extern "C" { ... } scope so that it
1481         doesn't contains #include directives.
1483 2010-03-30  Bruno Haible  <bruno@clisp.org>
1485         * README.woe32: Update for Cygwin 1.7.x.
1487 2009-12-26  Bruno Haible  <bruno@clisp.org>
1489         * windows/libiconv.rc: Update.
1490         * windows/iconv.rc: Update.
1492 2009-12-11  Bruno Haible  <bruno@clisp.org>
1494         * include/iconv.h.in: Untabify.
1495         * gnulib-local/lib/xalloc.h: Untabify.
1496         * woe32dll/export.h: Untabify.
1497         * tests/uniq-u.c: Untabify.
1499 2009-12-11  Bruno Haible  <bruno@clisp.org>
1501         * srclib/Makefile.am (MOSTLYCLEANDIRS): New macro.
1503 2009-12-11  Bruno Haible  <bruno@clisp.org>
1505         * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.65.
1506         * preload/Makefile.devel (AUTOCONF): Likewise.
1508 2009-11-22  Bruno Haible  <bruno@clisp.org>
1510         * tests/check-subst: Add reference to the Solaris printf bug.
1511         Reported by Dagobert Michelsen <dagobert@familie-michelsen.de>.
1513 2009-09-01  Bruno Haible  <bruno@clisp.org>
1515         * README.woe32: Put the -mno-cygwin option into CC and CXX.
1516         Recommended by Paolo Bonzini and Eric Blake.
1518 2009-08-15  Bruno Haible  <bruno@clisp.org>
1520         * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.64.
1521         * preload/Makefile.devel (AUTOCONF): Likewise.
1523 2009-08-15  Bruno Haible  <bruno@clisp.org>
1525         Use .git/info/exclude, not .gitignore, for imported or generated files.
1526         * Makefile.devel (srclib/Makefile.gnulib): Pass option --no-vc-files to
1527         gnulib-tool.
1529 2009-07-07  Bruno Haible  <bruno@clisp.org>
1531         Fix an endless loop.
1532         * lib/loop_wchar.h (wchar_to_loop_convert): Handle the case of
1533         incomplete input correctly.
1534         * tests/test-to-wchar.c: New file.
1535         * tests/Makefile.in (tests-to-wchar, tests-to-wchar.o): New rules.
1536         (check): Depend on and run tests-to-wchar.
1537         (clean): Add tests-to-wchar.
1538         Reported by Tristan Gingold <gingold@adacore.com>.
1540 2009-06-30  Bruno Haible  <bruno@clisp.org>
1542         * Version 1.13.1 released.
1544 2009-06-30  Bruno Haible  <bruno@clisp.org>
1546         * configure.ac: Bump version number to 1.13.1.
1547         * README: Likewise.
1549 2009-06-04  Bruno Haible  <bruno@clisp.org>
1551         * preload/Makefile.devel (AUTOCONF): Switch to version 2.63.
1552         (ACLOCAL): Switch to version 1.11.
1554 2009-05-19  Bruno Haible  <bruno@clisp.org>
1556         * Makefile.devel (AUTOMAKE, ACLOCAL): Switch to version 1.11.
1557         * autogen.sh: Update comments.
1559 2009-04-24  Bruno Haible  <bruno@clisp.org>
1561         Fix a compilation error on HP-UX 11.00, introduced on 2008-09-16.
1562         * src/iconv_open2.h: Don't initialize nonexistent field if
1563         !(HAVE_WCRTOMB || HAVE_MBRTOWC).
1564         Patch by Joel Brobecker <brobecker@adacore.com>.
1566 2009-04-15  Bruno Haible  <bruno@clisp.org>
1568         * src/Makefile.in (install, uninstall): Append the $(EXEEXT) suffix
1569         explicitly. Needed on Cygwin.
1571 2009-04-11  Bruno Haible  <bruno@clisp.org>
1573         * configure.ac: Move the statements for WOE32 and WINDRES.
1575 2009-03-26  Bruno Haible  <bruno@clisp.org>
1577         * Version 1.13 released.
1579 2009-03-26  Bruno Haible  <bruno@clisp.org>
1581         * src/iconv.c: Update copyright header to GPLv3+.
1582         (print_version): Update license info.
1584 2009-03-26  Bruno Haible  <bruno@clisp.org>
1586         * src/iconv.c (print_version): Bump year.
1588 2009-03-25  Bruno Haible  <bruno@clisp.org>
1590         * build-aux/config.guess: Update to GNU version 2009-02-03.
1591         * build-aux/config.sub: Likewise.
1593 2009-03-25  Bruno Haible  <bruno@clisp.org>
1595         * configure.ac: Bump version number to 1.13.
1596         * README: Likewise.
1597         * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
1598         * windows/iconv.rc: Update.
1599         * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 7:0:5.
1601 2009-03-25  Bruno Haible  <bruno@clisp.org>
1603         Fix the handling of Windows resources in shared libraries.
1604         * configure.ac: Invoke LT_LANG for 'Windows Resource'.
1605         * lib/Makefile.in (RC): New variable.
1606         (WINDRES): Remove variable.
1607         (OBJECTS_RES_yes): Add .lo suffix.
1608         (libiconv.res.lo): Renamed from libiconv.res. Use libtool --tag=RC.
1609         (clean): Simplify.
1610         Based on a patch by Roumen Petrov <bugtrack@roumenpetrov.info>.
1612 2009-03-14  Bruno Haible  <bruno@clisp.org>
1614         * autogen.sh: Checkout gnulib using 'git' instead of 'cvs'.
1616 2009-01-24  Bruno Haible  <bruno@clisp.org>
1618         * tools/Makefile (ALL): Add cp1131.h.
1619         (cp1131.h): New rule.
1620         * lib/encodings.def: Add CP1131.
1621         * lib/cp1131.h: New file.
1622         * lib/converters.h: Include it.
1623         * README, man/iconv_open.3: Add CP1131.
1624         * NOTES: Mention CP1131.
1625         * tests/CP1131.TXT: New file.
1626         * tests/Makefile.in (check): Also test CP1131.
1628 2009-01-17  Bruno Haible  <bruno@clisp.org>
1630         Add support for "make install-strip".
1631         * configure.ac: Search for 'strip'. Invoke AM_PROG_INSTALL_STRIP.
1632         * Makefile.in (install-strip): New rule.
1633         * src/Makefile.in (STRIP, INSTALL_STRIP_PROGRAM, install_sh): New
1634         variables.
1635         (install-strip): New rule.
1636         * lib/Makefile.in (install-strip): New target.
1637         * preload/Makefile.in (install-strip): Likewise.
1638         * man/Makefile.in (install-strip): Likewise.
1639         Reported by Alon Bar-Lev <alon.barlev@gmail.com>.
1641 2009-01-17  Bruno Haible  <bruno@clisp.org>
1643         Update after gnulib changed.
1644         * src/Makefile.in (RELOCATABLE_STRIP): New variable.
1646 2009-01-17  Bruno Haible  <bruno@clisp.org>
1648         Make --enable-relocatable work on glibc systems.
1649         * src/Makefile.in (host): New variable.
1651 2009-01-17  Bruno Haible  <bruno@clisp.org>
1653         * lib/genflags.c: Include <string.h>.
1655 2009-01-14  Bruno Haible  <bruno@clisp.org>
1657         * configure.ac: More consistent m4 quoting.
1658         * preload/configure.ac: Likewise.
1660 2008-09-28  Bruno Haible  <bruno@clisp.org>
1662         * build-aux/ltmain.sh (func_emit_cwrapperexe_src): On mingw,
1663         preprocess the argument vector through prepare_spawn.
1665 2008-09-27  Bruno Haible  <bruno@clisp.org>
1667         * build-aux/config.guess: Update to GNU version 2008-09-08.
1668         * build-aux/config.sub: Likewise.
1670 2008-09-26  Bruno Haible  <bruno@clisp.org>
1672         * tests/test-shiftseq.c (main1, main2): Use ICONV_CONST.
1674 2008-09-26  Bruno Haible  <bruno@clisp.org>
1676         * Makefile.devel (GNULIB_MODULES): Add sigpipe, stdio.
1677         * tests/Makefile.in (check, table-from, table-to, test-shiftseq): Link
1678         all programs against libicrt.a. Needed for the stdio function
1679         replacements on mingw.
1681 2008-09-21  Tadamasa Teranishi  <yw3t-trns@asahi-net.or.jp>
1683         * lib/encodings_extra.def: Add aliases for EUC-JISX0213, SHIFT_JISX0213,
1684         ISO-2022-JP-3, found on <http://x0213.org/codetable/index.en.html>.
1686 2008-09-20  Bruno Haible  <bruno@clisp.org>
1688         * man/iconv_open_into.3: New file.
1690 2008-09-16  Bruno Haible  <bruno@clisp.org>
1692         New function iconv_open_into.
1693         * include/iconv.h.in: Include <wchar.h> and its prerequisites.
1694         (iconv_allocation_t): New type.
1695         (iconv_open_into): New declaration.
1696         * lib/iconv_open1.h: New file, extracted from lib/iconv.c.
1697         * lib/iconv_open2.h: New file, extracted from lib/iconv.c.
1698         * lib/iconv.c (iconv_open): Include iconv_open1.h and iconv_open2.h.
1699         Verify size of iconv_allocation_t.
1700         (iconv_open_into): New function.
1701         * lib/loop_wchar.h (struct wchar_conv_struct): Don't define a state
1702         field if !(HAVE_WCRTOMB || HAVE_MBRTOWC).
1703         * configure.ac: Set and substitute USE_MBSTATE_T, BROKEN_WCHAR_H.
1704         Reported by Roman Rybalko <romanr@romanr.info>.
1706 2008-09-16  Bruno Haible  <bruno@clisp.org>
1708         * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.63.
1710 2008-09-16  Bruno Haible  <bruno@clisp.org>
1712         * include/iconv.h.in: Use Unicode single-quotes in comments.
1714 2008-09-14  Bruno Haible  <bruno@clisp.org>
1716         * Makefile.devel (GNULIB_MODULES): Add strerror.
1718 2008-09-07  Bruno Haible  <bruno@clisp.org>
1720         Make behaviour when encountering invalid input after a shift sequence
1721         more consistent.
1722         * lib/converters.h (RET_SHIFT_ILSEQ): New macro.
1723         (RET_ILSEQ): Define in terms of RET_SHIFT_ILSEQ.
1724         (RET_TOOFEW): Change to avoid collisions with RET_SHIFT_ILSEQ.
1725         (DECODE_SHIFT_ILSEQ, DECODE_TOOFEW): New macros.
1726         * lib/loop_unicode.h (unicode_loop_convert): Take into account the
1727         shift count contained in the negative return values.
1728         * lib/hz.h (hz_mbtowc): When encountering invalid input, store the
1729         modified state and return RET_SHIFT_ILSEQ.
1730         * lib/iso2022_cn.h (iso2022_cn_mbtowc): Likewise.
1731         * lib/iso2022_cnext.h (iso2022_cn_ext_mbtowc): Likewise.
1732         * lib/iso2022_jp.h (iso2022_jp_mbtowc): Likewise.
1733         * lib/iso2022_jp1.h (iso2022_jp1_mbtowc): Likewise.
1734         * lib/iso2022_jp2.h (iso2022_jp2_mbtowc): Likewise.
1735         * lib/iso2022_jp3.h (iso2022_jp3_mbtowc): Likewise.
1736         * lib/iso2022_kr.h (iso2022_kr_mbtowc): Likewise.
1737         * lib/ucs2.h (ucs2_mbtowc): Likewise.
1738         * lib/ucs4.h (ucs4_mbtowc): Likewise.
1739         * lib/utf16.h (utf16_mbtowc): Likewise.
1740         * lib/utf32.h (utf32_mbtowc): Likewise.
1741         * lib/utf7.h (utf7_mbtowc): Likewise.
1742         * lib/utf16be.h (utf16be_mbtowcutf16be_mbtowc): When encountering
1743         invalid input, return RET_SHIFT_ILSEQ.
1744         * lib/utf16le.h (utf16le_mbtowc): Likewise.
1745         * tests/test-shiftseq.c: New file.
1746         * tests/Makefile.in (check): Run test-shiftseq.
1747         (test-shiftseq, test-shiftseq.@OBJEXT@): New rules.
1748         (clean): Remove test-shiftseq executable.
1749         Reported by Roman Rybalko <roman_rybalko@users.sourceforge.net>
1750         at <https://savannah.gnu.org/bugs/?24216>.
1752 2008-09-07  Bruno Haible  <bruno@clisp.org>
1754         * man/iconv.3: Clarify the processing of shift-sequences.
1756 2008-09-07  Bruno Haible  <bruno@clisp.org>
1758         * m4/libtool.m4: Update from libtool-2.2.6, with modifications:
1759         2008-04-06  Bruno Haible  <bruno@clisp.org>
1760                 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
1761                 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
1762                 to ${CONFIG_SHELL}.
1763         * m4/ltoptions.m4: Update from libtool-2.2.6.
1764         * m4/ltsugar.m4: Likewise.
1765         * m4/ltversion.m4: Likewise.
1766         * build-aux/ltmain.sh: Likewise.
1768 2008-09-06  Bruno Haible  <bruno@clisp.org>
1770         * lib/gbk.h (gbk_wctomb): Fix an out-of-bounds write.
1771         Reported by Roman Rybalko <roman_rybalko@users.sourceforge.net>
1772         at <https://savannah.gnu.org/bugs/?24214>.
1774 2008-06-30  Bruno Haible  <bruno@clisp.org>
1776         Fix sed expressions to work with the old sed-3.02 on MSYS.
1777         * windows/windres-options (sed_extract_major, sed_extract_minor,
1778         sed_extract_subminor): Put a semicolon before the closing brace. Use
1779         an i\ command instead of an a\ command.
1780         Reported by Sunil Negi <sunil.negi@morningstar.com>
1781         in <http://article.gmane.org/gmane.comp.gnu.mingw.msys/4410>
1782         via Keith Marshall <keithmarshall@users.sourceforge.net>.
1784 2008-05-22  Bruno Haible  <bruno@clisp.org>
1786         * README.woe32: Update with info from GNU gettext's README.woe32.
1788 2008-05-18  Bruno Haible  <bruno@clisp.org>
1790         * m4/libtool.m4: Update from libtool-2.2.4, with modifications:
1791         2008-04-06  Bruno Haible  <bruno@clisp.org>
1792                 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
1793                 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
1794                 to ${CONFIG_SHELL}.
1795         * m4/ltoptions.m4: Update from libtool-2.2.4.
1796         * m4/ltversion.m4: Likewise.
1797         * m4/lt~obsolete.m4: Likewise.
1798         * build-aux/ltmain.sh: Likewise.
1800 2008-04-14  Bruno Haible  <bruno@clisp.org>
1802         * tests/Makefile.in (check): Remove *.dSYM directories left over by gcc
1803         on MacOS X 10.5.
1805 2008-04-14  Bruno Haible  <bruno@clisp.org>
1807         * preload/configure.ac: Invoke AC_USE_SYSTEM_EXTENSIONS instead of
1808         AC_AIX and AC_MINIX.
1809         * Makefile.devel (AUTOCONF, AUTOHEADER): Require autoconf-2.62.
1810         * preload/Makefile.devel (AUTOCONF): Likewise.
1811         * autogen.sh: Likewise.
1813 2008-04-06  Bruno Haible  <bruno@clisp.org>
1815         * m4/libtool.m4: Update from libtool-2.2.2, with modifications:
1816         2008-04-06  Bruno Haible  <bruno@clisp.org>
1817                 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
1818                 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
1819                 to ${CONFIG_SHELL}.
1820         * m4/ltoptions.m4: New file, from libtool-2.2.2.
1821         * m4/ltsugar.m4: New file, from libtool-2.2.2.
1822         * m4/ltversion.m4: New file, from libtool-2.2.2.
1823         * m4/lt~obsolete.m4: New file, from libtool-2.2.2.
1824         * build-aux/ltmain.sh: New file, from libtool-2.2.2.
1825         * configure.ac: Use LT_INIT instead of AC_PROG_LIBTOOL.
1826         * preload/configure.ac: Likewise.
1828 2008-04-06  Bruno Haible  <bruno@clisp.org>
1830         More portable way of building the preloadable library.
1831         * preload/Makefile.devel: New file.
1832         * preload/Makefile.in: New file, based on lib/Makefile.in.
1833         * preload/configure.ac: New file, based on configure.ac.
1834         * Makefile.devel (all): Recurse into preload directory.
1835         * Makefile.in (all, install, installdirs, uninstall, check,
1836         mostlyclean, clean, distclean, maintainer-clean): Recurse into preload
1837         directory.
1838         * configure.ac: Likewise.
1839         (OS, GCC, PLUGLIB): Remove definitions.
1840         * lib/Makefile.in (all): Don't depend on PLUGLIB.
1841         (preloadable_libiconv.so, preloadable_libiconv_linux.so,
1842         preloadable_libiconv_solaris.so, preloadable_libiconv_osf.so): Remove
1843         rules.
1844         (install, uninstall, clean): Don't handle the preloadable library here.
1846 2008-04-06  Bruno Haible  <bruno@clisp.org>
1848         Avoid a gcc warning.
1849         * lib/loop_unicode.h (unicode_loop_convert): Add a cast.
1851 2008-04-06  Bruno Haible  <bruno@clisp.org>
1853         * src/iconv.c (print_version): Bump year.
1855 2008-04-06  Bruno Haible  <bruno@clisp.org>
1857         Support all possible nl_langinfo(CODESET) results on the respective
1858         platforms, according to libcharset/lib/config.charset.
1859         * lib/encodings.def: Add DEFALIAS statements, conditional on
1860         USE_AIX_ALIASES, USE_HPUX_ALIASES, USE_OSF1_ALIASES,
1861         USE_SOLARIS_ALIASES.
1862         * lib/encodings_aix.def: Add DEFALIAS statements, conditional on
1863         USE_AIX_ALIASES.
1864         * lib/encodings_osf1.def: Add DEFALIAS statements, conditional on
1865         USE_OSF1_ALIASES.
1866         * lib/genaliases.c (emit_alias): New function, extracted from
1867         emit_encoding.
1868         (emit_encoding): Use it.
1869         (main): Define DEFALIAS.
1870         * lib/genaliases2.c (counter): New variable, extracted from
1871         emit_encoding.
1872         (emit_alias): New function, extracted from emit_encoding.
1873         (emit_encoding): Use it.
1874         (main): Define DEFALIAS.
1875         * lib/genflags.c (main): Define DEFALIAS.
1876         * lib/iconv.c (all_encodings): Define DEFALIAS.
1877         Include the system dependent variant of aliases.h on the appropriate
1878         systems.
1879         (all_canonical): Include the system dependent variant of canonical.h,
1880         canonical_aix.h, canonical_osf1.h, canonical_local.h on the appropriate
1881         systems.
1882         * lib/aliases2.h: Include the system dependent variant of
1883         aliases_aix.h or aliases_osf1.h on the appropriate systems.
1884         * lib/Makefile.in (iconv.lo): Depend on aliases_sysaix.h,
1885         aliases_syshpux.h, aliases_sysosf1.h, aliases_syssolaris.h,
1886         aliases_aix_sysaix.h, lib/aliases_osf1_sysosf1.h, and also
1887         aliases_extra.h, translit.h.
1888         * Makefile.devel (all): Depend on lib/aliases_sysaix.h,
1889         lib/aliases_syshpux.h, lib/aliases_sysosf1.h, lib/aliases_syssolaris.h,
1890         lib/aliases_aix_sysaix.h, lib/aliases_osf1_sysosf1.h.
1891         (lib/aliases_sysaix.h, lib/aliases_syshpux.h, lib/aliases_sysosf1.h,
1892         lib/aliases_syssolaris.h): New rules.
1893         (lib/aliases_aix_sysaix.h): New rule.
1894         (lib/aliases_osf1_sysosf1.h): New rule.
1895         * autogen.sh: Also remove lib/aliases_sysaix.h, lib/aliases_syshpux.h,
1896         lib/aliases_sysosf1.h, lib/aliases_syssolaris.h,
1897         lib/aliases_aix_sysaix.h, lib/aliases_osf1_sysosf1.h.
1899 2008-04-06  Bruno Haible  <bruno@clisp.org>
1901         * build-aux/config.libpath: Remove file, brought in by gnulib-tool.
1902         * build-aux/config.rpath: Remove file, brought in by gnulib-tool.
1904 2007-11-11  Bruno Haible  <bruno@clisp.org>
1906         * Version 1.12 released.
1908 2007-11-11  Bruno Haible  <bruno@clisp.org>
1910         * Makefile.devel (AUTOCONF, AUTOHEADER): Require version 2.61.
1911         (AUTOMAKE, ACLOCAL): Require version 1.10.
1912         (srclib/Makefile.in): Avoid error from automake.
1914 2007-10-26  Bruno Haible  <bruno@clisp.org>
1916         * m4/libtool.m4: Update, based on libtool-1.5.24.
1917         * build-aux/ltmain.sh: Update, based on libtool-1.5.24.
1919 2007-10-23  Bruno Haible  <bruno@clisp.org>
1921         * build-aux/config.guess: Update to GNU version 2007-07-22.
1922         * build-aux/config.sub: Likewise.
1924 2007-10-23  Bruno Haible  <bruno@clisp.org>
1926         * configure.ac: Bump version number to 1.12.
1927         * README: Likewise.
1929 2007-10-23  Bruno Haible  <bruno@clisp.org>
1931         Move relocatability infrastructure to gnulib.
1932         * gnulib-local/lib/relocatable.h: Remove file.
1933         * gnulib-local/lib/relocatable.c: Remove file.
1935 2007-10-23  Bruno Haible  <bruno@clisp.org>
1937         Update from GNU gettext.
1938         2006-11-26  Bruno Haible  <bruno@clisp.org>
1939                 * gnulib-local/lib/xalloc.h (xmemdup): Add a typesafe C++
1940                 template variant.
1941                 Based on a patch from Paul Eggert in gnulib.
1942         2006-11-06  Bruno Haible  <bruno@clisp.org>
1943                 * gnulib-local/lib/xalloc.h (xcharalloc): New macro.
1944                 (xmemdup): New declaration.
1945                 * gnulib-local/lib/xstrdup.c (xmemdup): New function.
1946         2006-11-03  Bruno Haible  <bruno@clisp.org>
1947                 * gnulib-local/lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC,
1948                 XCALLOC): New macros.
1949                 (xnboundedmalloc): New inline function.
1950                 * gnulib-local/lib/xstrdup.c (xstrdup): Use XNMALLOC instead of
1951                 xmalloc.
1952         2006-11-02  Bruno Haible  <bruno@clisp.org>
1953                 * lib/xalloc.h (xnmalloc): New declaration. From gnulib
1954                 xalloc.h.
1955                 * lib/xmalloc.c (fixup_null_alloc): Write NULL, not 0.
1956                 (xnmalloc): New function.
1958 2007-10-23  Bruno Haible  <bruno@clisp.org>
1960         Moved module xreadlink to gnulib.
1961         * gnulib-local/modules/xreadlink: Remove file.
1962         * gnulib-local/lib/xreadlink.h: Remove file.
1963         * gnulib-local/lib/xreadlink.c: Remove file.
1964         * gnulib-local/m4/xreadlink.m4: Remove file.
1966 2007-10-07  Bruno Haible  <bruno@clisp.org>
1968         Update program license to GPLv3.
1969         * COPYING: Replace with GPL 3.
1970         * windows/iconv.rc (Comments): Update.
1972 2007-10-07  Bruno Haible  <bruno@clisp.org>
1974         * gnulib-local/lib/alloca.in.h: Renamed from gnulib-local/lib/alloca_.h.
1976 2007-03-30  Bruno Haible  <bruno@clisp.org>
1978         * gnulib-local/lib/alloca_.h: Change prefix of double-inclusion guard
1979         macro to _GL_.
1981 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
1983         * gnulib-local/lib/alloca_.h (alloca) [defined alloca]: Don't define or
1984         declare.
1986 2007-09-29  Bruno Haible  <bruno@clisp.org>
1988         * autogen.sh (GNULIB_CVS_ROOT): Change to read-only git mirror
1989         valid since 2007-09-19.
1991 2007-07-07  Bruno Haible  <bruno@clisp.org>
1993         * autogen.sh: Add an option --skip-gnulib.
1995 2007-07-07  Bruno Haible  <bruno@clisp.org>
1997         * gnulib-local/lib/uniwidth.h: Remove file, moved to gnulib.
1998         * gnulib-local/lib/width.c: Remove file, moved to gnulib.
1999         * gnulib-local/lib/cjk.h: Remove file, moved to gnulib.
2000         * gnulib-local/modules/uniwidth: Remove file.
2001         * Makefile.devel (GNULIB_MODULES): Remove uniwidth, add uniwidth/width.
2002         * src/iconv.c: Include uniwidth/cjk.h instead of cjk.h.
2004 2007-06-30  Bruno Haible  <bruno@clisp.org>
2006         * src/iconv.c (print_version): Use the standard --version output, see
2007         <https://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00302.html>.
2009 2007-06-30  Bruno Haible  <bruno@clisp.org>
2011         * autogen.sh: New file.
2012         * DEPENDENCIES: New file.
2013         * HACKING: New file.
2015 2007-06-30  Bruno Haible  <bruno@clisp.org>
2017         * src/iconv.c: Provide translator comments for many messages.
2018         (conversion_error_EILSEQ, conversion_error_EINVAL,
2019         conversion_error_other): New functions, extracted from convert.
2020         (convert): Use them.
2021         Reported by Tim Van Holder <tim.van.holder@telenet.be>.
2023 2007-06-09  Bruno Haible  <bruno@clisp.org>
2025         * gnulib-local/lib/relocwrapper.c: Remove file.
2027 2007-05-27  Bruno Haible  <bruno@clisp.org>
2029         * windows/libiconv.rc: New file.
2030         * windows/iconv.rc: New file.
2031         * windows/windres-options: New file.
2032         * configure.ac (WOE32): New variable.
2033         (WINDRES) [WOE32]: New variable.
2034         * lib/Makefile.in (WINDRES): New variable.
2035         (PACKAGE_VERSION): New variable.
2036         (OBJECTS_EXP_yes): Renamed from OBJECTS_yes.
2037         (OBJECTS_EXP_no): Renamed from OBJECTS_no.
2038         (OBJECTS_RES_yes, OBJECTS_RES_no): New variables.
2039         (OBJECTS): Add one of them.
2040         (libiconv.res): New rule.
2041         (clean): Remove also libiconv.res.
2042         * src/Makefile.in (WINDRES): New variable.
2043         (PACKAGE_VERSION): New variable.
2044         (OBJECTS_RES_yes, OBJECTS_RES_no): New variables.
2045         (all, iconv_no_i18n, install): Use them.
2046         (iconv.res): New rule.
2047         (clean): Remove also iconv.res.
2048         Suggested and inspired by work by Perry Rapp.
2050 2007-05-27  Bruno Haible  <bruno@clisp.org>
2052         Follow broken iconv() prototype in POSIX.
2053         * configure.ac (ICONV_CONST): Set to empty if the system has no iconv.
2054         * lib/config.h.in (ICONV_CONST): Change default value to an empty
2055         comment.
2056         * src/iconv.c (ICONV_CONST): Change default value to empty.
2057         Reported by Andreas Krennmair <ak@synflood.at>.
2059 2007-05-25  Bruno Haible  <bruno@clisp.org>
2061         * tools/Makefile (ALL): Add rk1048.h.
2062         (rk1048.h): New rule.
2063         * lib/encodings.def: Add RK1048.
2064         * lib/rk1048.h: New file.
2065         * lib/converters.h: Include it.
2066         * README, man/iconv_open.3: Add RK1048.
2067         * NOTES: Mention RK1048.
2068         * tests/RK1048.TXT: New file.
2069         * tests/Makefile.in (check): Also test RK1048.
2070         Suggested by Timur Birsh <team9@host.kz>.
2072 2007-04-24  Bruno Haible  <bruno@clisp.org>
2074         * man/iconv_open.3: Tweak explanation of TRANSLIT.
2075         Reported by Perry Rapp.
2077 2007-04-23  Bruno Haible  <bruno@clisp.org>
2079         * tests/check-subst: Use the output of 'printf' only if it didn't
2080         crash. Needed to work around a buffer overflow in Solaris /bin/printf.
2081         Reported by Arto C. Nirkko <anirkko@insel.ch>.
2083 2007-04-23  Bruno Haible  <bruno@clisp.org>
2085         * lib/iconv.c (iconv_open, iconv_canonicalize): Treat native Woe32
2086         systems like those which define __STDC_ISO_10646__.
2087         Reported by Keith Marshall <keithmarshall@users.sourceforge.net>.
2089 2007-03-31  Bruno Haible  <bruno@clisp.org>
2091         * man/iconv.1: Use HYPHEN-MINUS signs instead of HYPHENs where
2092         appropriate.
2093         * man/iconv_open.3: Likewise.
2094         * man/iconv.3: Likewise.
2095         * man/iconv_close.3: Likewise.
2096         * man/iconvctl.3: Likewise.
2098 2007-03-31  Bruno Haible  <bruno@clisp.org>
2100         * man/iconv.1: Mark as POSIX compliant.
2101         * man/iconv_open.3: Likewise.
2102         * man/iconv.3: Likewise.
2103         * man/iconv_close.3: Likewise.
2105         * man/*.[13]: Syntactic simplifications.
2107 2007-03-19  Bruno Haible  <bruno@clisp.org>
2109         Assume that mkinstalldirs also creates the necessary parent directories.
2110         * Makefile.in (install, installdirs): Don't explicitly create the
2111         parent directories.
2112         * lib/Makefile.in (install, installdirs): Likewise.
2113         * src/Makefile.in (install, installdirs): Likewise.
2114         * man/Makefile.in (install, installdirs): Likewise.
2115         Reported by Thomas Klausner <tk@giga.or.at>.
2117 2007-03-04  Bruno Haible  <bruno@clisp.org>
2119         * Makefile.devel (GNULIB_MODULES): Add relocatable-prog. Remove
2120         relocatable, relocwrapper.
2121         * configure.ac: Invoke gl_RELOCATABLE instead of AC_RELOCATABLE.
2122         * gnulib-local/modules/progreloc: Remove file.
2123         * gnulib-local/modules/relocatable: Remove file.
2124         * gnulib-local/modules/relocwrapper: Remove file.
2125         * gnulib-local/m4/relocatable.m4: Remove file.
2126         * gnulib-local/lib/strerror.c.diff: Remove file.
2127         * src/Makefile.in: Remove SET_RELOCATABLE invocation. Instead get
2128         RELOCATABLE_LDFLAGS and INSTALL_PROGRAM_ENV.
2130 2007-02-19  Bruno Haible  <bruno@clisp.org>
2132         * gnulib-local/lib/xmalloc.c: Don't include exit.h.
2133         * src/iconv.c: Likewise.
2135 2007-02-16  Juan Manuel Guerrero  <juan.guerrero@gmx.de>
2137         * djgpp/*: Update.
2139 2007-02-03  Bruno Haible  <bruno@clisp.org>
2141         * tools/Makefile (ksc5601.h): Add one extra character.
2142         * lib/ksc5601.h: Regenerated.
2143         * lib/cp949.h (cp949_mbtowc, cp949_wctomb): Exclude the new character.
2144         * tests/EUC-KR.TXT: Add CIRCLED HANGUL IEUNG U.
2145         * tests/JOHAB.TXT: Likewise.
2146         Reported by Jungshik Shin (신정식, 申政湜) <jungshik@google.com>.
2148         * lib/euc_kr.h: Update comments.
2149         * lib/johab.h: Likewise.
2151 2007-02-03  Bruno Haible  <bruno@clisp.org>
2153         * tools/cjk_tab_to_h.c (output_title): Bump copyright year.
2155 2007-01-26  Bruno Haible  <bruno@clisp.org>
2157         Moved streq.h to gnulib.
2158         * gnulib-local/lib/streq.h: Remove file.
2159         * gnulib-local/modules/uniwidth (Files): Remove lib/streq.h.
2160         (Depends-on): Add streq.
2161         (lib_SOURCES): Remove streq.h.
2163 2007-01-26  Bruno Haible  <bruno@clisp.org>
2165         Moved unitypes.h to gnulib.
2166         * gnulib-local/lib/unitypes.h: Remove file.
2167         * gnulib-local/modules/uniwidth (Files): Remove lib/unitypes.h.
2168         (Depends-on): Add unitypes.
2169         (lib_SOURCES): Remove unitypes.h.
2171 2007-01-26  Bruno Haible  <bruno@clisp.org>
2173         Moved canonicalize to gnulib.
2174         * gnulib-local/modules/canonicalize: Remove file.
2175         * gnulib-local/lib/canonicalize.h: Remove file.
2176         * gnulib-local/lib/canonicalize.c: Remove file.
2177         * gnulib-local/m4/canonicalize.m4: Remove file.
2178         * gnulib-local/modules/progreloc (Depends-on): Replace 'canonicalize'
2179         with 'canonicalize-lgpl'.
2181 2006-12-20  Bruno Haible  <bruno@clisp.org>
2183         * lib/Makefile.in (install): On AIX, add the contents of
2184         /lib/libiconv.a to libiconv.a.
2186 2006-12-20  Bruno Haible  <bruno@clisp.org>
2188         * Makefile.devel (all): Depend on srclib/Makefile.gnulib, not
2189         srclib/Makefile.am.
2190         (aclocal.m4): Likewise. Touch the resulting file, since aclocal not
2191         always does it.
2192         (srclib/Makefile.gnulib): Renamed from srclib/Makefile.am. Pass
2193         option --makefile-name.
2194         (srclib/Makefile.in): Depend on srclib/Makefile.gnulib too.
2195         * srclib/Makefile.am: New file that includes srclib/Makefile.gnulib.
2197 2006-10-31  Bruno Haible  <bruno@clisp.org>
2199         Update from GNU gettext.
2200         2006-10-29  Bruno Haible  <bruno@clisp.org>
2201                 Make it compile in C++ mode.
2202                 * gnulib-local/lib/xalloc.h (xrealloc): Define as template
2203                 with appropriate return type.
2204                 * gnulib-local/lib/xstrdup.c (xstrdup): Cast xmalloc result.
2205         2006-10-26  Bruno Haible  <bruno@clisp.org>
2206                 * gnulib-local/modules/canonicalize (Makefile.am): Remove
2207                 EXTRA_DIST. Now done by gnulib-tool.
2208                 * gnulib-local/modules/relocatable (Makefile.am): Likewise.
2209                 * gnulib-local/modules/relocwrapper (Makefile.am): Likewise.
2210         2006-10-25  Bruno Haible  <bruno@clisp.org>
2211                 * gnulib-local/m4/relocatable.m4 (AC_RELOCATABLE_BODY):
2212                 Renamed from AC_RELOCATABLE, without the AC_LIBOBJ invocation.
2213                 (AC_RELOCATABLE): New macro. Invoke AC_LIBOBJ here.
2214                 * gnulib-local/modules/relocwrapper (configure.ac): Invoke
2215                 AC_RELOCATABLE instead of requiring it.
2216         2006-10-12  Bruno Haible  <bruno@clisp.org>
2217                 * gnulib-local/modules/canonicalize (Makefile.am): Distribute
2218                 all files in lib/ through EXTRA_DIST.
2219                 * gnulib-local/modules/relocatable (Makefile.am): Likewise.
2220         2006-09-14  Bruno Haible  <bruno@clisp.org>
2221                 * gnulib-local/lib/canonicalize.c: Include <config.h>
2222                 unconditionally.
2223                 * gnulib-local/lib/relocatable.c: Likewise.
2224                 * lib/relocatable.c: Likewise.
2225                 * gnulib-local/lib/relocwrapper.c: Likewise.
2226                 * gnulib-local/lib/xmalloc.c: Likewise.
2227                 * gnulib-local/lib/xreadlink.c: Likewise.
2228                 * gnulib-local/lib/xstrdup.c: Likewise.
2229         2006-08-02  Bruno Haible  <bruno@clisp.org>
2230                 * gnulib-local/modules/canonicalize: Put under LGPL.
2231                 * gnulib-local/modules/relocatable: Likewise.
2232         2006-07-18  Bruno Haible  <bruno@clisp.org>
2233                 * gnulib-local/xalloc.h (xzalloc): New declaration.
2234                 * gnulib-local/xmalloc.c (xzalloc): New function.
2236 2006-10-24  Bruno Haible  <bruno@clisp.org>
2238         * man/Makefile.in (PACKAGE): New variable. Needed for docdir.
2239         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
2241 2006-10-14  Bruno Haible  <bruno@clisp.org>
2243         * COPYING: New file.
2244         * README: Clarify copyright of the iconv program.
2245         Reported by Charles Wilson <cwilson@fastmail.fm>.
2247 2006-08-08  Bruno Haible  <bruno@clisp.org>
2249         * INSTALL.generic: Add a recommendation for Tru64.
2250         Reported by Gary V. Vaughan <gary@gnu.org>.
2252 2006-07-29  Bruno Haible  <bruno@clisp.org>
2254         * tests/check-subst: Set CHARSETALIASDIR.
2255         Needed so that "make check" works before "make install" on systems
2256         such as NetBSD.
2258 2006-07-29  Bruno Haible  <bruno@clisp.org>
2260         * Makefile.devel (aclocal.m4): Depend on srclib/Makefile.am.
2261         (AUTOCONF_FILES): Add the existing *.m4 files.
2263 2006-07-29  Bruno Haible  <bruno@clisp.org>
2265         * gnulib-local/lib/xreadlink.c: Assume <stdlib.h> exists.
2266         * src/iconv.c: Assume <locale.h> exists.
2267         * configure.ac: Remove tests for <locale.h>, <stddef.h>, <stdlib.h>,
2268         <string.h>.
2270 2006-07-29  Bruno Haible  <bruno@clisp.org>
2272         * configure.ac: Remove obsolete calls AC_PROG_GCC_TRADITIONAL,
2273         AC_ISC_POSIX, AC_HEADER_STDC.
2275 2006-07-29  Bruno Haible  <bruno@clisp.org>
2277         * configure.ac: Remove macro invocations that are redundant through
2278         gl_EARLY and gl_INIT.
2280 2006-07-29  Bruno Haible  <bruno@clisp.org>
2282         * gnulib-local/m4/alloca.m4 (gl_PREREQ_ALLOCA): Add a dummy statement.
2283         Avoids a sh syntax error.
2285 2006-07-29  Bruno Haible  <bruno@clisp.org>
2287         * gnulib-local/m4/relocatable.m4: Add comments.
2289 2006-07-29  Bruno Haible  <bruno@clisp.org>
2291         * gnulib-local/modules/libiconv-misc: New file.
2292         * Makefile.devel (GNULIB_MODULES): Add libiconv-misc.
2294         * Makefile.devel (srclib/Makefile.am): Pass --no-libtool.
2296 2006-07-29  Bruno Haible  <bruno@clisp.org>
2298         Note: gnulib macros no longer invoke AC_TYPE_SIZE_T nor
2299         AC_CHECK_TYPE([ptrdiff_t], , [AC_DEFINE([ptrdiff_t], [long], ...)])
2300         because we now assume that the system defines size_t and ptrdiff_t.
2302 2006-07-29  Bruno Haible  <bruno@clisp.org>
2304         Switch to using gnulib.
2305         * configure.ac (AC_PREREQ): Require autoconf-2.60.
2306         Invoke gl_EARLY and gl_INIT.
2307         * Makefile.devel (all): Depend on srclib/Makefile.am.
2308         (aclocal.m4): Pass -I srcm4 to aclocal. Simplify dependencies, assuming
2309         GNU make.
2310         (GNULIB_MODULES): New variable.
2311         (srclib/Makefile.am): New rule.
2312         * gnulib-local: New directory.
2313         * gnulib-local/m4/alloca.m4: Moved here from m4/alloca.m4.
2314         * gnulib-local/m4/canonicalize.m4: Moved here from m4/canonicalize.m4.
2315         * gnulib-local/m4/relocatable.m4: Moved here from m4/relocatable.m4.
2316         * gnulib-local/m4/xreadlink.m4: Moved here from m4/xreadlink.m4.
2317         * gnulib-local/lib/alloca_.h: Moved here from srclib/alloca_.h.
2318         * gnulib-local/lib/canonicalize.h: Moved here from srclib/canonicalize.h.
2319         * gnulib-local/lib/canonicalize.c: Moved here from srclib/canonicalize.c.
2320         * gnulib-local/lib/cjk.h: Moved here from srclib/cjk.h.
2321         * gnulib-local/lib/error.h.diff: New file.
2322         * gnulib-local/lib/progname.h.diff: New file.
2323         * gnulib-local/lib/relocatable.h: Moved here from srclib/relocatable.h.
2324         * gnulib-local/lib/relocatable.c: Moved here from srclib/relocatable.c.
2325         * gnulib-local/lib/relocwrapper.c: Moved here from srclib/relocwrapper.c.
2326         * gnulib-local/lib/streq.h: Moved here from srclib/streq.h.
2327         * gnulib-local/lib/strerror.c.diff: New file.
2328         * gnulib-local/lib/unitypes.h: Moved here from srclib/unitypes.h.
2329         * gnulib-local/lib/uniwidth.h: Moved here from srclib/uniwidth.h.
2330         * gnulib-local/lib/width.c: Moved here from srclib/width.c.
2331         * gnulib-local/lib/xalloc.h: Moved here from srclib/xalloc.h.
2332         * gnulib-local/lib/xmalloc.c: Moved here from srclib/xmalloc.c.
2333         * gnulib-local/lib/xstrdup.c: Moved here from srclib/xstrdup.c.
2334         * gnulib-local/lib/xreadlink.h: Moved here from srclib/xreadlink.h.
2335         * gnulib-local/lib/xreadlink.c: Moved here from srclib/xreadlink.c.
2336         * gnulib-local/modules/canonicalize: New file.
2337         * gnulib-local/modules/progreloc: New file.
2338         * gnulib-local/modules/relocatable: New file.
2339         * gnulib-local/modules/relocwrapper: New file.
2340         * gnulib-local/modules/uniwidth: New file.
2341         * gnulib-local/modules/xalloc: New file.
2342         * gnulib-local/modules/xreadlink: New file.
2344         * m4/allocsa.m4: Remove file. Now taken from gnulib.
2345         * m4/codeset.m4: Likewise.
2346         * m4/eealloc.m4: Likewise.
2347         * m4/error.m4: Likewise.
2348         * m4/extensions.m4: Likewise.
2349         * m4/full-header-path.m4: Likewise.
2350         * m4/gettext.m4: Likewise.
2351         * m4/glibc21.m4: Likewise.
2352         * m4/iconv.m4: Likewise.
2353         * m4/intmax.m4: Likewise.
2354         * m4/inttypes-h.m4: Likewise.
2355         * m4/inttypes_h.m4: Likewise.
2356         * m4/isc-posix.m4: Likewise.
2357         * m4/lcmessage.m4: Likewise.
2358         * m4/lib-ld.m4: Likewise.
2359         * m4/lib-link.m4: Likewise.
2360         * m4/lib-prefix.m4: Likewise.
2361         * m4/longdouble.m4: Likewise.
2362         * m4/longlong.m4: Likewise.
2363         * m4/mbstate_t.m4: Likewise.
2364         * m4/nls.m4: Likewise.
2365         * m4/onceonly.m4: Likewise.
2366         * m4/pathmax.m4: Likewise.
2367         * m4/po.m4: Likewise.
2368         * m4/printf-posix.m4: Likewise.
2369         * m4/progtest.m4: Likewise.
2370         * m4/readlink.m4: Likewise.
2371         * m4/setenv.m4: Likewise.
2372         * m4/signed.m4: Likewise.
2373         * m4/size_max.m4: Likewise.
2374         * m4/ssize_t.m4: Likewise.
2375         * m4/stdbool.m4: Likewise.
2376         * m4/stdint.m4: Likewise.
2377         * m4/stdint_h.m4: Likewise.
2378         * m4/strerror.m4: Likewise.
2379         * m4/strerror_r.m4: Likewise.
2380         * m4/unistd_h.m4: Likewise.
2381         * m4/unlocked-io.m4: Likewise.
2382         * m4/visibility.m4: Likewise.
2383         * m4/wchar_t.m4: Likewise.
2384         * m4/wint_t.m4: Likewise.
2386         * srclib/allocsa.h: Remove file. Now taken from gnulib.
2387         * srclib/allocsa.c: Likewise.
2388         * srclib/binary-io.h: Likewise.
2389         * srclib/error.h: Likewise.
2390         * srclib/error.c: Likewise.
2391         * srclib/exit.h: Likewise.
2392         * srclib/gettext.h: Likewise.
2393         * srclib/memmove.c: Likewise.
2394         * srclib/pathmax.h: Likewise.
2395         * srclib/progname.h: Likewise.
2396         * srclib/progname.c: Likewise.
2397         * srclib/progreloc.c: Likewise.
2398         * srclib/readlink.c: Likewise.
2399         * srclib/setenv.h: Likewise.
2400         * srclib/setenv.c: Likewise.
2401         * srclib/stdbool_.h: Likewise.
2402         * srclib/stdint_.h: Likewise.
2403         * srclib/strerror.c: Likewise.
2404         * srclib/unlocked-io.h: Likewise.
2405         * srclib/unsetenv.c: Likewise.
2406         * srclib/Makefile.am: Remove file.
2408 2006-07-27  Bruno Haible  <bruno@clisp.org>
2410         Remove OS/2 build support that doesn't assume GNU make and GNU bash.
2411         * README.os2: Remove file.
2412         * Makefile.os2: Remove file.
2413         * lib/Makefile.os2: Remove file.
2414         * src/Makefile.os2: Remove file.
2415         * man/Makefile.os2: Remove file.
2416         * tests/Makefile.os2: Remove file.
2417         * tests/check-stateful.cmd: Remove file.
2418         * tests/check-stateless.cmd: Remove file.
2419         * tests/check-translit.cmd: Remove file.
2421 2006-07-25  Bruno Haible  <bruno@clisp.org>
2423         Remove MSVC/nmake build support.
2424         * windows: Remove directory.
2425         * Makefile.msvc: Remove file.
2426         * lib/Makefile.msvc: Remove file.
2427         * srclib/Makefile.msvc: Remove file.
2428         * src/Makefile.msvc: Remove file.
2429         * tests/Makefile.msvc: Remove file.
2430         * man/Makefile.msvc: Remove file.
2431         * po/Rules-msvc: Remove file.
2432         * po/Makefile.msvc.sh: Remove file.
2433         * Makefile.devel (config.h.msvc, lib/config.h.msvc): Remove rules.
2434         (include/iconv.h.msvc-static, include/iconv.h.msvc-shared): Remove
2435         rules.
2436         (po/Makefile.msvc): Remove rule.
2437         (all): Update.
2439 2006-07-25  Bruno Haible  <bruno@clisp.org>
2441         Remove VMS support.
2442         * vms: Remove directory.
2443         * Makefile.vms: Remove file.
2444         * lib/Makefile.vms: Remove file.
2445         * srclib/Makefile.vms: Remove file.
2446         * src/Makefile.vms: Remove file.
2447         * tests/Makefile.vms: Remove file.
2448         * man/Makefile.vms: Remove file.
2449         * Makefile.devel (config.h_vms, lib/config.h_vms): Remove rules.
2450         (include/iconv.h_vms): Remove rule.
2451         (all): Update.
2453 2006-07-23  Bruno Haible  <bruno@clisp.org>
2455         * lib/Makefile.in (libiconv.la): Use the CFLAGS during linking.
2456         * src/Makefile.in (iconv_no_i18n): Likewise.
2457         (install): Likewise.
2458         * tests/Makefile.in (table-from, table-to): Likewise.
2459         Needed because the CFLAGS can e.g. trigger profiling.
2460         Reported by Russell Aspinwall <russell.aspinwall@flomerics.co.uk>.
2462 2006-07-19  Bruno Haible  <bruno@clisp.org>
2464         * Version 1.11 released.
2466 2006-07-19  Bruno Haible  <bruno@clisp.org>
2468         * srclib/Makefile.am (libicrt_a_SOURCES): Remove error.h, error.c.
2469         (LIBADD_SOURCE): Add them here.
2471 2006-07-19  Bruno Haible  <bruno@clisp.org>
2473         * build-aux/config.guess: Update to GNU version 2006-07-02.
2474         * build-aux/config.sub: Likewise.
2476 2006-07-14  Bruno Haible  <bruno@clisp.org>
2478         * lib/Makefile.in (clean): Remove also *.stackdump.
2479         * src/Makefile.in (clean): Likewise.
2480         * tests/Makefile.in (clean): Likewise.
2482 2006-07-14  Bruno Haible  <bruno@clisp.org>
2484         * src/Makefile.in (clean): Remove also iconv_no_i18n. Needed for
2485         cygwin or mingw.
2486         * tests/Makefile.in (clean): Remove also the programs, without
2487         EXEEXT. Needed for cygwin or mingw.
2488         * Makefile.in (mostlyclean, clean, distclean, maintainer-clean):
2489         Remove also bin directory. Needed for cygwin and mingw.
2491 2006-07-03  Bruno Haible  <bruno@clisp.org>
2493         * src/iconv.c (check_subst_formatstring): Use ngettext.
2494         (subst_wc_to_mb_fallback, subst_mb_to_mb_fallback): Fix error messages
2495         after 2006-01-22 change.
2496         * configure.ac: Require a gettext version with ngettext.
2498 2006-06-28  Bruno Haible  <bruno@clisp.org>
2500         * m4/gettext.m4: Update from GNU gettext.
2501         * m4/po.m4: Update from GNU gettext.
2503 2006-06-27  Bruno Haible  <bruno@clisp.org>
2505         * Makefile.devel (AUTOCONF, AUTOHEADER): Use autoconf-2.60.
2506         * Makefile.in (datarootdir): New variable.
2507         (install, installdirs, uninstall): Also pass datarootdir.
2508         * configure.ac (mandir): Remove customization.
2509         * man/Makefile.in (datarootdir): New variable.
2510         (docdir, htmldir): Use autoconf-substituted value.
2511         * src/Makefile.in (datarootdir): New variable.
2512         (localedir): Use autoconf-substituted value.
2514 2006-06-27  Bruno Haible  <bruno@clisp.org>
2516         * m4/stdint.m4: Update from gnulib.
2517         * srclib/stdint_.h: Update from gnulib.
2518         * srclib/Makefile.am: Update.
2520 2006-06-17  Bruno Haible  <bruno@clisp.org>
2522         * srclib/unsetenv.c: Update from GNU gettext.
2523         * srclib/xreadlink.c: Likewise.
2525 2006-06-16  Bruno Haible  <bruno@clisp.org>
2527         * m4/full-header-path.m4: New file, from gnulib.
2528         * m4/size_max.m4: New file, from gnulib.
2529         * m4/stdint.m4: Update from gnulib.
2530         * srclib/stdint_.h: Update from gnulib.
2531         * srclib/Makefile.am (stdint.h): Likewise.
2532         * Makefile.devel (aclocal.m4): Update dependencies.
2534 2006-06-16  Bruno Haible  <bruno@clisp.org>
2536         * m4/ssize_t.m4: Update from GNU gettext.
2538 2006-06-12  Bruno Haible  <bruno@clisp.org>
2540         * m4/gettext.m4: Update from GNU gettext.
2541         * m4/inttypes-h.m4: New file, from GNU gettext.
2542         * m4/inttypes.m4: Remove file.
2543         * m4/stdint.m4 (gl_STDINT_H): Update.
2544         * Makefile.devel (aclocal.m4): Update dependencies.
2546 2006-06-10  Bruno Haible  <bruno@clisp.org>
2548         * src/iconv.c (error) [NO_I18N]: Define here instead of including
2549         error.h. Fixes link failure introduced on 2006-01-22.
2551 2006-03-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2553         * m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [ linux ]: Avoid warning when
2554         "parsing" /etc/ld.so.conf and empty /etc/ld.so.conf.d.
2556 2006-05-20  Bruno Haible  <bruno@clisp.org>
2558         * tests/BIG5-HKSCS-1999-snippet: New file.
2559         * tests/BIG5-HKSCS-1999-snippet.UTF-8: New file.
2560         * tests/BIG5-HKSCS-2001-snippet: New file.
2561         * tests/BIG5-HKSCS-2001-snippet.UTF-8: New file.
2562         * tests/BIG5-HKSCS-2004-snippet: New file.
2563         * tests/BIG5-HKSCS-2004-snippet.UTF-8: New file.
2564         * tests/Makefile.in (check): Test also the stateful parts of
2565         BIG5-HKSCS:1999, BIG5-HKSCS:2001, BIG5-HKSCS:2004.
2567 2006-05-17  Bruno Haible  <bruno@clisp.org>
2569         Implement newer releases of BIG5-HKSCS.
2570         * tools/Makefile (ALL): Remove hkscs.h, add hkscs1999.h, hkscs2001.h,
2571         hkscs2004.h.
2572         (hkscs.h): Remove rule.
2573         (hkscs1999.h, hkscs2001.h, hkscs2004.h): New rules.
2574         * tools/cjk_tab_to_h.c (output_title): Update year.
2575         (main): Recognize hkscs1999, hkscs2001, hkscs2004.
2576         * lib/encodings.def: Rename BIG5-HKSCS to BIG5-HKSCS:1999. Add
2577         BIG5-HKSCS:2001, BIG5-HKSCS:2004. Make all three stateful.
2578         * lib/hkscs.h: Remove file.
2579         * lib/hkscs1999.h: New file.
2580         * lib/hkscs2001.h: New file.
2581         * lib/hkscs2004.h: New file.
2582         * lib/big5hkscs.h: Remove file.
2583         * lib/big5hkscs1999.h: New file.
2584         * lib/big5hkscs2001.h: New file.
2585         * lib/big5hkscs2004.h: New file.
2586         * lib/converters.h: Include the new files.
2587         * README, man/iconv_open.3: Add BIG5-HKSCS:1999, BIG5-HKSCS:2001.
2588         * tests/BIG5-HKSCS.TXT: Remove file.
2589         * tests/BIG5-HKSCS.IRREVERSIBLE.TXT: Remove file.
2590         * tests/BIG5-HKSCS-1999.TXT: New file.
2591         * tests/BIG5-HKSCS-1999.IRREVERSIBLE.TXT: New file.
2592         * tests/BIG5-HKSCS-2001.TXT: New file.
2593         * tests/BIG5-HKSCS-2001.IRREVERSIBLE.TXT: New file.
2594         * tests/BIG5-HKSCS-2004.TXT: New file.
2595         * tests/BIG5-HKSCS-2004.IRREVERSIBLE.TXT: New file.
2596         * tests/check-stateless: Convert colon in the charset name to a dash in
2597         the file name.
2598         * tests/Makefile.in (check): Check BIG5-HKSCS:1999, BIG5-HKSCS:2001,
2599         BIG5-HKSCS:2004 instead of just BIG5-HKSCS.
2600         * tests/Makefile.msvc (check): Don't check BIG5-HKSCS.
2601         * tests/Makefile.os2 (check): Likewise.
2603 2006-05-17  Bruno Haible  <bruno@clisp.org>
2605         * srclib/progreloc.c: Update from GNU gettext.
2607 2006-05-16  Bruno Haible  <bruno@clisp.org>
2609         * src/Makefile.in (clean): Use EXEEXT.
2610         * tests/Makefile.in (check, clean): Likewise.
2612 2006-05-15  Bruno Haible  <bruno@clisp.org>
2614         * configure.ac: Move some checks before AC_RELOCATABLE.
2616 2006-05-15  Bruno Haible  <bruno@clisp.org>
2618         Support for building shared libraries on mingw and Cygwin.
2619         * configure.ac (WOE32DLL, DLL_VARIABLE): New variables.
2620         * include/iconv.h.in (_libiconv_version): Mark as DLL_VARIABLE.
2621         * woe32dll/export.h: New file, from GNU gettext.
2622         * woe32dll/iconv-exports.h: New file.
2623         * Makefile.devel (include/iconv.h_vms, include/iconv.h.msvc-static,
2624         include/iconv.h.msvc-shared): Remove the DLL_VARIABLE annotation.
2625         * lib/Makefile.in (INCLUDES): Add -I for parent directory.
2626         (LDFLAGS): Add WOE32DLL dependent flags.
2627         (LDFLAGS_yes, LDFLAGS_no): New variables.
2628         (OBJECTS): Add WOE32DLL dependent objects.
2629         (OBJECTS_yes, OBJECTS_no): New variables.
2630         (iconv-exports.lo): New rule.
2632 2006-05-15  Bruno Haible  <bruno@clisp.org>
2634         * srclib/gettext.h: Update from GNU gettext.
2635         * srclib/pathmax.h: Update from GNU gettext.
2636         * srclib/progreloc.c: Update from GNU gettext.
2637         * srclib/unsetenv.c: Update from GNU gettext.
2638         * srclib/Makefile.am: Add snippet for creation of unistd.h.
2639         * m4/extensions.m4: Update from GNU gettext.
2640         * m4/gettext.m4: Update from GNU gettext.
2641         * m4/lib-ld.m4: Update from GNU gettext.
2642         * m4/lib-link.m4: Update from GNU gettext.
2643         * m4/lib-prefix.m4: Update from GNU gettext.
2644         * m4/longdouble.m4: Update from GNU gettext.
2645         * m4/nls.m4: Update from GNU gettext.
2646         * m4/onceonly.m4: Update from GNU gettext.
2647         * m4/po.m4: Update from GNU gettext.
2648         * m4/relocatable.m4: Update from GNU gettext.
2649         * m4/unistd_h.m4: New file, from GNU gettext.
2650         * Makefile.devel (aclocal.m4): Depend on it.
2651         * configure.ac: Invoke gl_HEADER_UNISTD.
2653 2006-05-14  Bruno Haible  <bruno@clisp.org>,
2654             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2656         * m4/libtool.m4 [ linux ] (AC_LIBTOOL_LANG_CXX_CONFIG)
2657         (AC_LIBTOOL_POSTDEP_PREDEP, AC_LIBTOOL_PROG_COMPILER_PIC)
2658         (AC_LIBTOOL_PROG_LD_SHLIBS): Add support for Sun C 5.9,
2659         Sun C++ 5.9, and Sun Fortran 8.3 on Linux.
2661 2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
2663         * m4/libtool.m4: On Cygwin, like on mingw, define DLL_EXPORT when
2664         compiling a shared library object.
2666 2006-05-15  Bruno Haible  <bruno@clisp.org>
2668         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
2670 2006-03-31  Juan Manuel Guerrero  <juan.guerrero@gmx.de>
2672         * djgpp/*: Update.
2674 2006-01-23  Bruno Haible  <bruno@clisp.org>
2676         * configure.ac: Invoke gl_ALLOCSA.
2678         * Makefile.devel (aclocal.m4): Depend on $(CONFIGURES_IN).
2680 2006-01-22  Bruno Haible  <bruno@clisp.org>
2682         * src/iconv.c (xmalloc, xalloc_die) [NO_I18N]: Define to avoid using
2683         gettext().
2685 2006-01-22  Bruno Haible  <bruno@clisp.org>
2687         * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 6:0:4.
2689 2006-01-22  Bruno Haible  <bruno@clisp.org>
2691         * src/iconv.c: Include error.h, exit.h.
2692         (print_version): Use EXIT_SUCCESS.
2693         (check_subst_formatstring, subst_mb_to_uc_fallback,
2694         subst_uc_to_mb_fallback, subst_mb_to_wc_fallback,
2695         subst_wc_to_mb_fallback, subst_mb_to_mb_fallback, convert, main): Use
2696         error() instead of fprintf to stderr.
2698 2006-01-22  Bruno Haible  <bruno@clisp.org>
2700         New feature: character-dependent substitutions.
2701         * include/iconv.h.in (iconv_unicode_mb_to_uc_fallback,
2702         iconv_unicode_uc_to_mb_fallback, iconv_wchar_mb_to_wc_fallback,
2703         iconv_wchar_wc_to_mb_fallback): New types.
2704         (struct iconv_fallbacks): New structure type.
2705         (ICONV_SET_FALLBACKS): New macro.
2706         * configure.ac: Invoke gt_TYPE_WCHAR_T and substitute HAVE_WCHAR_T.
2707         * Makefile.os2 (all): Also substitute @HAVE_WCHAR_T@ in build/iconv.h.
2708         * Makefile.devel (include/iconv.h_vms, include/iconv.h.msvc-static,
2709         include/iconv.h.msvc-shared): Also substitute @HAVE_WCHAR_T@.
2710         * lib/converters.h (struct conv_struct): Add field 'fallbacks'.
2711         * lib/loop_unicode.h (struct uc_to_mb_fallback_locals): New type.
2712         (uc_to_mb_write_replacement): New function.
2713         (struct mb_to_uc_fallback_locals): New type.
2714         (mb_to_uc_write_replacement): New function.
2715         (unicode_loop_convert): Call mb_to_uc_fallback and uc_to_mb_fallback.
2716         (unicode_loop_reset): Call uc_to_mb_fallback.
2717         * lib/loop_wchar.h (struct wc_to_mb_fallback_locals): New type.
2718         (wc_to_mb_write_replacement): New function.
2719         (wchar_from_loop_convert): Call wc_to_mb_fallback.
2720         (struct mb_to_wc_fallback_locals): New type.
2721         (mb_to_wc_write_replacement): New function.
2722         (wchar_to_loop_convert): Call mb_to_wc_fallback.
2723         * lib/iconv.c (iconv_open): Initialize the 'fallbacks' field.
2724         (iconvctl): Handle ICONV_SET_FALLBACKS.
2725         * lib/genflags.c (struct iconv_fallbacks): New dummy definition.
2726         * src/iconv.c: Include limits.h.
2727         (isdigit, c_isprint): New macros.
2728         (usage): Document long options and new options.
2729         (check_subst_formatstring): New function.
2730         (ilseq_byte_subst, ilseq_wchar_subst, ilseq_unicode_subst): New
2731         variables.
2732         (ilseq_byte_subst_size, ilseq_wchar_subst_size,
2733         ilseq_unicode_subst_size): New variables.
2734         (ilseq_byte_subst_buffer, ilseq_wchar_subst_buffer,
2735         ilseq_unicode_subst_buffer): New variables.
2736         (subst_mb_to_uc_cd, subst_mb_to_uc_temp_buffer): New variables.
2737         (subst_mb_to_uc_fallback): New function.
2738         (subst_uc_to_mb_cd, subst_uc_to_mb_temp_buffer): New variables.
2739         (subst_uc_to_mb_fallback): New function.
2740         (subst_mb_to_wc_cd, subst_mb_to_wc_temp_buffer): New variables.
2741         (subst_mb_to_wc_fallback): New function.
2742         (subst_wc_to_mb_cd, subst_wc_to_mb_temp_buffer): New variables.
2743         (subst_wc_to_mb_fallback): New function.
2744         (subst_mb_to_mb_cd, subst_mb_to_mb_temp_buffer): New variables.
2745         (subst_mb_to_mb_fallback): New function.
2746         (convert): Enlarge the outbuf when the conversion failed with E2BIG.
2747         (main): Handle new options --byte-subst, --widechar-subst,
2748         --unicode-subst.
2749         * man/iconv.1: Document --unicode-subst, --byte-subst, --widechar-subst
2750         options.
2751         * tests/check-subst: New file.
2752         * tests/Makefile.in (check): Also invoke check-subst.
2753         Suggested by James Taylor <james@oakseed.demon.co.uk>.
2755 2006-01-21  Bruno Haible  <bruno@clisp.org>
2757         * src/iconv.c (print_version): Bump copyright year.
2758         (main): Accept long options --from-code, --to-code, --list, --silent.
2759         Accept abbreviated long options, like getopt() does.
2760         * man/iconv.1: Document long options.
2762 2005-12-29  Bruno Haible  <bruno@clisp.org>
2764         * src/iconv.c (print_version): Update copyright year.
2766 2005-12-29  Bruno Haible  <bruno@clisp.org>
2768         * configure.ac: Renamed from configure.in.
2769         * Makefile.devel (CONFIGURES_IN, configure, config.h.in): Update.
2771 2005-12-29  Bruno Haible  <bruno@clisp.org>
2773         * configure.in: Bump version number.
2774         * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
2775         * windows/iconv.rc: Likewise.
2776         * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 5:1:3.
2778 2005-12-29  Bruno Haible  <bruno@clisp.org>
2780         * build-aux/config.guess: Update to GNU version 2005-12-23.
2781         * build-aux/config.sub: Likewise.
2782         * build-aux/config.libpath: Update from GNU gettext.
2783         * build-aux/install-sh: Upgrade to automake-1.9.5.
2784         * build-aux/missing: Upgrade to automake-1.9.5.
2785         * build-aux/mkinstalldirs: Upgrade to automake-1.9.5.
2787 2005-12-29  Bruno Haible  <bruno@clisp.org>
2789         * m4/alloca.m4: Update from GNU gettext.
2790         * m4/allocsa.m4: Update from GNU gettext.
2791         * m4/canonicalize.m4: Update from GNU gettext.
2792         * m4/codeset.m4: Update from GNU gettext.
2793         * m4/eealloc.m4: Update from GNU gettext.
2794         * m4/error.m4: Update from GNU gettext.
2795         * m4/extensions.m4: Update from GNU gettext.
2796         * m4/gettext.m4: Update from GNU gettext.
2797         * m4/glibc21.m4: Update from GNU gettext.
2798         * m4/iconv.m4: Update from GNU gettext.
2799         * m4/intmax.m4: Update from GNU gettext.
2800         * m4/inttypes_h.m4: New file, from GNU gettext.
2801         * m4/isc-posix.m4: Update from GNU gettext.
2802         * m4/lcmessage.m4: Update from GNU gettext.
2803         * m4/longdouble.m4: Update from GNU gettext.
2804         * m4/longlong.m4: Update from GNU gettext.
2805         * m4/mbstate_t.m4: Update from GNU gettext.
2806         * m4/nls.m4: Update from GNU gettext.
2807         * m4/onceonly.m4: Update from GNU gettext.
2808         * m4/pathmax.m4: Update from GNU gettext.
2809         * m4/po.m4: Update from GNU gettext.
2810         * m4/printf-posix.m4: Update from GNU gettext.
2811         * m4/progtest.m4: Update from GNU gettext.
2812         * m4/readlink.m4: Update from GNU gettext.
2813         * m4/relocatable.m4: Update from GNU gettext.
2814         * m4/setenv.m4: Update from GNU gettext.
2815         * m4/signed.m4: Update from GNU gettext.
2816         * m4/ssize_t.m4: Update from GNU gettext.
2817         * m4/stdbool.m4: Update from GNU gettext.
2818         * m4/stdint_h.m4: New file, from GNU gettext.
2819         * m4/strerror.m4: Update from GNU gettext.
2820         * m4/strerror_r.m4: Update from GNU gettext.
2821         * m4/unlocked-io.m4: Update from GNU gettext.
2822         * m4/wchar_t.m4: Update from GNU gettext.
2823         * m4/wint_t.m4: Update from GNU gettext.
2824         * m4/xreadlink.m4: Update from GNU gettext.
2825         * Makefile.devel (aclocal.m4): Depend on m4/inttypes_h.m4 and
2826         m4/stdint_h.m4 as well.
2827         * configure.in: Invoke AC_TYPE_MBSTATE_T instead of AC_MBSTATE_T.
2828         Invoke gl_FUNC_GLIBC_UNLOCKED_IO instead of jm_FUNC_GLIBC_UNLOCKED_IO.
2829         Invoke gl_ERROR instead of gt_FUNC_ERROR_AT_LINE.
2830         Don't invoke AC_AIX and AC_MINIX, done by gl_USE_SYSTEM_EXTENSIONS.
2831         Temporarily redefine AC_LIBOBJ and AC_REPLACE_FUNCS, so as to fill
2832         SRCLIBOBJS instead of LIBOBJS.
2833         * srclib/alloca_.h: Update from GNU gettext.
2834         * srclib/allocsa.h: Update from GNU gettext.
2835         * srclib/canonicalize.c: Update from GNU gettext.
2836         * srclib/error.h: Update from GNU gettext.
2837         * srclib/error.c: Update from GNU gettext.
2838         * srclib/gettext.h: Update from GNU gettext.
2839         * srclib/memmove.c: Update from GNU gettext.
2840         * srclib/progname.h: Update from GNU gettext.
2841         * srclib/progname.c: Update from GNU gettext.
2842         * srclib/progreloc.c: Update from GNU gettext.
2843         * srclib/readlink.c: Update from GNU gettext.
2844         * srclib/relocatable.c: Update from GNU gettext.
2845         * srclib/relocwrapper.c: Update from GNU gettext.
2846         * srclib/setenv.h: Update from GNU gettext.
2847         * srclib/setenv.c: Update from GNU gettext.
2848         * srclib/stdbool_.h: Update from GNU gettext.
2849         * srclib/stdint_.h: Update from gnulib.
2850         * srclib/strerror.c: Update from GNU gettext.
2851         * srclib/unlocked-io.h: Update from GNU gettext.
2852         * srclib/unsetenv.c: Update from GNU gettext.
2853         * srclib/xalloc.h: Update from GNU gettext.
2854         * srclib/xmalloc.c: Update from GNU gettext.
2855         * srclib/xreadlink.c: Update from GNU gettext.
2856         * srclib/xstrdup.c: Update from GNU gettext.
2857         * srclib/Makefile.am (DEFS): Also define EXEEXT.
2858         (libicrt_a_LIBADD): Use SRCLIBOBJS instead of LIBOBJS.
2859         (libicrt_a_DEPENDENCIES): New variable.
2860         * src/Makefile.in (EXEEXT): New variable.
2861         * build-aux/install-reloc: Update from GNU gettext.
2862         * build-aux/reloc-ldflags: Update from GNU gettext.
2863         * build-aux/config.rpath: Update from GNU gettext.
2865 2005-12-29  Bruno Haible  <bruno@clisp.org>
2867         * m4/libtool.m4: Update, based on libtool-1.5.22.
2868         * build-aux/ltmain.sh: Update, based on libtool-1.5.22.
2870 2005-12-24  Bruno Haible  <bruno@clisp.org>
2872         Check the whole range of GB18030.
2873         * tests/GB18030-BMP.TXT: Renamed from tests/GB18030.TXT.
2874         * tests/gengb18030z.c: New file.
2875         * tests/table-from.c (main): For GB18030, don't stop at U+10000.
2876         * tests/table-to.c (main): Likewise.
2877         * tests/Makefile.in (check): Generate GB18030.TXT on the fly from
2878         GB18030-BMP.TXT.
2879         (clean): Remove also gengb18030z and GB18030.TXT.
2880         * tests/Makefile.msvc (check): Generate GB18030.TXT on the fly from
2881         GB18030-BMP.TXT.
2882         (clean): Remove also GB18030Z.TXT, GB18030TMP.TXT, GB18030.TXT.
2883         * tests/Makefile.os2 (check): Depend on gengb18030z.exe. Generate
2884         GB18030.TXT on the fly from GB18030-BMP.TXT.
2885         (clean): Remove also GB18030Z.TXT, GB18030TMP.TXT, GB18030.TXT.
2887 2005-12-20  Bruno Haible  <bruno@clisp.org>
2889         * tests/table-to.c (main): Test the mappings up to U+10FFFF, not only
2890         up to U+2FFFF. Tolerate that Unicode language tags are silently mapped
2891         to nothing.
2893 2005-12-22  Bruno Haible  <bruno@clisp.org>
2895         Extend GB18030 converter to cover the entire Unicode PUA.
2896         * lib/gb18030.h: Update comments, based on second printing.
2897         (gb18030_mbtowc): Add mapping for range U+E000..U+E765.
2898         (gb18030_pua2charset): New array.
2899         (gb18030_wctomb): Add mapping for range U+E000..U+E765 and the two-byte
2900         part of range U+E766..U+E864.
2901         * lib/gb18030ext.h (gb18030ext_2uni_pagefe): Add mappings to private
2902         area.
2903         (gb18030ext_mbtowc): Add mapping for the two-byte part of range
2904         U+E766..U+E864.
2905         * lib/gb18030uni.h (gb18030uni_charset2uni_ranges,
2906         gb18030uni_uni2charset_ranges, gb18030uni_ranges): Add 12 more
2907         intervals.
2908         (gb18030uni_mbtowc, gb18030uni_wctomb): Update.
2909         * tests/GB18030.TXT: Complete mappings to private area.
2911 2005-12-22  Bruno Haible  <bruno@clisp.org>
2913         * lib/gbk.h: Update comments.
2915 2005-12-20  Bruno Haible  <bruno@clisp.org>
2917         Add private area mappings to CP949.
2918         * lib/cp949.h (cp949_mbtowc, cp949_wctomb): Map U+E000..U+E0BB like
2919         many others do it.
2920         * tests/CP949.TXT: Add mappings for U+E000..U+E0BB.
2922 2005-12-15  Bruno Haible  <bruno@clisp.org>
2924         Add private area mappings to CP950.
2925         * lib/cp950.h (cp950_mbtowc, cp950_wctomb): Map U+E000..U+F6B0 like
2926         most others do it.
2927         * tests/CP950.TXT: Add mappings for U+E000..U+F6B0.
2929 2005-12-15  Bruno Haible  <bruno@clisp.org>
2931         Make CP936 follow what Microsoft does.
2932         In http://www.microsoft.com/globaldev/reference/dbcs/936.mspx they
2933         added a 0x80 - U+20AC mapping to the code chart, but not to the
2934         tooltips and not to the list of mappings.
2935         * lib/cp936.h: New file.
2936         * lib/gbk.h: Update comments.
2937         * lib/ces_gbk.h: Update comments.
2938         * lib/converters.h: Include cp936.h.
2939         * lib/encodings.def (CP936): New encoding.
2940         (GBK): Remove CP936 aliases.
2941         * README, man/iconv_open.3: Add CP936.
2942         * tests/Makefile.in (check): Check CP936.
2943         * tests/Makefile.msvc (check): Likewise.
2944         * tests/Makefile.os2 (check): Likewise.
2945         * tests/CP936.TXT: New file.
2947 2005-12-14  Bruno Haible  <bruno@clisp.org>
2949         * lib/cp932.h (cp932_wctomb): Map U+FF5E, U+2225, U+FF0D, U+FFE0,
2950         U+FFE1 like Microsoft does it.
2951         * lib/CP932.IRREVERSIBLE.TXT: Add these mappings.
2952         Reported by Lei Wang <lwang@qilinsoft.com>.
2954 2005-12-14  Bruno Haible  <bruno@clisp.org>
2956         Follow Euro sign addition done in 1999 in
2957         http://www.microsoft.com/globaldev/reference/dbcs/950/950_A3.mspx
2958         * lib/cp950.h (cp950_mbtowc, cp950_wctomb): Add mapping for 0xA3E1.
2959         * tests/CP950.TXT: Add mapping for 0xA3E1.
2961 2005-11-11  Bruno Haible  <bruno@clisp.org>
2963         * lib/euc_jp.h (euc_jp_wctomb): When writing a 3-bytes byte sequence
2964         and only two bytes are available in the output buffer, return
2965         RET_TOOSMALL instead of overrunning the output buffer.
2966         * lib/isoir165.h (isoir165_wctomb): When only one byte is available
2967         in the output buffer, don't overrun the output buffer.
2968         Reported by William Bardwell <bardwell@curl.com>.
2970 2005-09-18  Bruno Haible  <bruno@clisp.org>
2972         * m4/libtool.m4: Update, based on libtool-1.5.20.
2973         * build-aux/ltmain.sh: Update, based on libtool-1.5.20.
2975 2005-08-12  Bruno Haible  <bruno@clisp.org>
2977         * lib/big5_2003.h: Map 0xF9FA..0xF9FD differently.
2978         * tests/BIG5-2003.TXT: Likewise.
2979         * tests/BIG5-2003.IRREVERSIBLE.TXT: New file.
2980         Reported by Ping Yeh <ping@pingyeh.net>.
2982 2005-07-24  Bruno Haible  <bruno@clisp.org>
2984         Tidy up exported symbols.
2985         * m4/visibility.m4: New file.
2986         * include/export.h: New file.
2987         * configure.in: Invoke gl_VISIBILITY. Use AC_CONFIG_FILES. Arrange to
2988         create also include/iconv.h.inst.
2989         * Makefile.devel (all): Depend on include/iconv.h.build.in.
2990         (aclocal.m4): Depend on m4/visibility.m4.
2991         (include/iconv.h.build.in): New rule.
2992         * Makefile.in (install-lib, install): Install include/iconv.h.inst,
2993         not the include/iconv.h that was used for building.
2994         (distclean, maintainer-clean): Remove also include/iconv.h.inst.
2995         * lib/Makefile.in (CFLAGS): Add @CFLAG_VISIBILITY@.
2996         (DEFS): Also define BUILDING_LIBICONV and BUILDING_DLL.
2997         * lib/config.h.in (HAVE_VISIBILITY): New macro.
2998         * lib/relocatable.h (RELOCATABLE_DLL_EXPORTED) [HAVE_VISIBILITY]:
2999         Define to the gcc visibility attribute.
3000         * srclib/relocatable.h (RELOCATABLE_DLL_EXPORTED) [HAVE_VISIBILITY]:
3001         Likewise.
3003 2005-07-25  Bruno Haible  <bruno@clisp.org>
3005         2003-08-24  Bruno Haible  <bruno@clisp.org>
3006         * lib/relocatable.h: Make this file includable in C++ mode: add extern
3007         "C".
3009 2005-07-08  Bruno Haible  <bruno@clisp.org>
3011         * Version 1.10 released.
3013 2005-07-08  Bruno Haible  <bruno@clisp.org>
3015         * m4/libtool.m4 (postinstall_cmds) [cygwin,mingw,pw32]: Make DLL
3016         executable after installing it.
3018 2005-07-08  Bruno Haible  <bruno@clisp.org>
3020         * configure.in: Bump version number.
3021         * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
3022         * windows/iconv.rc: Likewise.
3023         * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 5:0:3.
3025 2005-07-05  Bruno Haible  <bruno@clisp.org>
3027         * Makefile.devel (ACLOCAL): New variable.
3028         (aclocal.m4): Use it.
3030 2005-07-05  Bruno Haible  <bruno@clisp.org>
3032         * m4/relocatable.m4 (AC_RELOCATABLE): On mingw, simply set
3033         SET_RELOCATABLE to a trivial value.
3035 2004-08-08  Bruno Haible  <bruno@clisp.org>
3037         * srclib/progreloc.c (xstrdup): Define as strdup if no xmalloc should
3038         be used.
3040 2004-04-28  Bruno Haible  <bruno@clisp.org>
3042         * srclib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
3043         Treat Cygwin like Windows, since it now accepts Windows pathnames.
3045 2005-06-09  Bruno Haible  <bruno@clisp.org>
3047         * Makefile.in (mkinstalldirs): Use build-aux/ instead of autoconf/.
3048         * lib/Makefile.in (mkinstalldirs): Likewise.
3049         * src/Makefile.in (mkinstalldirs): Likewise.
3050         * man/Makefile.in (mkinstalldirs): Likewise.
3052 2005-06-08  Bruno Haible  <bruno@clisp.org>
3054         * srclib/canonicalize.c (__realpath): Avoid gcc warnings on platforms
3055         that don't support symbolic links.
3057 2005-06-08  Bruno Haible  <bruno@clisp.org>
3059         * srclib/binary-io.h (fileno): Undefine before defining it. Avoids a
3060         gcc warning on mingw.
3062 2005-05-22  Bruno Haible  <bruno@clisp.org>
3064         Implement and document BIG5-2003.
3065         * lib/big5_2003.h: New file.
3066         * lib/converters.h: Include it.
3067         * lib/encodings_extra.def (BIG5-2003): New encoding.
3068         * README, man/iconv_open.3: Add BIG5-2003.
3069         * tests/Makefile.in (check-extra-yes): Check BIG5-2003.
3070         * tests/BIG5-2003.TXT: New file.
3072 2005-05-21  Bruno Haible  <bruno@clisp.org>
3074         Add EURO SIGN to EUC-TW converter.
3075         * lib/cns11643_1.h (cns11643_1_2uni_page42): Add entry for 0x14242.
3076         (cns11643_1_mbtowc): Update.
3077         * lib/cns11643_inv.h (cns11643_inv_2charset): Add entry for 0x20AC.
3078         (cns11643_inv_uni2indx_page*): Update.
3079         * lib/dec_hanyu.h (dec_hanyu_mbtowc, dec_hanyu_wctomb): Consider only
3080         part of row 42.
3081         * tests/EUC-TW.TXT: Add entry for 0x20AC.
3082         * tests/EUC-TW.IRREVERSIBLE.TXT: Likewise.
3084 2005-05-03  Bruno Haible  <bruno@clisp.org>
3086         * tools/Makefile (ALL): Add pt154.h.
3087         (pt154.h): New rule.
3088         * lib/encodings.def: Add PT154.
3089         * lib/pt154.h: New file.
3090         * lib/converters.h: Include it.
3091         * README, man/iconv_open.3: Add PT154.
3092         * NOTES: Mention PT154.
3093         * tests/PT154.TXT: New file.
3094         * tests/Makefile.in (check): Also test PT154.
3095         * tests/Makefile.msvc (check): Likewise.
3096         * tests/Makefile.os2 (check): Likewise.
3098 2005-03-29  Bruno Haible  <bruno@clisp.org>
3100         Rename libiconv_plug.so to preloadable_libiconv.so.
3101         * configure.in (PLUGLIB): Set to preloadable_libiconv.so instead of
3102         libiconv_plug.so.
3103         * lib/Makefile.in (preloadable_libiconv.so): Renamed from
3104         libiconv_plug.so.
3105         (preloadable_libiconv_linux.so): Renamed from libiconv_plug_linux.so.
3106         (preloadable_libiconv_solaris.so): Renamed from
3107         libiconv_plug_solaris.so.
3108         (preloadable_libiconv_osf.so): Renamed from libiconv_plug_osf.so.
3109         (clean): Update.
3110         * README: Update.
3112 2005-03-29  Bruno Haible  <bruno@clisp.org>
3114         Implement and document ATARIST.
3115         * tools/Makefile (ALL): Add atarist.h.
3116         (atarist.h): New rule.
3117         * lib/atarist.h: New file.
3118         * lib/converters.h: Include it.
3119         * lib/encodings_extra.def (ATARIST): New encoding.
3120         * README, man/iconv_open.3: Add ATARIST.
3121         * tests/Makefile.in (check-extra-yes): Check ATARIST.
3122         * tests/ATARIST.TXT: New file.
3124 2005-03-22  Bruno Haible  <bruno@clisp.org>
3126         * build-aux: New directory, renamed from autoconf.
3127         * configure.in (AC_CONFIG_AUX_DIR): Use build-aux.
3129 2005-03-16  Bruno Haible  <bruno@clisp.org>
3131         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
3132         HAVE_LONGLONG_64BIT.
3133         * srclib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
3134         HAVE_LONGLONG_64BIT.
3135         * srclib/Makefile.am (stdint.h): Likewise.
3137 2005-03-14  Bruno Haible  <bruno@clisp.org>
3139         * Makefile.devel (aclocal.m4): Depend also on allocsa.m4, eealloc.m4,
3140         extensions.m4, intmax.m4, inttypes.m4, longdouble.m4, longlong.m4,
3141         printf-posix.m4, readlink.m4, signed.m4, ssize_t.m4, stdint.m4,
3142         wchar_t.m4, wint_t.m4.
3144 2005-03-13  Bruno Haible  <bruno@clisp.org>
3146         Make stdout error checking reliable, also when writing to a NFS file.
3147         * src/iconv.c (main): Check the return value of fclose(stdout).
3148         * lib/genaliases.c (main): Likewise.
3149         * lib/genaliases2.c (main): Likewise.
3150         * lib/genflags.c (main): Likewise.
3151         * lib/gentranslit.c (main): Likewise.
3152         * tests/genutf8.c (main): Likewise.
3153         * tests/table-from.c (main): Likewise.
3154         * tests/table-to.c (main): Likewise.
3156 2005-03-13  Bruno Haible  <bruno@clisp.org>
3158         * src/iconv.c (convert): Before outputting an error message, flush
3159         stdout and output a newline if suitable.
3161 2005-03-13  Bruno Haible  <bruno@clisp.org>
3163         Improved error messages.
3164         * srclib/width.c: New file, from GNU clisp.
3165         * srclib/uniwidth.h: New file, from GNU clisp with modifications.
3166         * srclib/unitypes.h: New file, from GNU clisp with modifications.
3167         * srclib/cjk.h: New file, from GNU clisp.
3168         * srclib/streq.h: New file, from GNU clisp.
3169         * srclib/stdint_.h: New file, from gnulib.
3170         * m4/stdint.m4: New file, from gnulib.
3171         * m4/inttypes.m4: New file, from gnulib.
3172         * srclib/Makefile.am: Add gnulib module 'stdint' snippet.
3173         (BUILT_SOURCES): New variable.
3174         (libicrt_a_SOURCES): Add width.c, uniwidth.h, unitypes.h, cjk.h,
3175         streq.h.
3176         * configure.in: Invoke gl_STDINT_H.
3177         * src/iconv.c: Include cjk.h, uniwidth.h.
3178         (line, column, cjkcode): New variables.
3179         (update_line_column): New function.
3180         (convert): Initialize line and column. In all error message, show also
3181         the line and column number.
3182         (main): Initialize cjkcode. Set up hooks to call update_line_column.
3184 2005-03-13  Bruno Haible  <bruno@clisp.org>
3186         * include/iconv.h.in (iconv_canonicalize): New declaration.
3187         * lib/genaliases.c (emit_encoding): Take two output streams as
3188         arguments. To the second stream, emit a shell command for extracting
3189         offsets into the gperf generated string pool.
3190         (main): Write the shell commands into file descriptors 3 and 4.
3191         * lib/genaliases2.c (emit_encoding): Take two output streams as
3192         arguments. To the second stream, emit an expression for the offset
3193         into the string pool.
3194         (main): Write the offsets into file descriptor 3.
3195         * Makefile.devel (lib/aliases.gperf): Remove target.
3196         (lib/aliases.h): Generate lib/aliases.gperf temporarily. Generate also
3197         lib/canonical.h and lib/canonical_local.h.
3198         (lib/aliases_aix.h): Generate also lib/canonical_aix.h.
3199         (lib/aliases_osf1.h): Generate also lib/canonical_osf1.h.
3200         (lib/aliases_dos.h): Generate also lib/canonical_dos.h.
3201         (lib/aliases_extra.h): Generate also lib/canonical_extra.h.
3202         * lib/iconv.c (stringpool2): Provide default definition when it doesn't
3203         exist.
3204         (all_canonical): New array.
3205         (iconv_canonicalize): New function.
3207 2005-03-13  Bruno Haible  <bruno@clisp.org>
3209         * include/iconv.h.in (iconv_unicode_char_hook, iconv_wide_char_hook,
3210         iconv_hooks): New types.
3211         (ICONV_SET_HOOKS): New macro.
3212         * lib/converters.h (struct conv_struct): Add field 'hooks'.
3213         * lib/iconv.c (iconv_open): Initialize hooks to NULL.
3214         (iconvctl): Handle ICONV_SET_HOOKS.
3215         * lib/loop_unicode.h (unicode_loop_convert, unicode_loop_reset): After
3216         conversion of a character, call the uc_hook.
3217         * lib/loop_wchar.h (wchar_id_loop_convert): After every character, call
3218         the wc_hook.
3219         * lib/genflags.c (iconv_hooks): Provide a dummy definition.
3221 2005-02-05  Bruno Haible  <bruno@clisp.org>
3223         * src/iconv.c (main): In case of unsupported encodings, show a hint
3224         towards "iconv -l".
3226 2005-01-06  Bruno Haible  <bruno@clisp.org>
3228         * lib/Makefile.msvc (CFLAGS): Define also INSTALLPREFIX.
3229         * lib/Makefile.vms (DEFS): Likewise.
3230         Reported by Troels Walsted Hansen <Troels.W.Hansen@fast.no>.
3232 2005-01-05  Bruno Haible  <bruno@clisp.org>
3234         * autoconf/config.rpath: Update from GNU gettext.
3236 2005-01-05  Bruno Haible  <bruno@clisp.org>
3238         Assume automake-1.9.
3239         * Makefile.devel (AUTOMAKE): Assume automake-1.9.
3241 2005-01-05  Bruno Haible  <bruno@clisp.org>
3243         * m4/libtool.m4: Update from GNU gettext, based on libtool-1.5.10.
3244         * autoconf/ltmain.sh: Update from GNU gettext, based on libtool-1.5.10.
3246 2004-11-11  Bruno Haible  <bruno@clisp.org>
3248         * lib/iconv.c (iconv_open): Accept the suffixes //TRANSLIT and //IGNORE
3249         in arbitrary order.
3250         Reported by Lukas Gebauer <gebauerl@mlp.cz>.
3252 2004-09-21  Juan Manuel Guerrero  <st001906@hrz1.hrz.tu-darmstadt.de>
3254         * djgpp/config.bat: Update.
3255         * djgpp/config.sed: Update.
3256         * djgpp/config.site: Update.
3257         * djgpp/edtest.bat: Update.
3258         * djgpp/fnchange.in: Update.
3259         * djgpp/Makefile.maint: Update.
3260         * djgpp/makefile.sed: Update.
3261         * djgpp/README.in: Update.
3262         * djgpp/sources.sed: Update.
3263         * djgpp/translit-check.sed: Update.
3265 2004-08-25  Bruno Haible  <bruno@clisp.org>
3267         * m4/libtool.m4: Update from GNU gettext, based on libtool-1.5.6.
3268         * autoconf/ltmain.sh: Update from GNU gettext, based on libtool-1.5.6.
3270 2004-07-31  Bruno Haible  <bruno@clisp.org>
3272         Update to JISX 0213 plane 1 to 2004 version (ISO-IR-233).
3273         * tools/Makefile (jisx0213.h): Bump version number.
3274         * tools/JISX0213.TXT: Change mappings U+2015 -> U+2014,
3275         U+2299 -> U+29BF, and add 10 new characters.
3276         * tools/cjk_tab_to_h.c (output_title): Bump year.
3277         (do_jisx0213): Update comments. Emit a conditional 'inline'.
3278         * lib/jisx0213.h: Regenerated.
3279         * lib/iso2022_jp3.h (iso2022_jp3_mbtowc): Accept escape sequence
3280         ESC $ ( Q as a synonym of ESC $ ( O.
3281         (iso2022_jp3_wctomb): Emit ESC $ ( Q instead of ESC $ ( O.
3282         * tests/EUC-JISX0213.TXT: Change mappings U+2015 -> U+2014,
3283         U+2299 -> U+29BF, and add 10 new characters.
3284         * tests/SHIFT_JISX0213.TXT: Likewise.
3285         * tests/ISO-2022-JP-3-snippet: Update.
3286         * tests/ISO-2022-JP-3-snippet.UTF-8: Update.
3288 2004-07-22  Bruno Haible  <bruno@clisp.org>
3290         * lib/encodings.def (ISO-8859-7): Add alias ISO_8859-7:2003.
3291         * tools/Makefile (iso8859_7.h): Use conversion table from 2003.
3292         * lib/iso8859_7.h: Add mappings for 0xa4, 0xa5, 0xaa.
3293         * tests/ISO-8859-7.TXT: Update to ISO_8859-7:2003.
3295 2004-07-22  Bruno Haible  <bruno@clisp.org>
3297         * tools/Makefile (ALL): Add iso8859_11.h.
3298         (iso8859_11.h): New rule.
3299         * lib/encodings.def: Add ISO-8859-11.
3300         * lib/iso8859_11.h: New file.
3301         * lib/converters.h: Include it.
3302         * tests/ISO-8859-11.TXT: New file.
3303         * tests/Makefile.in (check): Also test ISO-8859-11.
3304         * tests/Makefile.msvc (check): Likewise.
3305         * tests/Makefile.os2 (check): Likewise.
3307 2004-07-17  Bruno Haible  <bruno@clisp.org>
3309         * src/iconv.c (main): Terminate option parsing when option -- is seen.
3310         Reported by Len Lattanzi <zardoz@users.sourceforge.net>.
3312 2004-03-05  Bruno Haible  <bruno@clisp.org>
3314         * src/Makefile.in (install): Make DESTDIR work on HP-UX.
3315         Reported by Bob Proulx <box@proulx.com>.
3317 2004-02-19  Bruno Haible  <bruno@clisp.org>
3319         * lib/vietcomb.h (viet_comp_table_data): Un-uncomment 0x00D5, 0x00F5,
3320         0x0168, 0x0169. Needed for TCVN-5712 but not for CP1258.
3321         (viet_comp_table0301_len): Increment by 4.
3323         * lib/cp1255.h (cp1255_mbtowc): Don't delay the handling of characters
3324         which are not entries in cp1255_comp_table_data.
3325         * lib/cp1258.h (cp1258_comp_bases): New array.
3326         (cp1258_mbtowc): Don't delay the handling of characters which are not
3327         relevant entries in viet_comp_table_data.
3328         * lib/tcvn.h (tcvn_comp_bases): New array.
3329         (tcvn_mbtowc): Don't delay the handling of characters which are not
3330         relevant entries in viet_comp_table_data.
3331         Reported by Alain Bench <veronatif@free.fr>.
3333 2004-02-02  Perry Rapp  <lifelines_3_0_18@hotmail.com>
3334             Bruno Haible  <bruno@clisp.org>
3336         * man/iconvctl.3: New file.
3337         * man/iconv.3: Refer to it in "See also".
3338         * man/iconv_open.3: Likewise.
3340 2004-01-24  Bruno Haible  <bruno@clisp.org>
3342         * srclib/progreloc.c (xstrdup): Define as strdup if no xmalloc should
3343         be used.
3345 2004-01-20  Bruno Haible  <bruno@clisp.org>
3347         Upgrade from gettext-0.14.
3349         * configure.in: Call gl_USE_SYSTEM_EXTENSIONS. Call AM_STDBOOL_H
3350         instead of gt_STDBOOL_H. Provide a definition for DLL_VARIABLE.
3351         * srclib/Makefile.am (libicrt_a_SOURCES): Add allocsa.h, allocsa.c,
3352         xalloc.h. Remove xmalloc.h.
3353         (libicrt_a_LIBADD): Remove @ALLOCA@.
3354         * srclib/Makefile.msvc (OBJECTS): Add allocsa.obj.
3355         (allocsa.obj): New rule.
3356         * srclib/Makefile.vms (OBJECTS): Add allocsa.obj.
3357         (allocsa.obj): New rule.
3358         * Makefile.devel (config.h_vms): Set MALLOC_0_IS_NONNULL to 0.
3359         (config.h.msvc): Set MALLOC_0_IS_NONNULL to 1.
3361     lib/:
3363         2003-10-09  Bruno Haible  <bruno@clisp.org>
3364         * lib/relocatable.c: Include xalloc.h instead of xmalloc.h.
3366         2003-08-01  Bruno Haible  <bruno@clisp.org>
3367         * lib/relocatable.c (find_shared_library_fullname): Disable the code on
3368         Linux/libc5. Reported by Alain Guibert <derogaton+bgli@oreka.com>.
3370         2003-06-22  Bruno Haible  <bruno@clisp.org>
3371         * lib/relocatable.c (compute_curr_prefix): Comment out this function in
3372         the case when it is not used.
3373         Reported by Pavel Roskin <proski@gnu.org>.
3375     m4/:
3377         * m4/gettext.m4: Upgrade from GNU gettext. Many changes.
3378         * m4/po.m4: Likewise.
3380         * m4/readlink.m4: New file, from GNU gettext.
3382         2003-11-30  Bruno Haible  <bruno@clisp.org>
3383         * m4/allocsa.m4: New file.
3384         * m4/eealloc.m4: New file.
3385         * m4/setenv.m4 (gl_PREREQ_SETENV): Require gl_ALLOCSA instead of
3386         AC_FUNC_ALLOCA.
3388         2003-10-21  Bruno Haible  <bruno@clisp.org>
3389         * m4/canonicalize.m4 (gl_PREREQ_CANONICALIZE): Also test for
3390         readlink().
3392         2003-08-24  Bruno Haible  <bruno@clisp.org>
3393         * m4/relocatable.m4 (AC_RELOCATABLE): Use $(host) instead of @host@,
3394         since the substitution of @host@ may occur before the substitution of
3395         @SET_RELOCATABLE@.
3397         2003-08-23  Bruno Haible  <bruno@clisp.org>
3398         * stdbool.m4: Replace with the version from gnulib, without
3399         AC_HEADER_STDBOOL.
3401         2003-08-08  Paul Eggert  <eggert@twinsun.com>
3402         * m4/extensions.m4: New file.
3403         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
3404         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
3406         2003-07-01  Bruno Haible  <bruno@clisp.org>
3407         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
3408         <sys/types.h> should be sufficient.
3409         Reported by Paul Eggert.
3411         2003-07-01  Bruno Haible  <bruno@clisp.org>
3412         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Avoid "duplicated macro" error
3413         from aclocal-1.4-p4.
3414         Reported by Luke Schierer <lschiere@rackspace.com> and
3415         Michael C. Toren <mct@toren.net>.
3417         2003-07-01  Paul Eggert  <eggert@twinsun.com>
3418         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
3419         xreadlink.c now includes it unconditionally.
3421         2003-06-17  Paul Eggert  <eggert@twinsun.com>
3422         * m4/lib-ld.m4 (AC_LIB_PROG_LD_GNU, AC_LIB_PROG_LD): Don't use egrep,
3423         for portability to POSIX 1003.1-2001.  Backported from libtool-1.5.
3425         2003-05-28  Paul Eggert  <eggert@twinsun.com>
3426         * m4/pathmax.m4 (gl_PATHMAX): Don't check for limits.h.
3427         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
3429         2002-12-24  Bruno Haible  <bruno@clisp.org>
3430         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
3431         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
3432         when invoked twice.
3433         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
3434         gt_FUNC_SETENV.
3436     srclib/:
3438         2003-11-30  Bruno Haible  <bruno@clisp.org>
3439         * srclib/alloca.c: Remove file.
3441         2003-11-30  Bruno Haible  <bruno@clisp.org>
3442         Safer stack allocation.
3443         * srclib/allocsa.h: New file.
3444         * srclib/allocsa.c: New file.
3445         * canonicalize.c: Include allocsa.h.
3446         (__realpath): Use allocsa instead of alloca. Don't clobber errno right
3447         before returning NULL.
3448         * srclib/relocwrapper.c: Indirectly depends on allocsa.
3449         * srclib/setenv.c: Include allocsa.h.
3450         (alloca): Remove fallback definition.
3451         (freea): Remove macro.
3452         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
3453         instead of freea.
3455         2003-11-17  Bruno Haible  <bruno@clisp.org>
3456         * srclib/canonicalize.c: #undef realpath after <config.h> but before
3457         the system includes, so as to avoid a prototype clash on Solaris 2.5.1.
3458         Reported by Warren L. Dodge <warrend@mdhost.cse.tek.com>.
3460         2003-10-21  Bruno Haible  <bruno@clisp.org>
3461         * srclib/canonicalize.c (lstat): Define as an alias to 'stat' on
3462         systems without symbolic links.
3464         2003-10-17  Bruno Haible  <bruno@clisp.org>
3465         * srclib/binary-io.h: Avoid warnings on Cygwin.
3467         2003-10-09  Bruno Haible  <bruno@clisp.org>
3468         * srclib/xalloc.h: Renamed from xmalloc.h.
3469         * srclib/progreloc.c: Include xalloc.h instead of xmalloc.h.
3470         * srclib/relocatable.c: Likewise.
3471         * srclib/xmalloc.c: Likewise.
3472         * srclib/xreadlink.c: Likewise.
3473         * srclib/xstrdup.c: Likewise.
3475         2003-09-12  Paul Eggert  <eggert@twinsun.com>
3476         * srclib/progreloc.c (get_full_program_name): Define via prototype.
3478         2003-09-12  Paul Eggert  <eggert@twinsun.com>
3479         * srclib/setenv.c (clearenv): Define via prototype.
3481         2003-09-10  Bruno Haible  <bruno@clisp.org>
3482         * srclib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
3483         * srclib/unsetenv.c: Likewise.
3485         2003-08-28  Bruno Haible  <bruno@clisp.org>
3486         * srclib/binary-io.h: Undefine O_BINARY before defining it. This avoids
3487         a warning on QNX, which defines O_BINARY to 000000.
3489         2003-08-24  Bruno Haible  <bruno@clisp.org>
3490         * srclib/binary-io.h: Include <stdio.h>, to avoid a compilation error
3491         when MSVC7 <stdio.h> is included later.
3493         2003-08-24  Bruno Haible  <bruno@clisp.org>
3494         * srclib/error.h: Use ANSI C "..." declarations when compiling with
3495         MSVC, even though it doesn't define __STDC__ by default.
3496         * srclib/error.c: Use <stdarg.h> when compiling with MSVC, even though
3497         it doesn't define __STDC__ by default.
3499         2003-08-24  Bruno Haible  <bruno@clisp.org>
3500         Support for building DLLs on Windows.
3501         * srclib/error.h (error_print_progname, error_message_count,
3502         error_one_per_line): Add DLL_VARIABLE attribute.
3503         * srclib/progname.h (program_name): Likewise.
3505         2003-08-24  Bruno Haible  <bruno@clisp.org>
3506         * srclib/progname.h: Make this file includable in C++ mode: add extern
3507         "C".
3508         * srclib/relocatable.h: Likewise.
3509         * srclib/xmalloc.h: Likewise.
3511         2003-08-22  Bruno Haible  <bruno@clisp.org>
3512         * srclib/progname.h (error_with_progname, maybe_print_progname): Remove
3513         declarations.
3514         * srclib/progname.c (error_with_progname): Remove variable.
3515         (maybe_print_progname): Remove function.
3517         2003-08-01  Bruno Haible  <bruno@clisp.org>
3518         * srclib/relocatable.c (find_shared_library_fullname): Disable the code
3519         on Linux/libc5. Reported by Alain Guibert <derogaton+bgli@oreka.com>.
3521         2003-07-01  Paul Eggert  <eggert@twinsun.com>
3522         * srclib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
3523         having it depend on HAVE_SYS_TYPES_H.
3525         2003-06-23  Bruno Haible  <bruno@clisp.org>
3526         Avoid compilation units that are empty after preprocessing.
3527         * srclib/canonicalize.c: Add dummy declaration.
3528         * srclib/strerror.c: Likewise.
3529         * srclib/error.c: Include <stdio.h> even if there's nothing to be
3530         compiled.
3532         2003-06-22  Bruno Haible  <bruno@clisp.org>
3533         * srclib/relocatable.c (compute_curr_prefix): Comment out this function
3534         in the case when it is not used.
3535         Reported by Pavel Roskin <proski@gnu.org>.
3537         2003-05-28  Paul Eggert  <eggert@twinsun.com>
3538         * srclib/pathmax.h: Include <limits.h> without checking for
3539         HAVE_LIMITS_H.
3540         * srclib/xreadlink.c: Likewise.
3542 2004-01-20  Bruno Haible  <bruno@clisp.org>
3544         Assume automake-1.8.
3545         * Makefile.devel (AUTOCONF, AUTOHEADER): Assume autoconf-2.59.
3546         (AUTOMAKE): Assume automake-1.8.
3547         * Makefile.in (am--refresh): New target.
3549 2004-01-23  Bruno Haible  <bruno@clisp.org>
3551         * Version 1.9.2 released.
3553 2004-01-23  Bruno Haible  <bruno@clisp.org>
3555         * tests/table-from.c: Include binary-io.h.
3556         (main): Switch stdout to binary mode.
3557         * tests/table-to.c: Include binary-io.h.
3558         (main): Switch stdout to binary mode.
3559         * tests/genutf8.c: Include binary-io.h.
3560         (main): Switch stdout to binary mode.
3561         * tests/Makefile.in (INCLUDES): Also look in srclib.
3562         (check): Pass INCLUDES when compiling genutf8.c.
3563         * tests/Makefile.os2 (INCLUDES): Also look in srclib.
3564         (genutf8.exe): Pass INCLUDES when compiling genutf8.c.
3565         * tests/Makefile.msvc (INCLUDES): Also look in srclib.
3566         (check): Pass INCLUDES when compiling genutf8.c.
3568 2004-01-21  Bruno Haible  <bruno@clisp.org>
3570         * src/iconv.c (force_binary): Remove variable.
3571         (usage): Don't document --binary any more.
3572         (convert, main): Always switch to binary mode.
3573         * tests/check-stateful.bat: Remove --binary option.
3574         * tests/check-translit.bat: Likewise.
3575         * tests/check-stateful.cmd: Likewise.
3576         * tests/check-translit.cmd: Likewise.
3577         * djgpp/stateful-check.sed: Remove MODE variable.
3578         * djgpp/translit-check.sed: Likewise.
3580 2004-01-21  Bruno Haible  <bruno@clisp.org>
3582         * man/iconv.3: Fix description of return value in case of error.
3583         Reported by Jonathan Wakely <redi@users.sf.net>.
3585 2003-09-12  Paul Eggert  <eggert@twinsun.com>
3587         * srclib/progreloc.c (get_full_program_name): Define via prototype.
3589 2003-08-15  Bruno Haible  <bruno@clisp.org>
3591         * Makefile.devel (lib/translit.h): Add ulimit command so that the
3592         gentranslit program gets the stack it needs. Many Linux distributions
3593         allow only 8 MB of stack by default.
3595 2003-08-01  Bruno Haible  <bruno@clisp.org>
3597         * lib/relocatable.c (find_shared_library_fullname): Disable the code on
3598         Linux/libc5.
3599         * srclib/relocatable.c (find_shared_library_fullname): Likewise.
3600         Reported by Alain Guibert <derogaton+bgli@oreka.com>.
3602 2003-07-02  Bruno Haible  <bruno@clisp.org>
3604         * m4/lib-ld.m4: Update from GNU gettext.
3605         * m4/lib-prefix.m4: Update from GNU gettext.
3606         * m4/gettext.m4: Update from GNU gettext.
3607         * m4/intmax.m4: New file, from GNU gettext.
3608         * m4/longdouble.m4: New file, from GNU gettext.
3609         * m4/longlong.m4: New file, from GNU gettext.
3610         * m4/printf-posix.m4: New file, from GNU gettext.
3611         * m4/signed.m4: New file, from GNU gettext.
3612         * m4/wchar_t.m4: New file, from GNU gettext.
3613         * m4/wint_t.m4: New file, from GNU gettext.
3614         * m4/pathmax.m4: Update from GNU gettext and gnulib.
3615         * m4/ssize_t.m4: Update from GNU gettext and gnulib.
3616         * m4/xreadlink.m4: Update from GNU gettext and gnulib.
3617         * m4/readlink.m4: New file, from gnulib.
3618         * autoconf/install-reloc: Update from GNU gettext.
3619         * srclib/stdbool_.h: Renamed from srclib/stdbool.h.in.
3620         * srclib/readlink.c: New file, from GNU gettext and gnulib.
3621         * srclib/Makefile.am (LIBADD_SOURCE): Add readlink.c.
3622         (EXTRA_DIST, stdbool.h): Use stdbool_.h instead of stdbool.h.in.
3623         * configure.in: Invoke gl_FUNC_READLINK.
3625 2003-06-22  Bruno Haible  <bruno@clisp.org>
3627         * src/Makefile.in (install): Link with the already installed library.
3628         This fixes a link error on Solaris.
3629         Reported by Paul Eggert.
3631 2003-06-08  Bruno Haible  <bruno@clisp.org>
3633         * srclib/canonicalize.c (__getcwd) [VMS]: Pass 3 arguments to getcwd.
3635 2003-05-02  Bruno Haible  <bruno@clisp.org>
3637         Support for libtool-1.5.
3638         * srclib/progname.c (set_program_name): Remove a leading
3639         "<dirname>/.libs/lt-" or "<dirname>/.libs/", not only "lt-".
3641 2003-06-23  Bruno Haible  <bruno@clisp.org>
3643         Avoid compilation units that are empty after preprocessing.
3644         * srclib/canonicalize.c: Add dummy declaration.
3645         * srclib/strerror.c: Likewise.
3646         * srclib/error.c: Include <stdio.h> even if there's nothing to be
3647         compiled.
3649 2003-06-22  Bruno Haible  <bruno@clisp.org>
3651         Portability to mingw32.
3652         * m4/ssize_t.m4: New file, from GNU gettext.
3653         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
3654         Reported by Jeff Bonggren <jbon@cfl.rr.com>.
3656 2003-06-22  Bruno Haible  <bruno@clisp.org>
3658         Portability to mingw32.
3659         * lib/relocatable.c [WIN32]: Include <windows.h>.
3660         * srclib/relocatable.c: Likewise.
3661         Reported by Jeff Bonggren <jbon@cfl.rr.com>.
3663 2003-06-22  Bruno Haible  <bruno@clisp.org>
3665         * lib/relocatable.c (compute_curr_prefix): Comment out this function in
3666         the case when it is not used.
3667         * srclib/relocatable.c (compute_curr_prefix): Likewise.
3668         Reported by Pavel Roskin <proski@gnu.org>.
3670 2003-06-18  Bruno Haible  <bruno@clisp.org>
3672         * config/install-sh: Update from automake-1.7.5.
3674 2003-06-16  Bruno Haible  <bruno@clisp.org>
3676         * lib/encodings.def (ISO-8859-15): Add alias LATIN-9.
3677         (ISO-8859-16): Add aliases ISO_8859-16:2001, LATIN10, L10. Remove alias
3678         ISO_8859-16:2000.
3679         (GBK): Add aliases MS936, WINDOWS-936.
3680         Reported by Guido Flohr <guido@imperia.net>.
3682 2003-05-09  Bruno Haible  <bruno@clisp.org>
3684         * srclib/canonicalize.c: Add #ifdef around versioned_symbol. Avoids an
3685         "extraneous semicolon" warning from Tru64 cc.
3687 2003-06-07  Bruno Haible  <bruno@clisp.org>
3689         * Makefile.devel (config.h_vms): Don't define HAVE_ENVIRON_DECL.
3690         * Makefile.vms (config.h): New rule.
3691         (all, install): Depend on it.
3692         (all, install, installdirs, uninstall, check): Fix typo.
3693         (mostlyclean, clean, distclean, maintainer-clean): Likewise. Remove
3694         config.h.
3695         * lib/Makefile.vms (DEFS): Fix value of INSTALLDIR.
3696         (OBJECTS): Use libiconv.obj instead of iconv.obj.
3697         (libiconv.obj): Renamed from iconv.obj.
3698         * srclib/Makefile.vms (INCLUDES): Add parent directory.
3699         (OBJECTS): Remove strtoul.obj, setenv.obj, unsetenv.obj.
3700         (strtoul.obj, setenv.obj, unsetenv.obj): Remove rules.
3701         (alloca.h): New rule.
3702         (canonicalize.obj): Depend on it.
3703         (clean): Remove alloca.h.
3704         * src/Makefile.vms (datadir, localedir): New variables.
3705         (DEFS): Also define LOCALEDIR.
3706         (iconv.obj): Add flags for relocatability,
3707         (iconv.exe): Link with libicrt. Use link_options.
3708         * vms/link_options.opt: New file.
3709         Reported by Jouk Jansen <joukj@hrem.stm.tudelft.nl>.
3711 2003-06-07  Bruno Haible  <bruno@clisp.org>
3713         Support for relocatable data files even on Woe32.
3714         * lib/Makefile.msvc (PICFLAGS): Also define PIC.
3716 2003-05-22  Bruno Haible  <bruno@clisp.org>
3718         * Version 1.9.1 released.
3720 2003-05-22  Bruno Haible  <bruno@clisp.org>
3722         * lib/genaliases.c (main): Emit %pic instead of %null-strings.
3723         Change type of 'name' field to 'int'.
3724         * lib/genaliases2.c (emit_encoding): Add a 'tag' argument. Emit an
3725         invocation of macro S(), including the tag and a counter.
3726         (main): Use the command-line argument as tag.
3727         * Makefile.devel (lib/aliases_aix.h, lib/aliases_osf1.h,
3728         lib/aliases_dos.h, lib/aliases_extra.h): Pass a tag to the program.
3729         * lib/iconv.c (stringpool2_t): New type.
3730         (stringpool2_contents): New data table.
3731         (stringpool2): New macro.
3732         (sysdep_aliases): Make position-independent. Move #includes out to
3733         aliases2.h.
3734         (aliases2_lookup): Update.
3735         (nalias): New type.
3736         (compare_by_index): Use 'struct nalias' instead of 'struct alias'.
3737         (iconvlist): Convert 'struct alias' to 'struct nalias' while copying.
3738         * lib/aliases2.h: New file, extracted from lib/iconv.c.
3740 2003-05-20  Bruno Haible  <bruno@clisp.org>
3742         * lib/iconv.c (iconvlist): Test p->name against NULL, not against "".
3743         Reported by Muraoka Taro <koron@tka.att.ne.jp>.
3745 2003-05-19  Bruno Haible  <bruno@clisp.org>
3747         * windows/iconv.rc: Include <winver.h>.
3748         Reported by Perry Rapp.
3750 2003-05-18  Bruno Haible  <bruno@clisp.org>
3752         * Version 1.9 released.
3754 2003-05-18  Bruno Haible  <bruno@clisp.org>
3756         * lib/Makefile.in (libiconv_plug_osf.so): Avoid using LIBTOOL_LINK.
3758 2003-05-18  Bruno Haible  <bruno@clisp.org>
3760         * lib/Makefile.msvc (DEBUGFLAGS): New variable.
3761         (iconv.lib): Use it.
3762         * src/Makefile.msvc (DEBUGFLAGS): New variable.
3763         * tests/Makefile.msvc (DEBUGFLAGS): New variable.
3765 2003-05-17  Bruno Haible  <bruno@clisp.org>
3767         * src/Makefile.msvc (libdir, datadir, localedir): New variables.
3768         (IIlibdir, IIdatadir, IIlocaledir): New variables.
3769         (CFLAGS): Define LOCALEDIR.
3770         (iconv_no_i18n.exe): New rule.
3771         (all): Depend on it.
3772         * tests/check-stateful.bat: Invoke iconv_no_i18n instead of iconv.
3773         * tests/check-translit.bat: Likewise.
3775 2003-05-16  Bruno Haible  <bruno@clisp.org>
3777         * lib/genaliases.c (main): Emit declarations for gperf-3.0.
3778         * Makefile.devel (lib/aliases.h): Remove gperf command line options;
3779         add new option "-m 10" for gperf-3.0.
3781 2003-05-12  Bruno Haible  <bruno@clisp.org>
3783         * m4/error.m4: Update from gettext.
3785 2003-05-12  Bruno Haible  <bruno@clisp.org>
3787         * configure.in: Invoke AC_GNU_SOURCE and jm_FUNC_GLIBC_UNLOCKED_IO.
3789 2003-05-12  Bruno Haible  <bruno@clisp.org>
3791         * lib/Makefile.msvc (PICFLAGS, CFLAGS): Move BUILDING_* macros from
3792         CFLAGS to PICFLAGS.
3794 2003-05-09  Bruno Haible  <bruno@clisp.org>
3796         * srclib/error.c: Update from gnulib with modifications.
3797         * srclib/unlocked-io.h: New file, from gnulib.
3798         * m4/strerror_r.m4: New file, from gnulib.
3799         * m4/unlocked-io.m4: New file, from gnulib.
3800         * Makefile.devel (aclocal.m4): Depend on them.
3802 2003-05-08  Bruno Haible  <bruno@clisp.org>
3804         * Makefile.msvc (IIPREFIX): New variable.
3805         * srclib/Makefile.msvc (INCLUDES): Add -I..\windows.
3806         * src/Makefile.msvc (IIPREFIX, IIprefix, IIexec_prefix, IIbindir,
3807         IIincludedir): New variables.
3808         (INCLUDES): Add -I..\windows.
3809         (iconv.exe): Define INSTALLPREFIX and INSTALLDIR. Link with
3810         ../srclib/icrt.lib.
3811         Patches by Perry Rapp.
3813 2003-05-07  Bruno Haible  <bruno@clisp.org>
3815         * README.woe32: Fix instructions for step 1.
3816         * srclib/Makefile.msvc (OBJECTS): Remove strtoul.obj.
3817         (strtoul.obj): Remove rule.
3818         Reported by Perry Rapp.
3820 2003-05-07  Bruno Haible  <bruno@clisp.org>
3822         * Makefile.vms: New file.
3823         * lib/Makefile.vms: New file.
3824         * srclib/Makefile.vms: New file.
3825         * src/Makefile.vms: New file.
3826         * man/Makefile.vms: New file.
3827         * tests/Makefile.vms: New file.
3828         * Makefile.devel (config.h_vms, lib/config.h_vms, include/iconv.h_vms):
3829         New rules.
3830         (all): Depend on them.
3832 2003-05-07  Bruno Haible  <bruno@clisp.org>
3834         * srclib/Makefile.msvc (OBJECTS): Remove findprog.obj.
3835         (findprog.obj): Remove rule.
3836         * src/Makefile.msvc (includedir): New variable.
3838 2003-05-06  Bruno Haible  <bruno@clisp.org>
3840         * lib/translit.def: Upgrade to Unicode 4.0.
3842 2003-05-06  Bruno Haible  <bruno@clisp.org>
3844         * srclib/Makefile.am (DEFS): Fix spelling of DEPENDS_ON_LIBICONV.
3845         * srclib/Makefile.msvc (CFLAGS): Likewise.
3847         * srclib/Makefile.msvc (INCLUDES): Add -I.. .
3848         Reported by Perry Rapp.
3850         * Makefile.msvc (config.h): New rule.
3851         (all): Depend on it.
3852         (mostlyclean, clean, distclean, maintainer-clean): Erase config.h.
3853         Reported by Perry Rapp.
3855 2003-05-06  Bruno Haible  <bruno@clisp.org>
3857         * autoconf/config.guess: Update to GNU version 2003-02-22.
3858         * autoconf/config.sub: Likewise.
3860 2003-05-06  Bruno Haible  <bruno@clisp.org>
3862         * m4/lib-link.m4: Update from GNU gettext.
3863         * autoconf/config.rpath: Update from GNU gettext.
3865         * m4/libtool.m4: Update from GNU gettext, based on libtool-1.5.
3866         * autoconf/ltmain.sh: Update from GNU gettext, based on libtool-1.5.
3868         * m4/gettext.m4: Update from GNU gettext.
3869         * m4/nls.m4: Update from GNU gettext.
3870         * m4/po.m4: Update from GNU gettext.
3871         * Makefile.devel (aclocal.m4): Depend on m4/nls.m4 and m4/po.m4.
3873 2003-04-12  Bruno Haible  <bruno@clisp.org>
3875         Support for OpenVMS 7.3.
3876         * lib/iconv.c (USE_OSF1): Define also on VMS.
3878 2003-04-12  Bruno Haible  <bruno@clisp.org>
3880         Better support for FreeBSD.
3881         * lib/encodings.def (ISO8859-{1,2,3,4,5,6,7,8,9,10,13,14,15,16): New
3882         aliases, for compatibility with earlier FreeBSD iconv implementation
3883         by Konstantin Chuguev.
3884         * lib/iconv.c (iconv_open, iconv, iconv_close) [FreeBSD]: Define as
3885         aliases.
3886         * src/Makefile.in (install) [FreeBSD]: Avoid installation problem.
3888 2003-04-12  Bruno Haible  <bruno@clisp.org>
3890         * configure.in (mandir): Change default value.
3891         * Makefile.in (datadir): New variable.
3892         (install, installdirs, uninstall): Pass datadir to po and man
3893         directories.
3894         * Makefile.os2 (datadir): New variable.
3895         (mandir): Use it instead of prefix.
3896         (install, uninstall): Pass datadir to man directory.
3897         * Makefile.msvc (mandir, docdir): Use datadir instead of prefix.
3898         * man/Makefile.in (datadir): New variable.
3899         (docdir): Use it instead of prefix.
3900         (install, installdirs): Update.
3901         * man/Makefile.os2 (datadir): New variable.
3902         (mandir): Use it instead of prefix.
3903         * man/Makefile.msvc (datadir): New variable.
3904         (mandir, docdir): Use it instead of prefix.
3905         (install, installdirs): Update.
3907 2003-04-06  Bruno Haible  <bruno@clisp.org>
3909         Make it possible to build with or without libintl support on Woe32.
3910         * Makefile.devel (config.h.msvc): Remove ENABLE_NLS.
3911         * Makefile.msvc (NO_NLS): New variable.
3912         * srclib/Makefile.msvc (NO_NLS): New variable.
3913         (CFLAGS, INCLUDES): Use them.
3914         * src/Makefile.msvc (NO_NLS): New variable.
3915         (NLSFLAGS, INCINTL, LIBINTL): New variables.
3916         (CFLAGS, INCLUDES, iconv.exe): Use them.
3918 2003-04-12  Bruno Haible  <bruno@clisp.org>
3920         * lib/loop_unicode.h (unicode_transliterate): When the Hangul or
3921         variants transliteration failed with RET_ILUNI, don't return
3922         RET_TOOSMALL.
3923         Reported by the FreeBSD porters.
3925 2003-04-06  Bruno Haible  <bruno@clisp.org>
3927         * srclib/binary-io.h: New file, from GNU gettext.
3928         * src/iconv.c: Include it.
3929         (O_BINARY, O_TEXT, SET_BINARY): Remove definitions.
3931 2003-04-05  Bruno Haible  <bruno@clisp.org>
3933         Support for relocatable installation.
3934         * m4/alloca.m4: New file, from GNU gettext.
3935         * m4/canonicalize.m4: New file, from GNU gettext.
3936         * m4/error.m4: New file, from GNU gettext.
3937         * m4/onceonly.m4: New file, from GNU gettext.
3938         * m4/pathmax.m4: New file, from GNU gettext.
3939         * m4/relocatable.m4: New file, from GNU gettext.
3940         * m4/setenv.m4: New file, from GNU gettext.
3941         * m4/stdbool.m4: New file, from GNU gettext.
3942         * m4/strerror.m4: New file, from GNU gettext.
3943         * m4/xreadlink.m4: New file, from GNU gettext.
3944         * autoconf/config.libpath: New file, from GNU gettext.
3945         * autoconf/install-reloc: New file, from GNU gettext.
3946         * autoconf/reloc-ldflags: New file, from GNU gettext.
3947         * autoconf/missing: New file, from GNU automake 1.7.3.
3948         * lib/relocatable.h: New file, from GNU gettext.
3949         * lib/relocatable.c: New file, from GNU gettext.
3950         * srclib/alloca.c: New file, from GNU gettext.
3951         * srclib/alloca_.h: New file, from GNU gettext.
3952         * srclib/canonicalize.c: New file, from GNU gettext.
3953         * srclib/canonicalize.h: New file, from GNU gettext.
3954         * srclib/error.c: New file, from GNU gettext.
3955         * srclib/error.h: New file, from GNU gettext.
3956         * srclib/exit.h: New file, from GNU gettext.
3957         * srclib/gettext.h: New file, from GNU gettext.
3958         * srclib/memmove.c: New file, from GNU gettext.
3959         * srclib/pathmax.h: New file, from GNU gettext.
3960         * srclib/progname.c: New file, from GNU gettext.
3961         * srclib/progname.h: New file, from GNU gettext.
3962         * srclib/progreloc.c: New file, from GNU gettext.
3963         * srclib/relocatable.c: New file, from GNU gettext.
3964         * srclib/relocatable.h: New file, from GNU gettext.
3965         * srclib/relocwrapper.c: New file, from GNU gettext.
3966         * srclib/setenv.c: New file, from GNU gettext.
3967         * srclib/setenv.h: New file, from GNU gettext.
3968         * srclib/stdbool.h.in: New file, from GNU gettext.
3969         * srclib/strerror.c: New file, from GNU gettext.
3970         * srclib/unsetenv.c: New file, from GNU gettext.
3971         * srclib/xmalloc.c: New file, from GNU gettext.
3972         * srclib/xmalloc.h: New file, from GNU gettext.
3973         * srclib/xreadlink.c: New file, from GNU gettext.
3974         * srclib/xreadlink.h: New file, from GNU gettext.
3975         * srclib/xstrdup.c: New file, from GNU gettext.
3976         * srclib/Makefile.am: New file.
3977         * srclib/Makefile.msvc: New file.
3978         * windows/alloca.h: New file, from GNU gettext.
3979         * windows/stdbool.h: New file, from GNU gettext.
3980         * configure.in (AC_CONFIG_HEADERS): Replace src/config.h with config.h.
3981         Add AC_RELOCATABLE, AC_HEADER_STDC, AC_CHECK_HEADERS(stddef.h stdlib.h
3982         string.h), AC_CHECK_FUNCS(getc_unlocked), AC_REPLACE_FUNCS(memmove),
3983         AM_LANGINFO_CODESET, gl_FUNC_ALLOCA, gl_CANONICALIZE,
3984         gt_FUNC_ERROR_AT_LINE, gl_PATHMAX, gt_FUNC_SETENV, gt_STDBOOL_H,
3985         gl_FUNC_STRERROR, gl_XREADLINK, AC_OUTPUT(srclib/Makefile).
3986         * lib/config.h.in: Add HAVE_GETC_UNLOCKED, HAVE_LANGINFO_CODESET,
3987         HAVE_SETLOCALE, HAVE_STDDEF_H, HAVE_STDLIB_H, HAVE_STRING_H, for
3988         localcharset.c. Add ENABLE_RELOCATABLE, INSTALLPREFIX, for
3989         relocatable.c.
3990         * lib/Makefile.in (DEFS): New variable.
3991         (SOURCES): Add localcharset.c and relocatable.c.
3992         (OBJECTS): Add localcharset.lo and relocatable.lo.
3993         (LIBCHARSET_OBJECTS): Remove variable.
3994         (libiconv_plug_linux.so, libiconv_plug_solaris.so,
3995         libiconv_plug_osf.so): Use $(DEFS). Don't use $(LIBCHARSET_OBJECTS).
3996         (iconv.lo): Use $(DEFS).
3997         (localcharset.lo, relocatable.lo): New rules.
3998         * lib/Makefile.msvc (CFLAGS): Define HAVE_CONFIG_H, BUILDING_DLL,
3999         ENABLE_RELOCATABLE, IN_LIBRARY, INSTALLDIR, NO_XMALLOC,
4000         set_relocation_prefix, relocate. Remove $(PICFLAGS).
4001         (INCLUDES): Simplify.
4002         (SOURCES): Remove variable.
4003         (OBJECTS): Add localcharset.obj and relocatable.obj.
4004         (LIBCHARSET_OBJECTS): Remove variable.
4005         (iconv.obj): Add $(PICFLAGS).
4006         (localcharset.obj, relocatable.obj): New rules.
4007         (iconv.lib): Drop $(LIBCHARSET_OBJECTS).
4008         * include/iconv.h.in (libiconv_set_relocation_prefix): New declaration.
4009         * src/gettext.h: Remove file.
4010         * src/iconv.c: Include progname.h and relocatable.h.
4011         (ICONV_CONST): Define to const if the system has no iconv.
4012         (main): Invoke set_program_name. Relocate LOCALEDIR.
4013         * src/Makefile.in (top_srcdir): New variable.
4014         (INCLUDES): Add .. and ../srclib.
4015         (iconv_no_i18n, iconv): Link with ../srclib/libicrt.a.
4016         (iconv_no_i18n.@OBJEXT@, iconv.@OBJEXT@): Define INSTALLDIR.
4017         (RELOCATABLE_LIBRARY_PATH, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR,
4018         RELOCATABLE_CONFIG_H_DIR, @SET_RELOCATABLE@, iconv_LDFLAGS): New
4019         variables.
4020         (iconv): Use $(iconv_LDFLAGS).
4021         (install): Use $(INSTALL_PROGRAM_ENV).
4022         (distclean): Drop removing config.h.
4023         * src/Makefile.msvc (INCLUDES): Add .., simplify.
4024         * tests/Makefile.msvc (INCLUDES): Simplify.
4025         * Makefile.devel (AUTOHEADER, AUTOMAKE): New variables.
4026         (config.h.in, srclib/Makefile.in, config.h.msvc): New rules.
4027         (all): Depend on them.
4028         (aclocal.m4) Depend also on m4/alloca.m4, m4/canonicalize.m4,
4029         m4/error.m4, m4/onceonly.m4, m4/pathmax.m4, m4/relocatable.m4,
4030         m4/setenv.m4, m4/stdbool.m4, m4/strerror.m4, m4/xreadlink.m4.
4031         (lib/config.h.msvc): Additional processing.
4032         * Makefile.in (all, install, installdirs, uninstall, check): Recurse
4033         into srclib.
4034         (mostlyclean, clean, distclean, maintainerclean): Likewise. Remove
4035         lib/localcharset.h.
4036         (distclean, maintainerclean): Remove also config.h and some stamps.
4037         * Makefile.msvc (all, install, installdirs, uninstall, check,
4038         mostlyclean, clean, distclean, maintainerclean): Recurse into srclib.
4039         * INSTALL.generic: Document --enable-relocatable and
4040         --with-libintl-prefix. Remove the recommendation to set CPPFLAGS and
4041         LDFLAGS. The lib-link.m4 macros make this unnecessary.
4043 2003-04-05  Bruno Haible  <bruno@clisp.org>
4045         * configure.in: Bump version number to 1.9.
4046         * include/iconv.h.in (_LIBICONV_VERSION): Bump.
4047         * windows/iconv.rc: Bump version number.
4048         * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 4:0:2.
4050 2003-04-05  Bruno Haible  <bruno@clisp.org>
4052         * Makefile.msvc (PREFIX): New variable.
4053         (prefix): Use it.
4054         (distclean, maintainer-clean): Drop Unix specific removals.
4055         * lib/Makefile.msvc (PREFIX, IIPREFIX): New variables.
4056         (prefix): Use it.
4057         (IIprefix, IIexec_prefix, IIbindir, IIlibdir): New variables.
4058         (clean): Drop Unix specific removal.
4059         * src/Makefile.msvc (PREFIX): New variable.
4060         (prefix): Use it.
4061         (clean): Drop Unix specific removal.
4062         (distclean): Likewise.
4063         * tests/Makefile.msvc (clean): Drop Unix specific removal.
4064         (distclean): Likewise.
4066 2003-04-05  Bruno Haible  <bruno@clisp.org>
4068         * m4/endian.m4 (CL_WORDS_LITTLEENDIAN): Use 3-argument AC_DEFINE.
4070 2003-04-05  Bruno Haible  <bruno@clisp.org>
4072         * m4/general.m4 (CL_CONFIG_SUBDIRS, CL_CANONICAL_HOST,
4073         CL_CANONICAL_HOST_CPU, CL_CANONICAL_HOST_CPU_FOR_FFCALL): Remove
4074         macros.
4075         * m4/gettext.m4: Update from GNU gettext.
4076         * m4/iconv.m4: Update from GNU gettext.
4077         * m4/lcmessage.m4: Update from GNU gettext.
4078         * m4/progtest.m4: Update from GNU gettext.
4079         * m4/libtool.m4: Update from GNU gettext.
4080         2003-02-16  Bruno Haible  <bruno@clisp.org>
4081                 Workaround autoconf >= 2.52 breakage.
4082                 * libtool.m4 (AC_LIBTOOL_ARG_WITH): New macro.
4083                 (_LT_AC_LTCONFIG_HACK, AC_PROG_LD): Use it.
4084         * autoconf/ltmain.sh: Update from GNU gettext.
4085         2003-02-18  Bruno Haible  <bruno@clisp.org>
4086                 Fix the 2002-09-16 fix.
4087                 * ltmain.sh (install): If "ln -s -f" fails (this is the case
4088                 with /usr/bin/ln on Solaris 2.7), fall back to "rm && ln -s".
4090 2003-04-05  Bruno Haible  <bruno@clisp.org>
4092         Start using automake.
4093         * configure.in: Add AM_INIT_AUTOMAKE invocation.
4094         (PACKAGE, VERSION): Remove.
4095         Use AC_CANONICAL_HOST instead of CL_CANONICAL_HOST.
4096         Use AC_PROG_LN_S instead of CL_PROG_LN_S.
4097         Use AC_PROG_RANLIB instead of CL_PROG_RANLIB.
4098         Reorder so that AC_CANONICAL_HOST comes early but still after
4099         AC_PROG_CC.
4100         * m4/ranlib.m4: Remove file.
4101         * m4/libtool.m4: Undo AC_ -> CL_ substitutions.
4102         * Makefile.devel (CLISP_DIR): Comment out.
4103         (AUTOCONF_FILES): Change to aclocal.m4.
4104         (aclocal.m4): Renamed from autoconf/aclocal.m4. Update dependencies.
4105         (configure.in): Drop --include option.
4107 2003-03-17  Bruno Haible  <bruno@clisp.org>
4109         Improved MSVC support.
4110         * Makefile.msvc (prefix): Use less Unixy value.
4111         (local_prefix): Remove variable.
4112         (libdir, includedir, mandir): Use backslashes.
4113         (bindir, datadir, localedir, docdir): New variables.
4114         (INSTALL, INSTALL_PROGRAM, INSTALL_DATA): New variables.
4115         (all): Recurse into po/ and man/.
4116         (install, installdirs, uninstall): Rewritten.
4117         (check, mostlyclean, clean, distclean, maintainer-clean): Recurse
4118         into po/ and man/.
4119         * lib/Makefile.msvc (prefix): Use less Unixy value.
4120         (local_prefix): Remove variable.
4121         (libdir): Use backslashes.
4122         (bindir): New variable.
4123         (INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Set to real values.
4124         (RESOURCES): Enable iconv.res.
4125         (install, installdirs, uninstall): New rules.
4126         (clean): Remove config.h.
4127         (distclean): Don't remove config.h here.
4128         * src/Makefile.msvc (prefix, exec_prefix, bindir): New variables.
4129         (INSTALL, INSTALL_PROGRAM, INSTALL_DATA): New variables.
4130         (install, installdirs, uninstall): New rules.
4131         * man/Makefile.msvc: New file.
4132         * tests/Makefile.msvc (install, installdirs, uninstall): New rules.
4133         * Makefile.devel (all): Depend on po/Makefile.msvc.
4134         (po/Makefile.msvc): New rule.
4135         * windows/iconv.rc: Update.
4136         * README.woe32: Mention automatic installation command.
4138         Rename libcharset.h to localcharset.h.
4139         * lib/iconv.c: Include localcharset.h, not libcharset.h.
4140         * Makefile.in (lib/localcharset.h): Renamed from lib/libcharset.h.
4141         (all, install): Update dependencies.
4142         (all): Create lib/localcharset.h, not lib/libcharset.h.
4143         (mostlyclean, clean, distclean, maintainer-clean): Remove
4144         lib/localcharset.h, not lib/libcharset.h.
4145         * djgpp/README.in, djgpp/README: Update.
4146         * djgpp/config.bat: Update.
4147         * djgpp/config.sed: Update.
4148         * djgpp/fnchange.in, djgpp/fnchange.lst: Update.
4150 2003-01-31  Bruno Haible  <bruno@clisp.org>
4152         * src/Makefile.in (all): Don't do the chmod if it has already been
4153         done.
4155 2003-01-31  Bruno Haible  <bruno@clisp.org>
4157         * lib/loop_unicode.h (unicode_transliterate): Enable recursive
4158         transliteration. Idea from Perry Rapp.
4159         * lib/gentranslit.c (main): Change bound from 0x10000 to 0x110000.
4160         Change element type of translit_data to 'unsigned int'.
4161         * lib/translit.def: Many new transliterations, mostly taken from glibc.
4162         * lib/translit.h: Regenerated.
4163         * tests/Translit1.ISO-8859-1, tests/Translit1.ASCII: New files.
4164         * tests/Makefile.in (check): Add Translit1 check.
4165         * tests/Makefile.msvc (check): Likewise.
4166         * tests/Makefile.os2 (check): Likewise.
4167         * tests/TranslitFail1.ISO-8859-1: Choose a sentence which the new
4168         improved transliteration cannot do.
4170 2003-02-14  Bruno Haible  <bruno@clisp.org>
4172         * Makefile.devel (AUTOCONF): Switch to autoconf-2.57.
4173         (configure): Update rule.
4175 2003-01-03  Albert Chin  <libtool@thewrittenword.com>
4177         * autoconf/ltmain.sh: Don't pass -R flags found in a .la's
4178         dependency_libs variable directly down to the linker.
4179         Reported by Tim Mooney <mooney@dogbert.cc.ndsu.nodak.edu>.
4181 2003-01-01  Bruno Haible  <bruno@clisp.org>
4183         * src/Makefile.in (install): Use libiconv.la in ../lib, not in
4184         $(libdir), so that installing with DESTDIR works.
4185         Reported by Michael Adams <michael@michaeladams.org>.
4187 2003-01-01  Bruno Haible  <bruno@clisp.org>
4189         * Makefile.in (mkinstalldirs): New variable.
4190         (install-lib, install, installdirs): Use it instead of mkdir.
4191         * lib/Makefile.in (mkinstalldirs): New variable.
4192         (install-lib, install, installdirs): Use it instead of mkdir.
4193         * man/Makefile.in (mkinstalldirs): New variable.
4194         (install, installdirs): Use it instead of mkdir.
4195         * src/Makefile.in (mkinstalldirs): New variable.
4196         (install, installdirs): Use it instead of mkdir.
4198 2002-09-27  Bruno Haible  <bruno@clisp.org>
4200         * autoconf/mkinstalldirs: Upgrade to automake-1.7.2 version.
4202 2002-11-07  Bruno Haible  <bruno@clisp.org>
4204         * m4/libtool.m4: Upgrade to libtool-1.4.3.
4205         * autoconf/ltmain.sh: Upgrade to libtool-1.4.3.
4207 2002-07-14  Bruno Haible  <bruno@clisp.org>
4209         * m4/libtool.m4 (_LT_AC_LTCONFIG_HACK): Add support for GNU/FreeBSD.
4211 2002-06-12  Bruno Haible  <bruno@clisp.org>
4213         * configure.in: Use new AC_* names of libtool macros. Invoke
4214         AC_LIBTOOL_WIN32_DLL.
4216 2002-12-19  Bruno Haible  <bruno@clisp.org>
4218         * lib/Makefile.in (libiconv_plug_solaris.so): Change rule if using gcc.
4219         Reported by Henry Nelson <henry@irm.nara.kindai.ac.jp>.
4221 2002-11-07  Bruno Haible  <bruno@clisp.org>
4223         Make "make install" without prior "make" work.
4224         * Makefile.in (lib/libcharset.h): New rule.
4225         (all, install): Depend on it.
4226         Reported by Martin Mokrejš <mmokrejs@natur.cuni.cz>.
4228 2002-10-28  Bruno Haible  <bruno@clisp.org>
4230         * man/Makefile.in (install): Change directory back to the working
4231         directory, so that install-sh (which may be a relative pathname) is
4232         found in the right place.
4234 2002-09-16  Bruno Haible  <bruno@clisp.org>
4236         * autoconf/ltmain.sh (install): Use "ln -s -f" instead of
4237         "rm -f && ln -s" to make a symlink for a shared library.
4238         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4240 2002-09-02  Bruno Haible  <bruno@clisp.org>
4242         * src/iconv.c (main): Don't call bindtextdomain if !ENABLE_NLS.
4244 2002-08-16  Bruno Haible  <bruno@clisp.org>
4246         * src/iconv.c (main): Perform fflush before testing ferror(stdout).
4248 2002-05-29  Bruno Haible  <bruno@clisp.org>
4250         * Version 1.8 released.
4252 2002-05-26  Bruno Haible  <bruno@clisp.org>
4254         * lib/c99.h: New file.
4255         * lib/converters.h: Include it.
4256         * lib/encodings.def (C99): New encoding.
4257         * README, man/iconv_open.3: Document C99 encoding.
4259 2002-05-26  Bruno Haible  <bruno@clisp.org>
4261         * lib/java.h (java_mbtowc): Accept 12-byte sequences for non-BMP
4262         characters.
4263         (java_wctomb): Produce 12-byte sequences for non-BMP characters.
4265 2002-05-29  Bruno Haible  <bruno@clisp.org>
4267         Fix installation of iconv program when linked with a libintl that was
4268         built against an earlier libiconv.
4269         * src/iconv.c: Conditionally disable NLS.
4270         * src/iconv_no_i18n.c: New file.
4271         * src/Makefile.in (libdir): New variable.
4272         (all): Depend on iconv_no_i18n, iconv.@OBJEXT@ but not iconv. Make
4273         directory writable, so iconv executable can be created during "make
4274         install".
4275         (iconv): Remove rule.
4276         (iconv_no_i18n, iconv_no_i18n.@OBJEXT@): New rules.
4277         (install): Link iconv now, after the new libiconv.so is installed.
4278         (clean): Also remove iconv_no_i18n.
4279         * tests/Makefile.in: (check, check-extra-yes): Depend on iconv_no_i18n,
4280         not iconv.
4281         * tests/check-stateful: Use iconv_no_i18n, not iconv.
4282         * tests/check-translit: LIkewise.
4283         * tests/check-translitfailure: Likewise.
4285 2002-05-29  Bruno Haible  <bruno@clisp.org>
4287         * configure.in: Call AC_PROG_INSTALL instead of CL_PROG_INSTALL.
4288         * m4/install.m4: Remove file.
4289         * Makefile.devel (autoconf/aclocal.m4): Don't depend on m4/install.m4.
4291 2002-05-24  Bruno Haible  <bruno@clisp.org>
4293         * lib/jisx0213.h: Use 'inline' only conditionally.
4295 2002-05-18  Bruno Haible  <bruno@clisp.org>
4297         * configure.in (AC_INIT), include/iconv.h.in (_LIBICONV_VERSION),
4298         README, windows/iconv.rc, djgpp/README, djgpp/fnchange.lst:
4299         Bump version number.
4300         * lib/Makefile.in (LIBICONV_VERSION_INFO): Define to 3:0:1.
4302 2002-02-06  Bruno Haible  <bruno@clisp.org>
4304         * autoconf/ltmain.sh: Upgrade from libtool-1.4 to libtool-1.4.2.
4306 2002-02-02  Bruno Haible  <bruno@clisp.org>
4308         * autoconf/ltmain.sh: Add DESTDIR support on ELF systems.
4310 2001-11-03  Bruno Haible  <haible@clisp.cons.org>
4312         * autoconf/ltmain.sh: chmod 777 the .libs directory, so that
4313         "make install" succeeds.
4315 2002-05-18  Bruno Haible  <bruno@clisp.org>
4317         * src/Makefile.in (iconv): Remove the -liconv dependency of -lintl
4318         from the command line. Needed to ensure that the new libiconv version
4319         is used on FreeBSD.
4321 2002-05-14  Bruno Haible  <bruno@clisp.org>
4323         Implement and document CP853, TDS565, RISCOS-LATIN1.
4324         * tools/Makefile (ALL): Add cp853.h, tds565.h, riscos1.h.
4325         (cp853.h, tds565.h, riscos1.h): New rules.
4326         * lib/cp853.h: New file.
4327         * lib/tds565.h: New file.
4328         * lib/riscos1.h: New file.
4329         * lib/converters.h: Include them.
4330         * lib/encodings_dos.def (CP853): New encoding.
4331         * lib/encodings_extra.def (TDS565, RISCOS-LATIN1): New encodings.
4332         * README, man/iconv_open.3: Add CP853, TDS565, RISCOS-LATIN1.
4333         * tests/Makefile.in (check-extra-yes): Check CP853, TDS565,
4334         RISCOS-LATIN1.
4335         * tests/Makefile.msvc (check): Check CP853.
4336         * tests/CP853.TXT: New file.
4337         * tests/TDS565.TXT: New file.
4338         * tests/RISCOS-LATIN1.TXT: New file.
4340         * lib/cp860.h (cp860_wctomb): Optimize.
4342 2002-05-12  Bruno Haible  <bruno@clisp.org>
4344         * tools/Makefile (ksc5601.h): Add two extra characters.
4345         * lib/ksc5601.h: Regenerated.
4346         * tests/EUC-KR.TXT: Add EURO SIGN and REGISTERED SIGN.
4347         * tests/CP949.TXT: Likewise.
4348         * tests/JOHAB.TXT: Likewise.
4350 2002-05-12  Bruno Haible  <bruno@clisp.org>
4352         * README: Mention extra encodings.
4353         * man/iconv_open.3: Likewise. Improve formatting in text and html
4354         output formats.
4356 2002-05-12  Bruno Haible  <bruno@clisp.org>
4358         * tests/SHIFT_JIS.TXT: Renamed from tests/SHIFT-JIS.TXT.
4360 2002-05-12  Bruno Haible  <bruno@clisp.org>
4362         * Makefile.devel (AUTOCONF): New variable.
4363         (AUTOCONF_FILES): Remove autoconf/autoconf.m4f.
4364         (configure): Use the AUTOCONF variable.
4365         * autoconf/autoconf: Remove file.
4366         * autoconf/autoconf.m4: Remove file.
4367         * autoconf/autoconf.m4f: Remove file.
4369 2002-05-12  Bruno Haible  <bruno@clisp.org>
4371         * tools/JISX0213.TXT: New file.
4372         * tools/cjk_tab_to_h.c (do_jisx0213): New function.
4373         (main): Accept "jisx0213".
4374         * tools/Makefile (all): Add jisx0213.h.
4375         (jisx0213.h): New rule.
4376         * lib/jisx0213.h: New file, generated by cjk_tab_to_h.
4377         * lib/euc_jisx0213.h: New file.
4378         * lib/shift_jisx0213.h: New file.
4379         * lib/iso2022_jp3.h: New file.
4380         * lib/converters.h: Include them.
4381         * lib/encodings_extra.def (EUC-JISX0213, SHIFT_JISX0213,
4382         ISO-2022-JP-3): New encodings.
4383         * tests/EUC-JISX0213.TXT: New file.
4384         * tests/SHIFT_JISX0213.TXT: New file.
4385         * tests/ISO-2022-JP-3-snippet: New file.
4386         * tests/ISO-2022-JP-3-snippet.UTF-8: New file.
4387         * tests/Makefile.in (check-extra): Also check EUC-JISX0213,
4388         SHIFT_JISX0213, ISO-2022-JP-3.
4389         * tests/check-stateless: Add support for encodings which contain
4390         precomposed Unicode characters, by eliminating precomposed characters
4391         before the comparison.
4392         * tests/table-from.c (main): Fix usage message.
4393         * tests/table-to.c (main): Make it work for encodings for which the
4394         "to" direction is stateful.
4396 2002-05-09  Bruno Haible  <bruno@clisp.org>
4398         New configure option --enable-extra-encodings.
4399         * lib/encodings_extra.def: New file.
4400         * lib/converters.h: Handle USE_EXTRA.
4401         * lib/genaliases2.c (main): Handle USE_EXTRA.
4402         * lib/genflags.c: Define USE_EXTRA.
4403         (main): Include encodings_extra.def.
4404         * lib/iconv.c: Handle ENABLE_EXTRA, conditionally set USE_EXTRA.
4405         Handle USE_EXTRA.
4406         * lib/config.h.in (ENABLE_EXTRA): New macro.
4407         * configure.in: Accept option --enable-extra-encodings.
4408         * Makefile.devel (all): Depend on lib/aliases_extra.h.
4409         (lib/aliases_extra.h): New rule.
4410         (lib/flags.h): Depend on lib/encodings_extra.def.
4411         * tests/Makefile.in (check-extra, check-extra-no, check-extra-yes):
4412         New rules.
4413         (check): Invoke check-extra.
4414         * tests/Makefile.msvc (check): Also check the DOS encodings.
4416         Support for testing the AIX encodings.
4417         * tests/CP856.TXT: New file.
4418         * tests/CP922.TXT: New file.
4419         * tests/CP1046.TXT: New file.
4420         * tests/CP1124.TXT: New file.
4421         * tests/CP1129.TXT: New file.
4422         * tests/CP1161.TXT, tests/CP1161.IRREVERSIBLE.TXT: New files.
4423         * tests/CP1162.TXT: New file.
4424         * tests/CP1163.TXT, tests/CP1163.IRREVERSIBLE.TXT: New files.
4426         Support for testing the OSF/1 encodings.
4427         * tests/DEC-KANJI.TXT: New file.
4428         * tests/DEC-HANYU.TXT, tests/DEC-HANYU.IRREVERSIBLE.TXT: New files.
4430         Support for testing the DOS encodings.
4431         * tests/CP437.TXT: New file.
4432         * tests/CP737.TXT: New file.
4433         * tests/CP775.TXT: New file.
4434         * tests/CP852.TXT: New file.
4435         * tests/CP855.TXT: New file.
4436         * tests/CP857.TXT: New file.
4437         * tests/CP858.TXT: New file.
4438         * tests/CP860.TXT: New file.
4439         * tests/CP861.TXT: New file.
4440         * tests/CP863.TXT: New file.
4441         * tests/CP864.TXT: New file.
4442         * tests/CP865.TXT: New file.
4443         * tests/CP869.TXT: New file.
4444         * tests/CP1125.TXT: New file.
4446 2002-05-09  Bruno Haible  <bruno@clisp.org>
4448         Implement more ASCII compatible DOS encodings.
4449         * tools/Makefile (ALL): Add cp737.h, cp858.h, cp860.h, cp863.h.
4450         (cp737.h, cp858.h, cp860.h, cp863.h): New rules.
4451         * lib/cp737.h: New file.
4452         * lib/cp858.h: New file.
4453         * lib/cp860.h: New file.
4454         * lib/cp863.h: New file.
4455         * lib/converters.h: Include them.
4456         * lib/encodings_dos.def (CP737, CP858, CP860, CP863): New encodings.
4458 2002-05-09  Bruno Haible  <bruno@clisp.org>
4460         Implement new ASCII compatible encodings from IBM.
4461         * tools/Makefile (ALL): Add cp1161.h, cp1162.h, cp1163.h.
4462         (cp1161.h, cp1162.h, cp1163.h): New rules.
4463         * lib/cp1161.h: New file.
4464         * lib/cp1162.h: New file.
4465         * lib/cp1163.h: New file.
4466         * lib/converters.h: Include them.
4467         * lib/encodings_aix.def (CP1161, CP1162, CP1163): New encodings.
4469 2002-05-09  Bruno Haible  <bruno@clisp.org>
4471         Implement and document KOI8-T.
4472         * tools/Makefile (ALL): Add koi8_t.h.
4473         (koi8_t.h): New rule.
4474         * lib/koi8_t.h: New file.
4475         * lib/converters.h: Include it.
4476         * lib/encodings.def (KOI8-T): New encoding.
4477         * README, man/iconv_open.3: Add KOI8-T.
4478         * tests/Makefile.in (tests): Check KOI8-T.
4479         * tests/Makefile.os2 (tests): Likewise.
4480         * tests/Makefile.msvc (tests): Likewise.
4481         * tests/KOI8-T.TXT: New file.
4483 2002-05-09  Bruno Haible  <bruno@clisp.org>
4485         * tools/8bit_tab_to_h.c (main): Update copyright year.
4486         * tools/cjk_variants.c (main): Likewise.
4488 2002-05-08  Bruno Haible  <bruno@clisp.org>
4490         * README.woe32: Renamed from README.win32.
4492 2002-05-08  Bruno Haible  <bruno@clisp.org>
4494         * lib/iconv.c: Enable DOS encodings also when compiling for Woe32,
4495         because the Woe32 consoles use them.
4497 2002-05-04  Bruno Haible  <bruno@clisp.org>
4499         * lib/loop_unicode.h (unicode_loop_convert): When quitting the loop
4500         without writing an output character, restore cd->istate to its value
4501         before the xxx_mbtowc call. Otherwise we lose some characters during
4502         CP1255/CP1258/TCVN to Unicode conversion.
4503         (unicode_loop_reset): Likewise for the xxx_flushwc call.
4504         * tests/CP1255-snippet, tests/CP1255-snippet.UTF-8: Make the test
4505         files large enough to test against the bug.
4506         * tests/CP1258-snippet, tests/CP1258-snippet.UTF-8: Likewise.
4507         * tests/TCVN-snippet, tests/TCVN-snippet.UTF-8: Likewise.
4509 2002-04-28  Bruno Haible  <bruno@clisp.org>
4511         * tools/Makefile (armscii_8.h): Use table from glibc-2.2.90.
4512         * tests/ARMSCII-8.TXT: Update to glibc-2.2.90 version.
4513         * tests/ARMSCII-8.IRREVERSIBLE.TXT: Remove 0x0027.
4514         * lib/armscii_8.h: Regenerated.
4516 2002-04-28  Bruno Haible  <bruno@clisp.org>
4518         * src/iconv.c: Include gettext.h.
4519         (_): New macro.
4520         (usage, print_version, convert, main): Internationalize.
4521         (main): Call setlocale, bindtextdomain, textdomain.
4522         * src/gettext.h: New file, from GNU gettext 0.11.2.
4523         * src/config.h.in: New file, needed for ENABLE_NLS.
4524         * src/Makefile.in (datadir, localedir): New variables.
4525         (iconv): Link with @LTLIBINTL@.
4526         (iconv.@OBJEXT@): Define LOCALEDIR.
4527         (distclean): Remove config.h.
4528         * po: New directory.
4529         * Makefile.in (all, install, installdirs, uninstall, check,
4530         mostlyclean, clean, distclean, maintainer-clean): Recurse into the po
4531         directory.
4532         * autoconf/mkinstalldirs: New file, from automake-1.5.
4533         * ABOUT-NLS: New file, from GNU gettext 0.11.2.
4534         * m4/codeset.m4: New file, from GNU gettext 0.11.2.
4535         * m4/gettext.m4: New file, from GNU gettext 0.11.2.
4536         * m4/glibc21.m4: New file, from GNU gettext 0.11.2.
4537         * m4/isc-posix.m4: New file, from GNU gettext 0.11.2.
4538         * m4/lcmessage.m4: New file, from GNU gettext 0.11.2.
4539         * m4/progtest.m4: New file, from GNU gettext 0.11.2.
4540         * configure.in: Require autoconf-2.52, needed for multiple config.h.in
4541         files. Use new form of AC_INIT. Invoke AM_GNU_GETTEXT.
4542         (PACKAGE, VERSION): Define, needed for po/Makefile.in.in.
4543         * lib/config.h.in (HAVE_LOCALE_H, HAVE_SETLOCALE): Remove.
4545 2002-04-28  gettextize  <bug-gnu-gettext@gnu.org>
4547         * configure.in (AC_OUTPUT): Add po/Makefile.in.
4549 2002-04-28  Bruno Haible  <bruno@clisp.org>
4551         * m4/eilseq.m4: Renamed from autoconf/eilseq.m4.
4552         * m4/mbstate_t.m4: Renamed from autoconf/mbstate_t.m4.
4553         * m4/general.m4: New file, from GNU clisp.
4554         * m4/proto.m4: New file, from GNU clisp.
4555         * m4/ranlib.m4: New file, from GNU clisp.
4556         * m4/install.m4: New file, from GNU clisp.
4557         * m4/cp.m4: New file, from GNU clisp.
4558         * m4/ln.m4: New file, from GNU clisp.
4559         * m4/endian.m4: New file, from GNU clisp.
4560         * m4/iconv.m4: New file, from GNU gettext 0.11.2.
4561         * m4/lib-ld.m4: New file, from GNU gettext 0.11.2.
4562         * m4/lib-link.m4: New file, from GNU gettext 0.11.2.
4563         * m4/lib-prefix.m4: New file, from GNU gettext 0.11.2.
4564         * autoconf/config.rpath: New file, from GNU gettext 0.11.2.
4565         * m4/libtool.m4: New file, based on libtool-1.4.2.
4566         * Makefile.devel (ACLOCAL): Remove variable.
4567         (ACSELECT): Remove variable.
4568         (OTHERMACROS): Remove variable.
4569         (m4/*.m4): New rules.
4570         (autoconf/aclocal.m4): Construct using aclocal instead of acselect.
4571         * configure.in: Invoke AM_ICONV instead of CL_ICONV.
4573 2002-04-06  Bruno Haible  <bruno@clisp.org>
4575         Upgrade to Unicode 3.2.
4576         * tools/cjk_tab_to_h.c (output_title): Bump copyright year.
4577         (compact_large_charset2uni): Add an argument. Determine optimal shift.
4578         Copy modified enc->charset2uni table.
4579         (output_charset2uni): Deal with shift other than 8. Copy encoding, so
4580         as to not disturb subsequent output_uni2charset[_sparse] call.
4581         * lib/hkscs.h: Regenerated.
4582         * tests/BIG5-HKSCS.TXT: Update.
4583         * tests/BIG5-HKSCS.IRREVERSIBLE.TXT: Update.
4585 2002-04-06  Bruno Haible  <bruno@clisp.org>
4587         Upgrade to Unicode 3.2.
4588         * tools/Makefile (cns11643_1.h, cns11643_2.h, cns11643_3.h,
4589         cns11643_4a.h, cns11643_4b.h, cns11643_5.h, cns11643_6.h,
4590         cns11643_7.h, cns11643_15.h, cns11643_inv.h): Use
4591         CNS11643-Unicode32.TXT instead of CNS11643-Unicode31.TXT.
4592         * lib/cns11643_3.h: Regenerated.
4593         * lib/cns11643_4a.h: Regenerated.
4594         * lib/cns11643_4b.h: Regenerated.
4595         * lib/cns11643_5.h: Regenerated.
4596         * lib/cns11643_6.h: Regenerated.
4597         * lib/cns11643_7.h: Regenerated.
4598         * lib/cns11643_15.h: Regenerated.
4599         * lib/cns11643_inv.h: Regenerated.
4600         * tests/EUC-TW.TXT: Update.
4602 2002-01-17  Bruno Haible  <bruno@clisp.org>
4604         * lib/tcvn.h (tcvn_2uni_1): Make it smaller.
4605         (tcvn_mbtowc): Small optimization.
4607 2002-01-13  Bruno Haible  <bruno@clisp.org>
4609         New options -l, -c, -s.
4610         * src/iconv.c (discard_unconvertible, silent): New variables.
4611         (usage): Document options -l, -c, -s.
4612         (print_one): New function.
4613         (convert): If silent is true, don't print error messages about the
4614         conversion to stderr. If discard_unconvertible is true, set the
4615         iconv descriptor to DISCARD_ILSEQ the first time, but make sure to
4616         return the same return code as when discard_unconvertible is false.
4617         (main): Accept options -l, -c, -s. Implement option -l.
4618         * man/iconv.1: Document options -l, -c, -s.
4620 2002-01-13  Bruno Haible  <bruno@clisp.org>
4622         Support for "iconv -c".
4623         * include/iconv.h.in (ICONV_GET_DISCARD_ILSEQ): New macro.
4624         (ICONV_SET_DISCARD_ILSEQ): Likewise.
4625         * lib/converters.h (struct conv_struct): New field discard_ilseq.
4626         * lib/iconv.c (iconv_open): Set discard_ilseq to true if tocode
4627         has an "//IGNORE" suffix, and to false otherwise.
4628         (iconvctl): Implement ICONV_GET_DISCARD_ILSEQ, ICONV_SET_DISCARD_ILSEQ.
4629         * lib/loop_unicode.h (unicode_loop_convert): If discard_ilseq is
4630         true, skip one input character instead of returning EILSEQ.
4631         (unicode_loop_reset): Likewise.
4632         * lib/loop_wchar.h (wchar_from_loop_convert): Likewise.
4633         (wchar_to_loop_convert): Likewise.
4635 2002-01-13  Bruno Haible  <bruno@clisp.org>
4637         Support for "iconv -l".
4638         * include/iconv.h.in (iconvlist): New declaration.
4639         * Makefile.devel (lib/aliases.h): Change gperf options.
4640         * lib/iconv.c (compare_by_index, compare_by_name, iconvlist): New
4641         functions.
4643 2002-01-06  Bruno Haible  <bruno@clisp.org>
4645         * lib/loop_unicode.h (unicode_transliterate): If the transliteration
4646         fails due to limited output encoding, return RET_ILUNI, not
4647         RET_TOOSMALL. Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4648         * tests/check-translitfailure: New file.
4649         * tests/TranslitFail1.ISO-8859-1: New file.
4650         * tests/Makefile.in (check): Call check-translitfailure.
4652 2001-12-15  Bruno Haible  <bruno@clisp.org>
4654         * lib/euc_jp.h (euc_jp_wctomb): Add irreversible mappings for
4655         Shift_JIS characters 0x5C and 0x7E.
4656         * tests/EUC-JP.IRREVERSIBLE.TXT: New file.
4658 2001-12-05  Bruno Haible  <bruno@clisp.org>
4660         * lib/iconv.c (iconv_open): Recognize the empty encoding name. Avoid
4661           endless loop if locale_charset() returns the empty string.
4662         * README, man/iconv_open.3: Add the empty encoding name.
4664 2001-11-10  Bruno Haible  <haible@clisp.cons.org>
4666         * lib/Makefile.in (libiconv_plug_linux.so): Allow building it with a
4667           non-gcc compiler.
4669 2001-10-23  Bruno Haible  <haible@clisp.cons.org>
4671         * tools/Makefile (cp1125.h): New target.
4672           (ALL): Add it.
4673         * lib/cp1125.h: New file.
4674         * lib/converters.h: Include it.
4675         * lib/encodings_dos.def (CP1125): New encoding.
4677 2001-09-08  Bruno Haible  <haible@clisp.cons.org>
4679         * autoconf/eilseq.m4: New file.
4680         * Makefile.devel (OTHERMACROS): Add it.
4681         * configure.in: Call AC_EILSEQ.
4682         * include/iconv.h.in (EILSEQ): Define to the autoconf determined value.
4684 2001-08-25  Bruno Haible  <haible@clisp.cons.org>
4686         Upgrade to autoconf-2.52.
4687         * autoconf/autoconf: Upgrade to autoconf-2.52.
4688         * autoconf/acgeneral.m4: Remove file.
4689         * autoconf/acspecific.m4: Remove file.
4690         * autoconf/autoconf.m4f: New file, from autoconf-2.52.
4691         * autoconf/aclocal.m4: Require autoconf-2.52.
4692         (CL_CANONICAL_HOST): Call AC_CANONICAL_HOST. Don't cache the result,
4693         AC_CANONICAL_HOST does it itself. Add $SHELL in front of
4694         $ac_config_guess and $ac_config_sub.
4695         * Makefile.devel (AUTOCONF_FILES): Remove acgeneral.m4, acspecific.m4.
4696         Add autoconf.m4f.
4697         (configure): Use autoconf options -A, -l instead of -m.
4698         * configure.in: Use AC_CONFIG_SUBDIRS, not AC_OUTPUT_SUBDIRS.
4700 2001-08-05  Bruno Haible  <haible@clisp.cons.org>
4702         * autoconf/acgeneral.m4 (AC_MSG_RESULTPROTO): Remove macro.
4703         (AC_LANG_EXTERN): Move to aclocal.m4.
4704         * autoconf/aclocal.m4 (AC_LANG_EXTERN): Moved here from acgeneral.m4.
4705         (CL_PROTO): Use AC_MSG_RESULT directly, instead of AC_MSG_RESULTPROTO.
4706         (CL_SILENT): No need to pushdef AC_MSG_RESULTPROTO.
4708 2001-08-05  Bruno Haible  <haible@clisp.cons.org>
4710         Make it possible to build libiconv with CC=gcc CFLAGS="-x c++".
4711         * lib/loop_wchar.h (wchar_to_loop_convert): Rename local variable
4712         'try' to 'incount'.
4713         * lib/Makefile.in (libiconv_plug_linux.so): Add "-x none" option
4714         between sources and libs.
4715         (libiconv_plug_solaris.so) [GCC]: Likewise.
4716         (libiconv_plug_osf.so) [GCC]: Likewise.
4717         * src/Makefile.in (iconv.@OBJEXT@): New rule.
4718         (iconv): Depend on it.
4719         (clean): Erase *.@OBJEXT@, not *.o.
4720         * tests/Makefile.in (table-from.@OBJEXT@): New rule.
4721         (table-from): Depend on it.
4722         (table-to.@OBJEXT@): New rule.
4723         (table-to): Depend on it.
4724         (clean): Erase *.@OBJEXT@, not *.o.
4726 2001-07-28  Bruno Haible  <haible@clisp.cons.org>
4728         * tools/Makefile (iso8859_16.h): Generate from the unicode.org table.
4729         * lib/iso8859_16.h: Regenerated.
4730         * tests/ISO-8859-16.TXT: Swap the values of 0xA5 and 0xAB.
4732 2001-07-17  Bruno Haible  <haible@clisp.cons.org>
4734         * configure.in (VERSION): Define. Needed by djgpp/Makefile.maint.
4736 2001-07-03  Bruno Haible  <haible@clisp.cons.org>
4738         * configure.in: Also check for mbsinit.
4739         * lib/loop_wchar.h (mbsinit): Define to 1 if not defined.
4740         Needed for SCO 3.2v5.0.2.
4742 2001-06-27  Bruno Haible  <haible@clisp.cons.org>
4744         * Version 1.7 released.
4746 2001-06-27  Bruno Haible  <haible@clisp.cons.org>
4748         * INSTALL.generic (Particular Systems): Generalize section about
4749         /usr/local to "most systems".
4751         * lib/Makefile.in (all): Build @PLUGLIB@ before libiconv.la, because
4752         Solaris cc destroys iconv.o and iconv.lo while building
4753         libiconv_plug_solaris.so.
4754         (clean): Remove so_locations, left there by the OSF/1 linker.
4756         * lib/cp1255.h (cp1255_decomp): Use 'signed int' instead of 'int'.
4758         * lib/vietcomb.h (viet_decomp): Use 'unsigned int' instead of
4759         'unsigned short'.
4761         * tests/table-from.c: Include string.h.
4762         * tests/table-to.c: Likewise.
4764 2001-06-26  Bruno Haible  <haible@clisp.cons.org>
4766         * tools/Makefile (jisx0208.h): Replace U+005C with U+FF3C.
4767         (jisx0212.h): Replace U+007E with U+FF5E.
4768         * lib/jisx0208.h: Regenerated.
4769         * lib/jisx0212.h: Regenerated.
4770         * tests/EUC-JP.TXT: Map 0xA1C0 to U+FF3C. Map 0x8FA2B7 to U+FF5E.
4771         * tests/EUC-JP.IRREVERSIBLE.TXT: Remove file.
4772         * tests/SHIFT-JIS.TXT: Map 0x815F to U+FF3C.
4773         * tests/CP932.TXT: Likewise.
4774         * tests/CP932.IRREVERSIBLE.TXT: 0x815F mapping is now reversible.
4776 2001-06-25  Bruno Haible  <haible@clisp.cons.org>
4778         * src/Makefile.in (iconv): Mention $(INCLUDES) before $(CFLAGS) and
4779         $(CPPFLAGS).
4780         * src/Makefile.msvc (iconv.exe): Likewise.
4781         * src/Makefile.os2 (iconv.exe): Likewise.
4782         * lib/Makefile.in (libiconv_plug_linux.so): Likewise.
4783         (libiconv_plug_solaris.so): Likewise.
4784         (libiconv_plug_osf.so): Likewise.
4785         (iconv.lo): Likewise.
4786         * lib/Makefile.msvc (iconv.obj): Likewise.
4787         * lib/Makefile.os2 (iconv.obj): Likewise.
4788         * tests/Makefile.in (table-from, table-to): Likewise.
4789         * tests/Makefile.msvc (table-from.exe, table-to.exe): Likewise.
4790         * tests/Makefile.os2 (table-from.exe, table-to.exe): Likewise.
4791         (genutf8.exe): Don't use $(INCLUDES).
4793 2001-06-25  Bruno Haible  <haible@clisp.cons.org>
4795         * include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
4796           Bump version number.
4797         * lib/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:4:0.
4799 2001-06-25  Bruno Haible  <haible@clisp.cons.org>
4801         * Makefile.devel (OTHERMACROS): Use libtool.m4 in libcharset subdir.
4803 2001-06-25  Bruno Haible  <haible@clisp.cons.org>
4805         * lib/encodings.def: Make SHIFT_JIS the primary name of SJIS.
4807 2001-06-08  Bruno Haible  <haible@clisp.cons.org>
4809         * autoconf/ltmain.sh: Upgrade to libtool-1.4.
4810         * autoconf/ltconfig: Remove file.
4812 2001-06-08  Bruno Haible  <haible@clisp.cons.org>
4814         * autoconf/config.guess: Update to GNU version 2001-05-11.
4815         * autoconf/config.sub: Likewise.
4817 2001-06-03  Bruno Haible  <haible@clisp.cons.org>
4819         * lib/loop_unicode.h (unicode_loop_convert): Ignore Unicode 3.1 tag
4820           characters if they cannot be converted.
4821           (unicode_loop_reset): Likewise.
4822         * lib/iso2022_jp2.h (STATE_TAG_NONE, STATE_TAG_LANGUAGE,
4823            STATE_TAG_LANGUAGE_j, STATE_TAG_LANGUAGE_ja, STATE_TAG_LANGUAGE_k,
4824            STATE_TAG_LANGUAGE_ko, STATE_TAG_LANGUAGE_z, STATE_TAG_LANGUAGE_zh):
4825           New macros.
4826           (SPLIT_STATE, COMBINE_STATE): Different differently for wctomb
4827           direction.
4828           (iso2022_jp2_wctomb): Keep track of Unicode 3.1 language tag.
4829           If "ja", prefer conversion to Japanese character sets. If "zh",
4830           prefer conversion to GB2312. If "ko", prefer conversion to KSC5601.
4832         * lib/converters.h (RET_ILUNI): Change value from 0 to -1.
4833           (RET_TOOSMALL): Change value from -1 to -2.
4834         * lib/loop_unicode.h (unicode_transliterate): Allow xxx_wctomb to
4835           return 0 written bytes.
4837 2001-06-06  Bruno Haible  <haible@clisp.cons.org>
4839         * lib/encodings.def: Align with IANA character-set registry.
4840           (US-ASCII): Add alias "ANSI_X3.4-1986".
4841           (ISO-8859-14): Add alias "ISO-CELTIC".
4842           (JIS_X0208): Add alias "JIS_C6226-1983".
4843           (BIG5HKSCS): Add alias "BIG5-HKSCS".
4844         * README, man/iconv_open.3: Rename BIG5HKSCS to BIG5-HKSCS.
4845         * tests/Makefile.in (check): Likewise.
4846         * tests/Makefile.os2 (check): Likewise.
4847         * tests/Makefile.msvc (check): Likewise.
4848         * tests/BIG5-HKSCS.TXT: Renamed from BIG5HKSCS.TXT.
4849         * tests/BIG5-HKSCS.IRREVERSIBLE.TXT: Renamed from
4850           BIG5HKSCS.IRREVERSIBLE.TXT.
4852 2001-06-02  Bruno Haible  <haible@clisp.cons.org>
4854         * tools/cjk_tab_to_h.c (Encoding): Add fffd field.
4855           (is_charset2uni_large, compact_large_charset2uni): New functions.
4856           (find_charset2uni_pages): Use enc->fffd instead of 0xfffd.
4857           (output_charset2uni): If mapping to more than the Unicode BMP,
4858           use an extra indirection to keep each value in 16 bits.
4859           (invert): Bump limit from U+10000 to U+30000.
4860           (output_uni2charset_dense): Likewise.
4861           (output_uni2charset_sparse): Likewise. If mapping to more than one
4862           CJK plane, use three bytes per value instead of two bytes.
4863           (byte_row_cns11643): Allow more than 3 CJK planes.
4864           (do_cns11643_only_uni2charset): Increase number of rows, to include
4865           plane 15. Remove plane bits hack.
4866           (main): Accept names cns11643_4a,4b,5,6,7,15 as well.
4867         * tools/Makefile (ALL): Add cns11643_4a.h, cns11643_4b.h, cns11643_5.h,
4868           cns11643_6.h, cns11643_7.h, cns11643_15.h.
4869           (cns11643_1.h, cns11643_2.h, cns11643_3.h): Use new Unicode 3.1
4870           derived table.
4871           (cns11643_4a.h, cns11643_4b.h, cns11643_5.h, cns11643_6.h,
4872            cns11643_7.h, cns11643_15.h): New rules.
4873           (cns11643_inv.h): Change title.
4874         * lib/cns11643_1.h: Regenerated from Unicode 3.1 derived table.
4875         * lib/cns11643_3.h: Likewise.
4876         * lib/cns11643_4a.h: New file.
4877         * lib/cns11643_4b.h: New file.
4878         * lib/cns11643_4.h: New file.
4879         * lib/cns11643_5.h: New file.
4880         * lib/cns11643_6.h: New file.
4881         * lib/cns11643_7.h: New file.
4882         * lib/cns11643_15.h: New file.
4883         * lib/cns11643_inv.h: Regenerated from Unicode 3.1 derived table.
4884           (cns11643_inv_wctomb): Return 3 bytes now.
4885         * lib/cns11643.h: Include cns11643_4.h, cns11643_5.h, cns11643_6.h,
4886           cns11643_7.h, cns11643_15.h.
4887           (cns11643_wctomb): Now a simple alias to cns11643_inv_wctomb. Return
4888           plane number starting at 1, not 0.
4889         * lib/dec_hanyu.h (dec_hanyu_wctomb): Update for cns11643_wctomb
4890           change.
4891         * lib/euc_tw.h (euc_tw_mbtowc): Accept CNS11643 planes 4,5,6,7,15 as
4892           well.
4893           (euc_tw_wctomb): Update for cns11643_wctomb change.
4894         * lib/iso2022_cn.h (iso2022_cn_wctomb): Likewise.
4895         * lib/iso2022_cnext.h (iso2022_cn_ext_mbtowc): Accept CNS11643 planes
4896           4,5,6,7 as well.
4897           (iso2022_cn_ext_wctomb): Update for cns11643_wctomb change.
4898           Try CNS11643 planes 4,5,6,7 as well.
4899         * tests/EUC-TW.TXT: Many additions, mostly in planes 3,4,5,6,7,15.
4900         * tests/EUC-TW.IRREVERSIBLE.TXT: Reflect additions to CNS11643 plane 1.
4901           Add U+5344.
4903 2001-06-01  Bruno Haible  <haible@clisp.cons.org>
4905         * tests/table-from.c (bmp_only): New variable.
4906           (ucs4_decode): If bmp_only, don't return characters outside Unicode
4907           plane 0.
4908           (main): When testing UTF-8 or GB18030, set bmp_only to 1. Don't print
4909           a conversion line if ucs4_decode returns NULL.
4910         * tests/table-to.c (main): When testing encodings other than UTF-8 and
4911           GB18030, loop upto U+30000 instead of U+10000.
4913 2001-05-24  Bruno Haible  <haible@clisp.cons.org>
4915         * lib/converters.h (mbtowc_funcs): Add flushwc member function.
4916         * lib/flushwc.h: New file.
4917         * lib/cp1255.h: Include flushwc.h.
4918           (cp1255_comp_table_data, cp1255_comp_table): New arrays.
4919           (cp1255_mbtowc): Compose base and combining characters.
4920           (cp1255_flushwc): New macro.
4921         * lib/vietcomb.h (viet_comp_table_data, viet_comp_table): New arrays.
4922         * lib/cp1258.h: Include flushwc.h.
4923           (cp1258_mbtowc): Compose base and combining characters.
4924           (cp1258_flushwc): New macro.
4925         * lib/tcvn.h: Include flushwc.h.
4926           (tcvn_mbtowc): Compose base and combining characters.
4927           (tcvn_flushwc): New macro.
4928         * lib/loop_unicode.h: (unicode_transliterate): New function, extracted
4929           from unicode_loop_convert.
4930           (unicode_loop_convert): Use unicode_transliterate.
4931           (unicode_loop_reset): Call xxx_flushwc and output the resulting
4932           character.
4933         * lib/encodings.def: Add xxx_flushwc member.
4934         * lib/encodings_aix.def: Likewise.
4935         * lib/encodings_dos.def: Likewise.
4936         * lib/encodings_local.def: Likewise.
4937         * lib/encodings_osf1.def: Likewise.
4938         * lib/genaliases.c: Add an argument to the DEFENCODING macro.
4939         * lib/genaliases2.c: Likewise.
4940         * lib/genflags.c: Likewise.
4941         * lib/iconv.c: Likewise.
4942         * tests/table-from.c (try): Reset the iconv descriptor before the main
4943           call, and flush it afterwards.
4944           (ucs4_decode): New function.
4945           (main): Allow up to 3 Unicode characters output. Call ucs4_decode.
4946         * tests/CP1255-snippet: New file.
4947         * tests/CP1255-snippet.UTF-8: New file.
4948         * tests/CP1258-snippet: New file.
4949         * tests/CP1258-snippet.UTF-8: New file.
4950         * tests/TCVN-snippet: New file.
4951         * tests/TCVN-snippet.UTF-8: New file.
4952         * tests/Makefile.in (check): Check combining behaviour of CP1255,
4953           CP1258, TCVN.
4954         * tests/Makefile.msvc (check): Likewise.
4955         * tests/Makefile.os2 (check): Likewise.
4957 2001-05-22  Bruno Haible  <haible@clisp.cons.org>
4959         * lib/converters.h (RET_ILUNI): New macro.
4960           (RET_ILSEQ): Change value to -1.
4961           (RET_TOOFEW): Change value.
4962         * lib/loop_unicode.h (unicode_loop_convert): Write RET_ILUNI instead
4963           of 0. Update handling of xxx_mbtowc return value.
4964         * lib/genflags.c (emit_encoding): Likewise.
4965         * lib/ascii.h (ascii_wctomb): Use RET_ILUNI instead of RET_ILSEQ.
4966         * lib/armscii_8.h (armscii_8_wctomb): Likewise.
4967         * lib/big5.h (big5_wctomb): Likewise.
4968         * lib/big5hkscs.h (big5hkscs_wctomb): Likewise.
4969         * lib/ces_big5.h (ces_big5_wctomb): Likewise.
4970         * lib/ces_gbk.h (ces_gbk_wctomb): Likewise.
4971         * lib/cns11643.h (cns11643_wctomb): Likewise.
4972         * lib/cns11643_inv.h (cns11643_inv_wctomb): Likewise.
4973         * lib/cp437.h (cp437_wctomb): Likewise.
4974         * lib/cp775.h (cp775_wctomb): Likewise.
4975         * lib/cp850.h (cp850_wctomb): Likewise.
4976         * lib/cp852.h (cp852_wctomb): Likewise.
4977         * lib/cp855.h (cp855_wctomb): Likewise.
4978         * lib/cp856.h (cp856_wctomb): Likewise.
4979         * lib/cp857.h (cp857_wctomb): Likewise.
4980         * lib/cp861.h (cp861_wctomb): Likewise.
4981         * lib/cp862.h (cp862_wctomb): Likewise.
4982         * lib/cp864.h (cp864_wctomb): Likewise.
4983         * lib/cp865.h (cp865_wctomb): Likewise.
4984         * lib/cp866.h (cp866_wctomb): Likewise.
4985         * lib/cp869.h (cp869_wctomb): Likewise.
4986         * lib/cp874.h (cp874_wctomb): Likewise.
4987         * lib/cp922.h (cp922_wctomb): Likewise.
4988         * lib/cp932ext.h (cp932ext_wctomb): Likewise.
4989         * lib/cp932.h (cp932_wctomb): Likewise.
4990         * lib/cp936ext.h (cp936ext_wctomb): Likewise.
4991         * lib/cp949.h (cp949_wctomb): Likewise.
4992         * lib/cp950ext.h (cp950ext_wctomb): Likewise.
4993         * lib/cp950.h (cp950_wctomb): Likewise.
4994         * lib/cp1046.h (cp1046_wctomb): Likewise.
4995         * lib/cp1124.h (cp1124_wctomb): Likewise.
4996         * lib/cp1129.h (cp1129_wctomb): Likewise.
4997         * lib/cp1133.h (cp1133_wctomb): Likewise.
4998         * lib/cp1250.h (cp1250_wctomb): Likewise.
4999         * lib/cp1251.h (cp1251_wctomb): Likewise.
5000         * lib/cp1252.h (cp1252_wctomb): Likewise.
5001         * lib/cp1253.h (cp1253_wctomb): Likewise.
5002         * lib/cp1254.h (cp1254_wctomb): Likewise.
5003         * lib/cp1255.h (cp1255_wctomb): Likewise.
5004         * lib/cp1256.h (cp1256_wctomb): Likewise.
5005         * lib/cp1257.h (cp1257_wctomb): Likewise.
5006         * lib/cp1258.h (cp1258_wctomb): Likewise.
5007         * lib/dec_hanyu.h (dec_hanyu_wctomb): Likewise.
5008         * lib/dec_kanji.h (dec_kanji_wctomb): Likewise.
5009         * lib/euc_cn.h (euc_cn_wctomb): Likewise.
5010         * lib/euc_jp.h (euc_jp_wctomb): Likewise.
5011         * lib/euc_kr.h (euc_kr_wctomb): Likewise.
5012         * lib/euc_tw.h (euc_tw_wctomb): Likewise.
5013         * lib/gb12345ext.h (gb12345ext_wctomb): Likewise.
5014         * lib/gb12345.h (gb12345_wctomb): Likewise.
5015         * lib/gb18030ext.h (gb18030ext_wctomb): Likewise.
5016         * lib/gb18030.h (gb18030_wctomb): Likewise.
5017         * lib/gb18030uni.h (gb18030uni_wctomb): Likewise.
5018         * lib/gb2312.h (gb2312_wctomb): Likewise.
5019         * lib/gbkext_inv.h (gbkext_inv_wctomb): Likewise.
5020         * lib/gbk.h (gbk_wctomb): Likewise.
5021         * lib/georgian_academy.h (georgian_academy_wctomb): Likewise.
5022         * lib/georgian_ps.h (georgian_ps_wctomb): Likewise.
5023         * lib/hkscs.h (hkscs_wctomb): Likewise.
5024         * lib/hp_roman8.h (hp_roman8_wctomb): Likewise.
5025         * lib/hz.h (hz_wctomb): Likewise.
5026         * lib/iso2022_cnext.h (iso2022_cn_ext_wctomb): Likewise.
5027         * lib/iso2022_cn.h (iso2022_cn_wctomb): Likewise.
5028         * lib/iso2022_jp1.h (iso2022_jp1_wctomb): Likewise.
5029         * lib/iso2022_jp2.h (iso2022_jp2_wctomb): Likewise.
5030         * lib/iso2022_jp.h (iso2022_jp_wctomb): Likewise.
5031         * lib/iso2022_kr.h (iso2022_kr_wctomb): Likewise.
5032         * lib/iso646_cn.h (iso646_cn_wctomb): Likewise.
5033         * lib/iso646_jp.h (iso646_jp_wctomb): Likewise.
5034         * lib/iso8859_1.h (iso8859_1_wctomb): Likewise.
5035         * lib/iso8859_2.h (iso8859_2_wctomb): Likewise.
5036         * lib/iso8859_3.h (iso8859_3_wctomb): Likewise.
5037         * lib/iso8859_4.h (iso8859_4_wctomb): Likewise.
5038         * lib/iso8859_5.h (iso8859_5_wctomb): Likewise.
5039         * lib/iso8859_6.h (iso8859_6_wctomb): Likewise.
5040         * lib/iso8859_7.h (iso8859_7_wctomb): Likewise.
5041         * lib/iso8859_8.h (iso8859_8_wctomb): Likewise.
5042         * lib/iso8859_9.h (iso8859_9_wctomb): Likewise.
5043         * lib/iso8859_10.h (iso8859_10_wctomb): Likewise.
5044         * lib/iso8859_13.h (iso8859_13_wctomb): Likewise.
5045         * lib/iso8859_14.h (iso8859_14_wctomb): Likewise.
5046         * lib/iso8859_15.h (iso8859_15_wctomb): Likewise.
5047         * lib/iso8859_16.h (iso8859_16_wctomb): Likewise.
5048         * lib/isoir165ext.h (isoir165ext_wctomb): Likewise.
5049         * lib/isoir165.h (isoir165_wctomb): Likewise.
5050         * lib/jisx0201.h (jisx0201_wctomb): Likewise.
5051         * lib/jisx0208.h (jisx0208_wctomb): Likewise.
5052         * lib/jisx0212.h (jisx0212_wctomb): Likewise.
5053         * lib/johab.h (johab_wctomb): Likewise.
5054         * lib/johab_hangul.h (johab_hangul_wctomb, johab_hangul_decompose):
5055           Likewise.
5056         * lib/koi8_r.h (koi8_r_wctomb): Likewise.
5057         * lib/koi8_ru.h (koi8_ru_wctomb): Likewise.
5058         * lib/koi8_u.h (koi8_u_wctomb): Likewise.
5059         * lib/ksc5601.h (ksc5601_wctomb): Likewise.
5060         * lib/mac_arabic.h (mac_arabic_wctomb): Likewise.
5061         * lib/mac_centraleurope.h (mac_centraleurope_wctomb): Likewise.
5062         * lib/mac_croatian.h (mac_croatian_wctomb): Likewise.
5063         * lib/mac_cyrillic.h (mac_cyrillic_wctomb): Likewise.
5064         * lib/mac_greek.h (mac_greek_wctomb): Likewise.
5065         * lib/mac_hebrew.h (mac_hebrew_wctomb): Likewise.
5066         * lib/mac_iceland.h (mac_iceland_wctomb): Likewise.
5067         * lib/mac_roman.h (mac_roman_wctomb): Likewise.
5068         * lib/mac_romania.h (mac_romania_wctomb): Likewise.
5069         * lib/mac_thai.h (mac_thai_wctomb): Likewise.
5070         * lib/mac_turkish.h (mac_turkish_wctomb): Likewise.
5071         * lib/mac_ukraine.h (mac_ukraine_wctomb): Likewise.
5072         * lib/mulelao.h (mulelao_wctomb): Likewise.
5073         * lib/nextstep.h (nextstep_wctomb): Likewise.
5074         * lib/sjis.h (sjis_wctomb): Likewise.
5075         * lib/tcvn.h (tcvn_wctomb): Likewise.
5076         * lib/tis620.h (tis620_wctomb): Likewise.
5077         * lib/ucs2be.h (ucs2be_wctomb): Likewise.
5078         * lib/ucs2.h (ucs2_wctomb): Likewise.
5079         * lib/ucs2internal.h (ucs2internal_wctomb): Likewise.
5080         * lib/ucs2le.h (ucs2le_wctomb): Likewise.
5081         * lib/ucs2swapped.h (ucs2swapped_wctomb): Likewise.
5082         * lib/ucs4.h (ucs4_wctomb): Likewise.
5083         * lib/uhc_1.h (uhc_1_wctomb): Likewise.
5084         * lib/uhc_2.h (uhc_2_wctomb): Likewise.
5085         * lib/utf16be.h (utf16be_wctomb): Likewise.
5086         * lib/utf16.h (utf16_wctomb): Likewise.
5087         * lib/utf16le.h (utf16le_wctomb): Likewise.
5088         * lib/utf32be.h (utf32be_wctomb): Likewise.
5089         * lib/utf32.h (utf32_wctomb): Likewise.
5090         * lib/utf32le.h (utf32le_wctomb): Likewise.
5091         * lib/utf7.h (utf7_wctomb): Likewise.
5092         * lib/utf8.h (utf8_wctomb): Likewise.
5093         * lib/viscii.h (viscii_wctomb): Likewise.
5094         * tools/8bit_tab_to_h.c (main): Likewise.
5095         * tools/cjk_tab_to_h.c (output_uni2charset_dense,
5096            output_uni2charset_sparse, do_gb18030uni): Likewise.
5098 2001-05-19  Bruno Haible  <haible@clisp.cons.org>
5100         * Makefile.devel (all): Add man/{iconv.1,iconv*.3}.html.
5101           (man/%.html): New rule.
5102         * man/Makefile.in (docdir, htmldir): New variables.
5103           (install, installdirs): Install the HTML formatted man pages in
5104           $(htmldir).
5105           (uninstall): Uninstall them.
5107 2001-05-20  Bruno Haible  <haible@clisp.cons.org>
5109         * lib/cp1255.h (cp1255_decomp_table): New array.
5110           (cp1255_comb_table): New array.
5111           (cp1255_wctomb): Decompose Unicode characters.
5112         * tests/CP1255.IRREVERSIBLE.TXT: New file.
5114 2001-05-13  Bruno Haible  <haible@clisp.cons.org>
5116         * lib/vietcomb.h: New file.
5117         * lib/cp1258.h: Include it.
5118           (cp1258_comb_table): New array.
5119           (cp1258_wctomb): Decompose Unicode characters.
5120         * lib/tcvn.h: Include it.
5121           (tcvn_comb_table): New array.
5122           (tcvn_wctomb): Decompose Unicode characters.
5123         * tests/CP1258.IRREVERSIBLE.TXT: New file.
5124         * tests/TCVN.IRREVERSIBLE.TXT: New file.
5126 2001-05-06  Bruno Haible  <haible@clisp.cons.org>
5128         * lib/Makefile.msvc (config.h): Allow the 'del' command to fail.
5129         (iconv.lib): Likewise.
5131 2001-05-06  Bruno Haible  <haible@clisp.cons.org>
5133         * lib/Makefile.in (CPPFLAGS, LDFLAGS): New variables.
5134         (CPP): Remove variable.
5135         (libiconv.la, libiconv_plug_linux.so, libiconv_plug_solaris.so,
5136          libiconv_plug_osf.so): Use LDFLAGS.
5137         (libiconv_plug_linux.so, libiconv_plug_solaris.so,
5138          libiconv_plug_osf.so, iconv.lo): Use CPPFLAGS.
5139         * lib/Makefile.msvc (CPP): Remove variable.
5140         * src/Makefile.in (CPPFLAGS, LDFLAGS): New variables.
5141         (CPP): Remove variable.
5142         (iconv): Use CPPFLAGS and LDFLAGS.
5143         * src/Makefile.msvc (CPP): Remove variable.
5144         * tests/Makefile.in (CPPFLAGS, LDFLAGS): New variables.
5145         (check, table-from, table-to): Use CPPFLAGS and LDFLAGS.
5146         * tests/Makefile.msvc (CPP): Remove variable.
5148 2001-05-06  Bruno Haible  <haible@clisp.cons.org>
5150         * lib/Makefile.in (libiconv_plug_solaris.so): Change rule if not using
5151           gcc. Reported by Paananen Mikko <mikkopa@cs.tut.fi>.
5153 2001-04-11  Bruno Haible  <haible@clisp.cons.org>
5155         Implement and document UTF-32, UTF-32BE, UTF-32LE.
5156         * src/utf32.h, src/utf32be.h, src/utf32le.h: New files.
5157         * src/converters.h: Include them.
5158         * src/encodings.def (UTF-32, UTF-32BE, UTF32LE): New encodings.
5159         * README, man/iconv_open.3: Add UTF-32, UTF-32BE, UTF32LE.
5160         * tests/Makefile.in (check): Check UTF-32, UTF-32BE, UTF32LE.
5161         * tests/Makefile.os2 (check): Likewise.
5162         * tests/Makefile.msvc (check): Likewise.
5163         * tests/UTF-32*snippet*: New files.
5165         * lib/ucs4.h (ucs4_mbtowc): Fix value of other-endian byte order.
5166           (ucs4_wctomb): Allow any 31-bit codepoint.
5168 2001-04-11  Bruno Haible  <haible@clisp.cons.org>
5170         * tests/GB18030.TXT: Add mappings for all of U+0000..U+FFFF, including
5171           unassigned code points.
5172         * tests/table-from.c (main); When dumping GB18030, don't print code
5173           points larger than U+FFFF.
5175 2001-03-30  Bruno Haible  <haible@clisp.cons.org>
5177         * tools/Makefile (GB18030uni.TXT): Use a table source which includes
5178           the unassigned Unicode code points.
5179         * lib/gb18030uni.h: Update.
5180           (gb18030uni_ranges): Remove bitmap_offset field.
5181           (gb18030uni_bitmap): Remove array.
5182           (gb18030uni_mbtowc): Omit gb18030uni_bitmap access.
5183           (gb18030uni_wctomb): Likewise.
5184         * lib/gb18030.h (gb18030_mbtowc): Handle Unicode characters >= 0x10000.
5185           (gb18030_wctomb): Likewise.
5187 2001-03-21  Bruno Haible  <haible@clisp.cons.org>
5189         * INSTALL.generic (Particular Systems): Add recommendations for AIX 3.
5191 2001-03-21  Bruno Haible  <haible@clisp.cons.org>
5193         * src/iconv.c (print_version): Now called GNU libiconv.
5195 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
5197         * README: This package is now called GNU libiconv.
5199         * tools/8bit_tab_to_h.c (main): Emit copyright notice to the output
5200           file.
5201         * tools/cjk_tab_to_h.c (output_title): Likewise.
5202         * tools/cjk_variants.c (main): Likewise.
5203         * lib/gentranslit.c (main): Likewise.
5205 2001-03-19  Bruno Haible  <haible@clisp.cons.org>
5207         * autoconf/aclocal.m4 (CL_CANONICAL_HOST): Always define
5208           ac_config_guess and ac_config_sub. Then ignore requests for
5209           AC_CONFIG_AUX_DIR_DEFAULT or AC_CANONICAL_HOST.
5211 2001-03-10  Bruno Haible  <haible@clisp.cons.org>
5213         * INSTALL.generic: New section "Particular Systems".
5215 2001-03-10  Bruno Haible  <haible@clisp.cons.org>
5217         * lib/Makefile.in (libiconv.la): Pass flag -no-undefined. Needed on
5218           platforms like BeOS.
5220         * lib/loop_wchar.h (mbstate_t): Don't typedef if already #defined in
5221           config.h.
5223 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
5225         * Version 1.6 released.
5226         * include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
5227           Bump version number.
5228         * lib/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:3:0.
5230 2001-03-05  Bruno Haible  <haible@clisp.cons.org>
5232         Provide all encodings used by OSF/1 5.1 locales.
5233         * lib/dec_kanji.h: New file.
5234         * lib/dec_hanyu.h: New file.
5235         * lib/converters.h: Include them if USE_OSF1 is defined.
5236         * lib/encodings_osf1.def: New file.
5237         * lib/genflags.c (main): Include it. Define USE_OSF1.
5238         * lib/genaliases2.c (main): Include it conditionally.
5239         * lib/iconv.c: Define USE_OSF1 on OSF/1.
5240           Include encodings_osf1.def and aliases_osf1.h.
5241         * lib/Makefile.in (iconv.lo): Depend on encodings_osf1.def and
5242           aliases_osf1.h.
5243         * Makefile.devel (lib/aliases_osf1.h): New target.
5244           (all): Depend on lib/aliases_osf1.h.
5245           (lib/flags.h): Depend on lib/encodings_osf1.def.
5247 2001-03-01  Bruno Haible  <haible@clisp.cons.org>
5249         * tools/Makefile (cp775.h): New target.
5250           (ALL): Add it.
5251         * lib/cp775.h: New file.
5252         * lib/converters.h: Include it.
5253         * lib/encodings_dos.def (CP775): New encoding.
5255 2001-02-25  Bruno Haible  <haible@clisp.cons.org>
5257         * lib/iconv.c (iconv_open): locale_charset() doesn't return NULL any
5258           more.
5260 2001-02-24  Bruno Haible  <haible@clisp.cons.org>
5262         * src/iconv.c (convert): Use ICONV_CONST.
5263         * tests/table-from.c: Include config.h.
5264           (try): Use ICONV_CONST.
5265         * tests/table-to.c: Include config.h.
5266           (main): Use ICONV_CONST.
5267         * tests/Makefile.in (INCLUDES): Add -I../lib.
5268         * tests/Makefile.os2 (INCLUDES): Likewise.
5269         * tests/Makefile.msvc (INCLUDES): Add -I..\lib.
5271 2001-02-24  Bruno Haible  <haible@clisp.cons.org>
5273         Provide all encodings used by DOS locales.
5274         * tools/Makefile (cp437.h, cp852.h, cp855.h, cp857.h, cp861.h,
5275            cp864.h, cp865.h, cp869.h): New targets.
5276           (ALL): Add them.
5277         * lib/cp437.h: New file.
5278         * lib/cp852.h: New file.
5279         * lib/cp855.h: New file.
5280         * lib/cp857.h: New file.
5281         * lib/cp861.h: New file.
5282         * lib/cp864.h: New file.
5283         * lib/cp865.h: New file.
5284         * lib/cp869.h: New file.
5285         * lib/converters.h: Include them if USE_DOS is defined.
5286         * lib/encodings_dos.def: New file.
5287         * lib/genflags.c (main): Include it. Define USE_DOS.
5288         * lib/genaliases2.c (main): Include it conditionally.
5289         * lib/iconv.c: Define USE_DOS on DJGPP.
5290           Include encodings_dos.def and aliases_dos.h.
5291         * lib/Makefile.in (iconv.lo): Depend on encodings_dos.def and
5292           aliases_dos.h.
5293         * Makefile.devel (lib/aliases_dos.h): New target.
5294           (all): Depend on lib/aliases_dos.h.
5295           (lib/flags.h): Depend on lib/encodings_dos.def.
5297 2001-02-23  Bruno Haible  <haible@clisp.cons.org>
5299         * src/iconv.c [DJGPP]: Include <io.h> and <unistd.h>.
5300           (SET_BINARY) [O_BINARY]: New macro.
5301           (usage): Mention --binary if available.
5302           (convert): Use SET_BINARY instead of setmode.
5303           (main): Likewise.
5304           Reported by Juan Manuel Guerrero <st001906@hrz1.hrz.tu-darmstadt.de>.
5306 2001-02-25  Bruno Haible  <haible@clisp.cons.org>
5308         * autoconf/ltconfig:
5309           sed -e 's/reload object files/produce relocatable object files/'.
5311 2001-02-20  Bruno Haible  <haible@clisp.cons.org>
5313         * src/iconv.c (usage, main): Make -f and -t options optional.
5314         * man/iconv.1: Mark them as optional.
5316 2001-02-20  Bruno Haible  <haible@clisp.cons.org>
5318         * tools/Makefile (GB18030ext.TXT, GB18030uni.TXT): Generate from
5319           glibc-2.2.2 table.
5320         * lib/gb18030uni.h, lib/gb18030ext.h: Add mapping 0xA989 -> U+303E,
5321           0xFE5E -> U+2E97. Shift the entire four-byte range.
5322         * tests/GB18030.TXT: Regenerated.
5324 2001-02-20  Bruno Haible  <haible@clisp.cons.org>
5326         Better support for DOS/Windows platforms.
5327         * autoconf/ltconfig: Upgrade to libtool-1.3.5.
5328         * autoconf/ltmain.sh: Likewise.
5329         * autoconf/aclocal.m4: Likewise.
5330         * autoconf/install-sh: New file.
5331         * configure.in: Call AC_OBJEXT and AC_EXEEXT. Call AC_CONFIG_AUX_DIR.
5333 2001-02-20  Bruno Haible  <haible@clisp.cons.org>
5335         * Makefile.in (libdir, includedir, mandir): Use the autoconf
5336           determined value, in order to respect the configure arguments.
5337         * lib/Makefile.in (libdir): Likewise.
5338         * src/Makefile.in (bindir): Likewise.
5339         * man/Makefile.in (mandir): Likewise.
5341 2001-02-04  Bruno Haible  <haible@clisp.cons.org>
5343         * lib/translit.def: Add all the neutral transliterations from glibc.
5344         * lib/gentranslit.c (main): Allow UTF-8 replacements which are in
5345           UCS-2 but not in ISO-8859-1. Generate a table of 'unsigned short'.
5346           Avoid accessing data[-1].
5347         * lib/loop_unicode.h (unicode_loop_convert): Change type of pointer
5348           into translit_data.
5350 2001-01-05  Bruno Haible  <haible@clisp.cons.org>
5352         Implement and document CP862.
5353         * tools/Makefile (ALL): Add cp862.h.
5354           (cp862.h): New target.
5355         * lib/cp862.h: New file.
5356         * lib/converters.h: Include it.
5357         * lib/encodings.def (CP862): New encoding.
5358         * README, man/iconv_open.3: Add CP862.
5359         * tests/Makefile.in (check): Check CP862.
5360         * tests/Makefile.msvc (check): Likewise.
5361         * tests/Makefile.os2 (check): Likewise.
5362         * tests/CP862.TXT: New file.
5364 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
5366         * autoconf/mbstate_t.m4: New file, from textutils-2.0.10.
5367         * Makefile.devel (OTHERMACROS): Add it.
5368         * configure.in: Call AC_MBSTATE_T.
5369         * lib/config.h.in (mbstate_t): New definition.
5370         * lib/loop_wchar.h (mbrtowc): For BeOS, declare and define fallback.
5372 2000-12-12  Bruno Haible  <haible@clisp.cons.org>
5374         * Makefile.in: Use $(MAKE) instead of $(MAKE) -r. Needed with Solaris
5375           "make", which doesn't set MAKE as expected by @SET_MAKE@ if -r is
5376           given. Reported by Toshimitsu Fujiwara.
5378 2000-12-08  Bruno Haible  <haible@clisp.cons.org>
5380         * Makefile.in (exec_prefix): Use configure's --exec-prefix argument.
5381         * lib/Makefile.in (exec_prefix): Likewise.
5382         * src/Makefile.in (exec_prefix): Likewise.
5383         * man/Makefile.in (exec_prefix): Likewise.
5385 2000-12-02  Bruno Haible  <haible@clisp.cons.org>
5387         * Version 1.5 released.
5388         * include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
5389           Bump version number.
5390         * lib/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:2:0.
5392 2000-12-02  Bruno Haible  <haible@clisp.cons.org>
5394         * Makefile.in (mostlyclean, clean, distclean, maintainer-clean):
5395           Remove files installed in lib by libcharset.
5396         * Makefile.msvc (mostlyclean): Likewise.
5398         * Makefile.in (check): Depend on target 'all'.
5399         * Makefile.os2 (check): Likewise.
5400         * Makefile.msvc (check): Depend on target 'force' as well.
5402         * src/iconv.c (usage): Take an exitcode argument.
5403           (print_version): New function.
5404           (main): Recognize --help and --version command line options.
5406 2000-12-02  Bruno Haible  <haible@clisp.cons.org>
5408         * Makefile.msvc: Replace STATIC with its opposite flag, DLL.
5409         * lib/Makefile.msvc: Likewise.
5410         * src/Makefile.msvc: Likewise.
5411         * tests/Makefile.msvc: Likewise.
5413 2000-12-01  Bruno Haible  <haible@clisp.cons.org>
5415         * src/iconv.c: Include <fcntl.h>. Define fallbacks for setmode, fileno.
5416           (force_binary): New variable.
5417           (convert): If requested, set the input O_BINARY.
5418           (main): Accept --binary option. If requested, set the output O_BINARY.
5419         * tests/check-stateful.bat: Pass --binary to iconv.
5420         * tests/check-stateful.cmd: Likewise.
5421         * tests/check-translit.bat: Likewise.
5422         * tests/check-translit.cmd: Likewise.
5424 2000-12-01  Bruno Haible  <haible@clisp.cons.org>
5426         * include/iconv.h.in (_libiconv_version): New declaration.
5427         * lib/iconv.c (_libiconv_version): New variable.
5429 2000-11-30  Bruno Haible  <haible@clisp.cons.org>
5431         * Makefile.msvc (all): File now named lib/libcharset.h.
5432           (clean, distclean, maintainer-clean): Likewise.
5434 2000-11-23  Bruno Haible  <haible@clisp.cons.org>
5436         * lib/*: Move here all files from src/*.
5437         * src/*: Move all files to lib.
5438         * lib/Makefile.in (distclean): No need to remove config.status,
5439           config.log, config.cache.
5440         * configure.in: Require lib/iconv.c, not src/iconv.c. Create
5441           lib/config.h, not src/config.h. Also create lib/Makefile.
5442         * Makefile.in (all): Install libcharset into lib, not src. Recurse
5443           into lib and src.
5444           (install-lib): Recurse into lib, not src.
5445           (install): Recurse into libcharset, lib and src.
5446           (installdirs, uninstall): Likewise.
5447           (check, mostlyclean, clean, distclean, maintainer-clean): Likewise.
5448         * Makefile.msvc (all): Recurse into lib and src.
5449           (install): Recurse into libcharset, lib and src.
5450           (installdirs, uninstall): Likewise.
5451           (check, mostlyclean, clean, distclean, maintainer-clean): Likewise.
5452         * Makefile.os2 (all): Recurse into lib and src.
5453           (install-lib): Recurse into lib, not src.
5454           (install, uninstall): Recurse into lib and src.
5455           (check, mostlyclean, clean, distclean, maintainer-clean): Likewise.
5456         * Makefile.devel (lib/config.h.msvc): Renamed from src/config.h.msvc.
5457           (lib/aliases.h): Renamed from src/aliases.h.
5458           (lib/aliases.gperf): Renamed from src/aliases.gperf.
5459           (lib/aliases_aix.h): Renamed from src/aliases_aix.h.
5460           (lib/flags.h): Renamed from src/flags.h.
5461           (lib/translit.h): Renamed from src/translit.h.
5462         * src/iconv.c: Moved here from tests/iconv.c.
5463         * src/Makefile.in: New file.
5464         * src/Makefile.msvc: New file.
5465         * src/Makefile.os2: New file.
5466         * tests/Makefile.in (iconv): Remove target.
5467           (../lib/libiconv.la): Renamed from ../src/libiconv.la.
5468           (clean): No need to remove iconv.
5469         * tests/Makefile.msvc (iconv.exe): Remove target.
5470         * tests/Makefile.os2 (iconv.exe): Likewise.
5471         * tests/check-stateful: iconv is in ../src.
5472         * tests/check-stateful.bat: Likewise.
5473         * tests/check-stateful.cmd: Likewise.
5474         * tests/check-translit: iconv is in ../src.
5475         * tests/check-translit.bat: Likewise.
5476         * tests/check-translit.cmd: Likewise.
5477         * man/iconv.1: New file.
5478         * man/Makefile.in (install, installdirs, uninstall): Also install *.1
5479           man pages.
5480         * man/Makefile.os2 (MAN3): Renamed from MAN.
5481           (MAN1): New variable.
5482           (install, uninstall): Also install *.1 man pages.
5484 2000-11-21  Bruno Haible  <haible@clisp.cons.org>
5486         * Makefile.msvc (all, check, mostlyclean, clean, distclean,
5487            maintainer-clean): Recurse into libcharset.
5488           (clean, distclean, maintainer-clean): Remove src\libcharset.h.
5489         * src/Makefile.msvc (LIBCHARSET_OBJECTS): New variable.
5490           (iconv.lib): Link with $(LIBCHARSET_OBJECTS).
5492 2000-11-18  Bruno Haible  <haible@clisp.cons.org>
5494         * src/cp950.h (cp950_mbtowc, cp950_wctomb): Change implementation
5495           so that it agrees with Microsoft's definition of CP950.
5496         * tests/CP950.TXT: Likewise.
5497         * tests/CP950.IRREVERSIBLE.TXT: Add 0xA244, 0xA2CC, 0xA2CE.
5499 2000-11-18  Bruno Haible  <haible@clisp.cons.org>
5501         Add support for locale dependent "char" and "wchar_t" encodings.
5502         * libcharset: New subdirectory.
5503         * src/loop_unicode.h: New file, extracted from src/iconv.c.
5504         * src/loop_wchar.h: New file.
5505         * src/loops.h: New file. Include loop_unicode.h and loop_wchar.h.
5506         * src/encodings_local.def: New file.
5507         * src/genaliases.c: Also create aliases for encodings_local.def.
5508         * src/converters.h (conv_struct): Add lfuncs field.
5509         * src/genflags.c: Add dummy definitions of struct loop_funcs.
5510         * src/iconv.c: Include libcharset.h.
5511           (loop_funcs): New structure.
5512           Treat encodings_local.def like encodings.def.
5513           Include loops.h.
5514           (iconv_open): Move the bulk of the code to loop_unicode.h.
5515           (iconv): Likewise.
5516           (iconvctl): Extend determination of TRIVIALP to wchar_t conversion
5517           descriptors.
5518         * src/Makefile.in (PLUG_SOURCES): Remove variable.
5519           (LIBCHARSET_OBJECTS): New variable.
5520           (libiconv.la): Link in the LIBCHARSET_OBJECTS.
5521           (libiconv_plug_linux.so, libiconv_plug_solaris.so,
5522            libiconv_plug_osf.so): Link in the LIBCHARSET_OBJECTS, using
5523           LIBTOOL_LINK.
5524           (iconv.lo): Depend on encodings_local.def.
5525         * src/Makefile.msvc (iconv.obj): Depend on encodings_local.def.
5526         * src/Makefile.os2 (iconv.obj): Likewise.
5527         * configure.in: Add tests for locale.h, mbrtowc, wcrtomb, setlocale.
5528           Recurse into libcharset.
5529         * src/config.h.in (HAVE_LOCALE_H, HAVE_MBRTOWC, HAVE_WCRTOMB,
5530            HAVE_SETLOCALE): New macros.
5531         * tests/iconv.c: Include config.h and locale.h.
5532           (main): Call setlocale.
5533         * tests/Makefile.in (iconv): Search for config.h in ../src.
5534         * tests/Makefile.os2 (iconv.exe): Likewise.
5535         * tests/Makefile.msvc (iconv.exe): Likewise.
5536         * README, man/iconv_open.3: Document "char" and "wchar_t" encodings.
5537         * Makefile.in: After "cd", use "&&" not ";".
5538           (all, check, mostlyclean, clean, distclean, maintainer-clean):
5539           Recurse into libcharset.
5540         * Makefile.devel (all): Recurse into libcharset.
5541           (src/aliases.gperf): Depend on src/encodings_local.def.
5543 2000-11-18  Bruno Haible  <haible@clisp.cons.org>
5545         * src/converters.h (ucs4_t): New type.
5546           (wchar_t): Remove locally defined override.
5547           (mbtowc_funcs, wctomb_funcs): Use ucs4_t instead of wchar_t.
5548         * src/iconv.c (iconv): Likewise.
5549         * src/genflags.c (emit_encoding): Use ucs4_t instead of wchar_t.
5550         * tools/8bit_tab_to_h.c: Use "ucs4_t" instead of "wchar_t".
5551         * tools/cjk_tab_to_h.c: Likewise.
5552         * src/armscii_8.h: Use ucs4_t instead of wchar_t.
5553         * src/ascii.h: Likewise.
5554         * src/big5.h: Likewise.
5555         * src/big5hkscs.h: Likewise.
5556         * src/ces_big5.h: Likewise.
5557         * src/ces_gbk.h: Likewise.
5558         * src/cns11643.h: Likewise.
5559         * src/cns11643_1.h: Likewise.
5560         * src/cns11643_2.h: Likewise.
5561         * src/cns11643_3.h: Likewise.
5562         * src/cns11643_inv.h: Likewise.
5563         * src/cp1046.h: Likewise.
5564         * src/cp1124.h: Likewise.
5565         * src/cp1129.h: Likewise.
5566         * src/cp1133.h: Likewise.
5567         * src/cp1250.h: Likewise.
5568         * src/cp1251.h: Likewise.
5569         * src/cp1252.h: Likewise.
5570         * src/cp1253.h: Likewise.
5571         * src/cp1254.h: Likewise.
5572         * src/cp1255.h: Likewise.
5573         * src/cp1256.h: Likewise.
5574         * src/cp1257.h: Likewise.
5575         * src/cp1258.h: Likewise.
5576         * src/cp850.h: Likewise.
5577         * src/cp856.h: Likewise.
5578         * src/cp866.h: Likewise.
5579         * src/cp874.h: Likewise.
5580         * src/cp922.h: Likewise.
5581         * src/cp932.h: Likewise.
5582         * src/cp932ext.h: Likewise.
5583         * src/cp936ext.h: Likewise.
5584         * src/cp949.h: Likewise.
5585         * src/cp950.h: Likewise.
5586         * src/cp950ext.h: Likewise.
5587         * src/euc_cn.h: Likewise.
5588         * src/euc_jp.h: Likewise.
5589         * src/euc_kr.h: Likewise.
5590         * src/euc_tw.h: Likewise.
5591         * src/gb12345.h: Likewise.
5592         * src/gb12345ext.h: Likewise.
5593         * src/gb18030.h: Likewise.
5594         * src/gb18030ext.h: Likewise.
5595         * src/gb18030uni.h: Likewise.
5596         * src/gb2312.h: Likewise.
5597         * src/gbk.h: Likewise.
5598         * src/gbkext1.h: Likewise.
5599         * src/gbkext2.h: Likewise.
5600         * src/gbkext_inv.h: Likewise.
5601         * src/georgian_academy.h: Likewise.
5602         * src/georgian_ps.h: Likewise.
5603         * src/hkscs.h: Likewise.
5604         * src/hp_roman8.h: Likewise.
5605         * src/hz.h: Likewise.
5606         * src/iso2022_cn.h: Likewise.
5607         * src/iso2022_cnext.h: Likewise.
5608         * src/iso2022_jp.h: Likewise.
5609         * src/iso2022_jp1.h: Likewise.
5610         * src/iso2022_jp2.h: Likewise.
5611         * src/iso2022_kr.h: Likewise.
5612         * src/iso646_cn.h: Likewise.
5613         * src/iso646_jp.h: Likewise.
5614         * src/iso8859_1.h: Likewise.
5615         * src/iso8859_10.h: Likewise.
5616         * src/iso8859_13.h: Likewise.
5617         * src/iso8859_14.h: Likewise.
5618         * src/iso8859_15.h: Likewise.
5619         * src/iso8859_16.h: Likewise.
5620         * src/iso8859_2.h: Likewise.
5621         * src/iso8859_3.h: Likewise.
5622         * src/iso8859_4.h: Likewise.
5623         * src/iso8859_5.h: Likewise.
5624         * src/iso8859_6.h: Likewise.
5625         * src/iso8859_7.h: Likewise.
5626         * src/iso8859_8.h: Likewise.
5627         * src/iso8859_9.h: Likewise.
5628         * src/isoir165.h: Likewise.
5629         * src/isoir165ext.h: Likewise.
5630         * src/java.h: Likewise.
5631         * src/jisx0201.h: Likewise.
5632         * src/jisx0208.h: Likewise.
5633         * src/jisx0212.h: Likewise.
5634         * src/johab.h: Likewise.
5635         * src/johab_hangul.h: Likewise.
5636         * src/koi8_r.h: Likewise.
5637         * src/koi8_ru.h: Likewise.
5638         * src/koi8_u.h: Likewise.
5639         * src/ksc5601.h: Likewise.
5640         * src/mac_arabic.h: Likewise.
5641         * src/mac_centraleurope.h: Likewise.
5642         * src/mac_croatian.h: Likewise.
5643         * src/mac_cyrillic.h: Likewise.
5644         * src/mac_greek.h: Likewise.
5645         * src/mac_hebrew.h: Likewise.
5646         * src/mac_iceland.h: Likewise.
5647         * src/mac_roman.h: Likewise.
5648         * src/mac_romania.h: Likewise.
5649         * src/mac_thai.h: Likewise.
5650         * src/mac_turkish.h: Likewise.
5651         * src/mac_ukraine.h: Likewise.
5652         * src/mulelao.h: Likewise.
5653         * src/nextstep.h: Likewise.
5654         * src/sjis.h: Likewise.
5655         * src/tcvn.h: Likewise.
5656         * src/tis620.h: Likewise.
5657         * src/ucs2.h: Likewise.
5658         * src/ucs2be.h: Likewise.
5659         * src/ucs2internal.h: Likewise.
5660         * src/ucs2le.h: Likewise.
5661         * src/ucs2swapped.h: Likewise.
5662         * src/ucs4.h: Likewise.
5663         * src/ucs4be.h: Likewise.
5664         * src/ucs4internal.h: Likewise.
5665         * src/ucs4le.h: Likewise.
5666         * src/ucs4swapped.h: Likewise.
5667         * src/uhc_1.h: Likewise.
5668         * src/uhc_2.h: Likewise.
5669         * src/utf16.h: Likewise.
5670         * src/utf16be.h: Likewise.
5671         * src/utf16le.h: Likewise.
5672         * src/utf7.h: Likewise.
5673         * src/utf8.h: Likewise.
5674         * src/viscii.h: Likewise.
5676 2000-11-18  Bruno Haible  <haible@clisp.cons.org>
5678         Make transliteration optional.
5679         * src/iconv.c (iconv_open): Strip off //TRANSLIT suffix from names.
5680           Set transliteration on if and only if tocode ends in //TRANSLIT.
5681         * README, man/iconv_open.3: Document how to enable transliteration.
5682         * tests/check-translit: Add //TRANSLIT to iconv's 't' argument.
5683         * tests/check-translit.bat: Likewise.
5684         * tests/check-translit.cmd: Likewise.
5686 2000-11-18  Bruno Haible  <haible@clisp.cons.org>
5688         * man/iconv.3: Fix typo.
5690 2000-10-31  Bruno Haible  <haible@clisp.cons.org>
5692         * README, man/iconv_open.3: Document JOHAB again.
5694 2000-11-15  Bruno Haible  <haible@clisp.cons.org>
5696         * Makefile.msvc: Add support for MFLAGS and DEBUG parameters.
5697           (STATIC): Change default from 0 to 1.
5698         * src/Makefile.msvc: Likewise.
5699         * tests/Makefile.msvc: Likewise.
5700         * tests/check-stateless.bat: Call 'sort' with no arguments.
5702 2000-11-12  Bruno Haible  <haible@clisp.cons.org>
5704         * autoconf/config.guess, autoconf/config.sub: Upgrade to newest
5705           version from GNU CVS.
5707 2000-10-24  Bruno Haible  <haible@clisp.cons.org>
5709         * Version 1.4 released.
5710         * include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
5711           Bump version number.
5712         * src/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:1:0.
5714 2000-10-23  Bruno Haible  <haible@clisp.cons.org>
5716         Implement and document GB18030 and BIG5HKSCS.
5717         * tools/cjk_tab_to_h.c (row_byte_hkscs, byte_row_hkscs, do_hkscs): New
5718           functions.
5719           (do_gb18030uni): New function.
5720           (main): Accept gb18030ext, gb18030uni, hkscs.
5721         * tools/Makefile (ALL): Add gb18030ext.h, gb18030uni.h, hkscs.h.
5722           (gb18030ext.h, GB18030ext.TXT, gb18030uni.h, GB18030uni.TXT,
5723            hkscs.h): New targets.
5724         * src/gb18030ext.h, src/gb18030uni.h, src/gb18030.h: New files.
5725         * src/hkscs.h, src/big5hkscs.h: New files.
5726         * src/converters.h: Include gb18030.h and big5hkscs.h.
5727         * src/encodings.def (GB18030, BIG5HKSCS): New encodings.
5728         * README, man/iconv_open.3: Add GB18030, BIG5HKSCS.
5729         * tests/Makefile.in (check): Check GB18030, BIG5HKSCS.
5730         * tests/Makefile.msvc (check): Likewise.
5731         * tests/Makefile.os2 (check): Likewise.
5732         * tests/GB18030.TXT: New file.
5733         * tests/BIG5HKSCS.TXT, tests/BIG5HKSCS.IRREVERSIBLE.TXT: New files.
5735 2000-10-23  Bruno Haible  <haible@clisp.cons.org>
5737         * tests/table-from.c (try, main): Use UCS-4-INTERNAL instead of
5738           UCS-2-INTERNAL, to avoid problems with UCS-2 surrogate handling.
5739         * tests/table-to.c (main): Likewise.
5741 2000-10-22  Bruno Haible  <haible@clisp.cons.org>
5743         * src/gentranslit.c (main): Read the input in UTF-8 encoding.
5745 2000-10-09  Bruno Haible  <haible@clisp.cons.org>
5747         CPU recognition on OpenBSD.
5748         * autoconf/aclocal.m4 (CL_WORDS_LITTLEENDIAN): Recognize __m68k__,
5749           __mc68020__, __MIPSEB__, __MIPSEL__, __m88k__ as CPU indicators.
5751 2000-10-03  Bruno Haible  <haible@clisp.cons.org>
5753         * src/gentranslit.c (main): Don't output non-ASCII ISO-8859-1
5754           character literals, use the numeric value instead.
5755           Reported by Shin-Hsien Yeh <shyeh@alcatel.com.tw>.
5757 2000-09-29  Bruno Haible  <haible@clisp.cons.org>
5759         * autoconf/aclocal.m4 (CL_CANONICAL_HOST): Fix bug in 2000-05-23
5760           change.
5762 2000-09-25  Bruno Haible  <haible@clisp.cons.org>
5764         * autoconf/aclocal.m4 (CL_WORDS_LITTLEENDIAN): Recognize __i386__
5765           as equivalent to __i386. For OpenBSD.
5767 2000-09-21  Bruno Haible  <haible@clisp.cons.org>
5769         * src/utf16.h (utf16_wctomb): Reject single surrogates.
5770         * src/utf16be.h (utf16be_wctomb): Likewise.
5771         * src/utf16le.h (utf16le_wctomb): Likewise.
5772         * src/ucs2.h (ucs2_mbtowc, ucs2_wctomb): Likewise.
5773         * src/ucs2be.h (ucs2be_mbtowc, ucs2be_wctomb): Likewise.
5774         * src/ucs2le.h (ucs2le_mbtowc, ucs2le_wctomb): Likewise.
5775         * src/ucs2internal.h (ucs2internal_mbtowc, ucs2internal_wctomb):
5776           Likewise.
5777         * src/ucs2swapped.h (ucs2swapped_mbtowc, ucs2swapped_wctomb):
5778           Likewise.
5780 2000-09-15  Bruno Haible  <haible@clisp.cons.org>
5782         * Makefile.in (install, installdirs, uninstall): Support DESTDIR.
5783         * src/Makefile.in (install, installdirs, uninstall): Likewise.
5784         * man/Makefile.in (install, installdirs, uninstall): Likewise.
5786 2000-09-11  Bruno Haible  <haible@clisp.cons.org>
5788         * src/utf7.h (utf7_mbtowc): Fix combining of UTF-16 surrogates.
5790 2000-08-26  Bruno Haible  <haible@clisp.cons.org>
5792         * autoconf/acgeneral.m4 (AC_OUTPUT): Use braces in exec_prefix default
5793           value, not parens.
5795 2000-07-04  Akira Hatakeyama  <akira@sra.co.jp>
5796             Bruno Haible  <haible@clisp.cons.org>
5798         * os2/iconv.def, README.os2, Makefile.os2, src/Makefile.os2,
5799           tests/Makefile.os2, man/Makefile.os2, tests/check-stateful.cmd,
5800           tests/check-stateless.cmd, tests/check-translit.cmd: New files.
5802 2000-06-28  Bruno Haible  <haible@clisp.cons.org>
5804         * src/ucs2internal.h (ucs2internal_mbtowc): Avoid gcc warning about
5805           cast.
5806         * src/ucs4internal.h (ucs4internal_mbtowc): Likewise.
5807         * src/ucs2swapped.h (ucs2swapped_mbtowc, ucs2swapped_wctomb): Verify
5808           sizeof(unsigned short).
5809         * src/ucs4swapped.h (ucs4swapped_mbtowc, ucs4swapped_mbtowc): Verify
5810           sizeof(unsigned int).
5811         Reported by François Pinard <pinard@iro.umontreal.ca>.
5813 2000-05-29  Bruno Haible  <haible@clisp.cons.org>
5815         * autoconf/aclocal.m4 (CL_PROG_INSTALL): Fix typo.
5816         Reported by Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>.
5818 2000-05-23  Bruno Haible  <haible@clisp.cons.org>
5820         * autoconf/aclocal.m4 (CL_CANONICAL_HOST): Determine host_cpu,
5821           host_vendor, host_os correctly if $host has more than two hyphens.
5823 2000-04-15  Bruno Haible  <haible@clisp.cons.org>
5825         * Version 1.3 released.
5826         * include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
5827           Bump version number.
5828         * src/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:0:0.
5830 2000-04-15  Bruno Haible  <haible@clisp.cons.org>
5832         * THANKS: New file.
5833         * INSTALL.generic: New file.
5835         Implement and document UCS-2BE, UCS-2LE, UCS-4BE, UCS-4LE.
5836         * src/ucs2be.h, src/ucs2le.h, src/ucs4be.h, src/ucs4le.h: New files.
5837         * src/converters.h: Include them.
5838         * src/ucs2swapped.h: Remove #defines for UCS-2-BE, UCS-2-LE.
5839         * src/ucs4swapped.h: Remove #defines for UCS-4-BE, UCS-4-LE.
5840         * src/encodings.def (UCS-2BE): Renamed from UCS-2-BE.
5841           (UCS-2LE): Renamed from UCS-2-LE.
5842           (UCS-4BE): Renamed from UCS-4-BE.
5843           (UCS-4LE): Renamed from UCS-4-LE.
5844         * Makefile.devel (src/aliases.h): Pass option "-i 1" to gperf.
5845         * README, man/iconv_open.3: Add UCS-2BE, UCS-2LE, UCS-4BE, UCS-4LE.
5846         * tests/Makefile.in (check): Check UCS-2BE, UCS-2LE, UCS-4BE, UCS-4LE.
5847         * tests/Makefile.msvc (check): Likewise.
5848         * tests/UCS-*snippet*: New files.
5850         Allow building as a shared library on Windows.
5851         Allow running the tests on Windows.
5852         * Makefile.devel (include/iconv.h.msvc): Remove rule.
5853           (include/iconv.h.msvc-static, include/iconv.h.msvc-shared): New
5854           rules.
5855           (all): Update.
5856         * windows/dllexport.h: New file.
5857         * include/iconv.h.msvc: Remove file.
5858         * include/iconv.h.msvc-static, include/iconv.h.msvc-shared: New
5859           autogenerated files.
5860         * Makefile.msvc (STATIC, DEBUG): Default to 0.
5861           (all): Choose either include\iconv.h.msvc-static or
5862           include\iconv.h.msvc-shared.
5863           (check): Depend on all.
5864           (all, check, mostlyclean, clean, distclean, maintainer-clean):
5865           Recurse into tests directory.
5866         * src/Makefile.msvc (STATIC, DEBUG): Default to 0.
5867           (WARN_CFLAGS, PICFLAGS, OPTIMFLAGS): New variables.
5868           (CFLAGS): Use them. Add -MD and -DBUILDING_LIBICONV.
5869           (RESOURCES): New variable.
5870           (iconv.lib): Change rule when building DLL.
5871           (clean, distclean): One filename per line.
5872         * tests/Makefile.msvc: New file.
5873         * tests/check-stateful.bat, tests/check-stateless.bat,
5874           tests/check-translit.bat: New files.
5875         * tests/uniq-u.c: New file, taken from GNU textutils.
5876         * README.win32: Update.
5877         Based on patches by Taro Muraoka <koron@tka.att.ne.jp>.
5879 2000-04-14  Bruno Haible  <haible@clisp.cons.org>
5881         Fix an OSF/1 problem.
5882         * configure.in: Define GCC variable for substitution.
5883         * src/Makefile.in (libiconv_plug_osf.so): Change rule if not using
5884           gcc.
5886 2000-04-13  Bruno Haible  <haible@clisp.cons.org>
5888         Fix a SunOS 4 problem.
5889         * include/iconv.h.in: If EILSEQ is not defined by the system, define
5890           it to ENOENT, not EINVAL.
5892 2000-04-02  Bruno Haible  <haible@clisp.cons.org>
5894         Allow building on filesystems lacking symlinks and hard links.
5895         * Makefile.devel (autoconf/aclocal.m4): Replace AC_PROG_LN_S with
5896           CL_PROG_LN_S.
5897         * configure.in: Add CL_PROG_LN, CL_PROG_LN_S.
5898         * src/Makefile.in (LN): Use autoconfigured value @LN@.
5899           (LN_S): Use autoconfigured value @LN_S@.
5901 2000-03-15  Bruno Haible  <haible@clisp.cons.org>
5903         * Version 1.2 released.
5904         * include/iconv.h.in (_LIBICONV_VERSION): Bump version number.
5905         * src/Makefile.in (LIBICONV_VERSION_INFO): Define to 1:1:1.
5907 2000-03-14  Bruno Haible  <haible@clisp.cons.org>
5909         Implement and document UTF-16BE and UTF16LE.
5910         * src/utf16be.h, src/utf16le.h: New files.
5911         * src/converters.h: Include them.
5912         * src/encodings.def (UTF-16BE, UTF16LE): New encodings.
5913         * README, man/iconv_open.3: Add UTF-16BE, UTF16LE.
5914         * tests/Makefile.in (check): Check UTF-16, UTF-16BE, UTF16LE.
5915         * tests/UTF-16*snippet*: New files.
5917         * src/utf16.h (utf16_wctomb): Output a byte order mark.
5919 2000-03-13  Bruno Haible  <haible@clisp.cons.org>
5921         Provide all encodings used by AIX locales.
5922         * tools/Makefile (all): Add cp856.h, cp922.h, cp1046.h, cp1124.h,
5923           cp1129.h.
5924           (cp856.h, cp922.h, cp1046.h, cp1124.h, cp1129.h): New targets.
5925         * src/cp856.h, src/cp922.h, src/cp943.h, src/cp1046.h, src/cp1124.h,
5926           src/cp1129.h: New files.
5927         * src/converters.h: Include them if USE_AIX is defined.
5928         * src/encodings_aix.def: New file, with CP856, CP922, CP943, CP1046,
5929           CP1124, CP1129.
5930         * src/genflags.c: Define USE_AIX. Include encodings_aix.def.
5931         * src/genaliases2.c: New file.
5932         * src/iconv.c: Define USE_AIX on AIX.
5933           Include encodings_aix.def and aliases_aix.h.
5934           (aliases2_lookup): New function.
5935           (iconv_open): Call aliases2_lookup.
5936         * src/Makefile.in (iconv.lo): Depend on encodings_aix.def and
5937           aliases_aix.h.
5938         * Makefile.devel (all): Add src/aliases_aix.h.
5939           (src/aliases_aix.h): New rule.
5940           (src/flags.h): Depend on src/encodings_aix.def.
5942 2000-02-24  Bruno Haible  <haible@clisp.cons.org>
5944         * src/iconv.c (iconv): Don't write beyond the end of the output buffer.
5945           Reported by Edmund Grimley Evans <edmundo@rano.org>.
5947 2000-02-22  Bruno Haible  <haible@clisp.cons.org>
5949         * src/utf7.h (direct_tab, xdirect_tab): Treat tab like space.
5951 2000-02-15  Bruno Haible  <haible@clisp.cons.org>
5953         * src/iconv.c (iconv): Add cast in xxx_reset call.
5955 2000-02-05  Bruno Haible  <haible@clisp.cons.org>
5957         * src/tis620.h: Simplify.
5959 2000-01-27  Bruno Haible  <haible@clisp.cons.org>
5961         * Makefile.devel (CLISP_DIR): Change to "..".
5963 2000-01-24  Bruno Haible  <haible@clisp.cons.org>
5965         * Version 1.1 released.
5966         * include/iconv.h.in (_LIBICONV_VERSION): Bump version number.
5967         * src/Makefile.in (LIBICONV_VERSION_INFO): Define to 1:0:1.
5969 2000-01-23  Bruno Haible  <haible@clisp.cons.org>
5971         * src/utf7.h (utf7_wctomb): If base64 encoding is not active, encode
5972           '+' as "+-".
5974 2000-01-22  Bruno Haible  <haible@clisp.cons.org>
5976         * include/iconv.h.in (iconvctl): New declaration.
5977           (ICONV_TRIVIALP, ICONV_GET_TRANSLITERATE, ICONV_SET_TRANSLITERATE):
5978           New macros.
5979         * src/iconv.c (iconvctl): New function.
5981         * tests/Makefile.in: Add a rule for ../src/libiconv.la. Define $(MAKE).
5983         Solve a build problem.
5984         * include/iconv.h.in: Renamed from include/libiconv.h.in.
5985         * Makefile.devel: libiconv.h -> iconv.h.
5986         * Makefile.in: Likewise.
5987         * configure.in: Likewise. Remove check for <iconv.h>.
5988         * src/iconv.c: Include iconv.h instead of libiconv.h.
5989         * tests/iconv.c, tests/table-from.c, tests/table-to.c: Likewise.
5991         * README, man/iconv_open.3: Don't document JOHAB any more.
5993         * man/iconv.3: Clarify return value again.
5995 2000-01-16  Bruno Haible  <haible@clisp.cons.org>
5997         Add aliases.
5998         * src/encodings.def (ISO-8859-14): Add alias ISO-IR-199.
5999           (ISO-8859-15): Add alias ISO-IR-203.
6000           (EUC-CN): Add alias CN-GB, from RFC 1922.
6001           (BIG5): Add alias CN-BIG5, from RFC 1922.
6002         * Makefile.devel (src/aliases.h): Add 8th character to key set.
6004         Drop X11 aliases.
6005         * src/encodings.def (JIS_X0201): Drop JISX0201.1976-0 alias.
6006           (JIS_X0208): Drop JIS_X0208.1983-0, JIS_X0208.1983-1 aliases.
6007           (KSC_5601): Drop KSC5601.1987-0 alias.
6009         Improve GB/T 12345 (not used yet).
6010         * tools/Makefile (gb12345ext.h): Use GB12345-more.TXT.
6011         * src/gb12345ext.h: Regenerated.
6013         Improve and document CP949.
6014         * tools/Makefile (all): Add uhc_1.h and uhc_2.h.
6015           (uhc_1.h, uhc_2.h): New rules.
6016         * tools/cjk_tab_to_h.c (output_charset2uni_noholes_monotonic): New
6017           function.
6018           (output_uni2charset_sparse): Take an additional boolean argument.
6019           All callers changed.
6020           (*_uhc_1, *_uhc_2): New functions.
6021           (main): Treat uhc_1 and uhc_2.
6022         * src/uhc_1.h, src/uhc_2.h: New files.
6023         * src/cp949.h: New file, include them.
6024         * src/converters.h: Include it.
6025         * src/encodings.def (KSC_5601): Remove alias CP949.
6026           (CP949): New encoding.
6027         * README, man/iconv_open.3: Add CP949.
6028         * tests/Makefile.in (check): Check CP949.
6029         * tests/CP949.TXT: New file.
6031         Document CP932.
6032         * README, man/iconv_open.3: Add CP932.
6033         * tests/Makefile.in (check): Check CP932.
6034         * tests/CP932.TXT, tests/CP932.IRREVERSIBLE.TXT: New files.
6036         * Makefile.devel (src/flags.h): Depend on src/converters.h.
6038         * tests/Makefile.in (check): Check JIS_X0201.
6039         * tests/JIS_X0201.TXT: New file.
6041         * src/euc_kr.h (euc_kr_wctomb): Shrink size of buf.
6042         * src/iso2022_kr.h (iso2022_kr_wctomb): Likewise.
6044         * src/iso2022_cnext.h (iso2022_cn_ext_mbtowc): Use isoir165_mbtowc.
6045           (iso2022_cn_ext_wctomb): Use isoir165_wctomb.
6047         Add ISO-IR-165 (undocumented).
6048         * tools/Makefile (all): Add isoir165ext.h.
6049           (isoir165ext.h): New rule.
6050         * tools/cjk_tab_to_h.c (main): Treat isoir165ext like gb2312.
6051         * src/isoir165.h, src/isoir165ext.h: New files.
6052         * src/converters.h: Include it.
6053         * src/encodings.def: Add ISO-IR-165.
6054         * tests/Makefile.in (check): Check ISO-IR-165.
6055         * tests/ISO-IR-165.TXT, tests/ISO-IR-165.IRREVERSIBLE.TXT: New files.
6057         Add ISO646-CN (undocumented).
6058         * src/iso646_cn.h: New file.
6059         * src/converters.h: Include it.
6060         * src/encodings.def: Add ISO646-CN.
6061         * tests/Makefile.in (check): Check ISO646-CN.
6062         * tests/ISO646-CN.TXT: New file.
6064         Add ISO646-JP (undocumented).
6065         * src/iso646_jp.h: New file.
6066         * src/converters.h: Include it.
6067         * src/encodings.def: Add ISO646-JP.
6068         * tests/Makefile.in (check): Check ISO646-JP.
6069         * tests/ISO646-JP.TXT: New file.
6071 2000-01-05  Bruno Haible  <haible@clisp.cons.org>
6073         Add ISO-8859-16.
6074         * tools/Makefile (all): Add iso8859_16.h.
6075           (iso8859_16.h): New rule.
6076         * src/iso8859_16.h: New file.
6077         * src/converters.h: Include it.
6078         * src/encodings.def: Add ISO-8859-16.
6079         * README, man/iconv_open.3: Add ISO-8859-16.
6080         * tests/Makefile.in (check): Check ISO-8859-16.
6081         * tests/ISO-8859-16.TXT: New file.
6083         * man/iconv.3: Clarify what happens *inbuf in case 3.
6085         * src/iso8859_8.h: Update using newest table from ftp.unicode.org.
6086         * tests/ISO-8859-8.TXT: Likewise.
6088 2000-01-04  Bruno Haible  <haible@clisp.cons.org>
6090         * Version 1.0 released.
6091         * include/libiconv.h.in (_LIBICONV_VERSION): Bump version number.
6092         * src/Makefile.in (LIBICONV_VERSION_INFO): Define to 0:1:0.
6093           (libiconv.la): Use LIBICONV_VERSION_INFO.
6095 2000-01-03  Bruno Haible  <haible@clisp.cons.org>
6097         * tests/Makefile.in: New file.
6098           tests/check-stateless, tests/table-from.c, tests/table-to.c,
6099           tests/*.TXT, tests/genutf8.c: New files, checks for stateless
6100           encodings.
6101           tests/check-stateful, tests/iconv.c, tests/*-snippet*: New files,
6102           checks for stateful encodings.
6103         * Makefile.in (all, check, mostlyclean, clean, distclean,
6104            maintainer-clean): Descend into tests directory.
6105         * configure.in: Add tests/Makefile to AC_OUTPUT duties.
6107         * src/gentranslit.c: New file.
6108         * Makefile.devel (src/translit.h): New rule.
6109         * src/translit.def, src/translit.h: New files.
6110         * src/iconv.c: Include it.
6111           (iconv): Transliterate using translit.h table.
6113         * src/genflags.c: New file.
6114         * Makefile.devel (src/flags.h): New rule.
6115         * src/flags.h: New file.
6116         * src/iconv.c: Include it.
6117           (encoding): Add field 'oflags'.
6118           (all_encodings): Initialize the field 'oflags'.
6119           (iconv_open): Copy field 'oflags'.
6120           (iconv): Transliterate quotation marks U+2018, U+2019, U+201A.
6121         * src/Makefile.in (iconv.lo): Update dependencies.
6123         * src/converters.h: New file, extracted from src/iconv.c.
6124         * src/iconv.c: Include it.
6125         * src/Makefile.in (iconv.lo): Update dependencies.
6127         * tools/cjk_variants.c: New file.
6128         * tools/Makefile (ALL): Add cjk_variants.h.
6129           (cjk_variants.h, cjk_variants): New rules.
6130         * src/cjk_variants.h: New file.
6131         * src/iconv.c: Include it.
6132           (iconv): Use cjk_variants for transliteration.
6134         * man/iconv.3: Fix description of return value.
6135         * euc_kr.h (euc_kr_wctomb): Remove Hangul transliteration.
6136         * iso2022_kr.h (iso2022kr_wctomb): Likewise.
6137         * src/iconv.c (iconv): Do Hangul transliteration here and increment
6138           result once for every transliterated character.
6139         * src/johab_hangul.h (johab_hangul_decompose): Change result array
6140           from 'unsigned char*' to 'wchar_t*'.
6142         * src/cp1258.h (cp1258_mbtowc): Return RET_ILSEQ instead of storing
6143           0xfffd.
6145         * src/georgian_ps.h (georgian_ps_wctomb): Accept 0x00e6.
6147         * src/euc_jp.h (euc_jp_wctomb): Don't treat U+005C and U+007E like
6148           Katakana.
6150         * src/euc_tw.h (euc_tw_mbtowc): Fix typo.
6152         * src/cp950.h (cp950_mbtowc, cp950_wctomb): Exclude the range
6153           0xC6A1..0xC7FE.
6155         * tools/cjk_tab_to_h.c (read_table_ksc5601): Some Hangul range was
6156           not being excluded. Fix that.
6157         * src/ksc5601.h: Regenerated.
6158         * src/johab.h (johab_mbtowc): Don't accept 0xDA{A1..D3} - this is
6159           valid in KSC5601/KSX1001 but not in JOHAB.
6161         * src/iconv.c (conv_struct): Add fields iindex, oindex.
6162           (iconv_open): Fill in iindex, oindex.
6164         * src/encodings.def (UCS-2-BE): Add aliases "UNICODE-1-1" and
6165           "csUnicode11", from IANA charset list.
6166           (MacRoman): Add aliases "MAC" and "csMacintosh" for "MACINTOSH",
6167           from IANA charset list.
6168           (JIS_X0208): Add aliases "X0208", "ISO-IR-87", "csISO87JISX0208",
6169           from IANA charset list.
6170           (GB_2312-80): New encoding, from IANA charset list.
6172         * README, man/iconv_open.3: Add MacIceland and MacUkraine.
6174         * Makefile.devel: Add rules for src/aliases.h and src/aliases.gperf.
6175           (all): Depend on src/aliases.h.
6176         * src/Makefile.in: Remove rules for $(srcdir)/aliases.h and
6177           $(srcdir)/aliases.gperf.
6178           (clean): Clean up.
6180         * src/Makefile.in (libiconv_plug_linux.so): Remove unneeded "-ldl".
6182 1999-12-31  Bruno Haible  <haible@clisp.cons.org>
6184         * Version 0.3 released.