1 2024-12-28 Bruno Haible <bruno@clisp.org>
3 Update after gnulib changed.
4 * Makefile.devel (GNULIB_MODULES): Use the new names of renamed gnulib
7 2024-12-15 Bruno Haible <bruno@clisp.org>
10 * po/libiconv.pot: Update.
11 * po/*.po: Update from TP.
12 * po/LINGUAS: Add be, ka.
14 2024-12-15 Bruno Haible <bruno@clisp.org>
16 Prepare for version 1.18.
17 * configure.ac: Bump version number to 1.18.
18 * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
19 * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 9:0:7.
20 * src/iconv.c (print_version): Update copyright year.
21 * windows/iconv.rc: Likewise.
22 * windows/libiconv.rc: Likewise.
23 * README: Update download link.
25 2024-12-15 Bruno Haible <bruno@clisp.org>
27 Use the newest gettext release.
28 * po/Makefile.in.in: Upgrade to gettext-0.23, keeping the change
29 2019-01-27 Bruno Haible <bruno@clisp.org>
30 Accommodate a shell that is not in /bin/sh.
31 * po/Makefile.in.in (SHELL): Use the value found by configure.
32 * po/*: Upgrade to gettext-0.23 as well.
34 2024-12-15 Bruno Haible <bruno@clisp.org>
36 Implement the //NON_IDENTICAL_DISCARD suffix from POSIX:2024.
37 * include/iconv.h.in (ICONV_GET_DISCARD_INVALID,
38 ICONV_SET_DISCARD_INVALID, ICONV_GET_DISCARD_NON_IDENTICAL,
39 ICONV_SET_DISCARD_NON_IDENTICAL): New macros.
40 * lib/converters.h (struct conv_struct): Change type of discard_ilseq to
42 (DISCARD_INVALID, DISCARD_UNCONVERTIBLE): New macros.
43 * lib/iconv.c (iconv_open, iconv_open_into): Change type of
44 discard_ilseq to 'unsigned int'.
45 (iconvctl): Implement ICONV_GET_DISCARD_INVALID,
46 ICONV_SET_DISCARD_INVALID, ICONV_GET_DISCARD_NON_IDENTICAL,
47 ICONV_SET_DISCARD_NON_IDENTICAL. Change the implementation of
48 ICONV_GET_DISCARD_ILSEQ, ICONV_SET_DISCARD_ILSEQ to test/set both bits.
49 * lib/iconv_open1.h: Update comment. Recognize //NON_IDENTICAL_DISCARD.
50 * lib/iconv_open2.h: Update comment.
51 * lib/loop_unicode.h (mb_to_uc_write_replacement): Test the
52 DISCARD_UNCONVERTIBLE bit of discard_ilseq.
53 (unicode_loop_convert): Test the respective bit of discard_ilseq.
54 (unicode_loop_reset): Test the DISCARD_UNCONVERTIBLE bit of
56 * lib/loop_wchar.h (wchar_from_loop_convert, wchar_to_loop_convert):
57 Test the DISCARD_INVALID bit of discard_ilseq.
58 * man/iconv_open.3: Mention the //NON_IDENTICAL_DISCARD suffix. Mark as
59 conforming to POSIX:2024.
60 * man/iconv.3: Likewise.
61 * man/iconv_close.3: Mark as conforming to POSIX:2024.
62 * man/iconv.1: Likewise.
63 * man/iconvctl.3: Document ICONV_GET_DISCARD_INVALID,
64 ICONV_SET_DISCARD_INVALID, ICONV_GET_DISCARD_NON_IDENTICAL,
65 ICONV_SET_DISCARD_NON_IDENTICAL. Revise the description of
66 ICONV_GET_DISCARD_ILSEQ, ICONV_SET_DISCARD_ILSEQ.
67 * tests/test-discard.c (test_default, test_translit, test_ignore,
68 test_ignore_translit): Test also the ICONV_GET_DISCARD_INVALID,
69 ICONV_GET_DISCARD_NON_IDENTICAL accessors.
70 (test_nid, test_nid_translit, test_invd, test_invd_translit): New
72 (main): Add test cases with //NON_IDENTICAL_DISCARD suffix.
73 * NEWS: Mention the change.
75 2024-12-15 Bruno Haible <bruno@clisp.org>
77 Support multiple suffixes in iconv_open, like glibc does.
78 * lib/iconv_open1.h: Use a loop when looking for the common suffixes.
79 * tests/test-discard.c: New file.
80 * tests/Makefile.in (check): Run test-discard.
81 (test-discard, test-discard.@OBJEXT@): New targets.
82 (clean): Remove test-discard.
83 (SOURCE_FILES): Add test-discard.c.
84 * NEWS: Mention the change.
86 2024-12-14 Bruno Haible <bruno@clisp.org>
88 Switch to automake 1.17, part 2.
89 * Makefile.devel (AUTOMAKE, ACLOCAL): Use binary from automake 1.17.
91 2024-12-14 Bruno Haible <bruno@clisp.org>
93 Remove left-overs of preloadable library (removed in 1.16).
94 * include/iconv.h.in: Remove LIBICONV_PLUG conditionals.
95 * lib/iconv.c: Likewise.
96 * lib/converters.h: Likewise.
97 * lib/loop_unicode.h: Likewise.
98 * lib/loop_wchar.h: Likewise.
99 * lib/iconv_open2.h: Likewise.
101 2024-12-14 Bruno Haible <bruno@clisp.org>
103 Add transliteration of Emojis.
104 Suggested by Colin Leroy-Mira <colin@colino.net> in
105 <https://savannah.gnu.org/bugs/index.php?64046>.
106 * lib/translit.def: Add transliterations from glibc's fix of
107 <https://sourceware.org/bugzilla/show_bug.cgi?id=30649>.
110 2024-12-14 Bruno Haible <bruno@clisp.org>
113 * man/iconv.3: Move 4th case to be the 2nd case. Add a NOTES section,
114 based on the Linux man-pages project's iconv.3 page.
116 2024-12-13 Bruno Haible <bruno@clisp.org>
118 Distinguish byte-order state and shift-state.
119 Reported by Tomas Kalibera <tomas.kalibera@gmail.com> in
120 <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2024-12/msg00000.html>.
121 * lib/converters.h (struct conv_struct): Add field 'ibyteorder'.
122 * lib/iconv_open2.h: Initialize the ibyteorder field.
123 * lib/ucs2.h (ucs2_mbtowc): Use the ibyteorder field instead of the
125 * lib/ucs4.h (ucs4_mbtowc): Likewise.
126 * lib/utf16.h (utf16_mbtowc): Likewise.
127 * lib/utf32.h (utf32_mbtowc): Likewise.
128 * tests/test-bom-state.c: New file.
129 * tests/Makefile.in (check): Run test-bom-state.
130 (test-bom-state, test-bom-state.@OBJEXT@): New targets.
131 (clean): Remove test-bom-state.
132 (SOURCE_FILES): Add test-bom-state.c.
133 * NEWS: Mention the change.
135 2024-11-22 Bruno Haible <bruno@clisp.org>
137 Switch to libtool 2.5.4.
138 * m4/libtool.m4: Update from libtool-2.5.4, with modifications:
139 2008-04-06 Bruno Haible <bruno@clisp.org>
140 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
141 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
143 * m4/ltversion.m4: Likewise.
144 * build-aux/ltmain.sh: Update from libtool-2.5.4, with modifications:
145 2017-07-15 Bruno Haible <bruno@clisp.org>
146 Allow building statically linked binaries, through
147 LDFLAGS="-static". Apply patch from
148 <https://lists.gnu.org/archive/html/bug-libtool/2017-07/msg00000.html>.
149 * build-aux/ltmain.sh (func_mode_help, func_mode_link): In the
150 link mode, accept option '-static-uninstalled-libs' in place of
151 '-static', and make '-static' an equivalent of '-all-static'.
153 2024-11-07 Bruno Haible <bruno@clisp.org>
155 Update the LGPL text.
156 * COPYING.LIB: Update from
157 <https://ftp.gnu.org/gnu/Licenses/lgpl-2.1.txt>.
159 2024-10-22 Bruno Haible <bruno@clisp.org>
162 From Mike Taves <mwtoews@gmail.com> in
163 <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2024-10/msg00002.html>.
164 * NOTES: Fix grammar.
165 * lib/iconv_open1.h: Fix a typo in comments.
166 * lib/iso2022_jp2.h: Likewise.
167 * lib/iso2022_jpms.h: Fix English spelling in comments.
169 2024-10-04 Bruno Haible <bruno@clisp.org>
171 Fix undefined behaviour caused by shifting (unsigned char) << 24.
172 Reported by Tim Sweet <tsweet64@protonmail.com>
173 at <https://savannah.gnu.org/bugs/?66289>.
174 * lib/ucs4.h (ucs4_mbtowc): Cast 'unsigned char' values to ucs4_t before
175 shifting them to the left.
176 * lib/ucs4be.h (ucs4be_mbtowc): Likewise.
177 * lib/ucs4le.h (ucs4le_mbtowc): Likewise.
178 * lib/utf32.h (utf32_mbtowc): Likewise.
179 * lib/utf32be.h (utf32be_mbtowc): Likewise.
180 * lib/utf32le.h (utf32le_mbtowc): Likewise.
182 2024-09-26 Bruno Haible <bruno@clisp.org>
184 Switch to libtool 2.5.3.
185 * m4/libtool.m4: Update from libtool-2.5.3, with modifications:
186 2008-04-06 Bruno Haible <bruno@clisp.org>
187 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
188 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
190 * m4/ltoptions.m4: Likewise.
191 * m4/ltsugar.m4: Likewise.
192 * m4/ltversion.m4: Likewise.
193 * m4/lt~obsolete.m4: Likewise.
194 * build-aux/ltmain.sh: Update from libtool-2.5.3, with modifications:
195 2017-07-15 Bruno Haible <bruno@clisp.org>
196 Allow building statically linked binaries, through
197 LDFLAGS="-static". Apply patch from
198 <https://lists.gnu.org/archive/html/bug-libtool/2017-07/msg00000.html>.
199 * build-aux/ltmain.sh (func_mode_help, func_mode_link): In the
200 link mode, accept option '-static-uninstalled-libs' in place of
201 '-static', and make '-static' an equivalent of '-all-static'.
203 2024-09-26 Bruno Haible <bruno@clisp.org>
205 Update after gnulib changed.
206 * autogen.sh: Copy also build-to-host.m4 and host-cpu-c-abi.m4.
208 2024-08-24 Bruno Haible <bruno@clisp.org>
210 Fix shared library support in 32-bit mode on FreeBSD/powerpc64.
211 Patch from <https://savannah.gnu.org/patch/index.php?10469>.
212 * m4/libtool.m4: On FreeBSD, fix shlibpath_var.
214 2024-08-14 Collin Funk <collin.funk1@gmail.com> (tiny change)
216 Prefer #include <...> for system headers.
217 See <https://www.gnu.org/software/gnulib/manual/html_node/Style-of-_0023include-statements.html>.
218 * gnulib-local/lib/xmalloc.c: Include <error.h>.
219 * src/iconv.c: Likewise.
221 2024-07-12 Bruno Haible <bruno@clisp.org>
223 Switch to automake 1.17.
224 * autogen.sh: Update comment.
226 2024-07-12 Bruno Haible <bruno@clisp.org>
229 * include/iconv.h.in (iconv_wchar_mb_to_wc_fallback,
230 iconv_wchar_wc_to_mb_fallback): Assume HAVE_WCHAR_T is 1.
231 * src/iconv.c (ilseq_wchar_subst_buffer, subst_mb_to_wc_fallback,
232 subst_wc_to_mb_fallback, main): Likewise.
233 * configure.ac (HAVE_WCHAR_T): Remove variable.
234 (gt_TYPE_WCHAR_T): Remove invocation.
236 2024-06-11 Bruno Haible <bruno@clisp.org>
238 POSIX compliance: Interpret '-' file name as standard input.
239 Reported by Brian Inglis at <https://savannah.gnu.org/bugs/?65874>.
240 * src/iconv.c (main): Recognize the argument '-' as denoting standard
243 2024-05-23 Bruno Haible <bruno@clisp.org>
245 INSTALL.windows: Fix MSVC instructions.
246 * INSTALL.windows: Mention the tools needed for 'windres'.
248 2024-04-04 Bruno Haible <bruno@clisp.org>
250 Fix macro file 'serial' numbers for 'aclocal --install'.
251 * gnulib-local/m4/alloca.m4: Make 'serial' effective. Set value to 100,
252 in order to override gnulib's alloca.m4.
254 2023-12-30 Bruno Haible <bruno@clisp.org>
256 Switch to autoconf 2.72.
257 * autogen.sh: Update comment.
259 2023-09-18 Bruno Haible <bruno@clisp.org>
261 Fix shared library support on Android.
262 Patch from <https://savannah.gnu.org/patch/index.php?10393>.
263 * m4/libtool.m4: On Android, fix library_names_spec and
264 hardcode_libdir_flag_spec.
266 2023-09-16 Bruno Haible <bruno@clisp.org>
269 * include/export.h (LIBICONV_SHLIB_EXPORTED): Renamed from
270 LIBICONV_DLL_EXPORTED. Prefer the term "shared library", since the term
271 "DLL" applies only to Windows.
272 * Makefile.devel (include/iconv.h.build.in): Insert
273 LIBICONV_SHLIB_EXPORTED instead of LIBICONV_DLL_EXPORTED.
274 * configure.ac (DLL_VARIABLE): Update comment.
275 * lib/Makefile.in (DEFS): Update comment.
276 * woe32dll/export.h: Update comment.
278 2023-09-13 Bruno Haible <bruno@clisp.org>
280 Simplify the library: Don't compile relocatable.c any more.
281 The library does not need relocatable.h any more since 2018-09-22.
282 * lib/relocatable.h: Remove file.
283 * lib/relocatable.c: Remove file.
284 * lib/compat.c: New file.
285 * lib/Makefile.in (DEFS): Don't define LIBDIR, BUILDING_DLL,
286 ENABLE_RELOCATABLE, IN_LIBRARY, INSTALLDIR, NO_XMALLOC,
287 set_relocation_prefix, relocate, relocate2.
288 (SOURCES): Remove relocatable.c. Add compat.c.
289 (OBJECTS): Remove relocatable.lo. Add compat.lo.
290 (localcharset.lo): Update dependencies.
291 (relocatable.lo): Remove rule.
292 (compat.lo): Add rule.
293 (SOURCE_FILES): Remove relocatable.h, relocatable.c. Add compat.c.
295 2023-09-07 Bruno Haible <bruno@clisp.org>
297 Sync woe32dll/export.h with GNU libunistring and GNU gettext.
298 * woe32dll/export.h: Update comments.
299 (IMP): Define correctly for 64-bit Windows platforms.
301 2023-09-06 Bruno Haible <bruno@clisp.org>
303 Don't export symbols from static MSVC .obj files.
304 Suggested by Dmitry Bely <dmitry.bely@gmail.com> in
305 <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2023-08/msg00002.html>.
306 * include/export.h: Add a copyright notice. Set LIBICONV_DLL_EXPORTED to
307 empty on MSVC when DLL_EXPORT is not defined.
308 * Makefile.devel (include/iconv.h.build.in): Filter out the second
310 * configure.ac (DLL_VARIABLE): Test DLL_EXPORT, not _DLL.
311 * lib/relocatable.h: From gnulib:
312 (RELOCATABLE_DLL_EXPORTED): Don't use __declspec(dllexport) when
313 creating static .obj files with MSVC.
315 2023-08-30 Bruno Haible <bruno@clisp.org>
317 Recognize the *-*-windows* config triplets introduced on 2023-06-26.
318 * configure.ac: Treat windows* as equivalent to mingw*.
320 2023-06-29 Bruno Haible <bruno@clisp.org>
322 Update the installation instructions for Windows.
323 * INSTALL.windows: Add a note about MSYS2.
325 2023-05-29 Bruno Haible <bruno@clisp.org>
327 GB18030: Help transitioning away from PUA code points.
328 * lib/gb18030ext.h (gb18030_2005_ext_wctomb): Remove function.
329 (gb18030ext_wctomb): Renamed from gb18030_2022_ext_wctomb.
330 * lib/gb18030uni.h (gb18030_2005_uni_wctomb): Map 6 Ext-B code points to
332 (gb18030_2022_uni_wctomb): Small refactoring.
333 * lib/gb18030_2005.h (gb18030_2005_pua2charset): Map 6 PUA code points
334 to 4-bytes sequences instead of 2-bytes sequences.
335 (gb18030_2005_wctomb): Update accordingly. Invoke gb18030ext_wctomb
336 instead of gb18030_2005_ext_wctomb.
337 * lib/gb18030_2022.h (gb18030_2022_wctomb): Invoke gb18030ext_wctomb
338 instead of gb18030_2022_ext_wctomb.
339 * tests/GB18030-2005.IRREVERSIBLE.TXT: Update the inverse mappings of 6
340 Ext-B code points and 6 PUA code points.
343 2023-05-24 Bruno Haible <bruno@clisp.org>
345 man pages: List a fifth condition when iconv(3) may stop.
346 Based on the patch to the man-pages project
347 <https://marc.info/?l=linux-man&m=168496625522371&w=2> =
348 <https://lore.kernel.org/linux-man/2f9c4dbd-7aa6-fc7a-f126-453603ef695e@gmail.com/T/#m25e33d4defa1118e5c84951790f0319360abf9d4>
349 * man/iconv.3: List a fifth condition.
351 2023-05-24 Bruno Haible <bruno@clisp.org>
353 man pages: Use man page section title from groff or the distro.
354 Reported by Mike Fulton <mikefultonpersonal@gmail.com> in
355 <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2023-04/msg00027.html>.
356 * man/*.[13]: Remove section title "Linux Programmer's Manual".
358 2023-05-21 Bruno Haible <bruno@clisp.org>
360 Support creating shared libraries on Hurd/x86_64.
362 <https://lists.gnu.org/archive/html/bug-hurd/2023-05/msg00086.html>.
363 * m4/libtool.m4 (_LT_ENABLE_LOCK): Treat Hurd/x86_64 like
366 2023-05-21 Bruno Haible <bruno@clisp.org>
368 Fix link error regarding _libiconv_version on MSVC in C++ mode.
369 Reported at <https://savannah.gnu.org/bugs/?64227>.
370 * include/iconv.h.in (_libiconv_version): Enclose in an extern "C"
373 2023-05-20 Bruno Haible <bruno@clisp.org>
375 Implement GB18030 version 2022.
376 * lib/encodings.def (GB18030): Add alias GB18030:2005.
377 (GB18030:2022): New encoding.
378 * lib/gb18030ext.h (gb18030_2005_ext_2uni_pagefe): Renamed from
379 gb18030ext_2uni_pagefe.
380 (gb18030_2022_ext_2uni_pagefe): New array.
381 (gb18030_2005_ext_mbtowc): Renamed from gb18030ext_mbtowc.
382 (gb18030_2022_ext_mbtowc): New function.
383 (gb18030_2005_ext_wctomb): Renamed from gb18030ext_wctomb.
384 (gb18030_2022_ext_wctomb): New function.
385 * lib/gb18030uni.h (gb18030_2022_charset2uni_pua1,
386 gb18030_2022_charset2uni_pua2): New arrays.
387 (gb18030_2005_uni_mbtowc): Renamed from gb18030uni_mbtowc.
388 (gb18030_2022_uni_mbtowc): New function.
389 (gb18030_2022_uni2charset_pua1, gb18030_2022_uni2charset_pua2): New
391 (gb18030_2005_uni_wctomb): Renamed from gb18030uni_wctomb.
392 (gb18030_2022_uni_wctomb): New function.
393 * lib/gb18030_2005.h: Renamed from lib/gb18030.h. Update comments.
394 (gb18030_2005_mbtowc): Renamed from gb18030_mbtowc.
395 (gb18030_2005_pua2charset): Renamed from gb18030_pua2charset.
396 (gb18030_2005_wctomb): Renamed from gb18030_wctomb.
397 * lib/gb18030_2022.h: New file, based on lib/gb18030_2005.h.
398 * lib/converters.h: Don't include gb18030.h. Include gb18030_2005.h,
400 * lib/Makefile.in (SOURCE_FILES): Remove gb18030.h. Add gb18030_2005.h,
402 * tests/GB18030-2005-BMP.TXT: Renamed from tests/GB18030-BMP.TXT.
403 * tests/GB18030-2005.IRREVERSIBLE.TXT: Renamed from
404 tests/GB18030.IRREVERSIBLE.TXT.
405 * tests/GB18030-2022-BMP.TXT: New file.
406 * tests/Makefile.in (check): Test GB18030:2005 instead of GB18030. Also
408 (clean): Don't remove GB18030.TXT. Instead, remove GB18030-2005.TXT and
410 (SOURCE_FILES): Update. Add GB18030-2022-BMP.TXT.
411 * README: Mention the new encoding.
412 * man/iconv_open.3: Likewise.
415 2023-05-19 Bruno Haible <bruno@clisp.org>
417 Make the compiler used by Makefile.devel customizable.
418 Reported by Mike Fulton <mikefultonpersonal@gmail.com> in
419 <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2023-05/msg00006.html>.
420 * Makefile.devel: Require GNU make.
421 (CC): Use value from the environment, if set and non-empty.
422 (CFLAGS): Use value from the environment, if set.
423 * autogen.sh (GMAKE): New variable.
424 Use it for executing Makefile.devel.
426 2023-05-17 Bruno Haible <bruno@clisp.org>
428 On z/OS, allow charset tagging of temporary shell scripts.
429 Reported by Mike Fulton <mikefultonpersonal@gmail.com> in
430 <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2023-05/msg00002.html>.
431 * lib/genaliases.c (BINARY_MODE): New macro.
432 (main): Use it instead of "b".
434 2023-05-12 Bruno Haible <bruno@clisp.org>
436 Integrate the last change.
437 * src/Makefile.in (SOURCE_FILES): Add zos-tag.h.
438 * tests/Makefile.in (SOURCE_FILES): Add check-tag.
439 * NEWS: Mention the new functionality.
441 2023-05-12 Mike Fulton <mikefultonpersonal@gmail.com>
443 On z/OS, set a charset tag on iconv's output file.
444 For the concept of charset tags as external metadata on z/OS files, see
445 <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2023-04/msg00021.html>.
446 * src/zos-tag.h: New file.
447 * src/iconv.c: Include zos-tag.h.
448 (convert): Add a 'tocode' parameter. On z/OS, turn off auto-conversion
449 and tag the output file.
450 (main): Update callers.
451 * tests/check-ebcdic: On z/OS, make all test files initially untagged.
452 * tests/check-tag: New file.
453 * tests/Makefile.in (check): Pass the host_os to check-ebcdic. Invoke
456 2023-04-03 Bruno Haible <bruno@clisp.org>
458 Fix genflags compilation error.
459 * lib/genflags.c (ICONV_SURFACE_EBCDIC_ZOS_UNIX): New macro, copied from
462 Allow overriding the newline conversion for EBCDIC encodings.
463 Reported by Mike Fulton <mikefultonpersonal@gmail.com> in
464 <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2023-04/msg00009.html>.
465 * include/iconv.h.in (ICONV_SURFACE_NONE,
466 ICONV_SURFACE_EBCDIC_ZOS_UNIX): New macros.
467 (ICONV_GET_FROM_SURFACE, ICONV_SET_FROM_SURFACE, ICONV_GET_TO_SURFACE,
468 ICONV_SET_TO_SURFACE): New macros.
469 * lib/converters.h (struct conv_struct): Add the fields isurface,
471 (swap_x15_x25): New macro.
472 * lib/iconv.c (iconv_open, iconv_open_into): Add local variables
473 from_surface, to_surface.
474 (ALL_SURFACES): New macro.
475 (iconvctl): Adjust ICONV_TRIVIALP implementation. Implement the
476 ICONV_{GET,SET}_{FROM,TO}_SURFACE requests.
477 * lib/iconv_open1.h: Parse a /ZOS_UNIX surface specifier. Set
478 from_surface, to_surface.
479 * lib/iconv_open2.h: Copy the values of from_surface, to_surface into
480 the conversion descriptor.
481 * lib/ebcdic*.h (*_mbtowc): Test the isurface. If requested, call
482 swap_x15_x25 right after fetching an input byte.
483 (*_wctomb): Test the osurface. If requested, call swap_x15_x25 right
484 before storing an output byte.
485 * man/iconvctl.3 (REQUEST VALUES): Document the
486 ICONV_{GET,SET}_{FROM,TO}_SURFACE requests.
487 * src/iconv.c (main): If ICONV_EBCDIC_ZOS_UNIX is set, set the from/to
488 surfaces accordingly.
489 * man/iconv.1 (ENVIRONMENT): New section.
490 * tests/check-ebcdic: New file.
491 * tests/Makefile.in (check): Invoke it.
492 (SOURCE_FILES): Add it.
493 * NEWS: Mention the new functionality.
495 2023-03-31 Bruno Haible <bruno@clisp.org>
497 Add some transliterations for mathematical symbols.
498 Based on <https://sourceware.org/bugzilla/show_bug.cgi?id=23132>
499 and the translit_neutral change in
500 <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=513aaa0d782f8fae36732d06ca59d658149f0139>.
501 Reported by Mike Fulton <mikefultonpersonal@gmail.com> in
502 <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2023-03/msg00002.html>.
503 * lib/translit.def: Add a couple of transliterations in the range
507 2023-03-31 Bruno Haible <bruno@clisp.org>
509 Upgrade transliterations to Unicode 15.0.0.
510 * tools/gen-translit-def-part.lisp: Update comments.
511 * lib/translit.def: Include differences between the generated files
512 translit-part-4.0.0.def and translit-part-15.0.0.def.
514 2023-03-31 Bruno Haible <bruno@clisp.org>
516 Make table of transliterations more maintainable.
517 * tools/gen-translit-def-part.lisp: New file.
518 * Makefile.in (SOURCE_FILES): Add it.
520 2023-03-31 Bruno Haible <bruno@clisp.org>
522 Fix table of transliterations.
523 * lib/translit.def: Sort according to Unicode code point.
525 2023-02-13 Bruno Haible <bruno@clisp.org>
527 Fix iconv link command for Cygwin.
528 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 .
529 Rationale: libintl may depends on libiconv.
530 * src/Makefile.in (install): On the link command line, mention libintl
533 2023-01-29 Bruno Haible <bruno@clisp.org>
535 Fix a clang warning "a function declaration without a prototype...".
536 * lib/loop_wchar.h (mbrtowc): Don't declare. Drop portability to BeOS.
538 2022-07-18 Bruno Haible <bruno@clisp.org>
540 Make autopull.sh more suited for continuous integration.
541 * autopull.sh: Support option --one-time.
543 2022-07-18 Bruno Haible <bruno@clisp.org>
545 Move gnulib-tool invocation back from autopull.sh to autogen.sh.
546 * autogen.sh: Revert last change. Improve comments.
547 * autopull.sh: Only call 'gitsub.sh pull'.
548 * HACKING: Mention autopull.sh.
550 2022-07-17 Bruno Haible <bruno@clisp.org>
552 Split autogen.sh into autopull.sh and autogen.sh.
553 * autopull.sh: New file, based on autogen.sh.
554 * autogen.sh: Remove code that was moved to autopull.sh. Remove
555 --skip-gnulib option.
556 * Makefile.devel (all): Remove srclib/Makefile.gnulib.
557 * Makefile.in (SOURCE_FILES): Add autogen.sh.
558 * HACKING: Mention autopull.sh.
560 2022-05-22 Bruno Haible <bruno@clisp.org>
562 Add GNU Project notice.
563 * JOIN-GNU: New file. Inspired by a suggestion from José E. Marchesi
564 on the gnu-prog-discuss mailing list.
565 * README: Refer to it.
566 * Makefile.in (SOURCE_FILES): Add it.
568 2022-05-15 Bruno Haible <bruno@clisp.org>
570 Switch to libtool 2.4.7.
571 * m4/libtool.m4: Update from libtool-2.4.7, with modifications:
572 2008-04-06 Bruno Haible <bruno@clisp.org>
573 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
574 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
576 * m4/ltoptions.m4: Likewise.
577 * m4/ltsugar.m4: Likewise.
578 * m4/ltversion.m4: Likewise.
579 * m4/lt~obsolete.m4: Likewise.
580 * build-aux/ltmain.sh: Update from libtool-2.4.7, with modifications:
581 2017-07-15 Bruno Haible <bruno@clisp.org>
582 Allow building statically linked binaries, through
583 LDFLAGS="-static". Apply patch from
584 <https://lists.gnu.org/archive/html/bug-libtool/2017-07/msg00000.html>.
585 * build-aux/ltmain.sh (func_mode_help, func_mode_link): In the
586 link mode, accept option '-static-uninstalled-libs' in place of
587 '-static', and make '-static' an equivalent of '-all-static'.
589 2022-04-13 Bruno Haible <bruno@clisp.org>
591 Fix undefined behaviour.
592 * tests/test-shiftseq.c (main2): Make input array larger.
594 2022-02-12 Bruno Haible <bruno@clisp.org>
597 * po/ro.po: Update Romanian translations.
598 * po/wa.po: Update Walloon translations.
600 2022-02-12 Bruno Haible <bruno@clisp.org>
602 Prepare for version 1.17.
603 * configure.ac: Bump version number to 1.17.
604 * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
605 * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 9:0:7.
606 * src/iconv.c (print_version): Update copyright year.
607 * windows/iconv.rc: Likewise.
608 * windows/libiconv.rc: Likewise.
609 * README: Update download link.
611 2022-02-12 Bruno Haible <bruno@clisp.org>
613 Update source file list (regression 2022-01-23).
614 * lib/Makefile.in (SOURCE_FILES): Add encodings_zos.def, ebcdic*.h.
615 (GENERATED_FILES): Add aliases_zos.h, canonical_zos.h.
616 * tests/Makefile.in (SOURCE_FILES): Add IBM-*.TXT.
618 2022-01-23 Bruno Haible <bruno@clisp.org>
621 * NEWS: Mention the EBCDIC encodings.
623 2022-01-23 Bruno Haible <bruno@clisp.org>
625 Optimize the EBCDIC table sizes.
626 * lib/converters.h (DEDUPLICATE_TABLES): New macro.
627 * lib/ebcdic1025.h: Deduplicate tables with ebcdic880.h.
628 * lib/ebcdic1123.h: Deduplicate tables with ebcdic1025.h.
629 * lib/ebcdic1132.h: Deduplicate tables with ebcdic838.h.
630 * lib/ebcdic1153.h: Deduplicate tables with ebcdic870.h.
631 * lib/ebcdic1154.h: Deduplicate tables with ebcdic880.h.
632 * lib/ebcdic1155.h: Deduplicate tables with ebcdic1026.h.
633 * lib/ebcdic1156.h: Deduplicate tables with ebcdic1112.h.
634 * lib/ebcdic1157.h: Deduplicate tables with ebcdic1122.h.
635 * lib/ebcdic1158.h: Deduplicate tables with ebcdic1154.h, ebcdic1123.h.
636 * lib/ebcdic1160.h: Deduplicate tables with ebcdic838.h.
637 * lib/ebcdic1164.h: Deduplicate tables with ebcdic1130.h.
638 * lib/ebcdic1165.h: Deduplicate tables with ebcdic870.h.
639 * lib/ebcdic1166.h: Deduplicate tables with ebcdic1154.h.
640 * lib/ebcdic4971.h: Deduplicate tables with ebcdic875.h.
641 * lib/ebcdic12712.h: Deduplicate tables with ebcdic424.h.
643 2022-01-23 Bruno Haible <bruno@clisp.org>
645 New EBCDIC encodings.
646 Reported by Ulrich Schwab and Calvin Buckley via Jack Woehr.
647 * NOTES: Mention how to enable EBCDIC encodings.
648 * tests/IBM-*.TXT: New files.
649 * tools/8bit_tab_to_h.c (main): Emit copyright header with year 2022.
650 * tools/Makefile: Add rules for generating ebcdic*.h.
651 * lib/ebcdic*.h: New files, automatically generated by tools/Makefile.
652 * lib/ebcdic838.h: Tweak reverse mapping manually.
653 * lib/ebcdic1160.h: Likewise.
654 * lib/converters.h: Include all ebcdic*.h.
655 * lib/encodings_zos.def: New file.
656 * lib/genaliases2.c: Include encodings_zos.def.
657 * lib/genflags.c: Likewise.
658 * Makefile.devel (lib/aliases_zos.h lib/canonical_zos.h): New rule.
659 (lib/flags.h, totally-clean): Update.
660 * lib/aliases2.h: Include aliases_zos.h.
661 * lib/iconv.c (USE_ZOS): New macro.
662 Include encodings_zos.def, canonical_zos.h.
663 * README, man/iconv_open.3: Document the IBM-* encodings.
664 * tests/Makefile.in (check-extra-yes): Also test the EBCDIC encodings.
666 2022-01-04 Bruno Haible <bruno@clisp.org>
668 Update after gnulib changed.
669 * gnulib-local/m4/alloca.m4 (gl_FUNC_ALLOCA): Set GL_GENERATE_ALLOCA_H
670 instead of ALLOCA_H. Drop AC_SUBST and AM_CONDITIONAL invocations.
672 2021-09-19 Bruno Haible <bruno@clisp.org>
674 tests: Avoid check-subst failures in QEMU user-mode environments.
675 * Makefile.devel (GNULIB_MODULES): Add stdbool.
676 (gnulib-imported-files): Copy also tests/qemu.h.
677 * tests/is-native.c: New file.
678 * tests/Makefile.in (is-native, is-native.@OBJEXT@): New targets.
679 (clean): Remove the 'is-native' program.
680 (SOURCE_FILES): Add is-native.c.
681 (IMPORTED_FILES): Add qemu.h.
682 * tests/check-subst: Invoke 'locale charmap' only in native
685 2021-06-27 Bruno Haible <bruno@clisp.org>
688 Reported at <https://savannah.gnu.org/bugs/?60837>.
689 * README: Overhaul the paragraph that mentions iconv.m4.
691 2021-06-06 Bruno Haible <bruno@clisp.org>
693 gnulib-local: Put real license notice into the source files.
694 * gnulib-local/lib/alloca.in.h: Use an LGPLv2+ notice.
696 2021-02-28 Bruno Haible <bruno@clisp.org>
699 * DEPENDENCIES: List the normal dependencies of a package with an
700 Autoconf-generated configure file.
702 2021-02-07 Bruno Haible <bruno@clisp.org>
704 Support creating shared libraries on MidnightBSD.
705 Patch from <https://savannah.gnu.org/patch/?10007>.
706 * m4/libtool.m4: Treat MidnightBSD like FreeBSD.
707 * build-aux/ltmain.sh: Likewise.
709 2021-01-31 Bruno Haible <bruno@clisp.org>
711 Update after gnulib changed on 2020-08-26.
712 * configure.ac: Test $iconv_arg1, not $am_cv_proto_iconv_arg1.
714 2021-01-31 Bruno Haible <bruno@clisp.org>
716 Switch to autoconf 2.71.
717 * autogen.sh: Update comment.
718 * configure.ac: Use AS_HELP_STRING instead of AC_HELP_STRING. Invoke
719 AC_C_BIGENDIAN instead of CL_WORDS_LITTLEENDIAN.
720 * m4/eilseq.m4: Require Autoconf >= 2.61.
721 (AC_EILSEQ): Improve quoting. Use AC_COMPUTE_INT instead of
723 * m4/endian.m4: Remove file.
724 * Makefile.in (SOURCE_FILES): Remove it.
726 2020-12-08 Bruno Haible <bruno@clisp.org>
728 Switch to autoconf 2.70.
729 * Makefile.devel (AUTOCONF, AUTOHEADER): Remove '-2.69' suffix.
730 * HACKING: Remove sentence about symbolic links.
731 * autogen.sh: Update comment.
733 2020-08-31 Bruno Haible <bruno@clisp.org>
735 Fix some -Wcast-qual warning, reported by clang.
736 * lib/iconv.c (compare_by_name): Add more 'const'.
737 (iconv_canonicalize): Cast value to 'unsigned char', not pointer to 'unsigned char *'.
738 * lib/iconv_open1.h: Likewise.
740 2020-08-30 Bruno Haible <bruno@clisp.org>
742 Make sure that build-aux/compile is in the tarball.
743 * autogen.sh: Fetch also 'build-aux/compile' through gnulib-tool.
744 * Makefile.devel (srclib/Makefile.in): Don't fetch nor delete
746 * Makefile.in (AUTOMAKE_IMPORTED_FILES): Remove build-aux/compile.
747 (IMPORTED_FILES): Add build-aux/compile.
749 2020-08-29 Bruno Haible <bruno@clisp.org>
751 Update after gnulib changed.
752 * configure.ac (AC_PREREQ): Bump minimum Autoconf version to 2.64.
754 2020-08-06 Bruno Haible <bruno@clisp.org>
756 Avoid a GCC warning with GCC >= 7.
757 Reported by Reini Urban <rurban@cpan.org>
758 in <https://savannah.gnu.org/bugs/?58903>.
759 * lib/gentranslit.c (main): Reset i to 0 each time p gets a new value.
760 Add assertion about i's possible values.
762 2020-04-05 Bruno Haible <bruno@clisp.org>
764 Fix an autogen.sh failure (regression from 2016-12-04).
765 Reported by Petr Ovtchenkov <ptr@void-ptr.info> in
766 <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2020-04/msg00003.html>.
767 * autogen.sh: Invoke also the Makefile target srclib/Makefile.in, so as
768 to get build-aux/install-sh. Finish the "copy files" phase before recursing
769 through the subpackages tree through Makefile.devel.
770 * Makefile.devel: Reorder targets.
772 2020-04-04 Bruno Haible <bruno@clisp.org>
775 * gnulib-local/modules/mbstate (License): Set to LGPLv2+.
777 2020-04-04 Bruno Haible <bruno@clisp.org>
779 Change the license of the library from LGPL 2.0 to LGPL 2.1.
780 * COPYING.LIB: Upgrade to LGPL 2.1.
782 2019-12-23 Bruno Haible <bruno@clisp.org>
784 Do export the symbol 'locale_charset' (needed by GNU bash).
785 * lib/Makefile.in (DEFS): Define also BUILDING_LIBCHARSET.
787 2019-09-01 Bruno Haible <bruno@clisp.org>
789 build: Add support for shallow-cloning of subdirectories.
790 * gitsub.sh (func_usage): Document allowed git options with 'git pull'.
791 (func_pull): Accept GIT_OPTIONS argument.
792 (pull): Parse git options before complaining about too many arguments.
793 Pass the git options to func_pull.
795 2019-07-05 Bruno Haible <bruno@clisp.org>
797 Don't export the symbol 'aliases_lookup' on non-ELF platforms.
798 * Makefile.devel (lib/aliases.h, lib/aliases_sysaix.h,
799 lib/aliases_syshpux.h, lib/aliases_sysosf1.h, lib/aliases_syssolaris.h):
800 Add a 'static' keyword in front of the declaration of aliases_lookup.
802 2019-07-02 Bruno Haible <bruno@clisp.org>
804 Update to current gnulib.
805 * Makefile.devel (GNULIB_MODULES): Add lib-symbol-visibility.
806 (srclib/Makefile.gnulib): Copy codeset.m4.
807 * srclib/Makefile.am (AM_CFLAGS): Initialize.
809 2019-07-02 Bruno Haible <bruno@clisp.org>
811 Drop unused macro gl_GLIBC21.
812 * autogen.sh: Don't copy glibc21.m4.
814 2019-05-22 Bruno Haible <bruno@clisp.org>
817 Reported by Paul Hardy <unifoundry@gmail.com>.
818 * lib/jisx0213.h: Fix comment about the underlying standard version.
820 2019-05-11 Bruno Haible <bruno@clisp.org>
822 Update bug reporting instructions.
823 * README: Tell users to report bugs in the bug tracker or by email.
824 * src/iconv.c (usage): Likewise.
825 (print_version): Move URL out of translatable string.
827 2019-04-26 Bruno Haible <bruno@clisp.org>
830 $ rsync -Lrtvz translationproject.org::tp/latest/libiconv/ po/new
832 $ for f in *.po; do \
833 msgmerge --update --lang=${f%.po} --previous $f ../libiconv.pot; \
838 2019-04-26 Bruno Haible <bruno@clisp.org>
841 $ cd po; make update-po
843 2019-04-26 Bruno Haible <bruno@clisp.org>
845 Prepare for version 1.16.
846 * configure.ac: Bump version number to 1.16.
847 * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
848 * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 8:1:6.
849 * src/iconv.c (print_version): Update copyright year.
850 * windows/iconv.rc: Likewise.
851 * windows/libiconv.rc: Likewise.
852 * README: Update download link.
854 2019-04-26 Bruno Haible <bruno@clisp.org>
856 Tweak exported symbols when --enable-relocatable is used.
857 * lib/Makefile.in (DEFS): Map 'relocate2' to a different symbol.
859 2019-04-01 Bruno Haible <bruno@clisp.org>
861 build: Separate git operations from build operations.
862 * gitsub.sh: New file, from gnulib.
863 * .gitmodules: New file.
864 * autogen.sh: Remove all git operations. Look at GNULIB_SRCDIR
865 environment variable. Ignore the GNULIB_TOOL environment variable.
866 * HACKING: Explain when to use gitsub.sh.
868 2019-03-07 Bruno Haible <bruno@clisp.org>
870 Avoid signed integer overflow during shifts.
871 Reported by Jeffrey Walton <noloader@gmail.com>.
872 * lib/tcvn.h (tcvn_wctomb): Use unsigned integer type for bit mask
874 * lib/viscii.h (viscii_wctomb): Likewise.
876 2019-03-04 Bruno Haible <bruno@clisp.org>
878 Add support for --enable-relocatable to libcharset.
879 * autogen.sh: Copy some more files to libcharset/build-aux/ and
882 2019-03-04 Bruno Haible <bruno@clisp.org>
884 Update --enable-relocatable support after gnulib changed.
885 * configure.ac: Move the LT_INIT invocation before the gl_RELOCATABLE
886 invocation. Remove unused argument to gl_RELOCATABLE.
888 2019-01-27 Bruno Haible <bruno@clisp.org>
890 Accommodate a shell that is not in /bin/sh.
891 * Makefile.in (SHELL): Use the value found by configure.
892 * lib/Makefile.in (SHELL): Likewise.
893 * man/Makefile.in (SHELL): Likewise.
894 * src/Makefile.in (SHELL): Likewise.
895 * tests/Makefile.in (SHELL): Likewise.
896 (check, check-extra-yes): Use SHELL to run the check-* scripts.
898 2019-01-27 Bruno Haible <bruno@clisp.org>
900 Update after gnulib changed.
901 * Makefile.in (GNULIB_IMPORTED_FILES): Remove build-aux/snippet/*.
903 2019-01-27 Bruno Haible <bruno@clisp.org>
905 Update support for building with MSVC. Automake does not install ar-lib.
906 * autogen.sh: Fetch build-aux/ar-lib here.
907 * Makefile.devel (srclib/Makefile.in): Don't fetch build-aux/ar-lib
909 * Makefile.in (AUTOMAKE_IMPORTED_FILES): Remove build-aux/ar-lib.
910 (IMPORTED_FILES): Add build-aux/ar-lib.
912 2019-01-06 Bruno Haible <bruno@clisp.org>
914 Revisit handling of file descriptors closed by the parent process.
915 * src/iconv.c (main): Add comment.
917 2018-10-23 Bruno Haible <bruno@clisp.org>
919 Remove outdated DJGPP build infrastructure.
920 Approved by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
921 * djgpp: Remove directory.
922 * INSTALL.djgpp: Remove file.
923 * Makefile.in (SOURCE_FILES): Remove them.
925 2018-10-23 Bruno Haible <bruno@clisp.org>
927 Update after gnulib changed.
928 * configure.ac (AC_PREREQ): Bump minimum Autoconf version to 2.63.
930 2018-09-22 Bruno Haible <bruno@clisp.org>
932 Avoid some warnings in MSVC build.
933 * include/export.h: Handle MSVC compiler as well.
935 2018-09-22 Bruno Haible <bruno@clisp.org>
937 Update from gnulib. Move mapping tables into the code.
938 * autogen.sh: Don't create libcharset/m4/relocatable-lib.m4.
939 * Makefile.in (mostlyclean, clean, distclean, maintainer-clean): Don't
940 remove lib/charset.alias.
941 * tests/check-subst: Don't set CHARSETALIASDIR.
943 2018-05-04 Bruno Haible <bruno@clisp.org>
945 Drop special instructions for OSF/1.
946 * INSTALL.generic: Remove the recommendation for OSF/1.
948 2018-05-04 Bruno Haible <bruno@clisp.org>
950 Simplify: Remove the ability to install a preloadable library.
951 * preload/*: Remove directory.
952 * Makefile.devel: Don't recurse into 'preload'.
953 * Makefile.in: Likewise.
954 * configure.ac: Don't declare 'preload' as a subdirectory.
955 * README, NEWS: Update.
957 2018-05-04 Bruno Haible <bruno@clisp.org>
959 Simplify code. Drop support for Borland C++ on Windows.
960 * lib/iconv.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
962 * lib/iconv_open1.h: Likewise.
964 2018-05-04 Bruno Haible <bruno@clisp.org>
966 * lib/relocatable.c: Update from gnulib.
968 2018-05-04 Bruno Haible <bruno@clisp.org>
970 Switch to automake 1.16.
971 * autogen.sh: Update comment.
972 * Makefile.devel (AUTOMAKE, ACLOCAL): Switch to version 1.16.
973 * libcharset/Makefile.devel (ACLOCAL): Likewise.
974 * preload/Makefile.devel (ACLOCAL): Likewise.
976 2018-03-27 Bruno Haible <bruno@clisp.org>
979 * README: Don't recommend to use --prefix=/usr/local, as it produces
980 problems with GCC (since GCC's treatment of /usr/local/include and
981 /usr/local/lib is inconsistent by default). Don't recommend to use
982 the iconv.m4 installed by GNU gettext, because it won't work when
983 GNU automake and GNU gettext are installed with different --prefix
984 options; instead recommend the 'iconv' module from gnulib.
986 2018-01-27 Bruno Haible <bruno@clisp.org>
989 * INSTALL.windows: Renamed from README.windows.
990 * INSTALL.djgpp: Renamed from README.djgpp.
991 * Makefile.in (SOURCE_FILES): Update.
993 2018-01-03 Bruno Haible <bruno@clisp.org>
995 Fix installation in 64-bit mode on AIX.
996 * lib/Makefile.in (AR): New variable.
997 (install): Use it instead of hardcoding 'ar'.
999 2017-11-26 Bruno Haible <bruno@clisp.org>
1001 Avoid end-of-lines problem in generated shell scripts on Cygwin.
1002 Patch by Feiyun Wang <feiyunw@yahoo.com>.
1003 * lib/genaliases.c (main): Create canonical.sh and canonical_local.sh
1004 with Unix end-of-line characters, regardless of Cygwin choice of
1005 text mode vs. binary mode.
1007 2017-07-15 Bruno Haible <bruno@clisp.org>
1009 Allow building statically linked binaries, through LDFLAGS="-static".
1011 <https://lists.gnu.org/archive/html/bug-libtool/2017-07/msg00000.html>.
1012 * build-aux/ltmain.sh (func_mode_help, func_mode_link): In the link
1013 mode, accept option '-static-uninstalled-libs' in place of '-static',
1014 and make '-static' an equivalent of '-all-static'.
1016 2017-07-15 Bruno Haible <bruno@clisp.org>
1018 Don't attempt to build preloadable_libiconv.so when linking statically.
1019 * preload/configure.ac (enable_shared, enable_static): Don't force
1020 shared libraries when LDFLAGS indicates static linking.
1021 (PLUGLIB): Set to empty when is not configured for building shared
1024 2017-07-15 Bruno Haible <bruno@clisp.org>
1026 Get rid of autom4te.cache directories, as far as possible.
1027 * Makefile.devel (srclib/Makefile.in, aclocal.m4, configure,
1028 config.h.in): Remove autom4te.cache after invoking aclocal, autoconf,
1029 autoheader, automake.
1030 * preload/Makefile.devel (aclocal, configure): Likewise.
1032 2017-05-18 Bruno Haible <bruno@clisp.org>
1034 * lib/relocatable.h: Update from gnulib.
1035 * lib/relocatable.c: Update from gnulib.
1037 2017-01-30 Bruno Haible <bruno@clisp.org>
1039 Prepare for version 1.15.
1040 * src/iconv.c (print_version): Update copyright year.
1041 * windows/iconv.rc: Likewise.
1042 * windows/libiconv.rc: Likewise.
1044 2016-12-29 Bruno Haible <bruno@clisp.org>
1046 Make Makefile.devel consistent with .gitignore.
1047 * Makefile.devel (srclib/Makefile.in): Depend on aclocal.m4.
1048 (totally-clean): Remove also aclocal.m4.
1050 2016-12-25 Bruno Haible <bruno@clisp.org>
1053 * autogen.sh: Emit a "done" diagnostic when autogen.sh completed
1056 2016-12-25 Bruno Haible <bruno@clisp.org>
1058 Reorder Makefile.devel.
1059 * Makefile.devel: Reorder: put gnulib targets before autotools targets.
1061 2016-12-14 Bruno Haible <bruno@clisp.org>
1063 Cleanup useless removals.
1064 * lib/Makefile.in (distclean): No need to remove 'libtool'.
1066 2016-12-04 Bruno Haible <bruno@clisp.org>
1069 * Makefile.devel: Update comments about release process.
1071 2016-12-04 Bruno Haible <bruno@clisp.org>
1073 Create tarballs through an Automake-like "make dist" command.
1074 * Makefile.in (SOURCE_FILES, LIBTOOL_IMPORTED_FILES,
1075 AUTOMAKE_OLD_IMPORTED_FILES, AUTOMAKE_IMPORTED_FILES, IMPORTED_FILES,
1076 GENERATED_FILES, DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
1077 (distdir): New target.
1078 (PACKAGE, VERSION, TAR, GZIP): New macros.
1080 * lib/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
1081 DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
1082 (distdir): New target.
1083 * man/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
1084 DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
1085 (distdir): New target.
1086 * preload/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
1087 DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
1088 (distdir): New target.
1089 * src/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
1090 DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
1091 (distdir): New target.
1092 * tests/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
1093 DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
1094 (distdir): New target.
1096 2016-12-04 Bruno Haible <bruno@clisp.org>
1098 Remove duplicates of imported files from version control.
1099 * autogen.sh: Copy imported files to libcharset.
1101 2016-12-04 Bruno Haible <bruno@clisp.org>
1103 Always use the newest released copies of files brought in from Automake.
1104 * Makefile.devel (srclib/Makefile.in): Make sure to get new versions of
1105 files brought in by automake.
1106 * build-aux/install-sh: Remove from version control.
1107 * build-aux/missing: Likewise.
1109 2016-12-04 Bruno Haible <bruno@clisp.org>
1111 Always use the newest copies of config.guess, config.sub.
1112 * Makefile.devel (gnulib-imported-files): New target.
1113 * autogen.sh: Invoke it.
1114 * build-aux/config.guess: Remove from version control.
1115 * build-aux/config.sub: Likewise.
1117 2016-12-04 Bruno Haible <bruno@clisp.org>
1119 Always use the newest copy of fcntl-o.m4.
1120 * m4/fcntl-o.m4: Remove file. Rely on srcm4/fcntl-o.m4 instead.
1122 2016-12-04 Bruno Haible <bruno@clisp.org>
1124 Remove obsolete documentation.
1125 * PORTS: Remove file.
1127 2016-12-03 Bruno Haible <bruno@clisp.org>
1129 Make Makefile.devel more useful for the users of the released tarball.
1130 * Makefile.devel (srclib/Makefile.gnulib): Don't force this target.
1131 (gnulib-clean): New target.
1132 (totally-clean): New target. Do the removals from autogen.sh. Also,
1133 remove lib/aliases*.gperf, lib/canonical*.h, man/iconvctl.3.html,
1134 man/iconv_open_into.3.html.
1135 * autogen.sh: Invoke target gnulib-clean before srclib/Makefile.gnulib.
1136 Invoke target totally-clean before all.
1137 * preload/Makefile.devel (totally-clean): New target.
1139 2016-12-03 Bruno Haible <bruno@clisp.org>
1141 Modernize configure.ac.
1142 * configure.ac: Use 2-argument AC_INIT. Avoid an AM_INIT_AUTOMAKE
1144 * preload/configure.ac: Use 2-argument AC_INIT. Use AC_CONFIG_SRCDIR.
1146 2016-12-03 Bruno Haible <bruno@clisp.org>
1148 Towards reproducible builds.
1149 * Makefile.devel (man/%.html): Remove the CreationDate comment line
1152 2016-12-04 Bruno Haible <bruno@clisp.org>
1154 Update to gettext-0.19.8.1.
1155 * ABOUT-NLS: Update through 'gettextize'.
1157 2016-12-03 Bruno Haible <bruno@clisp.org>
1159 Update documentation.
1160 * HACKING: Refer to the Git repository.
1162 2016-12-03 Bruno Haible <bruno@clisp.org>
1164 Avoid compilation warnings in 'genflags' program.
1165 * lib/genflags.c: Avoid warnings from GCC's -Wunused-function option.
1167 2016-12-02 Bruno Haible <bruno@clisp.org>
1169 * relocatable.c: Update from gnulib.
1171 2016-11-25 Bruno Haible <bruno@clisp.org>
1173 Prepare for version 1.15.
1174 * configure.ac: Bump version number to 1.15.
1176 * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
1177 * windows/iconv.rc: Update.
1178 * windows/libiconv.rc: Update.
1179 * Makefile.devel: Update comments.
1180 * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 8:0:6.
1181 * src/iconv.c (print_version): Update copyright year.
1183 2016-11-23 Bruno Haible <bruno@clisp.org>
1185 Update installation instructions for Windows.
1186 * README.windows: Assume a 64-bit Windows. Explain both 32-bit and
1187 64-bit builds. Add instructions for the MS Visual C/C++ tool chain.
1188 Revamp instructions for Cygwin.
1190 2016-11-23 Bruno Haible <bruno@clisp.org>
1192 Drop the nickname "woe32".
1193 * README.windows: Renamed from README.woe32.
1195 2016-11-22 Bruno Haible <bruno@clisp.org>
1197 Update support for building with MSVC.
1198 * Makefile.devel (srclib/Makefile.in): Import 'ar-lib' and 'compile'
1200 * lib/Makefile.in (install-lib, install): Install the .la file with
1201 $(INSTALL), not $(INSTALL_DATA). Otherwise the native Windows DLL gets
1202 installed without execution permissions, and programs linked to it fail:
1203 in a Cygwin shell with exit code 127, or from a cmd.exe window with a
1204 dialog "The application was unable to start correctly (0xc0000022)."
1206 2016-11-19 Bruno Haible <bruno@clisp.org>
1208 Fix link error when compiling with gcc -O0.
1209 * lib/iconv.c (aliases2_lookup): Make static.
1210 Reported by Chung-Lin Tang <chunglin.tang@gmail.com>
1211 at https://savannah.gnu.org/bugs/?47953 .
1213 2016-11-17 Bruno Haible <bruno@clisp.org>
1215 UTF-8: Reject surrogates and out-of-range code points.
1216 * lib/utf8.h (utf8_mbtowc, utf8_wctomb): Reject code points in the
1217 range 0xD800..0xDFFF and >= 0x110000.
1218 * tests/genutf8.c (main): Don't emit mappings for 0xD800..0xDFFF.
1220 2016-10-22 Bruno Haible <bruno@clisp.org>
1222 Switch to libtool 2.4.6.
1223 * m4/libtool.m4: Update from libtool-2.4.6, with modifications:
1224 2008-04-06 Bruno Haible <bruno@clisp.org>
1225 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
1226 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
1227 to ${CONFIG_SHELL}..
1228 * m4/ltoptions.m4: Likewise.
1229 * m4/ltversion.m4: Likewise.
1230 * build-aux/ltmain.sh: Likewise.
1232 2016-10-14 Bruno Haible <bruno@clisp.org>
1234 Use 'size_t', not 'int', for the length of a string.
1235 * lib/iconv.c: Include <limits.h>.
1236 * lib/genflags.c: Likewise.
1237 * lib/converters.h (struct mbtowc_funcs, struct wctomb_funcs): Change
1238 'int n' parameter to 'size_t n'.
1239 (RET_COUNT_MAX): New macro.
1240 * lib/*.h: Use 'size_t n' instead of 'int n'.
1241 * lib/ucs2.h (ucs2_mbtowc): Make sure 'count' does not cause an 'int'
1243 * lib/ucs4.h (ucs4_mbtowc): Likewise.
1244 * lib/utf16.h (utf16_mbtowc): Likewise.
1245 * lib/utf32.h (utf32_mbtowc): Likewise.
1246 * tools/8bit_tab_to_h.c: Generate function signatures with 'size_t n'.
1247 * tools/cjk_tab_to_h.c: Likewise.
1248 * NEWS: Mention the change.
1250 2016-10-04 Bruno Haible <bruno@clisp.org>
1252 Extend CP1255 mapping.
1253 * lib/cp1255.h (cp1255_2uni, cp1255_page05): Map 0xCA to U+05BA.
1254 * tests/CP1255.TXT: Likewise.
1255 This matches https://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WindowsBestFit/bestfit1255.txt
1256 and what the native Windows converter does since at least Windows XP.
1258 2016-10-01 Ben Noordhuis <info@bnoordhuis.nl> (tiny change)
1259 Bruno Haible <bruno@clisp.org>
1261 Remove large stack requirement from gentranslit.
1262 * lib/gentranslit.c (main): Heap-allocate large arrays.
1263 * Makefile.devel (lib/translit.h): Remove 'ulimit -s unlimited' command.
1265 2015-12-10 Ben Noordhuis <info@bnoordhuis.nl> (tiny change)
1267 Remove unused array from gentranslit.
1268 * lib/gentranslit.c (main): Remove unused array.
1269 * Makefile.devel (CC): Add -Wall option.
1270 Reported in https://savannah.gnu.org/bugs/?46663 .
1272 2016-10-01 Bruno Haible <bruno@clisp.org>
1275 * src/iconv.c (main): Increment i after parsing the --silent option.
1276 Reported in https://savannah.gnu.org/bugs/?41187 .
1278 2016-10-01 Bruno Haible <bruno@clisp.org>
1280 Update to current gnulib.
1281 * Makefile.devel (GNULIB_MODULES): Remove memmove.
1282 * tests/Makefile.in (INCLUDES): Make sure to include the top-level
1283 "config.h". Needed for the 'binary-io' module.
1285 2016-10-01 Bruno Haible <bruno@clisp.org>
1287 Switch to automake 1.15.
1288 * autogen.sh: Update comment.
1289 * Makefile.devel (AUTOMAKE, ACLOCAL): Switch to version 1.15.
1290 (srclib/Makefile.in): Don't remove auxiliary files brought in by
1292 * preload/Makefile.devel (ACLOCAL): Switch to version 1.15.
1293 * srclib/Makefile.am (AUTOMAKE_OPTIONS): Add subdir-objects.
1294 * build-aux/missing: Update from automake-1.15.
1296 2016-10-01 Bruno Haible <bruno@clisp.org>
1298 Remove autogenerated doc files from version control.
1299 * man/iconvctl.3.html: Remove file.
1300 * man/iconv_open_into.3.html: Remove file.
1302 2012-12-06 Bruno Haible <bruno@clisp.org>
1304 Change copyright holder of man pages.
1305 * man/*.[13]: Replace myself with FSF.
1307 2012-06-30 Bruno Haible <bruno@clisp.org>
1309 Make it possible to run 'genaliases2' on native Windows.
1310 * lib/genaliases2.c (main): Expect 3 arguments. Open the output files
1311 explicitly. Complain if they don't exist.
1312 * Makefile.devel (lib/aliases_*.h): Pass the output filenames as
1313 arguments to genaliases.
1314 Reported at <https://savannah.gnu.org/bugs/?36748>.
1316 Make it possible to run 'genaliases' on native Windows.
1317 * lib/genaliases.c (main): Expect 3 arguments. Open the output files
1318 explicitly. Complain if they don't exist. Improve error checking.
1319 * Makefile.devel (lib/aliases*.h): Pass the output filenames as
1320 arguments to genaliases.
1321 Reported at <https://savannah.gnu.org/bugs/?36748>.
1323 2012-05-13 Bruno Haible <bruno@clisp.org>
1325 Tweak the GB18030 converter to map 0x8135F437 to U+E7C7.
1326 * lib/gb18030.h (gb18030_pua2charset, gb18030_wctomb): Remove mapping
1327 from U+E7C7 to 0xA8BC.
1328 * lib/gb18030uni.h (gb18030uni_mbtowc): Treat 0x8135F437 as a special
1330 (gb18030uni_wctomb): Treat U+E7C7 as a special case.
1331 * tests/GB18030-BMP.TXT: Map 0x8135F437 to U+E7C7, not U+1E3F.
1332 * tests/GB18030.IRREVERSIBLE.TXT: Remove irreversible mappings for
1333 0x8135F437 and U+E7C7.
1335 2012-04-28 Bruno Haible <bruno@clisp.org>
1337 Switch to autoconf 2.69 and automake 1.12.
1338 * autogen.sh: Update comment.
1339 * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.69.
1340 (AUTOMAKE, ACLOCAL): Switch to version 1.12.
1341 * preload/Makefile.devel (AUTOCONF): Switch to version 2.69.
1342 (ACLOCAL): Switch to version 1.12.
1344 2012-03-24 Bruno Haible <bruno@clisp.org>
1346 Avoid a GCC warning.
1347 * lib/isoir165.h (isoir165_mbtowc): Don't shadow the 'ret' variable.
1349 2012-01-26 Bruno Haible <bruno@clisp.org>
1352 * README: Quote 'like this', not `like this', as per the recent change
1353 to the GNU coding standards.
1355 * gnulib-local/lib/xmalloc.c: Likewise.
1356 * lib/config.h.in: Likewise.
1357 * src/iconv.c (usage): Likewise.
1358 * tests/uniq-u.c: Likewise.
1359 * tools/cjk_tab_to_h.c (output_uni2charset_sparse, do_jisx0213):
1361 * lib/big5.h: Update accordingly.
1362 * lib/cns11643_inv.h: Likewise.
1363 * lib/cp932ext.h: Likewise.
1364 * lib/cp950ext.h: Likewise.
1365 * lib/gb12345ext.h: Likewise.
1366 * lib/gb2312.h: Likewise.
1367 * lib/gbkext_inv.h: Likewise.
1368 * lib/hkscs1999.h: Likewise.
1369 * lib/hkscs2001.h: Likewise.
1370 * lib/hkscs2004.h: Likewise.
1371 * lib/hkscs2008.h: Likewise.
1372 * lib/isoir165ext.h: Likewise.
1373 * lib/jisx0208.h: Likewise.
1374 * lib/jisx0212.h: Likewise.
1375 * lib/jisx0213.h: Likewise.
1376 * lib/ksc5601.h: Likewise.
1377 * lib/uhc_1.h: Likewise.
1378 * lib/uhc_2.h: Likewise.
1380 2012-01-15 Bruno Haible <bruno@clisp.org>
1383 * lib/config.h.in (inline, mode_t, ssize_t): Copy snippets from top
1385 * tests/genutf8.c: Include config.h.
1386 * tests/gengb18030z.c: Likewise.
1387 * woe32dll/export.h (VARIABLE): Define to empty if not using GCC.
1389 2011-01-28 Bruno Haible <bruno@clisp.org>
1392 * woe32dll/export.h: Add a reference to the woe32dll writeup.
1394 2012-01-06 Bruno Haible <bruno@clisp.org>
1396 Update after gnulib changed.
1397 * gnulib-local/lib/error.h.diff: Update.
1399 2012-01-06 Bruno Haible <bruno@clisp.org>
1401 Talk about "native Windows API", not "Woe32".
1402 * lib/relocatable.c: Update comments to mention native Windows.
1404 2012-01-04 Bruno Haible <bruno@clisp.org>
1406 Talk about "native Windows API", not "Win32".
1407 * lib/relocatable.c: Update comments to mention native Windows.
1408 (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1410 2011-10-27 Bruno Haible <bruno@clisp.org>
1412 Fix bug with error handling in UCS-2, UCS-4, UTF-32 decoders.
1413 * lib/ucs2.h (ucs2_mbtowc): Increment count only after validating wc.
1414 * lib/ucs4.h (ucs4_mbtowc): Likewise.
1415 * lib/utf32.h (utf32_mbtowc): Likewise.
1416 Reported at <https://savannah.gnu.org/bugs/?34916>.
1418 2012-06-30 Bruno Haible <bruno@clisp.org>
1420 Improve ISO-2022-CP-MS versus CP932.
1421 * lib/iso2022_jpms.h (iso2022_jpms_mbtowc): Recognize characters from
1422 the rows 0x79..0x7C as rows from CP932.
1423 * tests/ISO-2022-JP-MS-snippet.alt: New file, renamed from
1424 tests/ISO-2022-JP-MS-snippet.
1425 * tests/ISO-2022-JP-MS-snippet.UTF-8: Update the rows that correspond
1426 to ESC $ B 0x79..0x7C.
1427 * tests/ISO-2022-JP-MS-snippet: Likewise.
1428 * tests/check-stateful: Also test the *-snippet.alt file if it exists.
1429 * tests/check-stateful.bat: Likewise.
1431 2012-06-30 Bruno Haible <bruno@clisp.org>
1433 Improve ISO-2022-CP-MS versus CP932.
1434 * lib/cp50221_0208_ext.h (cp50221_0208_ext_page30): Map U+301D like
1436 * lib/iso2022_jpms.h (iso2022_jpms_wctomb): Map U+663B to JISX0208
1437 0x7A 0x36, U+FFE2 to 0x7C 0x7B, U+FFE4 to 0x7C 0x7C.
1438 Reported by Jeff Diehl <diehl.jeff@gmail.com>.
1440 2011-10-23 Bruno Haible <bruno@clisp.org>
1442 New encoding ISO-2022-CP-MS.
1443 * NOTES: Mention ISO-2022-JP-MS.
1444 * tools/CP50221-0208-EXT.TXT: New file.
1445 * tools/CP50221-0212-EXT.TXT: New file.
1446 * tools/8bit_tab_to_h.c: Add comments about how to generate
1447 cp50221_0208_ext.h, cp50221_0212_ext.h.
1448 * tools/Makefile: Add rules for generating cp50221_0208_ext.h,
1450 * lib/cp50221_0208_ext.h: New file, mostly generated.
1451 * lib/cp50221_0212_ext.h: New file, mostly generated.
1452 * lib/iso2022_jpms.h: New file.
1453 * lib/converters.h: Include it.
1454 * lib/encodings.def: Add ISO-2022-JP-MS.
1455 * README, man/iconv_open.3: Add ISO-2022-JP-MS.
1456 * tests/ISO-2022-JP-MS-snippet: New file.
1457 * tests/ISO-2022-JP-MS-snippet.UTF-8: New file.
1458 * tests/Makefile.in (check): Also test ISO-2022-JP-MS.
1459 Reported by Jeff Diehl <diehl.jeff@gmail.com>.
1461 2011-10-23 Bruno Haible <bruno@clisp.org>
1463 * lib/encodings.def: Add comments about Windows names of encodings.
1465 2011-10-18 Bruno Haible <bruno@clisp.org>
1467 * m4/libtool.m4: Update from libtool-2.4.2, 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: Likewise.
1473 * m4/ltversion.m4: Likewise.
1474 * build-aux/ltmain.sh: Likewise.
1476 2011-10-03 Bruno Haible <bruno@clisp.org>
1478 * lib/relocatable.c: Update from gnulib.
1480 2011-09-02 Bruno Haible <bruno@clisp.org>
1482 Fix "make check" failure when $(srcdir) != $(builddir).
1483 * tests/Makefile.in (check): When $(srcdir) != ., temporarily copy
1484 GB18030.IRREVERSIBLE.TXT into the build directory.
1485 Reported by Christian Weisgerber <naddy@mips.inka.de>.
1487 2011-08-07 Bruno Haible <bruno@clisp.org>
1489 Ensure all HTML-formatted man pages are up-to-date.
1490 * Makefile.devel (all): Depend on man/iconvctl.3.html and
1491 man/iconv_open_into.3.html.
1493 2011-08-07 Bruno Haible <bruno@clisp.org>
1495 * Version 1.14 released.
1497 2011-08-07 Bruno Haible <bruno@clisp.org>
1499 * configure.ac: Bump version number to 1.14.
1501 * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
1502 * windows/iconv.rc: Update.
1503 * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 7:1:5.
1504 * src/iconv.c (print_version): Update copyright year.
1506 2011-08-07 Bruno Haible <bruno@clisp.org>
1508 Avoid a test failure on Solaris 2.6 and HP-UX 11.00.
1509 * tests/test-to-wchar.c (main): Skip the test if conversion to wchar_t
1512 2011-08-07 Bruno Haible <bruno@clisp.org>
1514 * tests/check-subst: Add comments about OSF/1.
1516 2011-08-07 Bruno Haible <bruno@clisp.org>
1518 * lib/relocatable.c: Update from gnulib.
1520 2011-08-06 Bruno Haible <bruno@clisp.org>
1522 Upgrade the GB18030 converter to the version from 2005.
1523 * lib/gb18030ext.h (gb18030ext_2uni_pagefe): Change element type to
1524 'unsigned int'. Change values for 0xFE51..0xFE53, 0xFE59, 0xFE61,
1525 0xFE66, 0xFE67, 0xFE6C, 0xFE6D, 0xFE76, 0xFE7E, 0xFE90, 0xFE91, 0xFEA0.
1526 (gb18030ext_mbtowc): Change type of wc to 'unsigned int'. Change values
1527 for 0xA6D9..0xA6DF, 0xA6EC..0xA6ED, 0xA6F3, 0xA8BC.
1528 (gb18030ext_page9f, gb18030ext_pagefe): New constant arrays.
1529 (gb18030ext_wctomb): Change values for U+1E3F, U+9FB4..U+9FBB,
1530 U+FE10..U+FE19, U+20087, U+20089, U+200CC, U+215D7, U+2298F, U+241FE.
1531 * tests/GB18030-BMP.TXT: Change values for 0xA6D9..0xA6DF,
1532 0xA6EC..0xA6ED, 0xA6F3, 0xA8BC, 0xFE51..0xFE53, 0xFE59, 0xFE61, 0xFE66,
1533 0xFE67, 0xFE6C, 0xFE6D, 0xFE76, 0xFE7E, 0xFE90, 0xFE91, 0xFEA0, to map
1534 to now-assigned Unicode codepoints.
1535 * tests/GB18030.IRREVERSIBLE.TXT: New file.
1537 2011-08-06 Bruno Haible <bruno@clisp.org>
1539 Fix conversion bug in CP1258 converter.
1540 * lib/vietcomb.h (viet_comp_table_data): Remove entry for
1541 U+00A5 U+0301. Fix entry for U+00A8 U+0301.
1542 (viet_decomp_table): Fix entry for U+0385.
1543 * tests/CP1258.IRREVERSIBLE.TXT: Update.
1544 Reported by Gertjan Halkes <gertjan@ghalkes.nl>.
1546 2011-07-03 Bruno Haible <bruno@clisp.org>
1548 Improve interactive behaviour of iconv program.
1549 * src/iconv.c (convert): Flush the output before starting a possibly
1550 blocking safe_read call.
1552 2011-07-03 Bruno Haible <bruno@clisp.org>
1554 Fix interactive behaviour of iconv program.
1555 * Makefile.devel (GNULIB_MODULES): Add safe-read.
1556 * src/iconv.c: Include safe-read.h.
1557 (convert): Take the infile as a file descriptor, not as a FILE stream.
1558 Use safe_read() instead of fread().
1560 Reported by Xavier Pucel <xpucel@hotmail.com>.
1562 2011-05-02 Bruno Haible <bruno@clisp.org>
1564 Update after gnulib changed.
1565 * autogen.sh (GNULIB_MODULES): Remove exit, add stdlib.
1567 2011-06-02 Bruno Haible <bruno@clisp.org>
1569 Update after gnulib changed.
1570 * gnulib-local/m4/alloca.m4 (gl_FUNC_ALLOCA): Update.
1572 2011-06-04 Bruno Haible <bruno@clisp.org>
1574 Work around <wchar.h> bug on OSF/1 5.1.
1575 * lib/loop_wchar.h: Before including <wchar.h>, include <stdio.h> and
1576 some other includes.
1578 2011-03-27 KO Myung-Hun <komh@chollian.net>
1580 Fix installation on OS/2.
1581 * src/Makefile.in (all, iconv_no_i18n): Add $(EXEEXT) suffix to
1582 iconv_no_i18n. This is the recommended way to use libtool, see
1583 <https://lists.gnu.org/archive/html/bug-libtool/2009-04/msg00013.html>.
1585 2011-03-31 Bruno Haible <bruno@clisp.org>
1587 gentranslit: Fix buffer overrun.
1588 * lib/gentranslit.c (main): Allocate more room for the suffix strings
1589 of the translit pages.
1590 Reported by Ben Noordhuis <info@bnoordhuis.nl>.
1592 2011-02-28 Bruno Haible <bruno@clisp.org>
1594 * lib/relocatable.h: Update from gnulib.
1595 * lib/relocatable.c: Likewise.
1597 2011-01-29 Corinna Vinschen <corinna-cygwin@cygwin.com>
1598 Bruno Haible <bruno@clisp.org>
1600 Simplify "wchar_t" handling on Cygwin 1.7.x.
1601 * lib/iconv.c (iconv_canonicalize): On Cygwin >= 1.7, map
1602 ei_local_wchar_t to ei_utf16le or ei_utf16be, not ei_ucs2internal.
1603 * lib/iconv_open1.h: Likewise.
1604 Rationale: <https://cygwin.com/ml/cygwin/2011-01/msg00410.html>.
1606 2011-01-29 Bruno Haible <bruno@clisp.org>
1608 Adjust the meaning of "wchar_t" on native Windows systems.
1609 * lib/iconv.c (iconv_canonicalize): On native Windows, map
1610 ei_local_wchar_t to ei_utf16le or ei_utf16be, not ei_ucs2internal.
1611 * lib/iconv_open1.h: Likewise.
1612 Reported by Corinna Vinschen <corinna-cygwin@cygwin.com>
1613 in <https://cygwin.com/ml/cygwin/2011-01/msg00410.html>.
1615 2010-11-23 Bruno Haible <bruno@clisp.org>
1617 Implement newer release of BIG5-HKSCS.
1618 * tools/Makefile (ALL): Add hkscs2008.h.
1619 (hkscs2008.h): New rule.
1620 * tools/cjk_tab_to_h.c (main): Recognize hkscs2008.
1621 * lib/encodings.def: Add BIG5-HKSCS:2008. Change BIG5-HKSCS alias to be
1622 equivalent to BIG5-HKSCS:2008.
1623 * lib/hkscs2008.h: New file, autogenerated.
1624 * lib/big5hkscs2008.h: New file, based on lib/big5hkscs2004.h.
1625 * lib/converters.h: Include the new file.
1626 * README, man/iconv_open.3: Add BIG5-HKSCS:2004.
1627 * tests/BIG5-HKSCS-2008.TXT: New file, based on
1628 tests/BIG5-HKSCS-2004.TXT.
1629 * tests/BIG5-HKSCS-2008.IRREVERSIBLE.TXT: New file, copied from
1630 tests/BIG5-HKSCS-2004.IRREVERSIBLE.TXT
1631 * tests/BIG5-HKSCS-2008-snippet: New file, based on
1632 tests/BIG5-HKSCS-2004-snippet.
1633 * tests/BIG5-HKSCS-2008-snippet.UTF-8: New file, based on
1634 tests/BIG5-HKSCS-2004-snippet.UTF-8.
1635 * tests/Makefile.in (check): Check also BIG5-HKSCS:2008.
1636 Reported by oCameLo <camel322@gmail.com>.
1638 2010-11-23 Bruno Haible <bruno@clisp.org>
1640 Make cjk_tab_to_h 64-bit clean.
1641 * tools/cjk_tab_to_h.c (do_jisx0213): Add a cast from size_t to int.
1642 (output_title): Update copyright year.
1644 2010-09-23 Bruno Haible <bruno@clisp.org>
1646 Switch to autoconf 2.68.
1647 * autogen.sh: Update comment.
1648 * configure.ac: Fix AC_COMPILE_IFELSE invocation.
1649 * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.68.
1650 * preload/Makefile.devel (AUTOCONF): Likewise.
1652 2010-09-23 Bruno Haible <bruno@clisp.org>
1654 * m4/libtool.m4: Update from libtool-2.4, with modifications:
1655 2008-04-06 Bruno Haible <bruno@clisp.org>
1656 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
1657 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
1659 * m4/ltversion.m4: Update from libtool-2.4.
1660 * build-aux/ltmain.sh: Likewise.
1662 2010-09-23 Bruno Haible <bruno@clisp.org>
1664 Simplify use of gnulib-tool now that gnulib-tool --import works better.
1665 * autogen.sh: Don't remove gnulib-cache.m4 before running gnulib-tool.
1666 * Makefile.devel (srclib/Makefile.gnulib): Depend on 'force'.
1668 2010-07-31 Bruno Haible <bruno@clisp.org>
1670 * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.67.
1671 * preload/Makefile.devel (AUTOCONF): Likewise.
1673 2010-07-03 Bruno Haible <bruno@clisp.org>
1675 * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.66.
1676 * preload/Makefile.devel (AUTOCONF): Likewise.
1678 2010-06-04 Bruno Haible <bruno@clisp.org>
1680 Addendum to 2009-10-18 commit.
1681 * m4/fcntl-o.m4: New file, from gnulib.
1682 * configure.ac: Invoke gl_FCNTL_O_FLAGS.
1683 * lib/config.h.in (HAVE_WORKING_O_NOFOLLOW): New macro.
1685 2010-06-04 Bruno Haible <bruno@clisp.org>
1687 * m4/libtool.m4: Update from libtool-2.2.8, with modifications:
1688 2008-04-06 Bruno Haible <bruno@clisp.org>
1689 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
1690 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
1692 * m4/ltoptions.m4: Update from libtool-2.2.8.
1693 * m4/ltversion.m4: Likewise.
1694 * m4/lt~obsolete.m4: Likewise.
1695 * build-aux/ltmain.sh: Likewise.
1697 2010-04-06 Bruno Haible <bruno@clisp.org>
1699 Avoid a compilation error of gnulib's test-iconv-h-c++.cc on mingw.
1700 * include/iconv.h.in: Restrict the extern "C" { ... } scope so that it
1701 doesn't contains #include directives.
1703 2010-03-30 Bruno Haible <bruno@clisp.org>
1705 * README.woe32: Update for Cygwin 1.7.x.
1707 2009-12-26 Bruno Haible <bruno@clisp.org>
1709 * windows/libiconv.rc: Update.
1710 * windows/iconv.rc: Update.
1712 2009-12-11 Bruno Haible <bruno@clisp.org>
1714 * include/iconv.h.in: Untabify.
1715 * gnulib-local/lib/xalloc.h: Untabify.
1716 * woe32dll/export.h: Untabify.
1717 * tests/uniq-u.c: Untabify.
1719 2009-12-11 Bruno Haible <bruno@clisp.org>
1721 * srclib/Makefile.am (MOSTLYCLEANDIRS): New macro.
1723 2009-12-11 Bruno Haible <bruno@clisp.org>
1725 * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.65.
1726 * preload/Makefile.devel (AUTOCONF): Likewise.
1728 2009-11-22 Bruno Haible <bruno@clisp.org>
1730 * tests/check-subst: Add reference to the Solaris printf bug.
1731 Reported by Dagobert Michelsen <dagobert@familie-michelsen.de>.
1733 2009-09-01 Bruno Haible <bruno@clisp.org>
1735 * README.woe32: Put the -mno-cygwin option into CC and CXX.
1736 Recommended by Paolo Bonzini and Eric Blake.
1738 2009-08-15 Bruno Haible <bruno@clisp.org>
1740 * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.64.
1741 * preload/Makefile.devel (AUTOCONF): Likewise.
1743 2009-08-15 Bruno Haible <bruno@clisp.org>
1745 Use .git/info/exclude, not .gitignore, for imported or generated files.
1746 * Makefile.devel (srclib/Makefile.gnulib): Pass option --no-vc-files to
1749 2009-07-07 Bruno Haible <bruno@clisp.org>
1751 Fix an endless loop.
1752 * lib/loop_wchar.h (wchar_to_loop_convert): Handle the case of
1753 incomplete input correctly.
1754 * tests/test-to-wchar.c: New file.
1755 * tests/Makefile.in (tests-to-wchar, tests-to-wchar.o): New rules.
1756 (check): Depend on and run tests-to-wchar.
1757 (clean): Add tests-to-wchar.
1758 Reported by Tristan Gingold <gingold@adacore.com>.
1760 2009-06-30 Bruno Haible <bruno@clisp.org>
1762 * Version 1.13.1 released.
1764 2009-06-30 Bruno Haible <bruno@clisp.org>
1766 * configure.ac: Bump version number to 1.13.1.
1769 2009-06-04 Bruno Haible <bruno@clisp.org>
1771 * preload/Makefile.devel (AUTOCONF): Switch to version 2.63.
1772 (ACLOCAL): Switch to version 1.11.
1774 2009-05-19 Bruno Haible <bruno@clisp.org>
1776 * Makefile.devel (AUTOMAKE, ACLOCAL): Switch to version 1.11.
1777 * autogen.sh: Update comments.
1779 2009-04-24 Bruno Haible <bruno@clisp.org>
1781 Fix a compilation error on HP-UX 11.00, introduced on 2008-09-16.
1782 * src/iconv_open2.h: Don't initialize nonexistent field if
1783 !(HAVE_WCRTOMB || HAVE_MBRTOWC).
1784 Patch by Joel Brobecker <brobecker@adacore.com>.
1786 2009-04-15 Bruno Haible <bruno@clisp.org>
1788 * src/Makefile.in (install, uninstall): Append the $(EXEEXT) suffix
1789 explicitly. Needed on Cygwin.
1791 2009-04-11 Bruno Haible <bruno@clisp.org>
1793 * configure.ac: Move the statements for WOE32 and WINDRES.
1795 2009-03-26 Bruno Haible <bruno@clisp.org>
1797 * Version 1.13 released.
1799 2009-03-26 Bruno Haible <bruno@clisp.org>
1801 * src/iconv.c: Update copyright header to GPLv3+.
1802 (print_version): Update license info.
1804 2009-03-26 Bruno Haible <bruno@clisp.org>
1806 * src/iconv.c (print_version): Bump year.
1808 2009-03-25 Bruno Haible <bruno@clisp.org>
1810 * build-aux/config.guess: Update to GNU version 2009-02-03.
1811 * build-aux/config.sub: Likewise.
1813 2009-03-25 Bruno Haible <bruno@clisp.org>
1815 * configure.ac: Bump version number to 1.13.
1817 * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
1818 * windows/iconv.rc: Update.
1819 * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 7:0:5.
1821 2009-03-25 Bruno Haible <bruno@clisp.org>
1823 Fix the handling of Windows resources in shared libraries.
1824 * configure.ac: Invoke LT_LANG for 'Windows Resource'.
1825 * lib/Makefile.in (RC): New variable.
1826 (WINDRES): Remove variable.
1827 (OBJECTS_RES_yes): Add .lo suffix.
1828 (libiconv.res.lo): Renamed from libiconv.res. Use libtool --tag=RC.
1830 Based on a patch by Roumen Petrov <bugtrack@roumenpetrov.info>.
1832 2009-03-14 Bruno Haible <bruno@clisp.org>
1834 * autogen.sh: Checkout gnulib using 'git' instead of 'cvs'.
1836 2009-01-24 Bruno Haible <bruno@clisp.org>
1838 * tools/Makefile (ALL): Add cp1131.h.
1839 (cp1131.h): New rule.
1840 * lib/encodings.def: Add CP1131.
1841 * lib/cp1131.h: New file.
1842 * lib/converters.h: Include it.
1843 * README, man/iconv_open.3: Add CP1131.
1844 * NOTES: Mention CP1131.
1845 * tests/CP1131.TXT: New file.
1846 * tests/Makefile.in (check): Also test CP1131.
1848 2009-01-17 Bruno Haible <bruno@clisp.org>
1850 Add support for "make install-strip".
1851 * configure.ac: Search for 'strip'. Invoke AM_PROG_INSTALL_STRIP.
1852 * Makefile.in (install-strip): New rule.
1853 * src/Makefile.in (STRIP, INSTALL_STRIP_PROGRAM, install_sh): New
1855 (install-strip): New rule.
1856 * lib/Makefile.in (install-strip): New target.
1857 * preload/Makefile.in (install-strip): Likewise.
1858 * man/Makefile.in (install-strip): Likewise.
1859 Reported by Alon Bar-Lev <alon.barlev@gmail.com>.
1861 2009-01-17 Bruno Haible <bruno@clisp.org>
1863 Update after gnulib changed.
1864 * src/Makefile.in (RELOCATABLE_STRIP): New variable.
1866 2009-01-17 Bruno Haible <bruno@clisp.org>
1868 Make --enable-relocatable work on glibc systems.
1869 * src/Makefile.in (host): New variable.
1871 2009-01-17 Bruno Haible <bruno@clisp.org>
1873 * lib/genflags.c: Include <string.h>.
1875 2009-01-14 Bruno Haible <bruno@clisp.org>
1877 * configure.ac: More consistent m4 quoting.
1878 * preload/configure.ac: Likewise.
1880 2008-09-28 Bruno Haible <bruno@clisp.org>
1882 * build-aux/ltmain.sh (func_emit_cwrapperexe_src): On mingw,
1883 preprocess the argument vector through prepare_spawn.
1885 2008-09-27 Bruno Haible <bruno@clisp.org>
1887 * build-aux/config.guess: Update to GNU version 2008-09-08.
1888 * build-aux/config.sub: Likewise.
1890 2008-09-26 Bruno Haible <bruno@clisp.org>
1892 * tests/test-shiftseq.c (main1, main2): Use ICONV_CONST.
1894 2008-09-26 Bruno Haible <bruno@clisp.org>
1896 * Makefile.devel (GNULIB_MODULES): Add sigpipe, stdio.
1897 * tests/Makefile.in (check, table-from, table-to, test-shiftseq): Link
1898 all programs against libicrt.a. Needed for the stdio function
1899 replacements on mingw.
1901 2008-09-21 Tadamasa Teranishi <yw3t-trns@asahi-net.or.jp>
1903 * lib/encodings_extra.def: Add aliases for EUC-JISX0213, SHIFT_JISX0213,
1904 ISO-2022-JP-3, found on <http://x0213.org/codetable/index.en.html>.
1906 2008-09-20 Bruno Haible <bruno@clisp.org>
1908 * man/iconv_open_into.3: New file.
1910 2008-09-16 Bruno Haible <bruno@clisp.org>
1912 New function iconv_open_into.
1913 * include/iconv.h.in: Include <wchar.h> and its prerequisites.
1914 (iconv_allocation_t): New type.
1915 (iconv_open_into): New declaration.
1916 * lib/iconv_open1.h: New file, extracted from lib/iconv.c.
1917 * lib/iconv_open2.h: New file, extracted from lib/iconv.c.
1918 * lib/iconv.c (iconv_open): Include iconv_open1.h and iconv_open2.h.
1919 Verify size of iconv_allocation_t.
1920 (iconv_open_into): New function.
1921 * lib/loop_wchar.h (struct wchar_conv_struct): Don't define a state
1922 field if !(HAVE_WCRTOMB || HAVE_MBRTOWC).
1923 * configure.ac: Set and substitute USE_MBSTATE_T, BROKEN_WCHAR_H.
1924 Reported by Roman Rybalko <romanr@romanr.info>.
1926 2008-09-16 Bruno Haible <bruno@clisp.org>
1928 * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.63.
1930 2008-09-16 Bruno Haible <bruno@clisp.org>
1932 * include/iconv.h.in: Use Unicode single-quotes in comments.
1934 2008-09-14 Bruno Haible <bruno@clisp.org>
1936 * Makefile.devel (GNULIB_MODULES): Add strerror.
1938 2008-09-07 Bruno Haible <bruno@clisp.org>
1940 Make behaviour when encountering invalid input after a shift sequence
1942 * lib/converters.h (RET_SHIFT_ILSEQ): New macro.
1943 (RET_ILSEQ): Define in terms of RET_SHIFT_ILSEQ.
1944 (RET_TOOFEW): Change to avoid collisions with RET_SHIFT_ILSEQ.
1945 (DECODE_SHIFT_ILSEQ, DECODE_TOOFEW): New macros.
1946 * lib/loop_unicode.h (unicode_loop_convert): Take into account the
1947 shift count contained in the negative return values.
1948 * lib/hz.h (hz_mbtowc): When encountering invalid input, store the
1949 modified state and return RET_SHIFT_ILSEQ.
1950 * lib/iso2022_cn.h (iso2022_cn_mbtowc): Likewise.
1951 * lib/iso2022_cnext.h (iso2022_cn_ext_mbtowc): Likewise.
1952 * lib/iso2022_jp.h (iso2022_jp_mbtowc): Likewise.
1953 * lib/iso2022_jp1.h (iso2022_jp1_mbtowc): Likewise.
1954 * lib/iso2022_jp2.h (iso2022_jp2_mbtowc): Likewise.
1955 * lib/iso2022_jp3.h (iso2022_jp3_mbtowc): Likewise.
1956 * lib/iso2022_kr.h (iso2022_kr_mbtowc): Likewise.
1957 * lib/ucs2.h (ucs2_mbtowc): Likewise.
1958 * lib/ucs4.h (ucs4_mbtowc): Likewise.
1959 * lib/utf16.h (utf16_mbtowc): Likewise.
1960 * lib/utf32.h (utf32_mbtowc): Likewise.
1961 * lib/utf7.h (utf7_mbtowc): Likewise.
1962 * lib/utf16be.h (utf16be_mbtowcutf16be_mbtowc): When encountering
1963 invalid input, return RET_SHIFT_ILSEQ.
1964 * lib/utf16le.h (utf16le_mbtowc): Likewise.
1965 * tests/test-shiftseq.c: New file.
1966 * tests/Makefile.in (check): Run test-shiftseq.
1967 (test-shiftseq, test-shiftseq.@OBJEXT@): New rules.
1968 (clean): Remove test-shiftseq executable.
1969 Reported by Roman Rybalko <roman_rybalko@users.sourceforge.net>
1970 at <https://savannah.gnu.org/bugs/?24216>.
1972 2008-09-07 Bruno Haible <bruno@clisp.org>
1974 * man/iconv.3: Clarify the processing of shift-sequences.
1976 2008-09-07 Bruno Haible <bruno@clisp.org>
1978 * m4/libtool.m4: Update from libtool-2.2.6, with modifications:
1979 2008-04-06 Bruno Haible <bruno@clisp.org>
1980 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
1981 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
1983 * m4/ltoptions.m4: Update from libtool-2.2.6.
1984 * m4/ltsugar.m4: Likewise.
1985 * m4/ltversion.m4: Likewise.
1986 * build-aux/ltmain.sh: Likewise.
1988 2008-09-06 Bruno Haible <bruno@clisp.org>
1990 * lib/gbk.h (gbk_wctomb): Fix an out-of-bounds write.
1991 Reported by Roman Rybalko <roman_rybalko@users.sourceforge.net>
1992 at <https://savannah.gnu.org/bugs/?24214>.
1994 2008-06-30 Bruno Haible <bruno@clisp.org>
1996 Fix sed expressions to work with the old sed-3.02 on MSYS.
1997 * windows/windres-options (sed_extract_major, sed_extract_minor,
1998 sed_extract_subminor): Put a semicolon before the closing brace. Use
1999 an i\ command instead of an a\ command.
2000 Reported by Sunil Negi <sunil.negi@morningstar.com>
2001 in <http://article.gmane.org/gmane.comp.gnu.mingw.msys/4410>
2002 via Keith Marshall <keithmarshall@users.sourceforge.net>.
2004 2008-05-22 Bruno Haible <bruno@clisp.org>
2006 * README.woe32: Update with info from GNU gettext's README.woe32.
2008 2008-05-18 Bruno Haible <bruno@clisp.org>
2010 * m4/libtool.m4: Update from libtool-2.2.4, with modifications:
2011 2008-04-06 Bruno Haible <bruno@clisp.org>
2012 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
2013 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
2015 * m4/ltoptions.m4: Update from libtool-2.2.4.
2016 * m4/ltversion.m4: Likewise.
2017 * m4/lt~obsolete.m4: Likewise.
2018 * build-aux/ltmain.sh: Likewise.
2020 2008-04-14 Bruno Haible <bruno@clisp.org>
2022 * tests/Makefile.in (check): Remove *.dSYM directories left over by gcc
2025 2008-04-14 Bruno Haible <bruno@clisp.org>
2027 * preload/configure.ac: Invoke AC_USE_SYSTEM_EXTENSIONS instead of
2028 AC_AIX and AC_MINIX.
2029 * Makefile.devel (AUTOCONF, AUTOHEADER): Require autoconf-2.62.
2030 * preload/Makefile.devel (AUTOCONF): Likewise.
2031 * autogen.sh: Likewise.
2033 2008-04-06 Bruno Haible <bruno@clisp.org>
2035 * m4/libtool.m4: Update from libtool-2.2.2, with modifications:
2036 2008-04-06 Bruno Haible <bruno@clisp.org>
2037 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
2038 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
2040 * m4/ltoptions.m4: New file, from libtool-2.2.2.
2041 * m4/ltsugar.m4: New file, from libtool-2.2.2.
2042 * m4/ltversion.m4: New file, from libtool-2.2.2.
2043 * m4/lt~obsolete.m4: New file, from libtool-2.2.2.
2044 * build-aux/ltmain.sh: New file, from libtool-2.2.2.
2045 * configure.ac: Use LT_INIT instead of AC_PROG_LIBTOOL.
2046 * preload/configure.ac: Likewise.
2048 2008-04-06 Bruno Haible <bruno@clisp.org>
2050 More portable way of building the preloadable library.
2051 * preload/Makefile.devel: New file.
2052 * preload/Makefile.in: New file, based on lib/Makefile.in.
2053 * preload/configure.ac: New file, based on configure.ac.
2054 * Makefile.devel (all): Recurse into preload directory.
2055 * Makefile.in (all, install, installdirs, uninstall, check,
2056 mostlyclean, clean, distclean, maintainer-clean): Recurse into preload
2058 * configure.ac: Likewise.
2059 (OS, GCC, PLUGLIB): Remove definitions.
2060 * lib/Makefile.in (all): Don't depend on PLUGLIB.
2061 (preloadable_libiconv.so, preloadable_libiconv_linux.so,
2062 preloadable_libiconv_solaris.so, preloadable_libiconv_osf.so): Remove
2064 (install, uninstall, clean): Don't handle the preloadable library here.
2066 2008-04-06 Bruno Haible <bruno@clisp.org>
2068 Avoid a gcc warning.
2069 * lib/loop_unicode.h (unicode_loop_convert): Add a cast.
2071 2008-04-06 Bruno Haible <bruno@clisp.org>
2073 * src/iconv.c (print_version): Bump year.
2075 2008-04-06 Bruno Haible <bruno@clisp.org>
2077 Support all possible nl_langinfo(CODESET) results on the respective
2078 platforms, according to libcharset/lib/config.charset.
2079 * lib/encodings.def: Add DEFALIAS statements, conditional on
2080 USE_AIX_ALIASES, USE_HPUX_ALIASES, USE_OSF1_ALIASES,
2081 USE_SOLARIS_ALIASES.
2082 * lib/encodings_aix.def: Add DEFALIAS statements, conditional on
2084 * lib/encodings_osf1.def: Add DEFALIAS statements, conditional on
2086 * lib/genaliases.c (emit_alias): New function, extracted from
2088 (emit_encoding): Use it.
2089 (main): Define DEFALIAS.
2090 * lib/genaliases2.c (counter): New variable, extracted from
2092 (emit_alias): New function, extracted from emit_encoding.
2093 (emit_encoding): Use it.
2094 (main): Define DEFALIAS.
2095 * lib/genflags.c (main): Define DEFALIAS.
2096 * lib/iconv.c (all_encodings): Define DEFALIAS.
2097 Include the system dependent variant of aliases.h on the appropriate
2099 (all_canonical): Include the system dependent variant of canonical.h,
2100 canonical_aix.h, canonical_osf1.h, canonical_local.h on the appropriate
2102 * lib/aliases2.h: Include the system dependent variant of
2103 aliases_aix.h or aliases_osf1.h on the appropriate systems.
2104 * lib/Makefile.in (iconv.lo): Depend on aliases_sysaix.h,
2105 aliases_syshpux.h, aliases_sysosf1.h, aliases_syssolaris.h,
2106 aliases_aix_sysaix.h, lib/aliases_osf1_sysosf1.h, and also
2107 aliases_extra.h, translit.h.
2108 * Makefile.devel (all): Depend on lib/aliases_sysaix.h,
2109 lib/aliases_syshpux.h, lib/aliases_sysosf1.h, lib/aliases_syssolaris.h,
2110 lib/aliases_aix_sysaix.h, lib/aliases_osf1_sysosf1.h.
2111 (lib/aliases_sysaix.h, lib/aliases_syshpux.h, lib/aliases_sysosf1.h,
2112 lib/aliases_syssolaris.h): New rules.
2113 (lib/aliases_aix_sysaix.h): New rule.
2114 (lib/aliases_osf1_sysosf1.h): New rule.
2115 * autogen.sh: Also remove lib/aliases_sysaix.h, lib/aliases_syshpux.h,
2116 lib/aliases_sysosf1.h, lib/aliases_syssolaris.h,
2117 lib/aliases_aix_sysaix.h, lib/aliases_osf1_sysosf1.h.
2119 2008-04-06 Bruno Haible <bruno@clisp.org>
2121 * build-aux/config.libpath: Remove file, brought in by gnulib-tool.
2122 * build-aux/config.rpath: Remove file, brought in by gnulib-tool.
2124 2007-11-11 Bruno Haible <bruno@clisp.org>
2126 * Version 1.12 released.
2128 2007-11-11 Bruno Haible <bruno@clisp.org>
2130 * Makefile.devel (AUTOCONF, AUTOHEADER): Require version 2.61.
2131 (AUTOMAKE, ACLOCAL): Require version 1.10.
2132 (srclib/Makefile.in): Avoid error from automake.
2134 2007-10-26 Bruno Haible <bruno@clisp.org>
2136 * m4/libtool.m4: Update, based on libtool-1.5.24.
2137 * build-aux/ltmain.sh: Update, based on libtool-1.5.24.
2139 2007-10-23 Bruno Haible <bruno@clisp.org>
2141 * build-aux/config.guess: Update to GNU version 2007-07-22.
2142 * build-aux/config.sub: Likewise.
2144 2007-10-23 Bruno Haible <bruno@clisp.org>
2146 * configure.ac: Bump version number to 1.12.
2149 2007-10-23 Bruno Haible <bruno@clisp.org>
2151 Move relocatability infrastructure to gnulib.
2152 * gnulib-local/lib/relocatable.h: Remove file.
2153 * gnulib-local/lib/relocatable.c: Remove file.
2155 2007-10-23 Bruno Haible <bruno@clisp.org>
2157 Update from GNU gettext.
2158 2006-11-26 Bruno Haible <bruno@clisp.org>
2159 * gnulib-local/lib/xalloc.h (xmemdup): Add a typesafe C++
2161 Based on a patch from Paul Eggert in gnulib.
2162 2006-11-06 Bruno Haible <bruno@clisp.org>
2163 * gnulib-local/lib/xalloc.h (xcharalloc): New macro.
2164 (xmemdup): New declaration.
2165 * gnulib-local/lib/xstrdup.c (xmemdup): New function.
2166 2006-11-03 Bruno Haible <bruno@clisp.org>
2167 * gnulib-local/lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC,
2168 XCALLOC): New macros.
2169 (xnboundedmalloc): New inline function.
2170 * gnulib-local/lib/xstrdup.c (xstrdup): Use XNMALLOC instead of
2172 2006-11-02 Bruno Haible <bruno@clisp.org>
2173 * lib/xalloc.h (xnmalloc): New declaration. From gnulib
2175 * lib/xmalloc.c (fixup_null_alloc): Write NULL, not 0.
2176 (xnmalloc): New function.
2178 2007-10-23 Bruno Haible <bruno@clisp.org>
2180 Moved module xreadlink to gnulib.
2181 * gnulib-local/modules/xreadlink: Remove file.
2182 * gnulib-local/lib/xreadlink.h: Remove file.
2183 * gnulib-local/lib/xreadlink.c: Remove file.
2184 * gnulib-local/m4/xreadlink.m4: Remove file.
2186 2007-10-07 Bruno Haible <bruno@clisp.org>
2188 Update program license to GPLv3.
2189 * COPYING: Replace with GPL 3.
2190 * windows/iconv.rc (Comments): Update.
2192 2007-10-07 Bruno Haible <bruno@clisp.org>
2194 * gnulib-local/lib/alloca.in.h: Renamed from gnulib-local/lib/alloca_.h.
2196 2007-03-30 Bruno Haible <bruno@clisp.org>
2198 * gnulib-local/lib/alloca_.h: Change prefix of double-inclusion guard
2201 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
2203 * gnulib-local/lib/alloca_.h (alloca) [defined alloca]: Don't define or
2206 2007-09-29 Bruno Haible <bruno@clisp.org>
2208 * autogen.sh (GNULIB_CVS_ROOT): Change to read-only git mirror
2209 valid since 2007-09-19.
2211 2007-07-07 Bruno Haible <bruno@clisp.org>
2213 * autogen.sh: Add an option --skip-gnulib.
2215 2007-07-07 Bruno Haible <bruno@clisp.org>
2217 * gnulib-local/lib/uniwidth.h: Remove file, moved to gnulib.
2218 * gnulib-local/lib/width.c: Remove file, moved to gnulib.
2219 * gnulib-local/lib/cjk.h: Remove file, moved to gnulib.
2220 * gnulib-local/modules/uniwidth: Remove file.
2221 * Makefile.devel (GNULIB_MODULES): Remove uniwidth, add uniwidth/width.
2222 * src/iconv.c: Include uniwidth/cjk.h instead of cjk.h.
2224 2007-06-30 Bruno Haible <bruno@clisp.org>
2226 * src/iconv.c (print_version): Use the standard --version output, see
2227 <https://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00302.html>.
2229 2007-06-30 Bruno Haible <bruno@clisp.org>
2231 * autogen.sh: New file.
2232 * DEPENDENCIES: New file.
2233 * HACKING: New file.
2235 2007-06-30 Bruno Haible <bruno@clisp.org>
2237 * src/iconv.c: Provide translator comments for many messages.
2238 (conversion_error_EILSEQ, conversion_error_EINVAL,
2239 conversion_error_other): New functions, extracted from convert.
2240 (convert): Use them.
2241 Reported by Tim Van Holder <tim.van.holder@telenet.be>.
2243 2007-06-09 Bruno Haible <bruno@clisp.org>
2245 * gnulib-local/lib/relocwrapper.c: Remove file.
2247 2007-05-27 Bruno Haible <bruno@clisp.org>
2249 * windows/libiconv.rc: New file.
2250 * windows/iconv.rc: New file.
2251 * windows/windres-options: New file.
2252 * configure.ac (WOE32): New variable.
2253 (WINDRES) [WOE32]: New variable.
2254 * lib/Makefile.in (WINDRES): New variable.
2255 (PACKAGE_VERSION): New variable.
2256 (OBJECTS_EXP_yes): Renamed from OBJECTS_yes.
2257 (OBJECTS_EXP_no): Renamed from OBJECTS_no.
2258 (OBJECTS_RES_yes, OBJECTS_RES_no): New variables.
2259 (OBJECTS): Add one of them.
2260 (libiconv.res): New rule.
2261 (clean): Remove also libiconv.res.
2262 * src/Makefile.in (WINDRES): New variable.
2263 (PACKAGE_VERSION): New variable.
2264 (OBJECTS_RES_yes, OBJECTS_RES_no): New variables.
2265 (all, iconv_no_i18n, install): Use them.
2266 (iconv.res): New rule.
2267 (clean): Remove also iconv.res.
2268 Suggested and inspired by work by Perry Rapp.
2270 2007-05-27 Bruno Haible <bruno@clisp.org>
2272 Follow broken iconv() prototype in POSIX.
2273 * configure.ac (ICONV_CONST): Set to empty if the system has no iconv.
2274 * lib/config.h.in (ICONV_CONST): Change default value to an empty
2276 * src/iconv.c (ICONV_CONST): Change default value to empty.
2277 Reported by Andreas Krennmair <ak@synflood.at>.
2279 2007-05-25 Bruno Haible <bruno@clisp.org>
2281 * tools/Makefile (ALL): Add rk1048.h.
2282 (rk1048.h): New rule.
2283 * lib/encodings.def: Add RK1048.
2284 * lib/rk1048.h: New file.
2285 * lib/converters.h: Include it.
2286 * README, man/iconv_open.3: Add RK1048.
2287 * NOTES: Mention RK1048.
2288 * tests/RK1048.TXT: New file.
2289 * tests/Makefile.in (check): Also test RK1048.
2290 Suggested by Timur Birsh <team9@host.kz>.
2292 2007-04-24 Bruno Haible <bruno@clisp.org>
2294 * man/iconv_open.3: Tweak explanation of TRANSLIT.
2295 Reported by Perry Rapp.
2297 2007-04-23 Bruno Haible <bruno@clisp.org>
2299 * tests/check-subst: Use the output of 'printf' only if it didn't
2300 crash. Needed to work around a buffer overflow in Solaris /bin/printf.
2301 Reported by Arto C. Nirkko <anirkko@insel.ch>.
2303 2007-04-23 Bruno Haible <bruno@clisp.org>
2305 * lib/iconv.c (iconv_open, iconv_canonicalize): Treat native Woe32
2306 systems like those which define __STDC_ISO_10646__.
2307 Reported by Keith Marshall <keithmarshall@users.sourceforge.net>.
2309 2007-03-31 Bruno Haible <bruno@clisp.org>
2311 * man/iconv.1: Use HYPHEN-MINUS signs instead of HYPHENs where
2313 * man/iconv_open.3: Likewise.
2314 * man/iconv.3: Likewise.
2315 * man/iconv_close.3: Likewise.
2316 * man/iconvctl.3: Likewise.
2318 2007-03-31 Bruno Haible <bruno@clisp.org>
2320 * man/iconv.1: Mark as POSIX compliant.
2321 * man/iconv_open.3: Likewise.
2322 * man/iconv.3: Likewise.
2323 * man/iconv_close.3: Likewise.
2325 * man/*.[13]: Syntactic simplifications.
2327 2007-03-19 Bruno Haible <bruno@clisp.org>
2329 Assume that mkinstalldirs also creates the necessary parent directories.
2330 * Makefile.in (install, installdirs): Don't explicitly create the
2332 * lib/Makefile.in (install, installdirs): Likewise.
2333 * src/Makefile.in (install, installdirs): Likewise.
2334 * man/Makefile.in (install, installdirs): Likewise.
2335 Reported by Thomas Klausner <tk@giga.or.at>.
2337 2007-03-04 Bruno Haible <bruno@clisp.org>
2339 * Makefile.devel (GNULIB_MODULES): Add relocatable-prog. Remove
2340 relocatable, relocwrapper.
2341 * configure.ac: Invoke gl_RELOCATABLE instead of AC_RELOCATABLE.
2342 * gnulib-local/modules/progreloc: Remove file.
2343 * gnulib-local/modules/relocatable: Remove file.
2344 * gnulib-local/modules/relocwrapper: Remove file.
2345 * gnulib-local/m4/relocatable.m4: Remove file.
2346 * gnulib-local/lib/strerror.c.diff: Remove file.
2347 * src/Makefile.in: Remove SET_RELOCATABLE invocation. Instead get
2348 RELOCATABLE_LDFLAGS and INSTALL_PROGRAM_ENV.
2350 2007-02-19 Bruno Haible <bruno@clisp.org>
2352 * gnulib-local/lib/xmalloc.c: Don't include exit.h.
2353 * src/iconv.c: Likewise.
2355 2007-02-16 Juan Manuel Guerrero <juan.guerrero@gmx.de>
2359 2007-02-03 Bruno Haible <bruno@clisp.org>
2361 * tools/Makefile (ksc5601.h): Add one extra character.
2362 * lib/ksc5601.h: Regenerated.
2363 * lib/cp949.h (cp949_mbtowc, cp949_wctomb): Exclude the new character.
2364 * tests/EUC-KR.TXT: Add CIRCLED HANGUL IEUNG U.
2365 * tests/JOHAB.TXT: Likewise.
2366 Reported by Jungshik Shin (신정식, 申政湜) <jungshik@google.com>.
2368 * lib/euc_kr.h: Update comments.
2369 * lib/johab.h: Likewise.
2371 2007-02-03 Bruno Haible <bruno@clisp.org>
2373 * tools/cjk_tab_to_h.c (output_title): Bump copyright year.
2375 2007-01-26 Bruno Haible <bruno@clisp.org>
2377 Moved streq.h to gnulib.
2378 * gnulib-local/lib/streq.h: Remove file.
2379 * gnulib-local/modules/uniwidth (Files): Remove lib/streq.h.
2380 (Depends-on): Add streq.
2381 (lib_SOURCES): Remove streq.h.
2383 2007-01-26 Bruno Haible <bruno@clisp.org>
2385 Moved unitypes.h to gnulib.
2386 * gnulib-local/lib/unitypes.h: Remove file.
2387 * gnulib-local/modules/uniwidth (Files): Remove lib/unitypes.h.
2388 (Depends-on): Add unitypes.
2389 (lib_SOURCES): Remove unitypes.h.
2391 2007-01-26 Bruno Haible <bruno@clisp.org>
2393 Moved canonicalize to gnulib.
2394 * gnulib-local/modules/canonicalize: Remove file.
2395 * gnulib-local/lib/canonicalize.h: Remove file.
2396 * gnulib-local/lib/canonicalize.c: Remove file.
2397 * gnulib-local/m4/canonicalize.m4: Remove file.
2398 * gnulib-local/modules/progreloc (Depends-on): Replace 'canonicalize'
2399 with 'canonicalize-lgpl'.
2401 2006-12-20 Bruno Haible <bruno@clisp.org>
2403 * lib/Makefile.in (install): On AIX, add the contents of
2404 /lib/libiconv.a to libiconv.a.
2406 2006-12-20 Bruno Haible <bruno@clisp.org>
2408 * Makefile.devel (all): Depend on srclib/Makefile.gnulib, not
2410 (aclocal.m4): Likewise. Touch the resulting file, since aclocal not
2412 (srclib/Makefile.gnulib): Renamed from srclib/Makefile.am. Pass
2413 option --makefile-name.
2414 (srclib/Makefile.in): Depend on srclib/Makefile.gnulib too.
2415 * srclib/Makefile.am: New file that includes srclib/Makefile.gnulib.
2417 2006-10-31 Bruno Haible <bruno@clisp.org>
2419 Update from GNU gettext.
2420 2006-10-29 Bruno Haible <bruno@clisp.org>
2421 Make it compile in C++ mode.
2422 * gnulib-local/lib/xalloc.h (xrealloc): Define as template
2423 with appropriate return type.
2424 * gnulib-local/lib/xstrdup.c (xstrdup): Cast xmalloc result.
2425 2006-10-26 Bruno Haible <bruno@clisp.org>
2426 * gnulib-local/modules/canonicalize (Makefile.am): Remove
2427 EXTRA_DIST. Now done by gnulib-tool.
2428 * gnulib-local/modules/relocatable (Makefile.am): Likewise.
2429 * gnulib-local/modules/relocwrapper (Makefile.am): Likewise.
2430 2006-10-25 Bruno Haible <bruno@clisp.org>
2431 * gnulib-local/m4/relocatable.m4 (AC_RELOCATABLE_BODY):
2432 Renamed from AC_RELOCATABLE, without the AC_LIBOBJ invocation.
2433 (AC_RELOCATABLE): New macro. Invoke AC_LIBOBJ here.
2434 * gnulib-local/modules/relocwrapper (configure.ac): Invoke
2435 AC_RELOCATABLE instead of requiring it.
2436 2006-10-12 Bruno Haible <bruno@clisp.org>
2437 * gnulib-local/modules/canonicalize (Makefile.am): Distribute
2438 all files in lib/ through EXTRA_DIST.
2439 * gnulib-local/modules/relocatable (Makefile.am): Likewise.
2440 2006-09-14 Bruno Haible <bruno@clisp.org>
2441 * gnulib-local/lib/canonicalize.c: Include <config.h>
2443 * gnulib-local/lib/relocatable.c: Likewise.
2444 * lib/relocatable.c: Likewise.
2445 * gnulib-local/lib/relocwrapper.c: Likewise.
2446 * gnulib-local/lib/xmalloc.c: Likewise.
2447 * gnulib-local/lib/xreadlink.c: Likewise.
2448 * gnulib-local/lib/xstrdup.c: Likewise.
2449 2006-08-02 Bruno Haible <bruno@clisp.org>
2450 * gnulib-local/modules/canonicalize: Put under LGPL.
2451 * gnulib-local/modules/relocatable: Likewise.
2452 2006-07-18 Bruno Haible <bruno@clisp.org>
2453 * gnulib-local/xalloc.h (xzalloc): New declaration.
2454 * gnulib-local/xmalloc.c (xzalloc): New function.
2456 2006-10-24 Bruno Haible <bruno@clisp.org>
2458 * man/Makefile.in (PACKAGE): New variable. Needed for docdir.
2459 Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
2461 2006-10-14 Bruno Haible <bruno@clisp.org>
2463 * COPYING: New file.
2464 * README: Clarify copyright of the iconv program.
2465 Reported by Charles Wilson <cwilson@fastmail.fm>.
2467 2006-08-08 Bruno Haible <bruno@clisp.org>
2469 * INSTALL.generic: Add a recommendation for Tru64.
2470 Reported by Gary V. Vaughan <gary@gnu.org>.
2472 2006-07-29 Bruno Haible <bruno@clisp.org>
2474 * tests/check-subst: Set CHARSETALIASDIR.
2475 Needed so that "make check" works before "make install" on systems
2478 2006-07-29 Bruno Haible <bruno@clisp.org>
2480 * Makefile.devel (aclocal.m4): Depend on srclib/Makefile.am.
2481 (AUTOCONF_FILES): Add the existing *.m4 files.
2483 2006-07-29 Bruno Haible <bruno@clisp.org>
2485 * gnulib-local/lib/xreadlink.c: Assume <stdlib.h> exists.
2486 * src/iconv.c: Assume <locale.h> exists.
2487 * configure.ac: Remove tests for <locale.h>, <stddef.h>, <stdlib.h>,
2490 2006-07-29 Bruno Haible <bruno@clisp.org>
2492 * configure.ac: Remove obsolete calls AC_PROG_GCC_TRADITIONAL,
2493 AC_ISC_POSIX, AC_HEADER_STDC.
2495 2006-07-29 Bruno Haible <bruno@clisp.org>
2497 * configure.ac: Remove macro invocations that are redundant through
2498 gl_EARLY and gl_INIT.
2500 2006-07-29 Bruno Haible <bruno@clisp.org>
2502 * gnulib-local/m4/alloca.m4 (gl_PREREQ_ALLOCA): Add a dummy statement.
2503 Avoids a sh syntax error.
2505 2006-07-29 Bruno Haible <bruno@clisp.org>
2507 * gnulib-local/m4/relocatable.m4: Add comments.
2509 2006-07-29 Bruno Haible <bruno@clisp.org>
2511 * gnulib-local/modules/libiconv-misc: New file.
2512 * Makefile.devel (GNULIB_MODULES): Add libiconv-misc.
2514 * Makefile.devel (srclib/Makefile.am): Pass --no-libtool.
2516 2006-07-29 Bruno Haible <bruno@clisp.org>
2518 Note: gnulib macros no longer invoke AC_TYPE_SIZE_T nor
2519 AC_CHECK_TYPE([ptrdiff_t], , [AC_DEFINE([ptrdiff_t], [long], ...)])
2520 because we now assume that the system defines size_t and ptrdiff_t.
2522 2006-07-29 Bruno Haible <bruno@clisp.org>
2524 Switch to using gnulib.
2525 * configure.ac (AC_PREREQ): Require autoconf-2.60.
2526 Invoke gl_EARLY and gl_INIT.
2527 * Makefile.devel (all): Depend on srclib/Makefile.am.
2528 (aclocal.m4): Pass -I srcm4 to aclocal. Simplify dependencies, assuming
2530 (GNULIB_MODULES): New variable.
2531 (srclib/Makefile.am): New rule.
2532 * gnulib-local: New directory.
2533 * gnulib-local/m4/alloca.m4: Moved here from m4/alloca.m4.
2534 * gnulib-local/m4/canonicalize.m4: Moved here from m4/canonicalize.m4.
2535 * gnulib-local/m4/relocatable.m4: Moved here from m4/relocatable.m4.
2536 * gnulib-local/m4/xreadlink.m4: Moved here from m4/xreadlink.m4.
2537 * gnulib-local/lib/alloca_.h: Moved here from srclib/alloca_.h.
2538 * gnulib-local/lib/canonicalize.h: Moved here from srclib/canonicalize.h.
2539 * gnulib-local/lib/canonicalize.c: Moved here from srclib/canonicalize.c.
2540 * gnulib-local/lib/cjk.h: Moved here from srclib/cjk.h.
2541 * gnulib-local/lib/error.h.diff: New file.
2542 * gnulib-local/lib/progname.h.diff: New file.
2543 * gnulib-local/lib/relocatable.h: Moved here from srclib/relocatable.h.
2544 * gnulib-local/lib/relocatable.c: Moved here from srclib/relocatable.c.
2545 * gnulib-local/lib/relocwrapper.c: Moved here from srclib/relocwrapper.c.
2546 * gnulib-local/lib/streq.h: Moved here from srclib/streq.h.
2547 * gnulib-local/lib/strerror.c.diff: New file.
2548 * gnulib-local/lib/unitypes.h: Moved here from srclib/unitypes.h.
2549 * gnulib-local/lib/uniwidth.h: Moved here from srclib/uniwidth.h.
2550 * gnulib-local/lib/width.c: Moved here from srclib/width.c.
2551 * gnulib-local/lib/xalloc.h: Moved here from srclib/xalloc.h.
2552 * gnulib-local/lib/xmalloc.c: Moved here from srclib/xmalloc.c.
2553 * gnulib-local/lib/xstrdup.c: Moved here from srclib/xstrdup.c.
2554 * gnulib-local/lib/xreadlink.h: Moved here from srclib/xreadlink.h.
2555 * gnulib-local/lib/xreadlink.c: Moved here from srclib/xreadlink.c.
2556 * gnulib-local/modules/canonicalize: New file.
2557 * gnulib-local/modules/progreloc: New file.
2558 * gnulib-local/modules/relocatable: New file.
2559 * gnulib-local/modules/relocwrapper: New file.
2560 * gnulib-local/modules/uniwidth: New file.
2561 * gnulib-local/modules/xalloc: New file.
2562 * gnulib-local/modules/xreadlink: New file.
2564 * m4/allocsa.m4: Remove file. Now taken from gnulib.
2565 * m4/codeset.m4: Likewise.
2566 * m4/eealloc.m4: Likewise.
2567 * m4/error.m4: Likewise.
2568 * m4/extensions.m4: Likewise.
2569 * m4/full-header-path.m4: Likewise.
2570 * m4/gettext.m4: Likewise.
2571 * m4/glibc21.m4: Likewise.
2572 * m4/iconv.m4: Likewise.
2573 * m4/intmax.m4: Likewise.
2574 * m4/inttypes-h.m4: Likewise.
2575 * m4/inttypes_h.m4: Likewise.
2576 * m4/isc-posix.m4: Likewise.
2577 * m4/lcmessage.m4: Likewise.
2578 * m4/lib-ld.m4: Likewise.
2579 * m4/lib-link.m4: Likewise.
2580 * m4/lib-prefix.m4: Likewise.
2581 * m4/longdouble.m4: Likewise.
2582 * m4/longlong.m4: Likewise.
2583 * m4/mbstate_t.m4: Likewise.
2584 * m4/nls.m4: Likewise.
2585 * m4/onceonly.m4: Likewise.
2586 * m4/pathmax.m4: Likewise.
2587 * m4/po.m4: Likewise.
2588 * m4/printf-posix.m4: Likewise.
2589 * m4/progtest.m4: Likewise.
2590 * m4/readlink.m4: Likewise.
2591 * m4/setenv.m4: Likewise.
2592 * m4/signed.m4: Likewise.
2593 * m4/size_max.m4: Likewise.
2594 * m4/ssize_t.m4: Likewise.
2595 * m4/stdbool.m4: Likewise.
2596 * m4/stdint.m4: Likewise.
2597 * m4/stdint_h.m4: Likewise.
2598 * m4/strerror.m4: Likewise.
2599 * m4/strerror_r.m4: Likewise.
2600 * m4/unistd_h.m4: Likewise.
2601 * m4/unlocked-io.m4: Likewise.
2602 * m4/visibility.m4: Likewise.
2603 * m4/wchar_t.m4: Likewise.
2604 * m4/wint_t.m4: Likewise.
2606 * srclib/allocsa.h: Remove file. Now taken from gnulib.
2607 * srclib/allocsa.c: Likewise.
2608 * srclib/binary-io.h: Likewise.
2609 * srclib/error.h: Likewise.
2610 * srclib/error.c: Likewise.
2611 * srclib/exit.h: Likewise.
2612 * srclib/gettext.h: Likewise.
2613 * srclib/memmove.c: Likewise.
2614 * srclib/pathmax.h: Likewise.
2615 * srclib/progname.h: Likewise.
2616 * srclib/progname.c: Likewise.
2617 * srclib/progreloc.c: Likewise.
2618 * srclib/readlink.c: Likewise.
2619 * srclib/setenv.h: Likewise.
2620 * srclib/setenv.c: Likewise.
2621 * srclib/stdbool_.h: Likewise.
2622 * srclib/stdint_.h: Likewise.
2623 * srclib/strerror.c: Likewise.
2624 * srclib/unlocked-io.h: Likewise.
2625 * srclib/unsetenv.c: Likewise.
2626 * srclib/Makefile.am: Remove file.
2628 2006-07-27 Bruno Haible <bruno@clisp.org>
2630 Remove OS/2 build support that doesn't assume GNU make and GNU bash.
2631 * README.os2: Remove file.
2632 * Makefile.os2: Remove file.
2633 * lib/Makefile.os2: Remove file.
2634 * src/Makefile.os2: Remove file.
2635 * man/Makefile.os2: Remove file.
2636 * tests/Makefile.os2: Remove file.
2637 * tests/check-stateful.cmd: Remove file.
2638 * tests/check-stateless.cmd: Remove file.
2639 * tests/check-translit.cmd: Remove file.
2641 2006-07-25 Bruno Haible <bruno@clisp.org>
2643 Remove MSVC/nmake build support.
2644 * windows: Remove directory.
2645 * Makefile.msvc: Remove file.
2646 * lib/Makefile.msvc: Remove file.
2647 * srclib/Makefile.msvc: Remove file.
2648 * src/Makefile.msvc: Remove file.
2649 * tests/Makefile.msvc: Remove file.
2650 * man/Makefile.msvc: Remove file.
2651 * po/Rules-msvc: Remove file.
2652 * po/Makefile.msvc.sh: Remove file.
2653 * Makefile.devel (config.h.msvc, lib/config.h.msvc): Remove rules.
2654 (include/iconv.h.msvc-static, include/iconv.h.msvc-shared): Remove
2656 (po/Makefile.msvc): Remove rule.
2659 2006-07-25 Bruno Haible <bruno@clisp.org>
2662 * vms: Remove directory.
2663 * Makefile.vms: Remove file.
2664 * lib/Makefile.vms: Remove file.
2665 * srclib/Makefile.vms: Remove file.
2666 * src/Makefile.vms: Remove file.
2667 * tests/Makefile.vms: Remove file.
2668 * man/Makefile.vms: Remove file.
2669 * Makefile.devel (config.h_vms, lib/config.h_vms): Remove rules.
2670 (include/iconv.h_vms): Remove rule.
2673 2006-07-23 Bruno Haible <bruno@clisp.org>
2675 * lib/Makefile.in (libiconv.la): Use the CFLAGS during linking.
2676 * src/Makefile.in (iconv_no_i18n): Likewise.
2677 (install): Likewise.
2678 * tests/Makefile.in (table-from, table-to): Likewise.
2679 Needed because the CFLAGS can e.g. trigger profiling.
2680 Reported by Russell Aspinwall <russell.aspinwall@flomerics.co.uk>.
2682 2006-07-19 Bruno Haible <bruno@clisp.org>
2684 * Version 1.11 released.
2686 2006-07-19 Bruno Haible <bruno@clisp.org>
2688 * srclib/Makefile.am (libicrt_a_SOURCES): Remove error.h, error.c.
2689 (LIBADD_SOURCE): Add them here.
2691 2006-07-19 Bruno Haible <bruno@clisp.org>
2693 * build-aux/config.guess: Update to GNU version 2006-07-02.
2694 * build-aux/config.sub: Likewise.
2696 2006-07-14 Bruno Haible <bruno@clisp.org>
2698 * lib/Makefile.in (clean): Remove also *.stackdump.
2699 * src/Makefile.in (clean): Likewise.
2700 * tests/Makefile.in (clean): Likewise.
2702 2006-07-14 Bruno Haible <bruno@clisp.org>
2704 * src/Makefile.in (clean): Remove also iconv_no_i18n. Needed for
2706 * tests/Makefile.in (clean): Remove also the programs, without
2707 EXEEXT. Needed for cygwin or mingw.
2708 * Makefile.in (mostlyclean, clean, distclean, maintainer-clean):
2709 Remove also bin directory. Needed for cygwin and mingw.
2711 2006-07-03 Bruno Haible <bruno@clisp.org>
2713 * src/iconv.c (check_subst_formatstring): Use ngettext.
2714 (subst_wc_to_mb_fallback, subst_mb_to_mb_fallback): Fix error messages
2715 after 2006-01-22 change.
2716 * configure.ac: Require a gettext version with ngettext.
2718 2006-06-28 Bruno Haible <bruno@clisp.org>
2720 * m4/gettext.m4: Update from GNU gettext.
2721 * m4/po.m4: Update from GNU gettext.
2723 2006-06-27 Bruno Haible <bruno@clisp.org>
2725 * Makefile.devel (AUTOCONF, AUTOHEADER): Use autoconf-2.60.
2726 * Makefile.in (datarootdir): New variable.
2727 (install, installdirs, uninstall): Also pass datarootdir.
2728 * configure.ac (mandir): Remove customization.
2729 * man/Makefile.in (datarootdir): New variable.
2730 (docdir, htmldir): Use autoconf-substituted value.
2731 * src/Makefile.in (datarootdir): New variable.
2732 (localedir): Use autoconf-substituted value.
2734 2006-06-27 Bruno Haible <bruno@clisp.org>
2736 * m4/stdint.m4: Update from gnulib.
2737 * srclib/stdint_.h: Update from gnulib.
2738 * srclib/Makefile.am: Update.
2740 2006-06-17 Bruno Haible <bruno@clisp.org>
2742 * srclib/unsetenv.c: Update from GNU gettext.
2743 * srclib/xreadlink.c: Likewise.
2745 2006-06-16 Bruno Haible <bruno@clisp.org>
2747 * m4/full-header-path.m4: New file, from gnulib.
2748 * m4/size_max.m4: New file, from gnulib.
2749 * m4/stdint.m4: Update from gnulib.
2750 * srclib/stdint_.h: Update from gnulib.
2751 * srclib/Makefile.am (stdint.h): Likewise.
2752 * Makefile.devel (aclocal.m4): Update dependencies.
2754 2006-06-16 Bruno Haible <bruno@clisp.org>
2756 * m4/ssize_t.m4: Update from GNU gettext.
2758 2006-06-12 Bruno Haible <bruno@clisp.org>
2760 * m4/gettext.m4: Update from GNU gettext.
2761 * m4/inttypes-h.m4: New file, from GNU gettext.
2762 * m4/inttypes.m4: Remove file.
2763 * m4/stdint.m4 (gl_STDINT_H): Update.
2764 * Makefile.devel (aclocal.m4): Update dependencies.
2766 2006-06-10 Bruno Haible <bruno@clisp.org>
2768 * src/iconv.c (error) [NO_I18N]: Define here instead of including
2769 error.h. Fixes link failure introduced on 2006-01-22.
2771 2006-03-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2773 * m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [ linux ]: Avoid warning when
2774 "parsing" /etc/ld.so.conf and empty /etc/ld.so.conf.d.
2776 2006-05-20 Bruno Haible <bruno@clisp.org>
2778 * tests/BIG5-HKSCS-1999-snippet: New file.
2779 * tests/BIG5-HKSCS-1999-snippet.UTF-8: New file.
2780 * tests/BIG5-HKSCS-2001-snippet: New file.
2781 * tests/BIG5-HKSCS-2001-snippet.UTF-8: New file.
2782 * tests/BIG5-HKSCS-2004-snippet: New file.
2783 * tests/BIG5-HKSCS-2004-snippet.UTF-8: New file.
2784 * tests/Makefile.in (check): Test also the stateful parts of
2785 BIG5-HKSCS:1999, BIG5-HKSCS:2001, BIG5-HKSCS:2004.
2787 2006-05-17 Bruno Haible <bruno@clisp.org>
2789 Implement newer releases of BIG5-HKSCS.
2790 * tools/Makefile (ALL): Remove hkscs.h, add hkscs1999.h, hkscs2001.h,
2792 (hkscs.h): Remove rule.
2793 (hkscs1999.h, hkscs2001.h, hkscs2004.h): New rules.
2794 * tools/cjk_tab_to_h.c (output_title): Update year.
2795 (main): Recognize hkscs1999, hkscs2001, hkscs2004.
2796 * lib/encodings.def: Rename BIG5-HKSCS to BIG5-HKSCS:1999. Add
2797 BIG5-HKSCS:2001, BIG5-HKSCS:2004. Make all three stateful.
2798 * lib/hkscs.h: Remove file.
2799 * lib/hkscs1999.h: New file.
2800 * lib/hkscs2001.h: New file.
2801 * lib/hkscs2004.h: New file.
2802 * lib/big5hkscs.h: Remove file.
2803 * lib/big5hkscs1999.h: New file.
2804 * lib/big5hkscs2001.h: New file.
2805 * lib/big5hkscs2004.h: New file.
2806 * lib/converters.h: Include the new files.
2807 * README, man/iconv_open.3: Add BIG5-HKSCS:1999, BIG5-HKSCS:2001.
2808 * tests/BIG5-HKSCS.TXT: Remove file.
2809 * tests/BIG5-HKSCS.IRREVERSIBLE.TXT: Remove file.
2810 * tests/BIG5-HKSCS-1999.TXT: New file.
2811 * tests/BIG5-HKSCS-1999.IRREVERSIBLE.TXT: New file.
2812 * tests/BIG5-HKSCS-2001.TXT: New file.
2813 * tests/BIG5-HKSCS-2001.IRREVERSIBLE.TXT: New file.
2814 * tests/BIG5-HKSCS-2004.TXT: New file.
2815 * tests/BIG5-HKSCS-2004.IRREVERSIBLE.TXT: New file.
2816 * tests/check-stateless: Convert colon in the charset name to a dash in
2818 * tests/Makefile.in (check): Check BIG5-HKSCS:1999, BIG5-HKSCS:2001,
2819 BIG5-HKSCS:2004 instead of just BIG5-HKSCS.
2820 * tests/Makefile.msvc (check): Don't check BIG5-HKSCS.
2821 * tests/Makefile.os2 (check): Likewise.
2823 2006-05-17 Bruno Haible <bruno@clisp.org>
2825 * srclib/progreloc.c: Update from GNU gettext.
2827 2006-05-16 Bruno Haible <bruno@clisp.org>
2829 * src/Makefile.in (clean): Use EXEEXT.
2830 * tests/Makefile.in (check, clean): Likewise.
2832 2006-05-15 Bruno Haible <bruno@clisp.org>
2834 * configure.ac: Move some checks before AC_RELOCATABLE.
2836 2006-05-15 Bruno Haible <bruno@clisp.org>
2838 Support for building shared libraries on mingw and Cygwin.
2839 * configure.ac (WOE32DLL, DLL_VARIABLE): New variables.
2840 * include/iconv.h.in (_libiconv_version): Mark as DLL_VARIABLE.
2841 * woe32dll/export.h: New file, from GNU gettext.
2842 * woe32dll/iconv-exports.h: New file.
2843 * Makefile.devel (include/iconv.h_vms, include/iconv.h.msvc-static,
2844 include/iconv.h.msvc-shared): Remove the DLL_VARIABLE annotation.
2845 * lib/Makefile.in (INCLUDES): Add -I for parent directory.
2846 (LDFLAGS): Add WOE32DLL dependent flags.
2847 (LDFLAGS_yes, LDFLAGS_no): New variables.
2848 (OBJECTS): Add WOE32DLL dependent objects.
2849 (OBJECTS_yes, OBJECTS_no): New variables.
2850 (iconv-exports.lo): New rule.
2852 2006-05-15 Bruno Haible <bruno@clisp.org>
2854 * srclib/gettext.h: Update from GNU gettext.
2855 * srclib/pathmax.h: Update from GNU gettext.
2856 * srclib/progreloc.c: Update from GNU gettext.
2857 * srclib/unsetenv.c: Update from GNU gettext.
2858 * srclib/Makefile.am: Add snippet for creation of unistd.h.
2859 * m4/extensions.m4: Update from GNU gettext.
2860 * m4/gettext.m4: Update from GNU gettext.
2861 * m4/lib-ld.m4: Update from GNU gettext.
2862 * m4/lib-link.m4: Update from GNU gettext.
2863 * m4/lib-prefix.m4: Update from GNU gettext.
2864 * m4/longdouble.m4: Update from GNU gettext.
2865 * m4/nls.m4: Update from GNU gettext.
2866 * m4/onceonly.m4: Update from GNU gettext.
2867 * m4/po.m4: Update from GNU gettext.
2868 * m4/relocatable.m4: Update from GNU gettext.
2869 * m4/unistd_h.m4: New file, from GNU gettext.
2870 * Makefile.devel (aclocal.m4): Depend on it.
2871 * configure.ac: Invoke gl_HEADER_UNISTD.
2873 2006-05-14 Bruno Haible <bruno@clisp.org>,
2874 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2876 * m4/libtool.m4 [ linux ] (AC_LIBTOOL_LANG_CXX_CONFIG)
2877 (AC_LIBTOOL_POSTDEP_PREDEP, AC_LIBTOOL_PROG_COMPILER_PIC)
2878 (AC_LIBTOOL_PROG_LD_SHLIBS): Add support for Sun C 5.9,
2879 Sun C++ 5.9, and Sun Fortran 8.3 on Linux.
2881 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
2883 * m4/libtool.m4: On Cygwin, like on mingw, define DLL_EXPORT when
2884 compiling a shared library object.
2886 2006-05-15 Bruno Haible <bruno@clisp.org>
2888 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
2890 2006-03-31 Juan Manuel Guerrero <juan.guerrero@gmx.de>
2894 2006-01-23 Bruno Haible <bruno@clisp.org>
2896 * configure.ac: Invoke gl_ALLOCSA.
2898 * Makefile.devel (aclocal.m4): Depend on $(CONFIGURES_IN).
2900 2006-01-22 Bruno Haible <bruno@clisp.org>
2902 * src/iconv.c (xmalloc, xalloc_die) [NO_I18N]: Define to avoid using
2905 2006-01-22 Bruno Haible <bruno@clisp.org>
2907 * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 6:0:4.
2909 2006-01-22 Bruno Haible <bruno@clisp.org>
2911 * src/iconv.c: Include error.h, exit.h.
2912 (print_version): Use EXIT_SUCCESS.
2913 (check_subst_formatstring, subst_mb_to_uc_fallback,
2914 subst_uc_to_mb_fallback, subst_mb_to_wc_fallback,
2915 subst_wc_to_mb_fallback, subst_mb_to_mb_fallback, convert, main): Use
2916 error() instead of fprintf to stderr.
2918 2006-01-22 Bruno Haible <bruno@clisp.org>
2920 New feature: character-dependent substitutions.
2921 * include/iconv.h.in (iconv_unicode_mb_to_uc_fallback,
2922 iconv_unicode_uc_to_mb_fallback, iconv_wchar_mb_to_wc_fallback,
2923 iconv_wchar_wc_to_mb_fallback): New types.
2924 (struct iconv_fallbacks): New structure type.
2925 (ICONV_SET_FALLBACKS): New macro.
2926 * configure.ac: Invoke gt_TYPE_WCHAR_T and substitute HAVE_WCHAR_T.
2927 * Makefile.os2 (all): Also substitute @HAVE_WCHAR_T@ in build/iconv.h.
2928 * Makefile.devel (include/iconv.h_vms, include/iconv.h.msvc-static,
2929 include/iconv.h.msvc-shared): Also substitute @HAVE_WCHAR_T@.
2930 * lib/converters.h (struct conv_struct): Add field 'fallbacks'.
2931 * lib/loop_unicode.h (struct uc_to_mb_fallback_locals): New type.
2932 (uc_to_mb_write_replacement): New function.
2933 (struct mb_to_uc_fallback_locals): New type.
2934 (mb_to_uc_write_replacement): New function.
2935 (unicode_loop_convert): Call mb_to_uc_fallback and uc_to_mb_fallback.
2936 (unicode_loop_reset): Call uc_to_mb_fallback.
2937 * lib/loop_wchar.h (struct wc_to_mb_fallback_locals): New type.
2938 (wc_to_mb_write_replacement): New function.
2939 (wchar_from_loop_convert): Call wc_to_mb_fallback.
2940 (struct mb_to_wc_fallback_locals): New type.
2941 (mb_to_wc_write_replacement): New function.
2942 (wchar_to_loop_convert): Call mb_to_wc_fallback.
2943 * lib/iconv.c (iconv_open): Initialize the 'fallbacks' field.
2944 (iconvctl): Handle ICONV_SET_FALLBACKS.
2945 * lib/genflags.c (struct iconv_fallbacks): New dummy definition.
2946 * src/iconv.c: Include limits.h.
2947 (isdigit, c_isprint): New macros.
2948 (usage): Document long options and new options.
2949 (check_subst_formatstring): New function.
2950 (ilseq_byte_subst, ilseq_wchar_subst, ilseq_unicode_subst): New
2952 (ilseq_byte_subst_size, ilseq_wchar_subst_size,
2953 ilseq_unicode_subst_size): New variables.
2954 (ilseq_byte_subst_buffer, ilseq_wchar_subst_buffer,
2955 ilseq_unicode_subst_buffer): New variables.
2956 (subst_mb_to_uc_cd, subst_mb_to_uc_temp_buffer): New variables.
2957 (subst_mb_to_uc_fallback): New function.
2958 (subst_uc_to_mb_cd, subst_uc_to_mb_temp_buffer): New variables.
2959 (subst_uc_to_mb_fallback): New function.
2960 (subst_mb_to_wc_cd, subst_mb_to_wc_temp_buffer): New variables.
2961 (subst_mb_to_wc_fallback): New function.
2962 (subst_wc_to_mb_cd, subst_wc_to_mb_temp_buffer): New variables.
2963 (subst_wc_to_mb_fallback): New function.
2964 (subst_mb_to_mb_cd, subst_mb_to_mb_temp_buffer): New variables.
2965 (subst_mb_to_mb_fallback): New function.
2966 (convert): Enlarge the outbuf when the conversion failed with E2BIG.
2967 (main): Handle new options --byte-subst, --widechar-subst,
2969 * man/iconv.1: Document --unicode-subst, --byte-subst, --widechar-subst
2971 * tests/check-subst: New file.
2972 * tests/Makefile.in (check): Also invoke check-subst.
2973 Suggested by James Taylor <james@oakseed.demon.co.uk>.
2975 2006-01-21 Bruno Haible <bruno@clisp.org>
2977 * src/iconv.c (print_version): Bump copyright year.
2978 (main): Accept long options --from-code, --to-code, --list, --silent.
2979 Accept abbreviated long options, like getopt() does.
2980 * man/iconv.1: Document long options.
2982 2005-12-29 Bruno Haible <bruno@clisp.org>
2984 * src/iconv.c (print_version): Update copyright year.
2986 2005-12-29 Bruno Haible <bruno@clisp.org>
2988 * configure.ac: Renamed from configure.in.
2989 * Makefile.devel (CONFIGURES_IN, configure, config.h.in): Update.
2991 2005-12-29 Bruno Haible <bruno@clisp.org>
2993 * configure.in: Bump version number.
2994 * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
2995 * windows/iconv.rc: Likewise.
2996 * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 5:1:3.
2998 2005-12-29 Bruno Haible <bruno@clisp.org>
3000 * build-aux/config.guess: Update to GNU version 2005-12-23.
3001 * build-aux/config.sub: Likewise.
3002 * build-aux/config.libpath: Update from GNU gettext.
3003 * build-aux/install-sh: Upgrade to automake-1.9.5.
3004 * build-aux/missing: Upgrade to automake-1.9.5.
3005 * build-aux/mkinstalldirs: Upgrade to automake-1.9.5.
3007 2005-12-29 Bruno Haible <bruno@clisp.org>
3009 * m4/alloca.m4: Update from GNU gettext.
3010 * m4/allocsa.m4: Update from GNU gettext.
3011 * m4/canonicalize.m4: Update from GNU gettext.
3012 * m4/codeset.m4: Update from GNU gettext.
3013 * m4/eealloc.m4: Update from GNU gettext.
3014 * m4/error.m4: Update from GNU gettext.
3015 * m4/extensions.m4: Update from GNU gettext.
3016 * m4/gettext.m4: Update from GNU gettext.
3017 * m4/glibc21.m4: Update from GNU gettext.
3018 * m4/iconv.m4: Update from GNU gettext.
3019 * m4/intmax.m4: Update from GNU gettext.
3020 * m4/inttypes_h.m4: New file, from GNU gettext.
3021 * m4/isc-posix.m4: Update from GNU gettext.
3022 * m4/lcmessage.m4: Update from GNU gettext.
3023 * m4/longdouble.m4: Update from GNU gettext.
3024 * m4/longlong.m4: Update from GNU gettext.
3025 * m4/mbstate_t.m4: Update from GNU gettext.
3026 * m4/nls.m4: Update from GNU gettext.
3027 * m4/onceonly.m4: Update from GNU gettext.
3028 * m4/pathmax.m4: Update from GNU gettext.
3029 * m4/po.m4: Update from GNU gettext.
3030 * m4/printf-posix.m4: Update from GNU gettext.
3031 * m4/progtest.m4: Update from GNU gettext.
3032 * m4/readlink.m4: Update from GNU gettext.
3033 * m4/relocatable.m4: Update from GNU gettext.
3034 * m4/setenv.m4: Update from GNU gettext.
3035 * m4/signed.m4: Update from GNU gettext.
3036 * m4/ssize_t.m4: Update from GNU gettext.
3037 * m4/stdbool.m4: Update from GNU gettext.
3038 * m4/stdint_h.m4: New file, from GNU gettext.
3039 * m4/strerror.m4: Update from GNU gettext.
3040 * m4/strerror_r.m4: Update from GNU gettext.
3041 * m4/unlocked-io.m4: Update from GNU gettext.
3042 * m4/wchar_t.m4: Update from GNU gettext.
3043 * m4/wint_t.m4: Update from GNU gettext.
3044 * m4/xreadlink.m4: Update from GNU gettext.
3045 * Makefile.devel (aclocal.m4): Depend on m4/inttypes_h.m4 and
3046 m4/stdint_h.m4 as well.
3047 * configure.in: Invoke AC_TYPE_MBSTATE_T instead of AC_MBSTATE_T.
3048 Invoke gl_FUNC_GLIBC_UNLOCKED_IO instead of jm_FUNC_GLIBC_UNLOCKED_IO.
3049 Invoke gl_ERROR instead of gt_FUNC_ERROR_AT_LINE.
3050 Don't invoke AC_AIX and AC_MINIX, done by gl_USE_SYSTEM_EXTENSIONS.
3051 Temporarily redefine AC_LIBOBJ and AC_REPLACE_FUNCS, so as to fill
3052 SRCLIBOBJS instead of LIBOBJS.
3053 * srclib/alloca_.h: Update from GNU gettext.
3054 * srclib/allocsa.h: Update from GNU gettext.
3055 * srclib/canonicalize.c: Update from GNU gettext.
3056 * srclib/error.h: Update from GNU gettext.
3057 * srclib/error.c: Update from GNU gettext.
3058 * srclib/gettext.h: Update from GNU gettext.
3059 * srclib/memmove.c: Update from GNU gettext.
3060 * srclib/progname.h: Update from GNU gettext.
3061 * srclib/progname.c: Update from GNU gettext.
3062 * srclib/progreloc.c: Update from GNU gettext.
3063 * srclib/readlink.c: Update from GNU gettext.
3064 * srclib/relocatable.c: Update from GNU gettext.
3065 * srclib/relocwrapper.c: Update from GNU gettext.
3066 * srclib/setenv.h: Update from GNU gettext.
3067 * srclib/setenv.c: Update from GNU gettext.
3068 * srclib/stdbool_.h: Update from GNU gettext.
3069 * srclib/stdint_.h: Update from gnulib.
3070 * srclib/strerror.c: Update from GNU gettext.
3071 * srclib/unlocked-io.h: Update from GNU gettext.
3072 * srclib/unsetenv.c: Update from GNU gettext.
3073 * srclib/xalloc.h: Update from GNU gettext.
3074 * srclib/xmalloc.c: Update from GNU gettext.
3075 * srclib/xreadlink.c: Update from GNU gettext.
3076 * srclib/xstrdup.c: Update from GNU gettext.
3077 * srclib/Makefile.am (DEFS): Also define EXEEXT.
3078 (libicrt_a_LIBADD): Use SRCLIBOBJS instead of LIBOBJS.
3079 (libicrt_a_DEPENDENCIES): New variable.
3080 * src/Makefile.in (EXEEXT): New variable.
3081 * build-aux/install-reloc: Update from GNU gettext.
3082 * build-aux/reloc-ldflags: Update from GNU gettext.
3083 * build-aux/config.rpath: Update from GNU gettext.
3085 2005-12-29 Bruno Haible <bruno@clisp.org>
3087 * m4/libtool.m4: Update, based on libtool-1.5.22.
3088 * build-aux/ltmain.sh: Update, based on libtool-1.5.22.
3090 2005-12-24 Bruno Haible <bruno@clisp.org>
3092 Check the whole range of GB18030.
3093 * tests/GB18030-BMP.TXT: Renamed from tests/GB18030.TXT.
3094 * tests/gengb18030z.c: New file.
3095 * tests/table-from.c (main): For GB18030, don't stop at U+10000.
3096 * tests/table-to.c (main): Likewise.
3097 * tests/Makefile.in (check): Generate GB18030.TXT on the fly from
3099 (clean): Remove also gengb18030z and GB18030.TXT.
3100 * tests/Makefile.msvc (check): Generate GB18030.TXT on the fly from
3102 (clean): Remove also GB18030Z.TXT, GB18030TMP.TXT, GB18030.TXT.
3103 * tests/Makefile.os2 (check): Depend on gengb18030z.exe. Generate
3104 GB18030.TXT on the fly from GB18030-BMP.TXT.
3105 (clean): Remove also GB18030Z.TXT, GB18030TMP.TXT, GB18030.TXT.
3107 2005-12-20 Bruno Haible <bruno@clisp.org>
3109 * tests/table-to.c (main): Test the mappings up to U+10FFFF, not only
3110 up to U+2FFFF. Tolerate that Unicode language tags are silently mapped
3113 2005-12-22 Bruno Haible <bruno@clisp.org>
3115 Extend GB18030 converter to cover the entire Unicode PUA.
3116 * lib/gb18030.h: Update comments, based on second printing.
3117 (gb18030_mbtowc): Add mapping for range U+E000..U+E765.
3118 (gb18030_pua2charset): New array.
3119 (gb18030_wctomb): Add mapping for range U+E000..U+E765 and the two-byte
3120 part of range U+E766..U+E864.
3121 * lib/gb18030ext.h (gb18030ext_2uni_pagefe): Add mappings to private
3123 (gb18030ext_mbtowc): Add mapping for the two-byte part of range
3125 * lib/gb18030uni.h (gb18030uni_charset2uni_ranges,
3126 gb18030uni_uni2charset_ranges, gb18030uni_ranges): Add 12 more
3128 (gb18030uni_mbtowc, gb18030uni_wctomb): Update.
3129 * tests/GB18030.TXT: Complete mappings to private area.
3131 2005-12-22 Bruno Haible <bruno@clisp.org>
3133 * lib/gbk.h: Update comments.
3135 2005-12-20 Bruno Haible <bruno@clisp.org>
3137 Add private area mappings to CP949.
3138 * lib/cp949.h (cp949_mbtowc, cp949_wctomb): Map U+E000..U+E0BB like
3140 * tests/CP949.TXT: Add mappings for U+E000..U+E0BB.
3142 2005-12-15 Bruno Haible <bruno@clisp.org>
3144 Add private area mappings to CP950.
3145 * lib/cp950.h (cp950_mbtowc, cp950_wctomb): Map U+E000..U+F6B0 like
3147 * tests/CP950.TXT: Add mappings for U+E000..U+F6B0.
3149 2005-12-15 Bruno Haible <bruno@clisp.org>
3151 Make CP936 follow what Microsoft does.
3152 In http://www.microsoft.com/globaldev/reference/dbcs/936.mspx they
3153 added a 0x80 - U+20AC mapping to the code chart, but not to the
3154 tooltips and not to the list of mappings.
3155 * lib/cp936.h: New file.
3156 * lib/gbk.h: Update comments.
3157 * lib/ces_gbk.h: Update comments.
3158 * lib/converters.h: Include cp936.h.
3159 * lib/encodings.def (CP936): New encoding.
3160 (GBK): Remove CP936 aliases.
3161 * README, man/iconv_open.3: Add CP936.
3162 * tests/Makefile.in (check): Check CP936.
3163 * tests/Makefile.msvc (check): Likewise.
3164 * tests/Makefile.os2 (check): Likewise.
3165 * tests/CP936.TXT: New file.
3167 2005-12-14 Bruno Haible <bruno@clisp.org>
3169 * lib/cp932.h (cp932_wctomb): Map U+FF5E, U+2225, U+FF0D, U+FFE0,
3170 U+FFE1 like Microsoft does it.
3171 * lib/CP932.IRREVERSIBLE.TXT: Add these mappings.
3172 Reported by Lei Wang <lwang@qilinsoft.com>.
3174 2005-12-14 Bruno Haible <bruno@clisp.org>
3176 Follow Euro sign addition done in 1999 in
3177 http://www.microsoft.com/globaldev/reference/dbcs/950/950_A3.mspx
3178 * lib/cp950.h (cp950_mbtowc, cp950_wctomb): Add mapping for 0xA3E1.
3179 * tests/CP950.TXT: Add mapping for 0xA3E1.
3181 2005-11-11 Bruno Haible <bruno@clisp.org>
3183 * lib/euc_jp.h (euc_jp_wctomb): When writing a 3-bytes byte sequence
3184 and only two bytes are available in the output buffer, return
3185 RET_TOOSMALL instead of overrunning the output buffer.
3186 * lib/isoir165.h (isoir165_wctomb): When only one byte is available
3187 in the output buffer, don't overrun the output buffer.
3188 Reported by William Bardwell <bardwell@curl.com>.
3190 2005-09-18 Bruno Haible <bruno@clisp.org>
3192 * m4/libtool.m4: Update, based on libtool-1.5.20.
3193 * build-aux/ltmain.sh: Update, based on libtool-1.5.20.
3195 2005-08-12 Bruno Haible <bruno@clisp.org>
3197 * lib/big5_2003.h: Map 0xF9FA..0xF9FD differently.
3198 * tests/BIG5-2003.TXT: Likewise.
3199 * tests/BIG5-2003.IRREVERSIBLE.TXT: New file.
3200 Reported by Ping Yeh <ping@pingyeh.net>.
3202 2005-07-24 Bruno Haible <bruno@clisp.org>
3204 Tidy up exported symbols.
3205 * m4/visibility.m4: New file.
3206 * include/export.h: New file.
3207 * configure.in: Invoke gl_VISIBILITY. Use AC_CONFIG_FILES. Arrange to
3208 create also include/iconv.h.inst.
3209 * Makefile.devel (all): Depend on include/iconv.h.build.in.
3210 (aclocal.m4): Depend on m4/visibility.m4.
3211 (include/iconv.h.build.in): New rule.
3212 * Makefile.in (install-lib, install): Install include/iconv.h.inst,
3213 not the include/iconv.h that was used for building.
3214 (distclean, maintainer-clean): Remove also include/iconv.h.inst.
3215 * lib/Makefile.in (CFLAGS): Add @CFLAG_VISIBILITY@.
3216 (DEFS): Also define BUILDING_LIBICONV and BUILDING_DLL.
3217 * lib/config.h.in (HAVE_VISIBILITY): New macro.
3218 * lib/relocatable.h (RELOCATABLE_DLL_EXPORTED) [HAVE_VISIBILITY]:
3219 Define to the gcc visibility attribute.
3220 * srclib/relocatable.h (RELOCATABLE_DLL_EXPORTED) [HAVE_VISIBILITY]:
3223 2005-07-25 Bruno Haible <bruno@clisp.org>
3225 2003-08-24 Bruno Haible <bruno@clisp.org>
3226 * lib/relocatable.h: Make this file includable in C++ mode: add extern
3229 2005-07-08 Bruno Haible <bruno@clisp.org>
3231 * Version 1.10 released.
3233 2005-07-08 Bruno Haible <bruno@clisp.org>
3235 * m4/libtool.m4 (postinstall_cmds) [cygwin,mingw,pw32]: Make DLL
3236 executable after installing it.
3238 2005-07-08 Bruno Haible <bruno@clisp.org>
3240 * configure.in: Bump version number.
3241 * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
3242 * windows/iconv.rc: Likewise.
3243 * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 5:0:3.
3245 2005-07-05 Bruno Haible <bruno@clisp.org>
3247 * Makefile.devel (ACLOCAL): New variable.
3248 (aclocal.m4): Use it.
3250 2005-07-05 Bruno Haible <bruno@clisp.org>
3252 * m4/relocatable.m4 (AC_RELOCATABLE): On mingw, simply set
3253 SET_RELOCATABLE to a trivial value.
3255 2004-08-08 Bruno Haible <bruno@clisp.org>
3257 * srclib/progreloc.c (xstrdup): Define as strdup if no xmalloc should
3260 2004-04-28 Bruno Haible <bruno@clisp.org>
3262 * srclib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
3263 Treat Cygwin like Windows, since it now accepts Windows pathnames.
3265 2005-06-09 Bruno Haible <bruno@clisp.org>
3267 * Makefile.in (mkinstalldirs): Use build-aux/ instead of autoconf/.
3268 * lib/Makefile.in (mkinstalldirs): Likewise.
3269 * src/Makefile.in (mkinstalldirs): Likewise.
3270 * man/Makefile.in (mkinstalldirs): Likewise.
3272 2005-06-08 Bruno Haible <bruno@clisp.org>
3274 * srclib/canonicalize.c (__realpath): Avoid gcc warnings on platforms
3275 that don't support symbolic links.
3277 2005-06-08 Bruno Haible <bruno@clisp.org>
3279 * srclib/binary-io.h (fileno): Undefine before defining it. Avoids a
3280 gcc warning on mingw.
3282 2005-05-22 Bruno Haible <bruno@clisp.org>
3284 Implement and document BIG5-2003.
3285 * lib/big5_2003.h: New file.
3286 * lib/converters.h: Include it.
3287 * lib/encodings_extra.def (BIG5-2003): New encoding.
3288 * README, man/iconv_open.3: Add BIG5-2003.
3289 * tests/Makefile.in (check-extra-yes): Check BIG5-2003.
3290 * tests/BIG5-2003.TXT: New file.
3292 2005-05-21 Bruno Haible <bruno@clisp.org>
3294 Add EURO SIGN to EUC-TW converter.
3295 * lib/cns11643_1.h (cns11643_1_2uni_page42): Add entry for 0x14242.
3296 (cns11643_1_mbtowc): Update.
3297 * lib/cns11643_inv.h (cns11643_inv_2charset): Add entry for 0x20AC.
3298 (cns11643_inv_uni2indx_page*): Update.
3299 * lib/dec_hanyu.h (dec_hanyu_mbtowc, dec_hanyu_wctomb): Consider only
3301 * tests/EUC-TW.TXT: Add entry for 0x20AC.
3302 * tests/EUC-TW.IRREVERSIBLE.TXT: Likewise.
3304 2005-05-03 Bruno Haible <bruno@clisp.org>
3306 * tools/Makefile (ALL): Add pt154.h.
3307 (pt154.h): New rule.
3308 * lib/encodings.def: Add PT154.
3309 * lib/pt154.h: New file.
3310 * lib/converters.h: Include it.
3311 * README, man/iconv_open.3: Add PT154.
3312 * NOTES: Mention PT154.
3313 * tests/PT154.TXT: New file.
3314 * tests/Makefile.in (check): Also test PT154.
3315 * tests/Makefile.msvc (check): Likewise.
3316 * tests/Makefile.os2 (check): Likewise.
3318 2005-03-29 Bruno Haible <bruno@clisp.org>
3320 Rename libiconv_plug.so to preloadable_libiconv.so.
3321 * configure.in (PLUGLIB): Set to preloadable_libiconv.so instead of
3323 * lib/Makefile.in (preloadable_libiconv.so): Renamed from
3325 (preloadable_libiconv_linux.so): Renamed from libiconv_plug_linux.so.
3326 (preloadable_libiconv_solaris.so): Renamed from
3327 libiconv_plug_solaris.so.
3328 (preloadable_libiconv_osf.so): Renamed from libiconv_plug_osf.so.
3332 2005-03-29 Bruno Haible <bruno@clisp.org>
3334 Implement and document ATARIST.
3335 * tools/Makefile (ALL): Add atarist.h.
3336 (atarist.h): New rule.
3337 * lib/atarist.h: New file.
3338 * lib/converters.h: Include it.
3339 * lib/encodings_extra.def (ATARIST): New encoding.
3340 * README, man/iconv_open.3: Add ATARIST.
3341 * tests/Makefile.in (check-extra-yes): Check ATARIST.
3342 * tests/ATARIST.TXT: New file.
3344 2005-03-22 Bruno Haible <bruno@clisp.org>
3346 * build-aux: New directory, renamed from autoconf.
3347 * configure.in (AC_CONFIG_AUX_DIR): Use build-aux.
3349 2005-03-16 Bruno Haible <bruno@clisp.org>
3351 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
3352 HAVE_LONGLONG_64BIT.
3353 * srclib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
3354 HAVE_LONGLONG_64BIT.
3355 * srclib/Makefile.am (stdint.h): Likewise.
3357 2005-03-14 Bruno Haible <bruno@clisp.org>
3359 * Makefile.devel (aclocal.m4): Depend also on allocsa.m4, eealloc.m4,
3360 extensions.m4, intmax.m4, inttypes.m4, longdouble.m4, longlong.m4,
3361 printf-posix.m4, readlink.m4, signed.m4, ssize_t.m4, stdint.m4,
3362 wchar_t.m4, wint_t.m4.
3364 2005-03-13 Bruno Haible <bruno@clisp.org>
3366 Make stdout error checking reliable, also when writing to a NFS file.
3367 * src/iconv.c (main): Check the return value of fclose(stdout).
3368 * lib/genaliases.c (main): Likewise.
3369 * lib/genaliases2.c (main): Likewise.
3370 * lib/genflags.c (main): Likewise.
3371 * lib/gentranslit.c (main): Likewise.
3372 * tests/genutf8.c (main): Likewise.
3373 * tests/table-from.c (main): Likewise.
3374 * tests/table-to.c (main): Likewise.
3376 2005-03-13 Bruno Haible <bruno@clisp.org>
3378 * src/iconv.c (convert): Before outputting an error message, flush
3379 stdout and output a newline if suitable.
3381 2005-03-13 Bruno Haible <bruno@clisp.org>
3383 Improved error messages.
3384 * srclib/width.c: New file, from GNU clisp.
3385 * srclib/uniwidth.h: New file, from GNU clisp with modifications.
3386 * srclib/unitypes.h: New file, from GNU clisp with modifications.
3387 * srclib/cjk.h: New file, from GNU clisp.
3388 * srclib/streq.h: New file, from GNU clisp.
3389 * srclib/stdint_.h: New file, from gnulib.
3390 * m4/stdint.m4: New file, from gnulib.
3391 * m4/inttypes.m4: New file, from gnulib.
3392 * srclib/Makefile.am: Add gnulib module 'stdint' snippet.
3393 (BUILT_SOURCES): New variable.
3394 (libicrt_a_SOURCES): Add width.c, uniwidth.h, unitypes.h, cjk.h,
3396 * configure.in: Invoke gl_STDINT_H.
3397 * src/iconv.c: Include cjk.h, uniwidth.h.
3398 (line, column, cjkcode): New variables.
3399 (update_line_column): New function.
3400 (convert): Initialize line and column. In all error message, show also
3401 the line and column number.
3402 (main): Initialize cjkcode. Set up hooks to call update_line_column.
3404 2005-03-13 Bruno Haible <bruno@clisp.org>
3406 * include/iconv.h.in (iconv_canonicalize): New declaration.
3407 * lib/genaliases.c (emit_encoding): Take two output streams as
3408 arguments. To the second stream, emit a shell command for extracting
3409 offsets into the gperf generated string pool.
3410 (main): Write the shell commands into file descriptors 3 and 4.
3411 * lib/genaliases2.c (emit_encoding): Take two output streams as
3412 arguments. To the second stream, emit an expression for the offset
3413 into the string pool.
3414 (main): Write the offsets into file descriptor 3.
3415 * Makefile.devel (lib/aliases.gperf): Remove target.
3416 (lib/aliases.h): Generate lib/aliases.gperf temporarily. Generate also
3417 lib/canonical.h and lib/canonical_local.h.
3418 (lib/aliases_aix.h): Generate also lib/canonical_aix.h.
3419 (lib/aliases_osf1.h): Generate also lib/canonical_osf1.h.
3420 (lib/aliases_dos.h): Generate also lib/canonical_dos.h.
3421 (lib/aliases_extra.h): Generate also lib/canonical_extra.h.
3422 * lib/iconv.c (stringpool2): Provide default definition when it doesn't
3424 (all_canonical): New array.
3425 (iconv_canonicalize): New function.
3427 2005-03-13 Bruno Haible <bruno@clisp.org>
3429 * include/iconv.h.in (iconv_unicode_char_hook, iconv_wide_char_hook,
3430 iconv_hooks): New types.
3431 (ICONV_SET_HOOKS): New macro.
3432 * lib/converters.h (struct conv_struct): Add field 'hooks'.
3433 * lib/iconv.c (iconv_open): Initialize hooks to NULL.
3434 (iconvctl): Handle ICONV_SET_HOOKS.
3435 * lib/loop_unicode.h (unicode_loop_convert, unicode_loop_reset): After
3436 conversion of a character, call the uc_hook.
3437 * lib/loop_wchar.h (wchar_id_loop_convert): After every character, call
3439 * lib/genflags.c (iconv_hooks): Provide a dummy definition.
3441 2005-02-05 Bruno Haible <bruno@clisp.org>
3443 * src/iconv.c (main): In case of unsupported encodings, show a hint
3446 2005-01-06 Bruno Haible <bruno@clisp.org>
3448 * lib/Makefile.msvc (CFLAGS): Define also INSTALLPREFIX.
3449 * lib/Makefile.vms (DEFS): Likewise.
3450 Reported by Troels Walsted Hansen <Troels.W.Hansen@fast.no>.
3452 2005-01-05 Bruno Haible <bruno@clisp.org>
3454 * autoconf/config.rpath: Update from GNU gettext.
3456 2005-01-05 Bruno Haible <bruno@clisp.org>
3458 Assume automake-1.9.
3459 * Makefile.devel (AUTOMAKE): Assume automake-1.9.
3461 2005-01-05 Bruno Haible <bruno@clisp.org>
3463 * m4/libtool.m4: Update from GNU gettext, based on libtool-1.5.10.
3464 * autoconf/ltmain.sh: Update from GNU gettext, based on libtool-1.5.10.
3466 2004-11-11 Bruno Haible <bruno@clisp.org>
3468 * lib/iconv.c (iconv_open): Accept the suffixes //TRANSLIT and //IGNORE
3470 Reported by Lukas Gebauer <gebauerl@mlp.cz>.
3472 2004-09-21 Juan Manuel Guerrero <st001906@hrz1.hrz.tu-darmstadt.de>
3474 * djgpp/config.bat: Update.
3475 * djgpp/config.sed: Update.
3476 * djgpp/config.site: Update.
3477 * djgpp/edtest.bat: Update.
3478 * djgpp/fnchange.in: Update.
3479 * djgpp/Makefile.maint: Update.
3480 * djgpp/makefile.sed: Update.
3481 * djgpp/README.in: Update.
3482 * djgpp/sources.sed: Update.
3483 * djgpp/translit-check.sed: Update.
3485 2004-08-25 Bruno Haible <bruno@clisp.org>
3487 * m4/libtool.m4: Update from GNU gettext, based on libtool-1.5.6.
3488 * autoconf/ltmain.sh: Update from GNU gettext, based on libtool-1.5.6.
3490 2004-07-31 Bruno Haible <bruno@clisp.org>
3492 Update to JISX 0213 plane 1 to 2004 version (ISO-IR-233).
3493 * tools/Makefile (jisx0213.h): Bump version number.
3494 * tools/JISX0213.TXT: Change mappings U+2015 -> U+2014,
3495 U+2299 -> U+29BF, and add 10 new characters.
3496 * tools/cjk_tab_to_h.c (output_title): Bump year.
3497 (do_jisx0213): Update comments. Emit a conditional 'inline'.
3498 * lib/jisx0213.h: Regenerated.
3499 * lib/iso2022_jp3.h (iso2022_jp3_mbtowc): Accept escape sequence
3500 ESC $ ( Q as a synonym of ESC $ ( O.
3501 (iso2022_jp3_wctomb): Emit ESC $ ( Q instead of ESC $ ( O.
3502 * tests/EUC-JISX0213.TXT: Change mappings U+2015 -> U+2014,
3503 U+2299 -> U+29BF, and add 10 new characters.
3504 * tests/SHIFT_JISX0213.TXT: Likewise.
3505 * tests/ISO-2022-JP-3-snippet: Update.
3506 * tests/ISO-2022-JP-3-snippet.UTF-8: Update.
3508 2004-07-22 Bruno Haible <bruno@clisp.org>
3510 * lib/encodings.def (ISO-8859-7): Add alias ISO_8859-7:2003.
3511 * tools/Makefile (iso8859_7.h): Use conversion table from 2003.
3512 * lib/iso8859_7.h: Add mappings for 0xa4, 0xa5, 0xaa.
3513 * tests/ISO-8859-7.TXT: Update to ISO_8859-7:2003.
3515 2004-07-22 Bruno Haible <bruno@clisp.org>
3517 * tools/Makefile (ALL): Add iso8859_11.h.
3518 (iso8859_11.h): New rule.
3519 * lib/encodings.def: Add ISO-8859-11.
3520 * lib/iso8859_11.h: New file.
3521 * lib/converters.h: Include it.
3522 * tests/ISO-8859-11.TXT: New file.
3523 * tests/Makefile.in (check): Also test ISO-8859-11.
3524 * tests/Makefile.msvc (check): Likewise.
3525 * tests/Makefile.os2 (check): Likewise.
3527 2004-07-17 Bruno Haible <bruno@clisp.org>
3529 * src/iconv.c (main): Terminate option parsing when option -- is seen.
3530 Reported by Len Lattanzi <zardoz@users.sourceforge.net>.
3532 2004-03-05 Bruno Haible <bruno@clisp.org>
3534 * src/Makefile.in (install): Make DESTDIR work on HP-UX.
3535 Reported by Bob Proulx <box@proulx.com>.
3537 2004-02-19 Bruno Haible <bruno@clisp.org>
3539 * lib/vietcomb.h (viet_comp_table_data): Un-uncomment 0x00D5, 0x00F5,
3540 0x0168, 0x0169. Needed for TCVN-5712 but not for CP1258.
3541 (viet_comp_table0301_len): Increment by 4.
3543 * lib/cp1255.h (cp1255_mbtowc): Don't delay the handling of characters
3544 which are not entries in cp1255_comp_table_data.
3545 * lib/cp1258.h (cp1258_comp_bases): New array.
3546 (cp1258_mbtowc): Don't delay the handling of characters which are not
3547 relevant entries in viet_comp_table_data.
3548 * lib/tcvn.h (tcvn_comp_bases): New array.
3549 (tcvn_mbtowc): Don't delay the handling of characters which are not
3550 relevant entries in viet_comp_table_data.
3551 Reported by Alain Bench <veronatif@free.fr>.
3553 2004-02-02 Perry Rapp <lifelines_3_0_18@hotmail.com>
3554 Bruno Haible <bruno@clisp.org>
3556 * man/iconvctl.3: New file.
3557 * man/iconv.3: Refer to it in "See also".
3558 * man/iconv_open.3: Likewise.
3560 2004-01-24 Bruno Haible <bruno@clisp.org>
3562 * srclib/progreloc.c (xstrdup): Define as strdup if no xmalloc should
3565 2004-01-20 Bruno Haible <bruno@clisp.org>
3567 Upgrade from gettext-0.14.
3569 * configure.in: Call gl_USE_SYSTEM_EXTENSIONS. Call AM_STDBOOL_H
3570 instead of gt_STDBOOL_H. Provide a definition for DLL_VARIABLE.
3571 * srclib/Makefile.am (libicrt_a_SOURCES): Add allocsa.h, allocsa.c,
3572 xalloc.h. Remove xmalloc.h.
3573 (libicrt_a_LIBADD): Remove @ALLOCA@.
3574 * srclib/Makefile.msvc (OBJECTS): Add allocsa.obj.
3575 (allocsa.obj): New rule.
3576 * srclib/Makefile.vms (OBJECTS): Add allocsa.obj.
3577 (allocsa.obj): New rule.
3578 * Makefile.devel (config.h_vms): Set MALLOC_0_IS_NONNULL to 0.
3579 (config.h.msvc): Set MALLOC_0_IS_NONNULL to 1.
3583 2003-10-09 Bruno Haible <bruno@clisp.org>
3584 * lib/relocatable.c: Include xalloc.h instead of xmalloc.h.
3586 2003-08-01 Bruno Haible <bruno@clisp.org>
3587 * lib/relocatable.c (find_shared_library_fullname): Disable the code on
3588 Linux/libc5. Reported by Alain Guibert <derogaton+bgli@oreka.com>.
3590 2003-06-22 Bruno Haible <bruno@clisp.org>
3591 * lib/relocatable.c (compute_curr_prefix): Comment out this function in
3592 the case when it is not used.
3593 Reported by Pavel Roskin <proski@gnu.org>.
3597 * m4/gettext.m4: Upgrade from GNU gettext. Many changes.
3598 * m4/po.m4: Likewise.
3600 * m4/readlink.m4: New file, from GNU gettext.
3602 2003-11-30 Bruno Haible <bruno@clisp.org>
3603 * m4/allocsa.m4: New file.
3604 * m4/eealloc.m4: New file.
3605 * m4/setenv.m4 (gl_PREREQ_SETENV): Require gl_ALLOCSA instead of
3608 2003-10-21 Bruno Haible <bruno@clisp.org>
3609 * m4/canonicalize.m4 (gl_PREREQ_CANONICALIZE): Also test for
3612 2003-08-24 Bruno Haible <bruno@clisp.org>
3613 * m4/relocatable.m4 (AC_RELOCATABLE): Use $(host) instead of @host@,
3614 since the substitution of @host@ may occur before the substitution of
3617 2003-08-23 Bruno Haible <bruno@clisp.org>
3618 * stdbool.m4: Replace with the version from gnulib, without
3621 2003-08-08 Paul Eggert <eggert@twinsun.com>
3622 * m4/extensions.m4: New file.
3623 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
3624 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
3626 2003-07-01 Bruno Haible <bruno@clisp.org>
3627 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
3628 <sys/types.h> should be sufficient.
3629 Reported by Paul Eggert.
3631 2003-07-01 Bruno Haible <bruno@clisp.org>
3632 * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Avoid "duplicated macro" error
3633 from aclocal-1.4-p4.
3634 Reported by Luke Schierer <lschiere@rackspace.com> and
3635 Michael C. Toren <mct@toren.net>.
3637 2003-07-01 Paul Eggert <eggert@twinsun.com>
3638 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
3639 xreadlink.c now includes it unconditionally.
3641 2003-06-17 Paul Eggert <eggert@twinsun.com>
3642 * m4/lib-ld.m4 (AC_LIB_PROG_LD_GNU, AC_LIB_PROG_LD): Don't use egrep,
3643 for portability to POSIX 1003.1-2001. Backported from libtool-1.5.
3645 2003-05-28 Paul Eggert <eggert@twinsun.com>
3646 * m4/pathmax.m4 (gl_PATHMAX): Don't check for limits.h.
3647 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
3649 2002-12-24 Bruno Haible <bruno@clisp.org>
3650 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
3651 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
3653 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
3658 2003-11-30 Bruno Haible <bruno@clisp.org>
3659 * srclib/alloca.c: Remove file.
3661 2003-11-30 Bruno Haible <bruno@clisp.org>
3662 Safer stack allocation.
3663 * srclib/allocsa.h: New file.
3664 * srclib/allocsa.c: New file.
3665 * canonicalize.c: Include allocsa.h.
3666 (__realpath): Use allocsa instead of alloca. Don't clobber errno right
3667 before returning NULL.
3668 * srclib/relocwrapper.c: Indirectly depends on allocsa.
3669 * srclib/setenv.c: Include allocsa.h.
3670 (alloca): Remove fallback definition.
3671 (freea): Remove macro.
3672 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
3675 2003-11-17 Bruno Haible <bruno@clisp.org>
3676 * srclib/canonicalize.c: #undef realpath after <config.h> but before
3677 the system includes, so as to avoid a prototype clash on Solaris 2.5.1.
3678 Reported by Warren L. Dodge <warrend@mdhost.cse.tek.com>.
3680 2003-10-21 Bruno Haible <bruno@clisp.org>
3681 * srclib/canonicalize.c (lstat): Define as an alias to 'stat' on
3682 systems without symbolic links.
3684 2003-10-17 Bruno Haible <bruno@clisp.org>
3685 * srclib/binary-io.h: Avoid warnings on Cygwin.
3687 2003-10-09 Bruno Haible <bruno@clisp.org>
3688 * srclib/xalloc.h: Renamed from xmalloc.h.
3689 * srclib/progreloc.c: Include xalloc.h instead of xmalloc.h.
3690 * srclib/relocatable.c: Likewise.
3691 * srclib/xmalloc.c: Likewise.
3692 * srclib/xreadlink.c: Likewise.
3693 * srclib/xstrdup.c: Likewise.
3695 2003-09-12 Paul Eggert <eggert@twinsun.com>
3696 * srclib/progreloc.c (get_full_program_name): Define via prototype.
3698 2003-09-12 Paul Eggert <eggert@twinsun.com>
3699 * srclib/setenv.c (clearenv): Define via prototype.
3701 2003-09-10 Bruno Haible <bruno@clisp.org>
3702 * srclib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
3703 * srclib/unsetenv.c: Likewise.
3705 2003-08-28 Bruno Haible <bruno@clisp.org>
3706 * srclib/binary-io.h: Undefine O_BINARY before defining it. This avoids
3707 a warning on QNX, which defines O_BINARY to 000000.
3709 2003-08-24 Bruno Haible <bruno@clisp.org>
3710 * srclib/binary-io.h: Include <stdio.h>, to avoid a compilation error
3711 when MSVC7 <stdio.h> is included later.
3713 2003-08-24 Bruno Haible <bruno@clisp.org>
3714 * srclib/error.h: Use ANSI C "..." declarations when compiling with
3715 MSVC, even though it doesn't define __STDC__ by default.
3716 * srclib/error.c: Use <stdarg.h> when compiling with MSVC, even though
3717 it doesn't define __STDC__ by default.
3719 2003-08-24 Bruno Haible <bruno@clisp.org>
3720 Support for building DLLs on Windows.
3721 * srclib/error.h (error_print_progname, error_message_count,
3722 error_one_per_line): Add DLL_VARIABLE attribute.
3723 * srclib/progname.h (program_name): Likewise.
3725 2003-08-24 Bruno Haible <bruno@clisp.org>
3726 * srclib/progname.h: Make this file includable in C++ mode: add extern
3728 * srclib/relocatable.h: Likewise.
3729 * srclib/xmalloc.h: Likewise.
3731 2003-08-22 Bruno Haible <bruno@clisp.org>
3732 * srclib/progname.h (error_with_progname, maybe_print_progname): Remove
3734 * srclib/progname.c (error_with_progname): Remove variable.
3735 (maybe_print_progname): Remove function.
3737 2003-08-01 Bruno Haible <bruno@clisp.org>
3738 * srclib/relocatable.c (find_shared_library_fullname): Disable the code
3739 on Linux/libc5. Reported by Alain Guibert <derogaton+bgli@oreka.com>.
3741 2003-07-01 Paul Eggert <eggert@twinsun.com>
3742 * srclib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
3743 having it depend on HAVE_SYS_TYPES_H.
3745 2003-06-23 Bruno Haible <bruno@clisp.org>
3746 Avoid compilation units that are empty after preprocessing.
3747 * srclib/canonicalize.c: Add dummy declaration.
3748 * srclib/strerror.c: Likewise.
3749 * srclib/error.c: Include <stdio.h> even if there's nothing to be
3752 2003-06-22 Bruno Haible <bruno@clisp.org>
3753 * srclib/relocatable.c (compute_curr_prefix): Comment out this function
3754 in the case when it is not used.
3755 Reported by Pavel Roskin <proski@gnu.org>.
3757 2003-05-28 Paul Eggert <eggert@twinsun.com>
3758 * srclib/pathmax.h: Include <limits.h> without checking for
3760 * srclib/xreadlink.c: Likewise.
3762 2004-01-20 Bruno Haible <bruno@clisp.org>
3764 Assume automake-1.8.
3765 * Makefile.devel (AUTOCONF, AUTOHEADER): Assume autoconf-2.59.
3766 (AUTOMAKE): Assume automake-1.8.
3767 * Makefile.in (am--refresh): New target.
3769 2004-01-23 Bruno Haible <bruno@clisp.org>
3771 * Version 1.9.2 released.
3773 2004-01-23 Bruno Haible <bruno@clisp.org>
3775 * tests/table-from.c: Include binary-io.h.
3776 (main): Switch stdout to binary mode.
3777 * tests/table-to.c: Include binary-io.h.
3778 (main): Switch stdout to binary mode.
3779 * tests/genutf8.c: Include binary-io.h.
3780 (main): Switch stdout to binary mode.
3781 * tests/Makefile.in (INCLUDES): Also look in srclib.
3782 (check): Pass INCLUDES when compiling genutf8.c.
3783 * tests/Makefile.os2 (INCLUDES): Also look in srclib.
3784 (genutf8.exe): Pass INCLUDES when compiling genutf8.c.
3785 * tests/Makefile.msvc (INCLUDES): Also look in srclib.
3786 (check): Pass INCLUDES when compiling genutf8.c.
3788 2004-01-21 Bruno Haible <bruno@clisp.org>
3790 * src/iconv.c (force_binary): Remove variable.
3791 (usage): Don't document --binary any more.
3792 (convert, main): Always switch to binary mode.
3793 * tests/check-stateful.bat: Remove --binary option.
3794 * tests/check-translit.bat: Likewise.
3795 * tests/check-stateful.cmd: Likewise.
3796 * tests/check-translit.cmd: Likewise.
3797 * djgpp/stateful-check.sed: Remove MODE variable.
3798 * djgpp/translit-check.sed: Likewise.
3800 2004-01-21 Bruno Haible <bruno@clisp.org>
3802 * man/iconv.3: Fix description of return value in case of error.
3803 Reported by Jonathan Wakely <redi@users.sf.net>.
3805 2003-09-12 Paul Eggert <eggert@twinsun.com>
3807 * srclib/progreloc.c (get_full_program_name): Define via prototype.
3809 2003-08-15 Bruno Haible <bruno@clisp.org>
3811 * Makefile.devel (lib/translit.h): Add ulimit command so that the
3812 gentranslit program gets the stack it needs. Many Linux distributions
3813 allow only 8 MB of stack by default.
3815 2003-08-01 Bruno Haible <bruno@clisp.org>
3817 * lib/relocatable.c (find_shared_library_fullname): Disable the code on
3819 * srclib/relocatable.c (find_shared_library_fullname): Likewise.
3820 Reported by Alain Guibert <derogaton+bgli@oreka.com>.
3822 2003-07-02 Bruno Haible <bruno@clisp.org>
3824 * m4/lib-ld.m4: Update from GNU gettext.
3825 * m4/lib-prefix.m4: Update from GNU gettext.
3826 * m4/gettext.m4: Update from GNU gettext.
3827 * m4/intmax.m4: New file, from GNU gettext.
3828 * m4/longdouble.m4: New file, from GNU gettext.
3829 * m4/longlong.m4: New file, from GNU gettext.
3830 * m4/printf-posix.m4: New file, from GNU gettext.
3831 * m4/signed.m4: New file, from GNU gettext.
3832 * m4/wchar_t.m4: New file, from GNU gettext.
3833 * m4/wint_t.m4: New file, from GNU gettext.
3834 * m4/pathmax.m4: Update from GNU gettext and gnulib.
3835 * m4/ssize_t.m4: Update from GNU gettext and gnulib.
3836 * m4/xreadlink.m4: Update from GNU gettext and gnulib.
3837 * m4/readlink.m4: New file, from gnulib.
3838 * autoconf/install-reloc: Update from GNU gettext.
3839 * srclib/stdbool_.h: Renamed from srclib/stdbool.h.in.
3840 * srclib/readlink.c: New file, from GNU gettext and gnulib.
3841 * srclib/Makefile.am (LIBADD_SOURCE): Add readlink.c.
3842 (EXTRA_DIST, stdbool.h): Use stdbool_.h instead of stdbool.h.in.
3843 * configure.in: Invoke gl_FUNC_READLINK.
3845 2003-06-22 Bruno Haible <bruno@clisp.org>
3847 * src/Makefile.in (install): Link with the already installed library.
3848 This fixes a link error on Solaris.
3849 Reported by Paul Eggert.
3851 2003-06-08 Bruno Haible <bruno@clisp.org>
3853 * srclib/canonicalize.c (__getcwd) [VMS]: Pass 3 arguments to getcwd.
3855 2003-05-02 Bruno Haible <bruno@clisp.org>
3857 Support for libtool-1.5.
3858 * srclib/progname.c (set_program_name): Remove a leading
3859 "<dirname>/.libs/lt-" or "<dirname>/.libs/", not only "lt-".
3861 2003-06-23 Bruno Haible <bruno@clisp.org>
3863 Avoid compilation units that are empty after preprocessing.
3864 * srclib/canonicalize.c: Add dummy declaration.
3865 * srclib/strerror.c: Likewise.
3866 * srclib/error.c: Include <stdio.h> even if there's nothing to be
3869 2003-06-22 Bruno Haible <bruno@clisp.org>
3871 Portability to mingw32.
3872 * m4/ssize_t.m4: New file, from GNU gettext.
3873 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
3874 Reported by Jeff Bonggren <jbon@cfl.rr.com>.
3876 2003-06-22 Bruno Haible <bruno@clisp.org>
3878 Portability to mingw32.
3879 * lib/relocatable.c [WIN32]: Include <windows.h>.
3880 * srclib/relocatable.c: Likewise.
3881 Reported by Jeff Bonggren <jbon@cfl.rr.com>.
3883 2003-06-22 Bruno Haible <bruno@clisp.org>
3885 * lib/relocatable.c (compute_curr_prefix): Comment out this function in
3886 the case when it is not used.
3887 * srclib/relocatable.c (compute_curr_prefix): Likewise.
3888 Reported by Pavel Roskin <proski@gnu.org>.
3890 2003-06-18 Bruno Haible <bruno@clisp.org>
3892 * config/install-sh: Update from automake-1.7.5.
3894 2003-06-16 Bruno Haible <bruno@clisp.org>
3896 * lib/encodings.def (ISO-8859-15): Add alias LATIN-9.
3897 (ISO-8859-16): Add aliases ISO_8859-16:2001, LATIN10, L10. Remove alias
3899 (GBK): Add aliases MS936, WINDOWS-936.
3900 Reported by Guido Flohr <guido@imperia.net>.
3902 2003-05-09 Bruno Haible <bruno@clisp.org>
3904 * srclib/canonicalize.c: Add #ifdef around versioned_symbol. Avoids an
3905 "extraneous semicolon" warning from Tru64 cc.
3907 2003-06-07 Bruno Haible <bruno@clisp.org>
3909 * Makefile.devel (config.h_vms): Don't define HAVE_ENVIRON_DECL.
3910 * Makefile.vms (config.h): New rule.
3911 (all, install): Depend on it.
3912 (all, install, installdirs, uninstall, check): Fix typo.
3913 (mostlyclean, clean, distclean, maintainer-clean): Likewise. Remove
3915 * lib/Makefile.vms (DEFS): Fix value of INSTALLDIR.
3916 (OBJECTS): Use libiconv.obj instead of iconv.obj.
3917 (libiconv.obj): Renamed from iconv.obj.
3918 * srclib/Makefile.vms (INCLUDES): Add parent directory.
3919 (OBJECTS): Remove strtoul.obj, setenv.obj, unsetenv.obj.
3920 (strtoul.obj, setenv.obj, unsetenv.obj): Remove rules.
3921 (alloca.h): New rule.
3922 (canonicalize.obj): Depend on it.
3923 (clean): Remove alloca.h.
3924 * src/Makefile.vms (datadir, localedir): New variables.
3925 (DEFS): Also define LOCALEDIR.
3926 (iconv.obj): Add flags for relocatability,
3927 (iconv.exe): Link with libicrt. Use link_options.
3928 * vms/link_options.opt: New file.
3929 Reported by Jouk Jansen <joukj@hrem.stm.tudelft.nl>.
3931 2003-06-07 Bruno Haible <bruno@clisp.org>
3933 Support for relocatable data files even on Woe32.
3934 * lib/Makefile.msvc (PICFLAGS): Also define PIC.
3936 2003-05-22 Bruno Haible <bruno@clisp.org>
3938 * Version 1.9.1 released.
3940 2003-05-22 Bruno Haible <bruno@clisp.org>
3942 * lib/genaliases.c (main): Emit %pic instead of %null-strings.
3943 Change type of 'name' field to 'int'.
3944 * lib/genaliases2.c (emit_encoding): Add a 'tag' argument. Emit an
3945 invocation of macro S(), including the tag and a counter.
3946 (main): Use the command-line argument as tag.
3947 * Makefile.devel (lib/aliases_aix.h, lib/aliases_osf1.h,
3948 lib/aliases_dos.h, lib/aliases_extra.h): Pass a tag to the program.
3949 * lib/iconv.c (stringpool2_t): New type.
3950 (stringpool2_contents): New data table.
3951 (stringpool2): New macro.
3952 (sysdep_aliases): Make position-independent. Move #includes out to
3954 (aliases2_lookup): Update.
3956 (compare_by_index): Use 'struct nalias' instead of 'struct alias'.
3957 (iconvlist): Convert 'struct alias' to 'struct nalias' while copying.
3958 * lib/aliases2.h: New file, extracted from lib/iconv.c.
3960 2003-05-20 Bruno Haible <bruno@clisp.org>
3962 * lib/iconv.c (iconvlist): Test p->name against NULL, not against "".
3963 Reported by Muraoka Taro <koron@tka.att.ne.jp>.
3965 2003-05-19 Bruno Haible <bruno@clisp.org>
3967 * windows/iconv.rc: Include <winver.h>.
3968 Reported by Perry Rapp.
3970 2003-05-18 Bruno Haible <bruno@clisp.org>
3972 * Version 1.9 released.
3974 2003-05-18 Bruno Haible <bruno@clisp.org>
3976 * lib/Makefile.in (libiconv_plug_osf.so): Avoid using LIBTOOL_LINK.
3978 2003-05-18 Bruno Haible <bruno@clisp.org>
3980 * lib/Makefile.msvc (DEBUGFLAGS): New variable.
3981 (iconv.lib): Use it.
3982 * src/Makefile.msvc (DEBUGFLAGS): New variable.
3983 * tests/Makefile.msvc (DEBUGFLAGS): New variable.
3985 2003-05-17 Bruno Haible <bruno@clisp.org>
3987 * src/Makefile.msvc (libdir, datadir, localedir): New variables.
3988 (IIlibdir, IIdatadir, IIlocaledir): New variables.
3989 (CFLAGS): Define LOCALEDIR.
3990 (iconv_no_i18n.exe): New rule.
3991 (all): Depend on it.
3992 * tests/check-stateful.bat: Invoke iconv_no_i18n instead of iconv.
3993 * tests/check-translit.bat: Likewise.
3995 2003-05-16 Bruno Haible <bruno@clisp.org>
3997 * lib/genaliases.c (main): Emit declarations for gperf-3.0.
3998 * Makefile.devel (lib/aliases.h): Remove gperf command line options;
3999 add new option "-m 10" for gperf-3.0.
4001 2003-05-12 Bruno Haible <bruno@clisp.org>
4003 * m4/error.m4: Update from gettext.
4005 2003-05-12 Bruno Haible <bruno@clisp.org>
4007 * configure.in: Invoke AC_GNU_SOURCE and jm_FUNC_GLIBC_UNLOCKED_IO.
4009 2003-05-12 Bruno Haible <bruno@clisp.org>
4011 * lib/Makefile.msvc (PICFLAGS, CFLAGS): Move BUILDING_* macros from
4014 2003-05-09 Bruno Haible <bruno@clisp.org>
4016 * srclib/error.c: Update from gnulib with modifications.
4017 * srclib/unlocked-io.h: New file, from gnulib.
4018 * m4/strerror_r.m4: New file, from gnulib.
4019 * m4/unlocked-io.m4: New file, from gnulib.
4020 * Makefile.devel (aclocal.m4): Depend on them.
4022 2003-05-08 Bruno Haible <bruno@clisp.org>
4024 * Makefile.msvc (IIPREFIX): New variable.
4025 * srclib/Makefile.msvc (INCLUDES): Add -I..\windows.
4026 * src/Makefile.msvc (IIPREFIX, IIprefix, IIexec_prefix, IIbindir,
4027 IIincludedir): New variables.
4028 (INCLUDES): Add -I..\windows.
4029 (iconv.exe): Define INSTALLPREFIX and INSTALLDIR. Link with
4031 Patches by Perry Rapp.
4033 2003-05-07 Bruno Haible <bruno@clisp.org>
4035 * README.woe32: Fix instructions for step 1.
4036 * srclib/Makefile.msvc (OBJECTS): Remove strtoul.obj.
4037 (strtoul.obj): Remove rule.
4038 Reported by Perry Rapp.
4040 2003-05-07 Bruno Haible <bruno@clisp.org>
4042 * Makefile.vms: New file.
4043 * lib/Makefile.vms: New file.
4044 * srclib/Makefile.vms: New file.
4045 * src/Makefile.vms: New file.
4046 * man/Makefile.vms: New file.
4047 * tests/Makefile.vms: New file.
4048 * Makefile.devel (config.h_vms, lib/config.h_vms, include/iconv.h_vms):
4050 (all): Depend on them.
4052 2003-05-07 Bruno Haible <bruno@clisp.org>
4054 * srclib/Makefile.msvc (OBJECTS): Remove findprog.obj.
4055 (findprog.obj): Remove rule.
4056 * src/Makefile.msvc (includedir): New variable.
4058 2003-05-06 Bruno Haible <bruno@clisp.org>
4060 * lib/translit.def: Upgrade to Unicode 4.0.
4062 2003-05-06 Bruno Haible <bruno@clisp.org>
4064 * srclib/Makefile.am (DEFS): Fix spelling of DEPENDS_ON_LIBICONV.
4065 * srclib/Makefile.msvc (CFLAGS): Likewise.
4067 * srclib/Makefile.msvc (INCLUDES): Add -I.. .
4068 Reported by Perry Rapp.
4070 * Makefile.msvc (config.h): New rule.
4071 (all): Depend on it.
4072 (mostlyclean, clean, distclean, maintainer-clean): Erase config.h.
4073 Reported by Perry Rapp.
4075 2003-05-06 Bruno Haible <bruno@clisp.org>
4077 * autoconf/config.guess: Update to GNU version 2003-02-22.
4078 * autoconf/config.sub: Likewise.
4080 2003-05-06 Bruno Haible <bruno@clisp.org>
4082 * m4/lib-link.m4: Update from GNU gettext.
4083 * autoconf/config.rpath: Update from GNU gettext.
4085 * m4/libtool.m4: Update from GNU gettext, based on libtool-1.5.
4086 * autoconf/ltmain.sh: Update from GNU gettext, based on libtool-1.5.
4088 * m4/gettext.m4: Update from GNU gettext.
4089 * m4/nls.m4: Update from GNU gettext.
4090 * m4/po.m4: Update from GNU gettext.
4091 * Makefile.devel (aclocal.m4): Depend on m4/nls.m4 and m4/po.m4.
4093 2003-04-12 Bruno Haible <bruno@clisp.org>
4095 Support for OpenVMS 7.3.
4096 * lib/iconv.c (USE_OSF1): Define also on VMS.
4098 2003-04-12 Bruno Haible <bruno@clisp.org>
4100 Better support for FreeBSD.
4101 * lib/encodings.def (ISO8859-{1,2,3,4,5,6,7,8,9,10,13,14,15,16): New
4102 aliases, for compatibility with earlier FreeBSD iconv implementation
4103 by Konstantin Chuguev.
4104 * lib/iconv.c (iconv_open, iconv, iconv_close) [FreeBSD]: Define as
4106 * src/Makefile.in (install) [FreeBSD]: Avoid installation problem.
4108 2003-04-12 Bruno Haible <bruno@clisp.org>
4110 * configure.in (mandir): Change default value.
4111 * Makefile.in (datadir): New variable.
4112 (install, installdirs, uninstall): Pass datadir to po and man
4114 * Makefile.os2 (datadir): New variable.
4115 (mandir): Use it instead of prefix.
4116 (install, uninstall): Pass datadir to man directory.
4117 * Makefile.msvc (mandir, docdir): Use datadir instead of prefix.
4118 * man/Makefile.in (datadir): New variable.
4119 (docdir): Use it instead of prefix.
4120 (install, installdirs): Update.
4121 * man/Makefile.os2 (datadir): New variable.
4122 (mandir): Use it instead of prefix.
4123 * man/Makefile.msvc (datadir): New variable.
4124 (mandir, docdir): Use it instead of prefix.
4125 (install, installdirs): Update.
4127 2003-04-06 Bruno Haible <bruno@clisp.org>
4129 Make it possible to build with or without libintl support on Woe32.
4130 * Makefile.devel (config.h.msvc): Remove ENABLE_NLS.
4131 * Makefile.msvc (NO_NLS): New variable.
4132 * srclib/Makefile.msvc (NO_NLS): New variable.
4133 (CFLAGS, INCLUDES): Use them.
4134 * src/Makefile.msvc (NO_NLS): New variable.
4135 (NLSFLAGS, INCINTL, LIBINTL): New variables.
4136 (CFLAGS, INCLUDES, iconv.exe): Use them.
4138 2003-04-12 Bruno Haible <bruno@clisp.org>
4140 * lib/loop_unicode.h (unicode_transliterate): When the Hangul or
4141 variants transliteration failed with RET_ILUNI, don't return
4143 Reported by the FreeBSD porters.
4145 2003-04-06 Bruno Haible <bruno@clisp.org>
4147 * srclib/binary-io.h: New file, from GNU gettext.
4148 * src/iconv.c: Include it.
4149 (O_BINARY, O_TEXT, SET_BINARY): Remove definitions.
4151 2003-04-05 Bruno Haible <bruno@clisp.org>
4153 Support for relocatable installation.
4154 * m4/alloca.m4: New file, from GNU gettext.
4155 * m4/canonicalize.m4: New file, from GNU gettext.
4156 * m4/error.m4: New file, from GNU gettext.
4157 * m4/onceonly.m4: New file, from GNU gettext.
4158 * m4/pathmax.m4: New file, from GNU gettext.
4159 * m4/relocatable.m4: New file, from GNU gettext.
4160 * m4/setenv.m4: New file, from GNU gettext.
4161 * m4/stdbool.m4: New file, from GNU gettext.
4162 * m4/strerror.m4: New file, from GNU gettext.
4163 * m4/xreadlink.m4: New file, from GNU gettext.
4164 * autoconf/config.libpath: New file, from GNU gettext.
4165 * autoconf/install-reloc: New file, from GNU gettext.
4166 * autoconf/reloc-ldflags: New file, from GNU gettext.
4167 * autoconf/missing: New file, from GNU automake 1.7.3.
4168 * lib/relocatable.h: New file, from GNU gettext.
4169 * lib/relocatable.c: New file, from GNU gettext.
4170 * srclib/alloca.c: New file, from GNU gettext.
4171 * srclib/alloca_.h: New file, from GNU gettext.
4172 * srclib/canonicalize.c: New file, from GNU gettext.
4173 * srclib/canonicalize.h: New file, from GNU gettext.
4174 * srclib/error.c: New file, from GNU gettext.
4175 * srclib/error.h: New file, from GNU gettext.
4176 * srclib/exit.h: New file, from GNU gettext.
4177 * srclib/gettext.h: New file, from GNU gettext.
4178 * srclib/memmove.c: New file, from GNU gettext.
4179 * srclib/pathmax.h: New file, from GNU gettext.
4180 * srclib/progname.c: New file, from GNU gettext.
4181 * srclib/progname.h: New file, from GNU gettext.
4182 * srclib/progreloc.c: New file, from GNU gettext.
4183 * srclib/relocatable.c: New file, from GNU gettext.
4184 * srclib/relocatable.h: New file, from GNU gettext.
4185 * srclib/relocwrapper.c: New file, from GNU gettext.
4186 * srclib/setenv.c: New file, from GNU gettext.
4187 * srclib/setenv.h: New file, from GNU gettext.
4188 * srclib/stdbool.h.in: New file, from GNU gettext.
4189 * srclib/strerror.c: New file, from GNU gettext.
4190 * srclib/unsetenv.c: New file, from GNU gettext.
4191 * srclib/xmalloc.c: New file, from GNU gettext.
4192 * srclib/xmalloc.h: New file, from GNU gettext.
4193 * srclib/xreadlink.c: New file, from GNU gettext.
4194 * srclib/xreadlink.h: New file, from GNU gettext.
4195 * srclib/xstrdup.c: New file, from GNU gettext.
4196 * srclib/Makefile.am: New file.
4197 * srclib/Makefile.msvc: New file.
4198 * windows/alloca.h: New file, from GNU gettext.
4199 * windows/stdbool.h: New file, from GNU gettext.
4200 * configure.in (AC_CONFIG_HEADERS): Replace src/config.h with config.h.
4201 Add AC_RELOCATABLE, AC_HEADER_STDC, AC_CHECK_HEADERS(stddef.h stdlib.h
4202 string.h), AC_CHECK_FUNCS(getc_unlocked), AC_REPLACE_FUNCS(memmove),
4203 AM_LANGINFO_CODESET, gl_FUNC_ALLOCA, gl_CANONICALIZE,
4204 gt_FUNC_ERROR_AT_LINE, gl_PATHMAX, gt_FUNC_SETENV, gt_STDBOOL_H,
4205 gl_FUNC_STRERROR, gl_XREADLINK, AC_OUTPUT(srclib/Makefile).
4206 * lib/config.h.in: Add HAVE_GETC_UNLOCKED, HAVE_LANGINFO_CODESET,
4207 HAVE_SETLOCALE, HAVE_STDDEF_H, HAVE_STDLIB_H, HAVE_STRING_H, for
4208 localcharset.c. Add ENABLE_RELOCATABLE, INSTALLPREFIX, for
4210 * lib/Makefile.in (DEFS): New variable.
4211 (SOURCES): Add localcharset.c and relocatable.c.
4212 (OBJECTS): Add localcharset.lo and relocatable.lo.
4213 (LIBCHARSET_OBJECTS): Remove variable.
4214 (libiconv_plug_linux.so, libiconv_plug_solaris.so,
4215 libiconv_plug_osf.so): Use $(DEFS). Don't use $(LIBCHARSET_OBJECTS).
4216 (iconv.lo): Use $(DEFS).
4217 (localcharset.lo, relocatable.lo): New rules.
4218 * lib/Makefile.msvc (CFLAGS): Define HAVE_CONFIG_H, BUILDING_DLL,
4219 ENABLE_RELOCATABLE, IN_LIBRARY, INSTALLDIR, NO_XMALLOC,
4220 set_relocation_prefix, relocate. Remove $(PICFLAGS).
4221 (INCLUDES): Simplify.
4222 (SOURCES): Remove variable.
4223 (OBJECTS): Add localcharset.obj and relocatable.obj.
4224 (LIBCHARSET_OBJECTS): Remove variable.
4225 (iconv.obj): Add $(PICFLAGS).
4226 (localcharset.obj, relocatable.obj): New rules.
4227 (iconv.lib): Drop $(LIBCHARSET_OBJECTS).
4228 * include/iconv.h.in (libiconv_set_relocation_prefix): New declaration.
4229 * src/gettext.h: Remove file.
4230 * src/iconv.c: Include progname.h and relocatable.h.
4231 (ICONV_CONST): Define to const if the system has no iconv.
4232 (main): Invoke set_program_name. Relocate LOCALEDIR.
4233 * src/Makefile.in (top_srcdir): New variable.
4234 (INCLUDES): Add .. and ../srclib.
4235 (iconv_no_i18n, iconv): Link with ../srclib/libicrt.a.
4236 (iconv_no_i18n.@OBJEXT@, iconv.@OBJEXT@): Define INSTALLDIR.
4237 (RELOCATABLE_LIBRARY_PATH, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR,
4238 RELOCATABLE_CONFIG_H_DIR, @SET_RELOCATABLE@, iconv_LDFLAGS): New
4240 (iconv): Use $(iconv_LDFLAGS).
4241 (install): Use $(INSTALL_PROGRAM_ENV).
4242 (distclean): Drop removing config.h.
4243 * src/Makefile.msvc (INCLUDES): Add .., simplify.
4244 * tests/Makefile.msvc (INCLUDES): Simplify.
4245 * Makefile.devel (AUTOHEADER, AUTOMAKE): New variables.
4246 (config.h.in, srclib/Makefile.in, config.h.msvc): New rules.
4247 (all): Depend on them.
4248 (aclocal.m4) Depend also on m4/alloca.m4, m4/canonicalize.m4,
4249 m4/error.m4, m4/onceonly.m4, m4/pathmax.m4, m4/relocatable.m4,
4250 m4/setenv.m4, m4/stdbool.m4, m4/strerror.m4, m4/xreadlink.m4.
4251 (lib/config.h.msvc): Additional processing.
4252 * Makefile.in (all, install, installdirs, uninstall, check): Recurse
4254 (mostlyclean, clean, distclean, maintainerclean): Likewise. Remove
4256 (distclean, maintainerclean): Remove also config.h and some stamps.
4257 * Makefile.msvc (all, install, installdirs, uninstall, check,
4258 mostlyclean, clean, distclean, maintainerclean): Recurse into srclib.
4259 * INSTALL.generic: Document --enable-relocatable and
4260 --with-libintl-prefix. Remove the recommendation to set CPPFLAGS and
4261 LDFLAGS. The lib-link.m4 macros make this unnecessary.
4263 2003-04-05 Bruno Haible <bruno@clisp.org>
4265 * configure.in: Bump version number to 1.9.
4266 * include/iconv.h.in (_LIBICONV_VERSION): Bump.
4267 * windows/iconv.rc: Bump version number.
4268 * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 4:0:2.
4270 2003-04-05 Bruno Haible <bruno@clisp.org>
4272 * Makefile.msvc (PREFIX): New variable.
4274 (distclean, maintainer-clean): Drop Unix specific removals.
4275 * lib/Makefile.msvc (PREFIX, IIPREFIX): New variables.
4277 (IIprefix, IIexec_prefix, IIbindir, IIlibdir): New variables.
4278 (clean): Drop Unix specific removal.
4279 * src/Makefile.msvc (PREFIX): New variable.
4281 (clean): Drop Unix specific removal.
4282 (distclean): Likewise.
4283 * tests/Makefile.msvc (clean): Drop Unix specific removal.
4284 (distclean): Likewise.
4286 2003-04-05 Bruno Haible <bruno@clisp.org>
4288 * m4/endian.m4 (CL_WORDS_LITTLEENDIAN): Use 3-argument AC_DEFINE.
4290 2003-04-05 Bruno Haible <bruno@clisp.org>
4292 * m4/general.m4 (CL_CONFIG_SUBDIRS, CL_CANONICAL_HOST,
4293 CL_CANONICAL_HOST_CPU, CL_CANONICAL_HOST_CPU_FOR_FFCALL): Remove
4295 * m4/gettext.m4: Update from GNU gettext.
4296 * m4/iconv.m4: Update from GNU gettext.
4297 * m4/lcmessage.m4: Update from GNU gettext.
4298 * m4/progtest.m4: Update from GNU gettext.
4299 * m4/libtool.m4: Update from GNU gettext.
4300 2003-02-16 Bruno Haible <bruno@clisp.org>
4301 Workaround autoconf >= 2.52 breakage.
4302 * libtool.m4 (AC_LIBTOOL_ARG_WITH): New macro.
4303 (_LT_AC_LTCONFIG_HACK, AC_PROG_LD): Use it.
4304 * autoconf/ltmain.sh: Update from GNU gettext.
4305 2003-02-18 Bruno Haible <bruno@clisp.org>
4306 Fix the 2002-09-16 fix.
4307 * ltmain.sh (install): If "ln -s -f" fails (this is the case
4308 with /usr/bin/ln on Solaris 2.7), fall back to "rm && ln -s".
4310 2003-04-05 Bruno Haible <bruno@clisp.org>
4312 Start using automake.
4313 * configure.in: Add AM_INIT_AUTOMAKE invocation.
4314 (PACKAGE, VERSION): Remove.
4315 Use AC_CANONICAL_HOST instead of CL_CANONICAL_HOST.
4316 Use AC_PROG_LN_S instead of CL_PROG_LN_S.
4317 Use AC_PROG_RANLIB instead of CL_PROG_RANLIB.
4318 Reorder so that AC_CANONICAL_HOST comes early but still after
4320 * m4/ranlib.m4: Remove file.
4321 * m4/libtool.m4: Undo AC_ -> CL_ substitutions.
4322 * Makefile.devel (CLISP_DIR): Comment out.
4323 (AUTOCONF_FILES): Change to aclocal.m4.
4324 (aclocal.m4): Renamed from autoconf/aclocal.m4. Update dependencies.
4325 (configure.in): Drop --include option.
4327 2003-03-17 Bruno Haible <bruno@clisp.org>
4329 Improved MSVC support.
4330 * Makefile.msvc (prefix): Use less Unixy value.
4331 (local_prefix): Remove variable.
4332 (libdir, includedir, mandir): Use backslashes.
4333 (bindir, datadir, localedir, docdir): New variables.
4334 (INSTALL, INSTALL_PROGRAM, INSTALL_DATA): New variables.
4335 (all): Recurse into po/ and man/.
4336 (install, installdirs, uninstall): Rewritten.
4337 (check, mostlyclean, clean, distclean, maintainer-clean): Recurse
4339 * lib/Makefile.msvc (prefix): Use less Unixy value.
4340 (local_prefix): Remove variable.
4341 (libdir): Use backslashes.
4342 (bindir): New variable.
4343 (INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Set to real values.
4344 (RESOURCES): Enable iconv.res.
4345 (install, installdirs, uninstall): New rules.
4346 (clean): Remove config.h.
4347 (distclean): Don't remove config.h here.
4348 * src/Makefile.msvc (prefix, exec_prefix, bindir): New variables.
4349 (INSTALL, INSTALL_PROGRAM, INSTALL_DATA): New variables.
4350 (install, installdirs, uninstall): New rules.
4351 * man/Makefile.msvc: New file.
4352 * tests/Makefile.msvc (install, installdirs, uninstall): New rules.
4353 * Makefile.devel (all): Depend on po/Makefile.msvc.
4354 (po/Makefile.msvc): New rule.
4355 * windows/iconv.rc: Update.
4356 * README.woe32: Mention automatic installation command.
4358 Rename libcharset.h to localcharset.h.
4359 * lib/iconv.c: Include localcharset.h, not libcharset.h.
4360 * Makefile.in (lib/localcharset.h): Renamed from lib/libcharset.h.
4361 (all, install): Update dependencies.
4362 (all): Create lib/localcharset.h, not lib/libcharset.h.
4363 (mostlyclean, clean, distclean, maintainer-clean): Remove
4364 lib/localcharset.h, not lib/libcharset.h.
4365 * djgpp/README.in, djgpp/README: Update.
4366 * djgpp/config.bat: Update.
4367 * djgpp/config.sed: Update.
4368 * djgpp/fnchange.in, djgpp/fnchange.lst: Update.
4370 2003-01-31 Bruno Haible <bruno@clisp.org>
4372 * src/Makefile.in (all): Don't do the chmod if it has already been
4375 2003-01-31 Bruno Haible <bruno@clisp.org>
4377 * lib/loop_unicode.h (unicode_transliterate): Enable recursive
4378 transliteration. Idea from Perry Rapp.
4379 * lib/gentranslit.c (main): Change bound from 0x10000 to 0x110000.
4380 Change element type of translit_data to 'unsigned int'.
4381 * lib/translit.def: Many new transliterations, mostly taken from glibc.
4382 * lib/translit.h: Regenerated.
4383 * tests/Translit1.ISO-8859-1, tests/Translit1.ASCII: New files.
4384 * tests/Makefile.in (check): Add Translit1 check.
4385 * tests/Makefile.msvc (check): Likewise.
4386 * tests/Makefile.os2 (check): Likewise.
4387 * tests/TranslitFail1.ISO-8859-1: Choose a sentence which the new
4388 improved transliteration cannot do.
4390 2003-02-14 Bruno Haible <bruno@clisp.org>
4392 * Makefile.devel (AUTOCONF): Switch to autoconf-2.57.
4393 (configure): Update rule.
4395 2003-01-03 Albert Chin <libtool@thewrittenword.com>
4397 * autoconf/ltmain.sh: Don't pass -R flags found in a .la's
4398 dependency_libs variable directly down to the linker.
4399 Reported by Tim Mooney <mooney@dogbert.cc.ndsu.nodak.edu>.
4401 2003-01-01 Bruno Haible <bruno@clisp.org>
4403 * src/Makefile.in (install): Use libiconv.la in ../lib, not in
4404 $(libdir), so that installing with DESTDIR works.
4405 Reported by Michael Adams <michael@michaeladams.org>.
4407 2003-01-01 Bruno Haible <bruno@clisp.org>
4409 * Makefile.in (mkinstalldirs): New variable.
4410 (install-lib, install, installdirs): Use it instead of mkdir.
4411 * lib/Makefile.in (mkinstalldirs): New variable.
4412 (install-lib, install, installdirs): Use it instead of mkdir.
4413 * man/Makefile.in (mkinstalldirs): New variable.
4414 (install, installdirs): Use it instead of mkdir.
4415 * src/Makefile.in (mkinstalldirs): New variable.
4416 (install, installdirs): Use it instead of mkdir.
4418 2002-09-27 Bruno Haible <bruno@clisp.org>
4420 * autoconf/mkinstalldirs: Upgrade to automake-1.7.2 version.
4422 2002-11-07 Bruno Haible <bruno@clisp.org>
4424 * m4/libtool.m4: Upgrade to libtool-1.4.3.
4425 * autoconf/ltmain.sh: Upgrade to libtool-1.4.3.
4427 2002-07-14 Bruno Haible <bruno@clisp.org>
4429 * m4/libtool.m4 (_LT_AC_LTCONFIG_HACK): Add support for GNU/FreeBSD.
4431 2002-06-12 Bruno Haible <bruno@clisp.org>
4433 * configure.in: Use new AC_* names of libtool macros. Invoke
4434 AC_LIBTOOL_WIN32_DLL.
4436 2002-12-19 Bruno Haible <bruno@clisp.org>
4438 * lib/Makefile.in (libiconv_plug_solaris.so): Change rule if using gcc.
4439 Reported by Henry Nelson <henry@irm.nara.kindai.ac.jp>.
4441 2002-11-07 Bruno Haible <bruno@clisp.org>
4443 Make "make install" without prior "make" work.
4444 * Makefile.in (lib/libcharset.h): New rule.
4445 (all, install): Depend on it.
4446 Reported by Martin Mokrejš <mmokrejs@natur.cuni.cz>.
4448 2002-10-28 Bruno Haible <bruno@clisp.org>
4450 * man/Makefile.in (install): Change directory back to the working
4451 directory, so that install-sh (which may be a relative pathname) is
4452 found in the right place.
4454 2002-09-16 Bruno Haible <bruno@clisp.org>
4456 * autoconf/ltmain.sh (install): Use "ln -s -f" instead of
4457 "rm -f && ln -s" to make a symlink for a shared library.
4458 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4460 2002-09-02 Bruno Haible <bruno@clisp.org>
4462 * src/iconv.c (main): Don't call bindtextdomain if !ENABLE_NLS.
4464 2002-08-16 Bruno Haible <bruno@clisp.org>
4466 * src/iconv.c (main): Perform fflush before testing ferror(stdout).
4468 2002-05-29 Bruno Haible <bruno@clisp.org>
4470 * Version 1.8 released.
4472 2002-05-26 Bruno Haible <bruno@clisp.org>
4474 * lib/c99.h: New file.
4475 * lib/converters.h: Include it.
4476 * lib/encodings.def (C99): New encoding.
4477 * README, man/iconv_open.3: Document C99 encoding.
4479 2002-05-26 Bruno Haible <bruno@clisp.org>
4481 * lib/java.h (java_mbtowc): Accept 12-byte sequences for non-BMP
4483 (java_wctomb): Produce 12-byte sequences for non-BMP characters.
4485 2002-05-29 Bruno Haible <bruno@clisp.org>
4487 Fix installation of iconv program when linked with a libintl that was
4488 built against an earlier libiconv.
4489 * src/iconv.c: Conditionally disable NLS.
4490 * src/iconv_no_i18n.c: New file.
4491 * src/Makefile.in (libdir): New variable.
4492 (all): Depend on iconv_no_i18n, iconv.@OBJEXT@ but not iconv. Make
4493 directory writable, so iconv executable can be created during "make
4495 (iconv): Remove rule.
4496 (iconv_no_i18n, iconv_no_i18n.@OBJEXT@): New rules.
4497 (install): Link iconv now, after the new libiconv.so is installed.
4498 (clean): Also remove iconv_no_i18n.
4499 * tests/Makefile.in: (check, check-extra-yes): Depend on iconv_no_i18n,
4501 * tests/check-stateful: Use iconv_no_i18n, not iconv.
4502 * tests/check-translit: LIkewise.
4503 * tests/check-translitfailure: Likewise.
4505 2002-05-29 Bruno Haible <bruno@clisp.org>
4507 * configure.in: Call AC_PROG_INSTALL instead of CL_PROG_INSTALL.
4508 * m4/install.m4: Remove file.
4509 * Makefile.devel (autoconf/aclocal.m4): Don't depend on m4/install.m4.
4511 2002-05-24 Bruno Haible <bruno@clisp.org>
4513 * lib/jisx0213.h: Use 'inline' only conditionally.
4515 2002-05-18 Bruno Haible <bruno@clisp.org>
4517 * configure.in (AC_INIT), include/iconv.h.in (_LIBICONV_VERSION),
4518 README, windows/iconv.rc, djgpp/README, djgpp/fnchange.lst:
4519 Bump version number.
4520 * lib/Makefile.in (LIBICONV_VERSION_INFO): Define to 3:0:1.
4522 2002-02-06 Bruno Haible <bruno@clisp.org>
4524 * autoconf/ltmain.sh: Upgrade from libtool-1.4 to libtool-1.4.2.
4526 2002-02-02 Bruno Haible <bruno@clisp.org>
4528 * autoconf/ltmain.sh: Add DESTDIR support on ELF systems.
4530 2001-11-03 Bruno Haible <haible@clisp.cons.org>
4532 * autoconf/ltmain.sh: chmod 777 the .libs directory, so that
4533 "make install" succeeds.
4535 2002-05-18 Bruno Haible <bruno@clisp.org>
4537 * src/Makefile.in (iconv): Remove the -liconv dependency of -lintl
4538 from the command line. Needed to ensure that the new libiconv version
4541 2002-05-14 Bruno Haible <bruno@clisp.org>
4543 Implement and document CP853, TDS565, RISCOS-LATIN1.
4544 * tools/Makefile (ALL): Add cp853.h, tds565.h, riscos1.h.
4545 (cp853.h, tds565.h, riscos1.h): New rules.
4546 * lib/cp853.h: New file.
4547 * lib/tds565.h: New file.
4548 * lib/riscos1.h: New file.
4549 * lib/converters.h: Include them.
4550 * lib/encodings_dos.def (CP853): New encoding.
4551 * lib/encodings_extra.def (TDS565, RISCOS-LATIN1): New encodings.
4552 * README, man/iconv_open.3: Add CP853, TDS565, RISCOS-LATIN1.
4553 * tests/Makefile.in (check-extra-yes): Check CP853, TDS565,
4555 * tests/Makefile.msvc (check): Check CP853.
4556 * tests/CP853.TXT: New file.
4557 * tests/TDS565.TXT: New file.
4558 * tests/RISCOS-LATIN1.TXT: New file.
4560 * lib/cp860.h (cp860_wctomb): Optimize.
4562 2002-05-12 Bruno Haible <bruno@clisp.org>
4564 * tools/Makefile (ksc5601.h): Add two extra characters.
4565 * lib/ksc5601.h: Regenerated.
4566 * tests/EUC-KR.TXT: Add EURO SIGN and REGISTERED SIGN.
4567 * tests/CP949.TXT: Likewise.
4568 * tests/JOHAB.TXT: Likewise.
4570 2002-05-12 Bruno Haible <bruno@clisp.org>
4572 * README: Mention extra encodings.
4573 * man/iconv_open.3: Likewise. Improve formatting in text and html
4576 2002-05-12 Bruno Haible <bruno@clisp.org>
4578 * tests/SHIFT_JIS.TXT: Renamed from tests/SHIFT-JIS.TXT.
4580 2002-05-12 Bruno Haible <bruno@clisp.org>
4582 * Makefile.devel (AUTOCONF): New variable.
4583 (AUTOCONF_FILES): Remove autoconf/autoconf.m4f.
4584 (configure): Use the AUTOCONF variable.
4585 * autoconf/autoconf: Remove file.
4586 * autoconf/autoconf.m4: Remove file.
4587 * autoconf/autoconf.m4f: Remove file.
4589 2002-05-12 Bruno Haible <bruno@clisp.org>
4591 * tools/JISX0213.TXT: New file.
4592 * tools/cjk_tab_to_h.c (do_jisx0213): New function.
4593 (main): Accept "jisx0213".
4594 * tools/Makefile (all): Add jisx0213.h.
4595 (jisx0213.h): New rule.
4596 * lib/jisx0213.h: New file, generated by cjk_tab_to_h.
4597 * lib/euc_jisx0213.h: New file.
4598 * lib/shift_jisx0213.h: New file.
4599 * lib/iso2022_jp3.h: New file.
4600 * lib/converters.h: Include them.
4601 * lib/encodings_extra.def (EUC-JISX0213, SHIFT_JISX0213,
4602 ISO-2022-JP-3): New encodings.
4603 * tests/EUC-JISX0213.TXT: New file.
4604 * tests/SHIFT_JISX0213.TXT: New file.
4605 * tests/ISO-2022-JP-3-snippet: New file.
4606 * tests/ISO-2022-JP-3-snippet.UTF-8: New file.
4607 * tests/Makefile.in (check-extra): Also check EUC-JISX0213,
4608 SHIFT_JISX0213, ISO-2022-JP-3.
4609 * tests/check-stateless: Add support for encodings which contain
4610 precomposed Unicode characters, by eliminating precomposed characters
4611 before the comparison.
4612 * tests/table-from.c (main): Fix usage message.
4613 * tests/table-to.c (main): Make it work for encodings for which the
4614 "to" direction is stateful.
4616 2002-05-09 Bruno Haible <bruno@clisp.org>
4618 New configure option --enable-extra-encodings.
4619 * lib/encodings_extra.def: New file.
4620 * lib/converters.h: Handle USE_EXTRA.
4621 * lib/genaliases2.c (main): Handle USE_EXTRA.
4622 * lib/genflags.c: Define USE_EXTRA.
4623 (main): Include encodings_extra.def.
4624 * lib/iconv.c: Handle ENABLE_EXTRA, conditionally set USE_EXTRA.
4626 * lib/config.h.in (ENABLE_EXTRA): New macro.
4627 * configure.in: Accept option --enable-extra-encodings.
4628 * Makefile.devel (all): Depend on lib/aliases_extra.h.
4629 (lib/aliases_extra.h): New rule.
4630 (lib/flags.h): Depend on lib/encodings_extra.def.
4631 * tests/Makefile.in (check-extra, check-extra-no, check-extra-yes):
4633 (check): Invoke check-extra.
4634 * tests/Makefile.msvc (check): Also check the DOS encodings.
4636 Support for testing the AIX encodings.
4637 * tests/CP856.TXT: New file.
4638 * tests/CP922.TXT: New file.
4639 * tests/CP1046.TXT: New file.
4640 * tests/CP1124.TXT: New file.
4641 * tests/CP1129.TXT: New file.
4642 * tests/CP1161.TXT, tests/CP1161.IRREVERSIBLE.TXT: New files.
4643 * tests/CP1162.TXT: New file.
4644 * tests/CP1163.TXT, tests/CP1163.IRREVERSIBLE.TXT: New files.
4646 Support for testing the OSF/1 encodings.
4647 * tests/DEC-KANJI.TXT: New file.
4648 * tests/DEC-HANYU.TXT, tests/DEC-HANYU.IRREVERSIBLE.TXT: New files.
4650 Support for testing the DOS encodings.
4651 * tests/CP437.TXT: New file.
4652 * tests/CP737.TXT: New file.
4653 * tests/CP775.TXT: New file.
4654 * tests/CP852.TXT: New file.
4655 * tests/CP855.TXT: New file.
4656 * tests/CP857.TXT: New file.
4657 * tests/CP858.TXT: New file.
4658 * tests/CP860.TXT: New file.
4659 * tests/CP861.TXT: New file.
4660 * tests/CP863.TXT: New file.
4661 * tests/CP864.TXT: New file.
4662 * tests/CP865.TXT: New file.
4663 * tests/CP869.TXT: New file.
4664 * tests/CP1125.TXT: New file.
4666 2002-05-09 Bruno Haible <bruno@clisp.org>
4668 Implement more ASCII compatible DOS encodings.
4669 * tools/Makefile (ALL): Add cp737.h, cp858.h, cp860.h, cp863.h.
4670 (cp737.h, cp858.h, cp860.h, cp863.h): New rules.
4671 * lib/cp737.h: New file.
4672 * lib/cp858.h: New file.
4673 * lib/cp860.h: New file.
4674 * lib/cp863.h: New file.
4675 * lib/converters.h: Include them.
4676 * lib/encodings_dos.def (CP737, CP858, CP860, CP863): New encodings.
4678 2002-05-09 Bruno Haible <bruno@clisp.org>
4680 Implement new ASCII compatible encodings from IBM.
4681 * tools/Makefile (ALL): Add cp1161.h, cp1162.h, cp1163.h.
4682 (cp1161.h, cp1162.h, cp1163.h): New rules.
4683 * lib/cp1161.h: New file.
4684 * lib/cp1162.h: New file.
4685 * lib/cp1163.h: New file.
4686 * lib/converters.h: Include them.
4687 * lib/encodings_aix.def (CP1161, CP1162, CP1163): New encodings.
4689 2002-05-09 Bruno Haible <bruno@clisp.org>
4691 Implement and document KOI8-T.
4692 * tools/Makefile (ALL): Add koi8_t.h.
4693 (koi8_t.h): New rule.
4694 * lib/koi8_t.h: New file.
4695 * lib/converters.h: Include it.
4696 * lib/encodings.def (KOI8-T): New encoding.
4697 * README, man/iconv_open.3: Add KOI8-T.
4698 * tests/Makefile.in (tests): Check KOI8-T.
4699 * tests/Makefile.os2 (tests): Likewise.
4700 * tests/Makefile.msvc (tests): Likewise.
4701 * tests/KOI8-T.TXT: New file.
4703 2002-05-09 Bruno Haible <bruno@clisp.org>
4705 * tools/8bit_tab_to_h.c (main): Update copyright year.
4706 * tools/cjk_variants.c (main): Likewise.
4708 2002-05-08 Bruno Haible <bruno@clisp.org>
4710 * README.woe32: Renamed from README.win32.
4712 2002-05-08 Bruno Haible <bruno@clisp.org>
4714 * lib/iconv.c: Enable DOS encodings also when compiling for Woe32,
4715 because the Woe32 consoles use them.
4717 2002-05-04 Bruno Haible <bruno@clisp.org>
4719 * lib/loop_unicode.h (unicode_loop_convert): When quitting the loop
4720 without writing an output character, restore cd->istate to its value
4721 before the xxx_mbtowc call. Otherwise we lose some characters during
4722 CP1255/CP1258/TCVN to Unicode conversion.
4723 (unicode_loop_reset): Likewise for the xxx_flushwc call.
4724 * tests/CP1255-snippet, tests/CP1255-snippet.UTF-8: Make the test
4725 files large enough to test against the bug.
4726 * tests/CP1258-snippet, tests/CP1258-snippet.UTF-8: Likewise.
4727 * tests/TCVN-snippet, tests/TCVN-snippet.UTF-8: Likewise.
4729 2002-04-28 Bruno Haible <bruno@clisp.org>
4731 * tools/Makefile (armscii_8.h): Use table from glibc-2.2.90.
4732 * tests/ARMSCII-8.TXT: Update to glibc-2.2.90 version.
4733 * tests/ARMSCII-8.IRREVERSIBLE.TXT: Remove 0x0027.
4734 * lib/armscii_8.h: Regenerated.
4736 2002-04-28 Bruno Haible <bruno@clisp.org>
4738 * src/iconv.c: Include gettext.h.
4740 (usage, print_version, convert, main): Internationalize.
4741 (main): Call setlocale, bindtextdomain, textdomain.
4742 * src/gettext.h: New file, from GNU gettext 0.11.2.
4743 * src/config.h.in: New file, needed for ENABLE_NLS.
4744 * src/Makefile.in (datadir, localedir): New variables.
4745 (iconv): Link with @LTLIBINTL@.
4746 (iconv.@OBJEXT@): Define LOCALEDIR.
4747 (distclean): Remove config.h.
4748 * po: New directory.
4749 * Makefile.in (all, install, installdirs, uninstall, check,
4750 mostlyclean, clean, distclean, maintainer-clean): Recurse into the po
4752 * autoconf/mkinstalldirs: New file, from automake-1.5.
4753 * ABOUT-NLS: New file, from GNU gettext 0.11.2.
4754 * m4/codeset.m4: New file, from GNU gettext 0.11.2.
4755 * m4/gettext.m4: New file, from GNU gettext 0.11.2.
4756 * m4/glibc21.m4: New file, from GNU gettext 0.11.2.
4757 * m4/isc-posix.m4: New file, from GNU gettext 0.11.2.
4758 * m4/lcmessage.m4: New file, from GNU gettext 0.11.2.
4759 * m4/progtest.m4: New file, from GNU gettext 0.11.2.
4760 * configure.in: Require autoconf-2.52, needed for multiple config.h.in
4761 files. Use new form of AC_INIT. Invoke AM_GNU_GETTEXT.
4762 (PACKAGE, VERSION): Define, needed for po/Makefile.in.in.
4763 * lib/config.h.in (HAVE_LOCALE_H, HAVE_SETLOCALE): Remove.
4765 2002-04-28 gettextize <bug-gnu-gettext@gnu.org>
4767 * configure.in (AC_OUTPUT): Add po/Makefile.in.
4769 2002-04-28 Bruno Haible <bruno@clisp.org>
4771 * m4/eilseq.m4: Renamed from autoconf/eilseq.m4.
4772 * m4/mbstate_t.m4: Renamed from autoconf/mbstate_t.m4.
4773 * m4/general.m4: New file, from GNU clisp.
4774 * m4/proto.m4: New file, from GNU clisp.
4775 * m4/ranlib.m4: New file, from GNU clisp.
4776 * m4/install.m4: New file, from GNU clisp.
4777 * m4/cp.m4: New file, from GNU clisp.
4778 * m4/ln.m4: New file, from GNU clisp.
4779 * m4/endian.m4: New file, from GNU clisp.
4780 * m4/iconv.m4: New file, from GNU gettext 0.11.2.
4781 * m4/lib-ld.m4: New file, from GNU gettext 0.11.2.
4782 * m4/lib-link.m4: New file, from GNU gettext 0.11.2.
4783 * m4/lib-prefix.m4: New file, from GNU gettext 0.11.2.
4784 * autoconf/config.rpath: New file, from GNU gettext 0.11.2.
4785 * m4/libtool.m4: New file, based on libtool-1.4.2.
4786 * Makefile.devel (ACLOCAL): Remove variable.
4787 (ACSELECT): Remove variable.
4788 (OTHERMACROS): Remove variable.
4789 (m4/*.m4): New rules.
4790 (autoconf/aclocal.m4): Construct using aclocal instead of acselect.
4791 * configure.in: Invoke AM_ICONV instead of CL_ICONV.
4793 2002-04-06 Bruno Haible <bruno@clisp.org>
4795 Upgrade to Unicode 3.2.
4796 * tools/cjk_tab_to_h.c (output_title): Bump copyright year.
4797 (compact_large_charset2uni): Add an argument. Determine optimal shift.
4798 Copy modified enc->charset2uni table.
4799 (output_charset2uni): Deal with shift other than 8. Copy encoding, so
4800 as to not disturb subsequent output_uni2charset[_sparse] call.
4801 * lib/hkscs.h: Regenerated.
4802 * tests/BIG5-HKSCS.TXT: Update.
4803 * tests/BIG5-HKSCS.IRREVERSIBLE.TXT: Update.
4805 2002-04-06 Bruno Haible <bruno@clisp.org>
4807 Upgrade to Unicode 3.2.
4808 * tools/Makefile (cns11643_1.h, cns11643_2.h, cns11643_3.h,
4809 cns11643_4a.h, cns11643_4b.h, cns11643_5.h, cns11643_6.h,
4810 cns11643_7.h, cns11643_15.h, cns11643_inv.h): Use
4811 CNS11643-Unicode32.TXT instead of CNS11643-Unicode31.TXT.
4812 * lib/cns11643_3.h: Regenerated.
4813 * lib/cns11643_4a.h: Regenerated.
4814 * lib/cns11643_4b.h: Regenerated.
4815 * lib/cns11643_5.h: Regenerated.
4816 * lib/cns11643_6.h: Regenerated.
4817 * lib/cns11643_7.h: Regenerated.
4818 * lib/cns11643_15.h: Regenerated.
4819 * lib/cns11643_inv.h: Regenerated.
4820 * tests/EUC-TW.TXT: Update.
4822 2002-01-17 Bruno Haible <bruno@clisp.org>
4824 * lib/tcvn.h (tcvn_2uni_1): Make it smaller.
4825 (tcvn_mbtowc): Small optimization.
4827 2002-01-13 Bruno Haible <bruno@clisp.org>
4829 New options -l, -c, -s.
4830 * src/iconv.c (discard_unconvertible, silent): New variables.
4831 (usage): Document options -l, -c, -s.
4832 (print_one): New function.
4833 (convert): If silent is true, don't print error messages about the
4834 conversion to stderr. If discard_unconvertible is true, set the
4835 iconv descriptor to DISCARD_ILSEQ the first time, but make sure to
4836 return the same return code as when discard_unconvertible is false.
4837 (main): Accept options -l, -c, -s. Implement option -l.
4838 * man/iconv.1: Document options -l, -c, -s.
4840 2002-01-13 Bruno Haible <bruno@clisp.org>
4842 Support for "iconv -c".
4843 * include/iconv.h.in (ICONV_GET_DISCARD_ILSEQ): New macro.
4844 (ICONV_SET_DISCARD_ILSEQ): Likewise.
4845 * lib/converters.h (struct conv_struct): New field discard_ilseq.
4846 * lib/iconv.c (iconv_open): Set discard_ilseq to true if tocode
4847 has an "//IGNORE" suffix, and to false otherwise.
4848 (iconvctl): Implement ICONV_GET_DISCARD_ILSEQ, ICONV_SET_DISCARD_ILSEQ.
4849 * lib/loop_unicode.h (unicode_loop_convert): If discard_ilseq is
4850 true, skip one input character instead of returning EILSEQ.
4851 (unicode_loop_reset): Likewise.
4852 * lib/loop_wchar.h (wchar_from_loop_convert): Likewise.
4853 (wchar_to_loop_convert): Likewise.
4855 2002-01-13 Bruno Haible <bruno@clisp.org>
4857 Support for "iconv -l".
4858 * include/iconv.h.in (iconvlist): New declaration.
4859 * Makefile.devel (lib/aliases.h): Change gperf options.
4860 * lib/iconv.c (compare_by_index, compare_by_name, iconvlist): New
4863 2002-01-06 Bruno Haible <bruno@clisp.org>
4865 * lib/loop_unicode.h (unicode_transliterate): If the transliteration
4866 fails due to limited output encoding, return RET_ILUNI, not
4867 RET_TOOSMALL. Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4868 * tests/check-translitfailure: New file.
4869 * tests/TranslitFail1.ISO-8859-1: New file.
4870 * tests/Makefile.in (check): Call check-translitfailure.
4872 2001-12-15 Bruno Haible <bruno@clisp.org>
4874 * lib/euc_jp.h (euc_jp_wctomb): Add irreversible mappings for
4875 Shift_JIS characters 0x5C and 0x7E.
4876 * tests/EUC-JP.IRREVERSIBLE.TXT: New file.
4878 2001-12-05 Bruno Haible <bruno@clisp.org>
4880 * lib/iconv.c (iconv_open): Recognize the empty encoding name. Avoid
4881 endless loop if locale_charset() returns the empty string.
4882 * README, man/iconv_open.3: Add the empty encoding name.
4884 2001-11-10 Bruno Haible <haible@clisp.cons.org>
4886 * lib/Makefile.in (libiconv_plug_linux.so): Allow building it with a
4889 2001-10-23 Bruno Haible <haible@clisp.cons.org>
4891 * tools/Makefile (cp1125.h): New target.
4893 * lib/cp1125.h: New file.
4894 * lib/converters.h: Include it.
4895 * lib/encodings_dos.def (CP1125): New encoding.
4897 2001-09-08 Bruno Haible <haible@clisp.cons.org>
4899 * autoconf/eilseq.m4: New file.
4900 * Makefile.devel (OTHERMACROS): Add it.
4901 * configure.in: Call AC_EILSEQ.
4902 * include/iconv.h.in (EILSEQ): Define to the autoconf determined value.
4904 2001-08-25 Bruno Haible <haible@clisp.cons.org>
4906 Upgrade to autoconf-2.52.
4907 * autoconf/autoconf: Upgrade to autoconf-2.52.
4908 * autoconf/acgeneral.m4: Remove file.
4909 * autoconf/acspecific.m4: Remove file.
4910 * autoconf/autoconf.m4f: New file, from autoconf-2.52.
4911 * autoconf/aclocal.m4: Require autoconf-2.52.
4912 (CL_CANONICAL_HOST): Call AC_CANONICAL_HOST. Don't cache the result,
4913 AC_CANONICAL_HOST does it itself. Add $SHELL in front of
4914 $ac_config_guess and $ac_config_sub.
4915 * Makefile.devel (AUTOCONF_FILES): Remove acgeneral.m4, acspecific.m4.
4917 (configure): Use autoconf options -A, -l instead of -m.
4918 * configure.in: Use AC_CONFIG_SUBDIRS, not AC_OUTPUT_SUBDIRS.
4920 2001-08-05 Bruno Haible <haible@clisp.cons.org>
4922 * autoconf/acgeneral.m4 (AC_MSG_RESULTPROTO): Remove macro.
4923 (AC_LANG_EXTERN): Move to aclocal.m4.
4924 * autoconf/aclocal.m4 (AC_LANG_EXTERN): Moved here from acgeneral.m4.
4925 (CL_PROTO): Use AC_MSG_RESULT directly, instead of AC_MSG_RESULTPROTO.
4926 (CL_SILENT): No need to pushdef AC_MSG_RESULTPROTO.
4928 2001-08-05 Bruno Haible <haible@clisp.cons.org>
4930 Make it possible to build libiconv with CC=gcc CFLAGS="-x c++".
4931 * lib/loop_wchar.h (wchar_to_loop_convert): Rename local variable
4933 * lib/Makefile.in (libiconv_plug_linux.so): Add "-x none" option
4934 between sources and libs.
4935 (libiconv_plug_solaris.so) [GCC]: Likewise.
4936 (libiconv_plug_osf.so) [GCC]: Likewise.
4937 * src/Makefile.in (iconv.@OBJEXT@): New rule.
4938 (iconv): Depend on it.
4939 (clean): Erase *.@OBJEXT@, not *.o.
4940 * tests/Makefile.in (table-from.@OBJEXT@): New rule.
4941 (table-from): Depend on it.
4942 (table-to.@OBJEXT@): New rule.
4943 (table-to): Depend on it.
4944 (clean): Erase *.@OBJEXT@, not *.o.
4946 2001-07-28 Bruno Haible <haible@clisp.cons.org>
4948 * tools/Makefile (iso8859_16.h): Generate from the unicode.org table.
4949 * lib/iso8859_16.h: Regenerated.
4950 * tests/ISO-8859-16.TXT: Swap the values of 0xA5 and 0xAB.
4952 2001-07-17 Bruno Haible <haible@clisp.cons.org>
4954 * configure.in (VERSION): Define. Needed by djgpp/Makefile.maint.
4956 2001-07-03 Bruno Haible <haible@clisp.cons.org>
4958 * configure.in: Also check for mbsinit.
4959 * lib/loop_wchar.h (mbsinit): Define to 1 if not defined.
4960 Needed for SCO 3.2v5.0.2.
4962 2001-06-27 Bruno Haible <haible@clisp.cons.org>
4964 * Version 1.7 released.
4966 2001-06-27 Bruno Haible <haible@clisp.cons.org>
4968 * INSTALL.generic (Particular Systems): Generalize section about
4969 /usr/local to "most systems".
4971 * lib/Makefile.in (all): Build @PLUGLIB@ before libiconv.la, because
4972 Solaris cc destroys iconv.o and iconv.lo while building
4973 libiconv_plug_solaris.so.
4974 (clean): Remove so_locations, left there by the OSF/1 linker.
4976 * lib/cp1255.h (cp1255_decomp): Use 'signed int' instead of 'int'.
4978 * lib/vietcomb.h (viet_decomp): Use 'unsigned int' instead of
4981 * tests/table-from.c: Include string.h.
4982 * tests/table-to.c: Likewise.
4984 2001-06-26 Bruno Haible <haible@clisp.cons.org>
4986 * tools/Makefile (jisx0208.h): Replace U+005C with U+FF3C.
4987 (jisx0212.h): Replace U+007E with U+FF5E.
4988 * lib/jisx0208.h: Regenerated.
4989 * lib/jisx0212.h: Regenerated.
4990 * tests/EUC-JP.TXT: Map 0xA1C0 to U+FF3C. Map 0x8FA2B7 to U+FF5E.
4991 * tests/EUC-JP.IRREVERSIBLE.TXT: Remove file.
4992 * tests/SHIFT-JIS.TXT: Map 0x815F to U+FF3C.
4993 * tests/CP932.TXT: Likewise.
4994 * tests/CP932.IRREVERSIBLE.TXT: 0x815F mapping is now reversible.
4996 2001-06-25 Bruno Haible <haible@clisp.cons.org>
4998 * src/Makefile.in (iconv): Mention $(INCLUDES) before $(CFLAGS) and
5000 * src/Makefile.msvc (iconv.exe): Likewise.
5001 * src/Makefile.os2 (iconv.exe): Likewise.
5002 * lib/Makefile.in (libiconv_plug_linux.so): Likewise.
5003 (libiconv_plug_solaris.so): Likewise.
5004 (libiconv_plug_osf.so): Likewise.
5005 (iconv.lo): Likewise.
5006 * lib/Makefile.msvc (iconv.obj): Likewise.
5007 * lib/Makefile.os2 (iconv.obj): Likewise.
5008 * tests/Makefile.in (table-from, table-to): Likewise.
5009 * tests/Makefile.msvc (table-from.exe, table-to.exe): Likewise.
5010 * tests/Makefile.os2 (table-from.exe, table-to.exe): Likewise.
5011 (genutf8.exe): Don't use $(INCLUDES).
5013 2001-06-25 Bruno Haible <haible@clisp.cons.org>
5015 * include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
5016 Bump version number.
5017 * lib/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:4:0.
5019 2001-06-25 Bruno Haible <haible@clisp.cons.org>
5021 * Makefile.devel (OTHERMACROS): Use libtool.m4 in libcharset subdir.
5023 2001-06-25 Bruno Haible <haible@clisp.cons.org>
5025 * lib/encodings.def: Make SHIFT_JIS the primary name of SJIS.
5027 2001-06-08 Bruno Haible <haible@clisp.cons.org>
5029 * autoconf/ltmain.sh: Upgrade to libtool-1.4.
5030 * autoconf/ltconfig: Remove file.
5032 2001-06-08 Bruno Haible <haible@clisp.cons.org>
5034 * autoconf/config.guess: Update to GNU version 2001-05-11.
5035 * autoconf/config.sub: Likewise.
5037 2001-06-03 Bruno Haible <haible@clisp.cons.org>
5039 * lib/loop_unicode.h (unicode_loop_convert): Ignore Unicode 3.1 tag
5040 characters if they cannot be converted.
5041 (unicode_loop_reset): Likewise.
5042 * lib/iso2022_jp2.h (STATE_TAG_NONE, STATE_TAG_LANGUAGE,
5043 STATE_TAG_LANGUAGE_j, STATE_TAG_LANGUAGE_ja, STATE_TAG_LANGUAGE_k,
5044 STATE_TAG_LANGUAGE_ko, STATE_TAG_LANGUAGE_z, STATE_TAG_LANGUAGE_zh):
5046 (SPLIT_STATE, COMBINE_STATE): Different differently for wctomb
5048 (iso2022_jp2_wctomb): Keep track of Unicode 3.1 language tag.
5049 If "ja", prefer conversion to Japanese character sets. If "zh",
5050 prefer conversion to GB2312. If "ko", prefer conversion to KSC5601.
5052 * lib/converters.h (RET_ILUNI): Change value from 0 to -1.
5053 (RET_TOOSMALL): Change value from -1 to -2.
5054 * lib/loop_unicode.h (unicode_transliterate): Allow xxx_wctomb to
5055 return 0 written bytes.
5057 2001-06-06 Bruno Haible <haible@clisp.cons.org>
5059 * lib/encodings.def: Align with IANA character-set registry.
5060 (US-ASCII): Add alias "ANSI_X3.4-1986".
5061 (ISO-8859-14): Add alias "ISO-CELTIC".
5062 (JIS_X0208): Add alias "JIS_C6226-1983".
5063 (BIG5HKSCS): Add alias "BIG5-HKSCS".
5064 * README, man/iconv_open.3: Rename BIG5HKSCS to BIG5-HKSCS.
5065 * tests/Makefile.in (check): Likewise.
5066 * tests/Makefile.os2 (check): Likewise.
5067 * tests/Makefile.msvc (check): Likewise.
5068 * tests/BIG5-HKSCS.TXT: Renamed from BIG5HKSCS.TXT.
5069 * tests/BIG5-HKSCS.IRREVERSIBLE.TXT: Renamed from
5070 BIG5HKSCS.IRREVERSIBLE.TXT.
5072 2001-06-02 Bruno Haible <haible@clisp.cons.org>
5074 * tools/cjk_tab_to_h.c (Encoding): Add fffd field.
5075 (is_charset2uni_large, compact_large_charset2uni): New functions.
5076 (find_charset2uni_pages): Use enc->fffd instead of 0xfffd.
5077 (output_charset2uni): If mapping to more than the Unicode BMP,
5078 use an extra indirection to keep each value in 16 bits.
5079 (invert): Bump limit from U+10000 to U+30000.
5080 (output_uni2charset_dense): Likewise.
5081 (output_uni2charset_sparse): Likewise. If mapping to more than one
5082 CJK plane, use three bytes per value instead of two bytes.
5083 (byte_row_cns11643): Allow more than 3 CJK planes.
5084 (do_cns11643_only_uni2charset): Increase number of rows, to include
5085 plane 15. Remove plane bits hack.
5086 (main): Accept names cns11643_4a,4b,5,6,7,15 as well.
5087 * tools/Makefile (ALL): Add cns11643_4a.h, cns11643_4b.h, cns11643_5.h,
5088 cns11643_6.h, cns11643_7.h, cns11643_15.h.
5089 (cns11643_1.h, cns11643_2.h, cns11643_3.h): Use new Unicode 3.1
5091 (cns11643_4a.h, cns11643_4b.h, cns11643_5.h, cns11643_6.h,
5092 cns11643_7.h, cns11643_15.h): New rules.
5093 (cns11643_inv.h): Change title.
5094 * lib/cns11643_1.h: Regenerated from Unicode 3.1 derived table.
5095 * lib/cns11643_3.h: Likewise.
5096 * lib/cns11643_4a.h: New file.
5097 * lib/cns11643_4b.h: New file.
5098 * lib/cns11643_4.h: New file.
5099 * lib/cns11643_5.h: New file.
5100 * lib/cns11643_6.h: New file.
5101 * lib/cns11643_7.h: New file.
5102 * lib/cns11643_15.h: New file.
5103 * lib/cns11643_inv.h: Regenerated from Unicode 3.1 derived table.
5104 (cns11643_inv_wctomb): Return 3 bytes now.
5105 * lib/cns11643.h: Include cns11643_4.h, cns11643_5.h, cns11643_6.h,
5106 cns11643_7.h, cns11643_15.h.
5107 (cns11643_wctomb): Now a simple alias to cns11643_inv_wctomb. Return
5108 plane number starting at 1, not 0.
5109 * lib/dec_hanyu.h (dec_hanyu_wctomb): Update for cns11643_wctomb
5111 * lib/euc_tw.h (euc_tw_mbtowc): Accept CNS11643 planes 4,5,6,7,15 as
5113 (euc_tw_wctomb): Update for cns11643_wctomb change.
5114 * lib/iso2022_cn.h (iso2022_cn_wctomb): Likewise.
5115 * lib/iso2022_cnext.h (iso2022_cn_ext_mbtowc): Accept CNS11643 planes
5117 (iso2022_cn_ext_wctomb): Update for cns11643_wctomb change.
5118 Try CNS11643 planes 4,5,6,7 as well.
5119 * tests/EUC-TW.TXT: Many additions, mostly in planes 3,4,5,6,7,15.
5120 * tests/EUC-TW.IRREVERSIBLE.TXT: Reflect additions to CNS11643 plane 1.
5123 2001-06-01 Bruno Haible <haible@clisp.cons.org>
5125 * tests/table-from.c (bmp_only): New variable.
5126 (ucs4_decode): If bmp_only, don't return characters outside Unicode
5128 (main): When testing UTF-8 or GB18030, set bmp_only to 1. Don't print
5129 a conversion line if ucs4_decode returns NULL.
5130 * tests/table-to.c (main): When testing encodings other than UTF-8 and
5131 GB18030, loop upto U+30000 instead of U+10000.
5133 2001-05-24 Bruno Haible <haible@clisp.cons.org>
5135 * lib/converters.h (mbtowc_funcs): Add flushwc member function.
5136 * lib/flushwc.h: New file.
5137 * lib/cp1255.h: Include flushwc.h.
5138 (cp1255_comp_table_data, cp1255_comp_table): New arrays.
5139 (cp1255_mbtowc): Compose base and combining characters.
5140 (cp1255_flushwc): New macro.
5141 * lib/vietcomb.h (viet_comp_table_data, viet_comp_table): New arrays.
5142 * lib/cp1258.h: Include flushwc.h.
5143 (cp1258_mbtowc): Compose base and combining characters.
5144 (cp1258_flushwc): New macro.
5145 * lib/tcvn.h: Include flushwc.h.
5146 (tcvn_mbtowc): Compose base and combining characters.
5147 (tcvn_flushwc): New macro.
5148 * lib/loop_unicode.h: (unicode_transliterate): New function, extracted
5149 from unicode_loop_convert.
5150 (unicode_loop_convert): Use unicode_transliterate.
5151 (unicode_loop_reset): Call xxx_flushwc and output the resulting
5153 * lib/encodings.def: Add xxx_flushwc member.
5154 * lib/encodings_aix.def: Likewise.
5155 * lib/encodings_dos.def: Likewise.
5156 * lib/encodings_local.def: Likewise.
5157 * lib/encodings_osf1.def: Likewise.
5158 * lib/genaliases.c: Add an argument to the DEFENCODING macro.
5159 * lib/genaliases2.c: Likewise.
5160 * lib/genflags.c: Likewise.
5161 * lib/iconv.c: Likewise.
5162 * tests/table-from.c (try): Reset the iconv descriptor before the main
5163 call, and flush it afterwards.
5164 (ucs4_decode): New function.
5165 (main): Allow up to 3 Unicode characters output. Call ucs4_decode.
5166 * tests/CP1255-snippet: New file.
5167 * tests/CP1255-snippet.UTF-8: New file.
5168 * tests/CP1258-snippet: New file.
5169 * tests/CP1258-snippet.UTF-8: New file.
5170 * tests/TCVN-snippet: New file.
5171 * tests/TCVN-snippet.UTF-8: New file.
5172 * tests/Makefile.in (check): Check combining behaviour of CP1255,
5174 * tests/Makefile.msvc (check): Likewise.
5175 * tests/Makefile.os2 (check): Likewise.
5177 2001-05-22 Bruno Haible <haible@clisp.cons.org>
5179 * lib/converters.h (RET_ILUNI): New macro.
5180 (RET_ILSEQ): Change value to -1.
5181 (RET_TOOFEW): Change value.
5182 * lib/loop_unicode.h (unicode_loop_convert): Write RET_ILUNI instead
5183 of 0. Update handling of xxx_mbtowc return value.
5184 * lib/genflags.c (emit_encoding): Likewise.
5185 * lib/ascii.h (ascii_wctomb): Use RET_ILUNI instead of RET_ILSEQ.
5186 * lib/armscii_8.h (armscii_8_wctomb): Likewise.
5187 * lib/big5.h (big5_wctomb): Likewise.
5188 * lib/big5hkscs.h (big5hkscs_wctomb): Likewise.
5189 * lib/ces_big5.h (ces_big5_wctomb): Likewise.
5190 * lib/ces_gbk.h (ces_gbk_wctomb): Likewise.
5191 * lib/cns11643.h (cns11643_wctomb): Likewise.
5192 * lib/cns11643_inv.h (cns11643_inv_wctomb): Likewise.
5193 * lib/cp437.h (cp437_wctomb): Likewise.
5194 * lib/cp775.h (cp775_wctomb): Likewise.
5195 * lib/cp850.h (cp850_wctomb): Likewise.
5196 * lib/cp852.h (cp852_wctomb): Likewise.
5197 * lib/cp855.h (cp855_wctomb): Likewise.
5198 * lib/cp856.h (cp856_wctomb): Likewise.
5199 * lib/cp857.h (cp857_wctomb): Likewise.
5200 * lib/cp861.h (cp861_wctomb): Likewise.
5201 * lib/cp862.h (cp862_wctomb): Likewise.
5202 * lib/cp864.h (cp864_wctomb): Likewise.
5203 * lib/cp865.h (cp865_wctomb): Likewise.
5204 * lib/cp866.h (cp866_wctomb): Likewise.
5205 * lib/cp869.h (cp869_wctomb): Likewise.
5206 * lib/cp874.h (cp874_wctomb): Likewise.
5207 * lib/cp922.h (cp922_wctomb): Likewise.
5208 * lib/cp932ext.h (cp932ext_wctomb): Likewise.
5209 * lib/cp932.h (cp932_wctomb): Likewise.
5210 * lib/cp936ext.h (cp936ext_wctomb): Likewise.
5211 * lib/cp949.h (cp949_wctomb): Likewise.
5212 * lib/cp950ext.h (cp950ext_wctomb): Likewise.
5213 * lib/cp950.h (cp950_wctomb): Likewise.
5214 * lib/cp1046.h (cp1046_wctomb): Likewise.
5215 * lib/cp1124.h (cp1124_wctomb): Likewise.
5216 * lib/cp1129.h (cp1129_wctomb): Likewise.
5217 * lib/cp1133.h (cp1133_wctomb): Likewise.
5218 * lib/cp1250.h (cp1250_wctomb): Likewise.
5219 * lib/cp1251.h (cp1251_wctomb): Likewise.
5220 * lib/cp1252.h (cp1252_wctomb): Likewise.
5221 * lib/cp1253.h (cp1253_wctomb): Likewise.
5222 * lib/cp1254.h (cp1254_wctomb): Likewise.
5223 * lib/cp1255.h (cp1255_wctomb): Likewise.
5224 * lib/cp1256.h (cp1256_wctomb): Likewise.
5225 * lib/cp1257.h (cp1257_wctomb): Likewise.
5226 * lib/cp1258.h (cp1258_wctomb): Likewise.
5227 * lib/dec_hanyu.h (dec_hanyu_wctomb): Likewise.
5228 * lib/dec_kanji.h (dec_kanji_wctomb): Likewise.
5229 * lib/euc_cn.h (euc_cn_wctomb): Likewise.
5230 * lib/euc_jp.h (euc_jp_wctomb): Likewise.
5231 * lib/euc_kr.h (euc_kr_wctomb): Likewise.
5232 * lib/euc_tw.h (euc_tw_wctomb): Likewise.
5233 * lib/gb12345ext.h (gb12345ext_wctomb): Likewise.
5234 * lib/gb12345.h (gb12345_wctomb): Likewise.
5235 * lib/gb18030ext.h (gb18030ext_wctomb): Likewise.
5236 * lib/gb18030.h (gb18030_wctomb): Likewise.
5237 * lib/gb18030uni.h (gb18030uni_wctomb): Likewise.
5238 * lib/gb2312.h (gb2312_wctomb): Likewise.
5239 * lib/gbkext_inv.h (gbkext_inv_wctomb): Likewise.
5240 * lib/gbk.h (gbk_wctomb): Likewise.
5241 * lib/georgian_academy.h (georgian_academy_wctomb): Likewise.
5242 * lib/georgian_ps.h (georgian_ps_wctomb): Likewise.
5243 * lib/hkscs.h (hkscs_wctomb): Likewise.
5244 * lib/hp_roman8.h (hp_roman8_wctomb): Likewise.
5245 * lib/hz.h (hz_wctomb): Likewise.
5246 * lib/iso2022_cnext.h (iso2022_cn_ext_wctomb): Likewise.
5247 * lib/iso2022_cn.h (iso2022_cn_wctomb): Likewise.
5248 * lib/iso2022_jp1.h (iso2022_jp1_wctomb): Likewise.
5249 * lib/iso2022_jp2.h (iso2022_jp2_wctomb): Likewise.
5250 * lib/iso2022_jp.h (iso2022_jp_wctomb): Likewise.
5251 * lib/iso2022_kr.h (iso2022_kr_wctomb): Likewise.
5252 * lib/iso646_cn.h (iso646_cn_wctomb): Likewise.
5253 * lib/iso646_jp.h (iso646_jp_wctomb): Likewise.
5254 * lib/iso8859_1.h (iso8859_1_wctomb): Likewise.
5255 * lib/iso8859_2.h (iso8859_2_wctomb): Likewise.
5256 * lib/iso8859_3.h (iso8859_3_wctomb): Likewise.
5257 * lib/iso8859_4.h (iso8859_4_wctomb): Likewise.
5258 * lib/iso8859_5.h (iso8859_5_wctomb): Likewise.
5259 * lib/iso8859_6.h (iso8859_6_wctomb): Likewise.
5260 * lib/iso8859_7.h (iso8859_7_wctomb): Likewise.
5261 * lib/iso8859_8.h (iso8859_8_wctomb): Likewise.
5262 * lib/iso8859_9.h (iso8859_9_wctomb): Likewise.
5263 * lib/iso8859_10.h (iso8859_10_wctomb): Likewise.
5264 * lib/iso8859_13.h (iso8859_13_wctomb): Likewise.
5265 * lib/iso8859_14.h (iso8859_14_wctomb): Likewise.
5266 * lib/iso8859_15.h (iso8859_15_wctomb): Likewise.
5267 * lib/iso8859_16.h (iso8859_16_wctomb): Likewise.
5268 * lib/isoir165ext.h (isoir165ext_wctomb): Likewise.
5269 * lib/isoir165.h (isoir165_wctomb): Likewise.
5270 * lib/jisx0201.h (jisx0201_wctomb): Likewise.
5271 * lib/jisx0208.h (jisx0208_wctomb): Likewise.
5272 * lib/jisx0212.h (jisx0212_wctomb): Likewise.
5273 * lib/johab.h (johab_wctomb): Likewise.
5274 * lib/johab_hangul.h (johab_hangul_wctomb, johab_hangul_decompose):
5276 * lib/koi8_r.h (koi8_r_wctomb): Likewise.
5277 * lib/koi8_ru.h (koi8_ru_wctomb): Likewise.
5278 * lib/koi8_u.h (koi8_u_wctomb): Likewise.
5279 * lib/ksc5601.h (ksc5601_wctomb): Likewise.
5280 * lib/mac_arabic.h (mac_arabic_wctomb): Likewise.
5281 * lib/mac_centraleurope.h (mac_centraleurope_wctomb): Likewise.
5282 * lib/mac_croatian.h (mac_croatian_wctomb): Likewise.
5283 * lib/mac_cyrillic.h (mac_cyrillic_wctomb): Likewise.
5284 * lib/mac_greek.h (mac_greek_wctomb): Likewise.
5285 * lib/mac_hebrew.h (mac_hebrew_wctomb): Likewise.
5286 * lib/mac_iceland.h (mac_iceland_wctomb): Likewise.
5287 * lib/mac_roman.h (mac_roman_wctomb): Likewise.
5288 * lib/mac_romania.h (mac_romania_wctomb): Likewise.
5289 * lib/mac_thai.h (mac_thai_wctomb): Likewise.
5290 * lib/mac_turkish.h (mac_turkish_wctomb): Likewise.
5291 * lib/mac_ukraine.h (mac_ukraine_wctomb): Likewise.
5292 * lib/mulelao.h (mulelao_wctomb): Likewise.
5293 * lib/nextstep.h (nextstep_wctomb): Likewise.
5294 * lib/sjis.h (sjis_wctomb): Likewise.
5295 * lib/tcvn.h (tcvn_wctomb): Likewise.
5296 * lib/tis620.h (tis620_wctomb): Likewise.
5297 * lib/ucs2be.h (ucs2be_wctomb): Likewise.
5298 * lib/ucs2.h (ucs2_wctomb): Likewise.
5299 * lib/ucs2internal.h (ucs2internal_wctomb): Likewise.
5300 * lib/ucs2le.h (ucs2le_wctomb): Likewise.
5301 * lib/ucs2swapped.h (ucs2swapped_wctomb): Likewise.
5302 * lib/ucs4.h (ucs4_wctomb): Likewise.
5303 * lib/uhc_1.h (uhc_1_wctomb): Likewise.
5304 * lib/uhc_2.h (uhc_2_wctomb): Likewise.
5305 * lib/utf16be.h (utf16be_wctomb): Likewise.
5306 * lib/utf16.h (utf16_wctomb): Likewise.
5307 * lib/utf16le.h (utf16le_wctomb): Likewise.
5308 * lib/utf32be.h (utf32be_wctomb): Likewise.
5309 * lib/utf32.h (utf32_wctomb): Likewise.
5310 * lib/utf32le.h (utf32le_wctomb): Likewise.
5311 * lib/utf7.h (utf7_wctomb): Likewise.
5312 * lib/utf8.h (utf8_wctomb): Likewise.
5313 * lib/viscii.h (viscii_wctomb): Likewise.
5314 * tools/8bit_tab_to_h.c (main): Likewise.
5315 * tools/cjk_tab_to_h.c (output_uni2charset_dense,
5316 output_uni2charset_sparse, do_gb18030uni): Likewise.
5318 2001-05-19 Bruno Haible <haible@clisp.cons.org>
5320 * Makefile.devel (all): Add man/{iconv.1,iconv*.3}.html.
5321 (man/%.html): New rule.
5322 * man/Makefile.in (docdir, htmldir): New variables.
5323 (install, installdirs): Install the HTML formatted man pages in
5325 (uninstall): Uninstall them.
5327 2001-05-20 Bruno Haible <haible@clisp.cons.org>
5329 * lib/cp1255.h (cp1255_decomp_table): New array.
5330 (cp1255_comb_table): New array.
5331 (cp1255_wctomb): Decompose Unicode characters.
5332 * tests/CP1255.IRREVERSIBLE.TXT: New file.
5334 2001-05-13 Bruno Haible <haible@clisp.cons.org>
5336 * lib/vietcomb.h: New file.
5337 * lib/cp1258.h: Include it.
5338 (cp1258_comb_table): New array.
5339 (cp1258_wctomb): Decompose Unicode characters.
5340 * lib/tcvn.h: Include it.
5341 (tcvn_comb_table): New array.
5342 (tcvn_wctomb): Decompose Unicode characters.
5343 * tests/CP1258.IRREVERSIBLE.TXT: New file.
5344 * tests/TCVN.IRREVERSIBLE.TXT: New file.
5346 2001-05-06 Bruno Haible <haible@clisp.cons.org>
5348 * lib/Makefile.msvc (config.h): Allow the 'del' command to fail.
5349 (iconv.lib): Likewise.
5351 2001-05-06 Bruno Haible <haible@clisp.cons.org>
5353 * lib/Makefile.in (CPPFLAGS, LDFLAGS): New variables.
5354 (CPP): Remove variable.
5355 (libiconv.la, libiconv_plug_linux.so, libiconv_plug_solaris.so,
5356 libiconv_plug_osf.so): Use LDFLAGS.
5357 (libiconv_plug_linux.so, libiconv_plug_solaris.so,
5358 libiconv_plug_osf.so, iconv.lo): Use CPPFLAGS.
5359 * lib/Makefile.msvc (CPP): Remove variable.
5360 * src/Makefile.in (CPPFLAGS, LDFLAGS): New variables.
5361 (CPP): Remove variable.
5362 (iconv): Use CPPFLAGS and LDFLAGS.
5363 * src/Makefile.msvc (CPP): Remove variable.
5364 * tests/Makefile.in (CPPFLAGS, LDFLAGS): New variables.
5365 (check, table-from, table-to): Use CPPFLAGS and LDFLAGS.
5366 * tests/Makefile.msvc (CPP): Remove variable.
5368 2001-05-06 Bruno Haible <haible@clisp.cons.org>
5370 * lib/Makefile.in (libiconv_plug_solaris.so): Change rule if not using
5371 gcc. Reported by Paananen Mikko <mikkopa@cs.tut.fi>.
5373 2001-04-11 Bruno Haible <haible@clisp.cons.org>
5375 Implement and document UTF-32, UTF-32BE, UTF-32LE.
5376 * src/utf32.h, src/utf32be.h, src/utf32le.h: New files.
5377 * src/converters.h: Include them.
5378 * src/encodings.def (UTF-32, UTF-32BE, UTF32LE): New encodings.
5379 * README, man/iconv_open.3: Add UTF-32, UTF-32BE, UTF32LE.
5380 * tests/Makefile.in (check): Check UTF-32, UTF-32BE, UTF32LE.
5381 * tests/Makefile.os2 (check): Likewise.
5382 * tests/Makefile.msvc (check): Likewise.
5383 * tests/UTF-32*snippet*: New files.
5385 * lib/ucs4.h (ucs4_mbtowc): Fix value of other-endian byte order.
5386 (ucs4_wctomb): Allow any 31-bit codepoint.
5388 2001-04-11 Bruno Haible <haible@clisp.cons.org>
5390 * tests/GB18030.TXT: Add mappings for all of U+0000..U+FFFF, including
5391 unassigned code points.
5392 * tests/table-from.c (main); When dumping GB18030, don't print code
5393 points larger than U+FFFF.
5395 2001-03-30 Bruno Haible <haible@clisp.cons.org>
5397 * tools/Makefile (GB18030uni.TXT): Use a table source which includes
5398 the unassigned Unicode code points.
5399 * lib/gb18030uni.h: Update.
5400 (gb18030uni_ranges): Remove bitmap_offset field.
5401 (gb18030uni_bitmap): Remove array.
5402 (gb18030uni_mbtowc): Omit gb18030uni_bitmap access.
5403 (gb18030uni_wctomb): Likewise.
5404 * lib/gb18030.h (gb18030_mbtowc): Handle Unicode characters >= 0x10000.
5405 (gb18030_wctomb): Likewise.
5407 2001-03-21 Bruno Haible <haible@clisp.cons.org>
5409 * INSTALL.generic (Particular Systems): Add recommendations for AIX 3.
5411 2001-03-21 Bruno Haible <haible@clisp.cons.org>
5413 * src/iconv.c (print_version): Now called GNU libiconv.
5415 2001-03-20 Bruno Haible <haible@clisp.cons.org>
5417 * README: This package is now called GNU libiconv.
5419 * tools/8bit_tab_to_h.c (main): Emit copyright notice to the output
5421 * tools/cjk_tab_to_h.c (output_title): Likewise.
5422 * tools/cjk_variants.c (main): Likewise.
5423 * lib/gentranslit.c (main): Likewise.
5425 2001-03-19 Bruno Haible <haible@clisp.cons.org>
5427 * autoconf/aclocal.m4 (CL_CANONICAL_HOST): Always define
5428 ac_config_guess and ac_config_sub. Then ignore requests for
5429 AC_CONFIG_AUX_DIR_DEFAULT or AC_CANONICAL_HOST.
5431 2001-03-10 Bruno Haible <haible@clisp.cons.org>
5433 * INSTALL.generic: New section "Particular Systems".
5435 2001-03-10 Bruno Haible <haible@clisp.cons.org>
5437 * lib/Makefile.in (libiconv.la): Pass flag -no-undefined. Needed on
5438 platforms like BeOS.
5440 * lib/loop_wchar.h (mbstate_t): Don't typedef if already #defined in
5443 2001-03-06 Bruno Haible <haible@clisp.cons.org>
5445 * Version 1.6 released.
5446 * include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
5447 Bump version number.
5448 * lib/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:3:0.
5450 2001-03-05 Bruno Haible <haible@clisp.cons.org>
5452 Provide all encodings used by OSF/1 5.1 locales.
5453 * lib/dec_kanji.h: New file.
5454 * lib/dec_hanyu.h: New file.
5455 * lib/converters.h: Include them if USE_OSF1 is defined.
5456 * lib/encodings_osf1.def: New file.
5457 * lib/genflags.c (main): Include it. Define USE_OSF1.
5458 * lib/genaliases2.c (main): Include it conditionally.
5459 * lib/iconv.c: Define USE_OSF1 on OSF/1.
5460 Include encodings_osf1.def and aliases_osf1.h.
5461 * lib/Makefile.in (iconv.lo): Depend on encodings_osf1.def and
5463 * Makefile.devel (lib/aliases_osf1.h): New target.
5464 (all): Depend on lib/aliases_osf1.h.
5465 (lib/flags.h): Depend on lib/encodings_osf1.def.
5467 2001-03-01 Bruno Haible <haible@clisp.cons.org>
5469 * tools/Makefile (cp775.h): New target.
5471 * lib/cp775.h: New file.
5472 * lib/converters.h: Include it.
5473 * lib/encodings_dos.def (CP775): New encoding.
5475 2001-02-25 Bruno Haible <haible@clisp.cons.org>
5477 * lib/iconv.c (iconv_open): locale_charset() doesn't return NULL any
5480 2001-02-24 Bruno Haible <haible@clisp.cons.org>
5482 * src/iconv.c (convert): Use ICONV_CONST.
5483 * tests/table-from.c: Include config.h.
5484 (try): Use ICONV_CONST.
5485 * tests/table-to.c: Include config.h.
5486 (main): Use ICONV_CONST.
5487 * tests/Makefile.in (INCLUDES): Add -I../lib.
5488 * tests/Makefile.os2 (INCLUDES): Likewise.
5489 * tests/Makefile.msvc (INCLUDES): Add -I..\lib.
5491 2001-02-24 Bruno Haible <haible@clisp.cons.org>
5493 Provide all encodings used by DOS locales.
5494 * tools/Makefile (cp437.h, cp852.h, cp855.h, cp857.h, cp861.h,
5495 cp864.h, cp865.h, cp869.h): New targets.
5497 * lib/cp437.h: New file.
5498 * lib/cp852.h: New file.
5499 * lib/cp855.h: New file.
5500 * lib/cp857.h: New file.
5501 * lib/cp861.h: New file.
5502 * lib/cp864.h: New file.
5503 * lib/cp865.h: New file.
5504 * lib/cp869.h: New file.
5505 * lib/converters.h: Include them if USE_DOS is defined.
5506 * lib/encodings_dos.def: New file.
5507 * lib/genflags.c (main): Include it. Define USE_DOS.
5508 * lib/genaliases2.c (main): Include it conditionally.
5509 * lib/iconv.c: Define USE_DOS on DJGPP.
5510 Include encodings_dos.def and aliases_dos.h.
5511 * lib/Makefile.in (iconv.lo): Depend on encodings_dos.def and
5513 * Makefile.devel (lib/aliases_dos.h): New target.
5514 (all): Depend on lib/aliases_dos.h.
5515 (lib/flags.h): Depend on lib/encodings_dos.def.
5517 2001-02-23 Bruno Haible <haible@clisp.cons.org>
5519 * src/iconv.c [DJGPP]: Include <io.h> and <unistd.h>.
5520 (SET_BINARY) [O_BINARY]: New macro.
5521 (usage): Mention --binary if available.
5522 (convert): Use SET_BINARY instead of setmode.
5524 Reported by Juan Manuel Guerrero <st001906@hrz1.hrz.tu-darmstadt.de>.
5526 2001-02-25 Bruno Haible <haible@clisp.cons.org>
5528 * autoconf/ltconfig:
5529 sed -e 's/reload object files/produce relocatable object files/'.
5531 2001-02-20 Bruno Haible <haible@clisp.cons.org>
5533 * src/iconv.c (usage, main): Make -f and -t options optional.
5534 * man/iconv.1: Mark them as optional.
5536 2001-02-20 Bruno Haible <haible@clisp.cons.org>
5538 * tools/Makefile (GB18030ext.TXT, GB18030uni.TXT): Generate from
5540 * lib/gb18030uni.h, lib/gb18030ext.h: Add mapping 0xA989 -> U+303E,
5541 0xFE5E -> U+2E97. Shift the entire four-byte range.
5542 * tests/GB18030.TXT: Regenerated.
5544 2001-02-20 Bruno Haible <haible@clisp.cons.org>
5546 Better support for DOS/Windows platforms.
5547 * autoconf/ltconfig: Upgrade to libtool-1.3.5.
5548 * autoconf/ltmain.sh: Likewise.
5549 * autoconf/aclocal.m4: Likewise.
5550 * autoconf/install-sh: New file.
5551 * configure.in: Call AC_OBJEXT and AC_EXEEXT. Call AC_CONFIG_AUX_DIR.
5553 2001-02-20 Bruno Haible <haible@clisp.cons.org>
5555 * Makefile.in (libdir, includedir, mandir): Use the autoconf
5556 determined value, in order to respect the configure arguments.
5557 * lib/Makefile.in (libdir): Likewise.
5558 * src/Makefile.in (bindir): Likewise.
5559 * man/Makefile.in (mandir): Likewise.
5561 2001-02-04 Bruno Haible <haible@clisp.cons.org>
5563 * lib/translit.def: Add all the neutral transliterations from glibc.
5564 * lib/gentranslit.c (main): Allow UTF-8 replacements which are in
5565 UCS-2 but not in ISO-8859-1. Generate a table of 'unsigned short'.
5566 Avoid accessing data[-1].
5567 * lib/loop_unicode.h (unicode_loop_convert): Change type of pointer
5570 2001-01-05 Bruno Haible <haible@clisp.cons.org>
5572 Implement and document CP862.
5573 * tools/Makefile (ALL): Add cp862.h.
5574 (cp862.h): New target.
5575 * lib/cp862.h: New file.
5576 * lib/converters.h: Include it.
5577 * lib/encodings.def (CP862): New encoding.
5578 * README, man/iconv_open.3: Add CP862.
5579 * tests/Makefile.in (check): Check CP862.
5580 * tests/Makefile.msvc (check): Likewise.
5581 * tests/Makefile.os2 (check): Likewise.
5582 * tests/CP862.TXT: New file.
5584 2000-12-18 Bruno Haible <haible@clisp.cons.org>
5586 * autoconf/mbstate_t.m4: New file, from textutils-2.0.10.
5587 * Makefile.devel (OTHERMACROS): Add it.
5588 * configure.in: Call AC_MBSTATE_T.
5589 * lib/config.h.in (mbstate_t): New definition.
5590 * lib/loop_wchar.h (mbrtowc): For BeOS, declare and define fallback.
5592 2000-12-12 Bruno Haible <haible@clisp.cons.org>
5594 * Makefile.in: Use $(MAKE) instead of $(MAKE) -r. Needed with Solaris
5595 "make", which doesn't set MAKE as expected by @SET_MAKE@ if -r is
5596 given. Reported by Toshimitsu Fujiwara.
5598 2000-12-08 Bruno Haible <haible@clisp.cons.org>
5600 * Makefile.in (exec_prefix): Use configure's --exec-prefix argument.
5601 * lib/Makefile.in (exec_prefix): Likewise.
5602 * src/Makefile.in (exec_prefix): Likewise.
5603 * man/Makefile.in (exec_prefix): Likewise.
5605 2000-12-02 Bruno Haible <haible@clisp.cons.org>
5607 * Version 1.5 released.
5608 * include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
5609 Bump version number.
5610 * lib/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:2:0.
5612 2000-12-02 Bruno Haible <haible@clisp.cons.org>
5614 * Makefile.in (mostlyclean, clean, distclean, maintainer-clean):
5615 Remove files installed in lib by libcharset.
5616 * Makefile.msvc (mostlyclean): Likewise.
5618 * Makefile.in (check): Depend on target 'all'.
5619 * Makefile.os2 (check): Likewise.
5620 * Makefile.msvc (check): Depend on target 'force' as well.
5622 * src/iconv.c (usage): Take an exitcode argument.
5623 (print_version): New function.
5624 (main): Recognize --help and --version command line options.
5626 2000-12-02 Bruno Haible <haible@clisp.cons.org>
5628 * Makefile.msvc: Replace STATIC with its opposite flag, DLL.
5629 * lib/Makefile.msvc: Likewise.
5630 * src/Makefile.msvc: Likewise.
5631 * tests/Makefile.msvc: Likewise.
5633 2000-12-01 Bruno Haible <haible@clisp.cons.org>
5635 * src/iconv.c: Include <fcntl.h>. Define fallbacks for setmode, fileno.
5636 (force_binary): New variable.
5637 (convert): If requested, set the input O_BINARY.
5638 (main): Accept --binary option. If requested, set the output O_BINARY.
5639 * tests/check-stateful.bat: Pass --binary to iconv.
5640 * tests/check-stateful.cmd: Likewise.
5641 * tests/check-translit.bat: Likewise.
5642 * tests/check-translit.cmd: Likewise.
5644 2000-12-01 Bruno Haible <haible@clisp.cons.org>
5646 * include/iconv.h.in (_libiconv_version): New declaration.
5647 * lib/iconv.c (_libiconv_version): New variable.
5649 2000-11-30 Bruno Haible <haible@clisp.cons.org>
5651 * Makefile.msvc (all): File now named lib/libcharset.h.
5652 (clean, distclean, maintainer-clean): Likewise.
5654 2000-11-23 Bruno Haible <haible@clisp.cons.org>
5656 * lib/*: Move here all files from src/*.
5657 * src/*: Move all files to lib.
5658 * lib/Makefile.in (distclean): No need to remove config.status,
5659 config.log, config.cache.
5660 * configure.in: Require lib/iconv.c, not src/iconv.c. Create
5661 lib/config.h, not src/config.h. Also create lib/Makefile.
5662 * Makefile.in (all): Install libcharset into lib, not src. Recurse
5664 (install-lib): Recurse into lib, not src.
5665 (install): Recurse into libcharset, lib and src.
5666 (installdirs, uninstall): Likewise.
5667 (check, mostlyclean, clean, distclean, maintainer-clean): Likewise.
5668 * Makefile.msvc (all): Recurse into lib and src.
5669 (install): Recurse into libcharset, lib and src.
5670 (installdirs, uninstall): Likewise.
5671 (check, mostlyclean, clean, distclean, maintainer-clean): Likewise.
5672 * Makefile.os2 (all): Recurse into lib and src.
5673 (install-lib): Recurse into lib, not src.
5674 (install, uninstall): Recurse into lib and src.
5675 (check, mostlyclean, clean, distclean, maintainer-clean): Likewise.
5676 * Makefile.devel (lib/config.h.msvc): Renamed from src/config.h.msvc.
5677 (lib/aliases.h): Renamed from src/aliases.h.
5678 (lib/aliases.gperf): Renamed from src/aliases.gperf.
5679 (lib/aliases_aix.h): Renamed from src/aliases_aix.h.
5680 (lib/flags.h): Renamed from src/flags.h.
5681 (lib/translit.h): Renamed from src/translit.h.
5682 * src/iconv.c: Moved here from tests/iconv.c.
5683 * src/Makefile.in: New file.
5684 * src/Makefile.msvc: New file.
5685 * src/Makefile.os2: New file.
5686 * tests/Makefile.in (iconv): Remove target.
5687 (../lib/libiconv.la): Renamed from ../src/libiconv.la.
5688 (clean): No need to remove iconv.
5689 * tests/Makefile.msvc (iconv.exe): Remove target.
5690 * tests/Makefile.os2 (iconv.exe): Likewise.
5691 * tests/check-stateful: iconv is in ../src.
5692 * tests/check-stateful.bat: Likewise.
5693 * tests/check-stateful.cmd: Likewise.
5694 * tests/check-translit: iconv is in ../src.
5695 * tests/check-translit.bat: Likewise.
5696 * tests/check-translit.cmd: Likewise.
5697 * man/iconv.1: New file.
5698 * man/Makefile.in (install, installdirs, uninstall): Also install *.1
5700 * man/Makefile.os2 (MAN3): Renamed from MAN.
5701 (MAN1): New variable.
5702 (install, uninstall): Also install *.1 man pages.
5704 2000-11-21 Bruno Haible <haible@clisp.cons.org>
5706 * Makefile.msvc (all, check, mostlyclean, clean, distclean,
5707 maintainer-clean): Recurse into libcharset.
5708 (clean, distclean, maintainer-clean): Remove src\libcharset.h.
5709 * src/Makefile.msvc (LIBCHARSET_OBJECTS): New variable.
5710 (iconv.lib): Link with $(LIBCHARSET_OBJECTS).
5712 2000-11-18 Bruno Haible <haible@clisp.cons.org>
5714 * src/cp950.h (cp950_mbtowc, cp950_wctomb): Change implementation
5715 so that it agrees with Microsoft's definition of CP950.
5716 * tests/CP950.TXT: Likewise.
5717 * tests/CP950.IRREVERSIBLE.TXT: Add 0xA244, 0xA2CC, 0xA2CE.
5719 2000-11-18 Bruno Haible <haible@clisp.cons.org>
5721 Add support for locale dependent "char" and "wchar_t" encodings.
5722 * libcharset: New subdirectory.
5723 * src/loop_unicode.h: New file, extracted from src/iconv.c.
5724 * src/loop_wchar.h: New file.
5725 * src/loops.h: New file. Include loop_unicode.h and loop_wchar.h.
5726 * src/encodings_local.def: New file.
5727 * src/genaliases.c: Also create aliases for encodings_local.def.
5728 * src/converters.h (conv_struct): Add lfuncs field.
5729 * src/genflags.c: Add dummy definitions of struct loop_funcs.
5730 * src/iconv.c: Include libcharset.h.
5731 (loop_funcs): New structure.
5732 Treat encodings_local.def like encodings.def.
5734 (iconv_open): Move the bulk of the code to loop_unicode.h.
5736 (iconvctl): Extend determination of TRIVIALP to wchar_t conversion
5738 * src/Makefile.in (PLUG_SOURCES): Remove variable.
5739 (LIBCHARSET_OBJECTS): New variable.
5740 (libiconv.la): Link in the LIBCHARSET_OBJECTS.
5741 (libiconv_plug_linux.so, libiconv_plug_solaris.so,
5742 libiconv_plug_osf.so): Link in the LIBCHARSET_OBJECTS, using
5744 (iconv.lo): Depend on encodings_local.def.
5745 * src/Makefile.msvc (iconv.obj): Depend on encodings_local.def.
5746 * src/Makefile.os2 (iconv.obj): Likewise.
5747 * configure.in: Add tests for locale.h, mbrtowc, wcrtomb, setlocale.
5748 Recurse into libcharset.
5749 * src/config.h.in (HAVE_LOCALE_H, HAVE_MBRTOWC, HAVE_WCRTOMB,
5750 HAVE_SETLOCALE): New macros.
5751 * tests/iconv.c: Include config.h and locale.h.
5752 (main): Call setlocale.
5753 * tests/Makefile.in (iconv): Search for config.h in ../src.
5754 * tests/Makefile.os2 (iconv.exe): Likewise.
5755 * tests/Makefile.msvc (iconv.exe): Likewise.
5756 * README, man/iconv_open.3: Document "char" and "wchar_t" encodings.
5757 * Makefile.in: After "cd", use "&&" not ";".
5758 (all, check, mostlyclean, clean, distclean, maintainer-clean):
5759 Recurse into libcharset.
5760 * Makefile.devel (all): Recurse into libcharset.
5761 (src/aliases.gperf): Depend on src/encodings_local.def.
5763 2000-11-18 Bruno Haible <haible@clisp.cons.org>
5765 * src/converters.h (ucs4_t): New type.
5766 (wchar_t): Remove locally defined override.
5767 (mbtowc_funcs, wctomb_funcs): Use ucs4_t instead of wchar_t.
5768 * src/iconv.c (iconv): Likewise.
5769 * src/genflags.c (emit_encoding): Use ucs4_t instead of wchar_t.
5770 * tools/8bit_tab_to_h.c: Use "ucs4_t" instead of "wchar_t".
5771 * tools/cjk_tab_to_h.c: Likewise.
5772 * src/armscii_8.h: Use ucs4_t instead of wchar_t.
5773 * src/ascii.h: Likewise.
5774 * src/big5.h: Likewise.
5775 * src/big5hkscs.h: Likewise.
5776 * src/ces_big5.h: Likewise.
5777 * src/ces_gbk.h: Likewise.
5778 * src/cns11643.h: Likewise.
5779 * src/cns11643_1.h: Likewise.
5780 * src/cns11643_2.h: Likewise.
5781 * src/cns11643_3.h: Likewise.
5782 * src/cns11643_inv.h: Likewise.
5783 * src/cp1046.h: Likewise.
5784 * src/cp1124.h: Likewise.
5785 * src/cp1129.h: Likewise.
5786 * src/cp1133.h: Likewise.
5787 * src/cp1250.h: Likewise.
5788 * src/cp1251.h: Likewise.
5789 * src/cp1252.h: Likewise.
5790 * src/cp1253.h: Likewise.
5791 * src/cp1254.h: Likewise.
5792 * src/cp1255.h: Likewise.
5793 * src/cp1256.h: Likewise.
5794 * src/cp1257.h: Likewise.
5795 * src/cp1258.h: Likewise.
5796 * src/cp850.h: Likewise.
5797 * src/cp856.h: Likewise.
5798 * src/cp866.h: Likewise.
5799 * src/cp874.h: Likewise.
5800 * src/cp922.h: Likewise.
5801 * src/cp932.h: Likewise.
5802 * src/cp932ext.h: Likewise.
5803 * src/cp936ext.h: Likewise.
5804 * src/cp949.h: Likewise.
5805 * src/cp950.h: Likewise.
5806 * src/cp950ext.h: Likewise.
5807 * src/euc_cn.h: Likewise.
5808 * src/euc_jp.h: Likewise.
5809 * src/euc_kr.h: Likewise.
5810 * src/euc_tw.h: Likewise.
5811 * src/gb12345.h: Likewise.
5812 * src/gb12345ext.h: Likewise.
5813 * src/gb18030.h: Likewise.
5814 * src/gb18030ext.h: Likewise.
5815 * src/gb18030uni.h: Likewise.
5816 * src/gb2312.h: Likewise.
5817 * src/gbk.h: Likewise.
5818 * src/gbkext1.h: Likewise.
5819 * src/gbkext2.h: Likewise.
5820 * src/gbkext_inv.h: Likewise.
5821 * src/georgian_academy.h: Likewise.
5822 * src/georgian_ps.h: Likewise.
5823 * src/hkscs.h: Likewise.
5824 * src/hp_roman8.h: Likewise.
5825 * src/hz.h: Likewise.
5826 * src/iso2022_cn.h: Likewise.
5827 * src/iso2022_cnext.h: Likewise.
5828 * src/iso2022_jp.h: Likewise.
5829 * src/iso2022_jp1.h: Likewise.
5830 * src/iso2022_jp2.h: Likewise.
5831 * src/iso2022_kr.h: Likewise.
5832 * src/iso646_cn.h: Likewise.
5833 * src/iso646_jp.h: Likewise.
5834 * src/iso8859_1.h: Likewise.
5835 * src/iso8859_10.h: Likewise.
5836 * src/iso8859_13.h: Likewise.
5837 * src/iso8859_14.h: Likewise.
5838 * src/iso8859_15.h: Likewise.
5839 * src/iso8859_16.h: Likewise.
5840 * src/iso8859_2.h: Likewise.
5841 * src/iso8859_3.h: Likewise.
5842 * src/iso8859_4.h: Likewise.
5843 * src/iso8859_5.h: Likewise.
5844 * src/iso8859_6.h: Likewise.
5845 * src/iso8859_7.h: Likewise.
5846 * src/iso8859_8.h: Likewise.
5847 * src/iso8859_9.h: Likewise.
5848 * src/isoir165.h: Likewise.
5849 * src/isoir165ext.h: Likewise.
5850 * src/java.h: Likewise.
5851 * src/jisx0201.h: Likewise.
5852 * src/jisx0208.h: Likewise.
5853 * src/jisx0212.h: Likewise.
5854 * src/johab.h: Likewise.
5855 * src/johab_hangul.h: Likewise.
5856 * src/koi8_r.h: Likewise.
5857 * src/koi8_ru.h: Likewise.
5858 * src/koi8_u.h: Likewise.
5859 * src/ksc5601.h: Likewise.
5860 * src/mac_arabic.h: Likewise.
5861 * src/mac_centraleurope.h: Likewise.
5862 * src/mac_croatian.h: Likewise.
5863 * src/mac_cyrillic.h: Likewise.
5864 * src/mac_greek.h: Likewise.
5865 * src/mac_hebrew.h: Likewise.
5866 * src/mac_iceland.h: Likewise.
5867 * src/mac_roman.h: Likewise.
5868 * src/mac_romania.h: Likewise.
5869 * src/mac_thai.h: Likewise.
5870 * src/mac_turkish.h: Likewise.
5871 * src/mac_ukraine.h: Likewise.
5872 * src/mulelao.h: Likewise.
5873 * src/nextstep.h: Likewise.
5874 * src/sjis.h: Likewise.
5875 * src/tcvn.h: Likewise.
5876 * src/tis620.h: Likewise.
5877 * src/ucs2.h: Likewise.
5878 * src/ucs2be.h: Likewise.
5879 * src/ucs2internal.h: Likewise.
5880 * src/ucs2le.h: Likewise.
5881 * src/ucs2swapped.h: Likewise.
5882 * src/ucs4.h: Likewise.
5883 * src/ucs4be.h: Likewise.
5884 * src/ucs4internal.h: Likewise.
5885 * src/ucs4le.h: Likewise.
5886 * src/ucs4swapped.h: Likewise.
5887 * src/uhc_1.h: Likewise.
5888 * src/uhc_2.h: Likewise.
5889 * src/utf16.h: Likewise.
5890 * src/utf16be.h: Likewise.
5891 * src/utf16le.h: Likewise.
5892 * src/utf7.h: Likewise.
5893 * src/utf8.h: Likewise.
5894 * src/viscii.h: Likewise.
5896 2000-11-18 Bruno Haible <haible@clisp.cons.org>
5898 Make transliteration optional.
5899 * src/iconv.c (iconv_open): Strip off //TRANSLIT suffix from names.
5900 Set transliteration on if and only if tocode ends in //TRANSLIT.
5901 * README, man/iconv_open.3: Document how to enable transliteration.
5902 * tests/check-translit: Add //TRANSLIT to iconv's 't' argument.
5903 * tests/check-translit.bat: Likewise.
5904 * tests/check-translit.cmd: Likewise.
5906 2000-11-18 Bruno Haible <haible@clisp.cons.org>
5908 * man/iconv.3: Fix typo.
5910 2000-10-31 Bruno Haible <haible@clisp.cons.org>
5912 * README, man/iconv_open.3: Document JOHAB again.
5914 2000-11-15 Bruno Haible <haible@clisp.cons.org>
5916 * Makefile.msvc: Add support for MFLAGS and DEBUG parameters.
5917 (STATIC): Change default from 0 to 1.
5918 * src/Makefile.msvc: Likewise.
5919 * tests/Makefile.msvc: Likewise.
5920 * tests/check-stateless.bat: Call 'sort' with no arguments.
5922 2000-11-12 Bruno Haible <haible@clisp.cons.org>
5924 * autoconf/config.guess, autoconf/config.sub: Upgrade to newest
5925 version from GNU CVS.
5927 2000-10-24 Bruno Haible <haible@clisp.cons.org>
5929 * Version 1.4 released.
5930 * include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
5931 Bump version number.
5932 * src/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:1:0.
5934 2000-10-23 Bruno Haible <haible@clisp.cons.org>
5936 Implement and document GB18030 and BIG5HKSCS.
5937 * tools/cjk_tab_to_h.c (row_byte_hkscs, byte_row_hkscs, do_hkscs): New
5939 (do_gb18030uni): New function.
5940 (main): Accept gb18030ext, gb18030uni, hkscs.
5941 * tools/Makefile (ALL): Add gb18030ext.h, gb18030uni.h, hkscs.h.
5942 (gb18030ext.h, GB18030ext.TXT, gb18030uni.h, GB18030uni.TXT,
5943 hkscs.h): New targets.
5944 * src/gb18030ext.h, src/gb18030uni.h, src/gb18030.h: New files.
5945 * src/hkscs.h, src/big5hkscs.h: New files.
5946 * src/converters.h: Include gb18030.h and big5hkscs.h.
5947 * src/encodings.def (GB18030, BIG5HKSCS): New encodings.
5948 * README, man/iconv_open.3: Add GB18030, BIG5HKSCS.
5949 * tests/Makefile.in (check): Check GB18030, BIG5HKSCS.
5950 * tests/Makefile.msvc (check): Likewise.
5951 * tests/Makefile.os2 (check): Likewise.
5952 * tests/GB18030.TXT: New file.
5953 * tests/BIG5HKSCS.TXT, tests/BIG5HKSCS.IRREVERSIBLE.TXT: New files.
5955 2000-10-23 Bruno Haible <haible@clisp.cons.org>
5957 * tests/table-from.c (try, main): Use UCS-4-INTERNAL instead of
5958 UCS-2-INTERNAL, to avoid problems with UCS-2 surrogate handling.
5959 * tests/table-to.c (main): Likewise.
5961 2000-10-22 Bruno Haible <haible@clisp.cons.org>
5963 * src/gentranslit.c (main): Read the input in UTF-8 encoding.
5965 2000-10-09 Bruno Haible <haible@clisp.cons.org>
5967 CPU recognition on OpenBSD.
5968 * autoconf/aclocal.m4 (CL_WORDS_LITTLEENDIAN): Recognize __m68k__,
5969 __mc68020__, __MIPSEB__, __MIPSEL__, __m88k__ as CPU indicators.
5971 2000-10-03 Bruno Haible <haible@clisp.cons.org>
5973 * src/gentranslit.c (main): Don't output non-ASCII ISO-8859-1
5974 character literals, use the numeric value instead.
5975 Reported by Shin-Hsien Yeh <shyeh@alcatel.com.tw>.
5977 2000-09-29 Bruno Haible <haible@clisp.cons.org>
5979 * autoconf/aclocal.m4 (CL_CANONICAL_HOST): Fix bug in 2000-05-23
5982 2000-09-25 Bruno Haible <haible@clisp.cons.org>
5984 * autoconf/aclocal.m4 (CL_WORDS_LITTLEENDIAN): Recognize __i386__
5985 as equivalent to __i386. For OpenBSD.
5987 2000-09-21 Bruno Haible <haible@clisp.cons.org>
5989 * src/utf16.h (utf16_wctomb): Reject single surrogates.
5990 * src/utf16be.h (utf16be_wctomb): Likewise.
5991 * src/utf16le.h (utf16le_wctomb): Likewise.
5992 * src/ucs2.h (ucs2_mbtowc, ucs2_wctomb): Likewise.
5993 * src/ucs2be.h (ucs2be_mbtowc, ucs2be_wctomb): Likewise.
5994 * src/ucs2le.h (ucs2le_mbtowc, ucs2le_wctomb): Likewise.
5995 * src/ucs2internal.h (ucs2internal_mbtowc, ucs2internal_wctomb):
5997 * src/ucs2swapped.h (ucs2swapped_mbtowc, ucs2swapped_wctomb):
6000 2000-09-15 Bruno Haible <haible@clisp.cons.org>
6002 * Makefile.in (install, installdirs, uninstall): Support DESTDIR.
6003 * src/Makefile.in (install, installdirs, uninstall): Likewise.
6004 * man/Makefile.in (install, installdirs, uninstall): Likewise.
6006 2000-09-11 Bruno Haible <haible@clisp.cons.org>
6008 * src/utf7.h (utf7_mbtowc): Fix combining of UTF-16 surrogates.
6010 2000-08-26 Bruno Haible <haible@clisp.cons.org>
6012 * autoconf/acgeneral.m4 (AC_OUTPUT): Use braces in exec_prefix default
6015 2000-07-04 Akira Hatakeyama <akira@sra.co.jp>
6016 Bruno Haible <haible@clisp.cons.org>
6018 * os2/iconv.def, README.os2, Makefile.os2, src/Makefile.os2,
6019 tests/Makefile.os2, man/Makefile.os2, tests/check-stateful.cmd,
6020 tests/check-stateless.cmd, tests/check-translit.cmd: New files.
6022 2000-06-28 Bruno Haible <haible@clisp.cons.org>
6024 * src/ucs2internal.h (ucs2internal_mbtowc): Avoid gcc warning about
6026 * src/ucs4internal.h (ucs4internal_mbtowc): Likewise.
6027 * src/ucs2swapped.h (ucs2swapped_mbtowc, ucs2swapped_wctomb): Verify
6028 sizeof(unsigned short).
6029 * src/ucs4swapped.h (ucs4swapped_mbtowc, ucs4swapped_mbtowc): Verify
6030 sizeof(unsigned int).
6031 Reported by François Pinard <pinard@iro.umontreal.ca>.
6033 2000-05-29 Bruno Haible <haible@clisp.cons.org>
6035 * autoconf/aclocal.m4 (CL_PROG_INSTALL): Fix typo.
6036 Reported by Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>.
6038 2000-05-23 Bruno Haible <haible@clisp.cons.org>
6040 * autoconf/aclocal.m4 (CL_CANONICAL_HOST): Determine host_cpu,
6041 host_vendor, host_os correctly if $host has more than two hyphens.
6043 2000-04-15 Bruno Haible <haible@clisp.cons.org>
6045 * Version 1.3 released.
6046 * include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
6047 Bump version number.
6048 * src/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:0:0.
6050 2000-04-15 Bruno Haible <haible@clisp.cons.org>
6053 * INSTALL.generic: New file.
6055 Implement and document UCS-2BE, UCS-2LE, UCS-4BE, UCS-4LE.
6056 * src/ucs2be.h, src/ucs2le.h, src/ucs4be.h, src/ucs4le.h: New files.
6057 * src/converters.h: Include them.
6058 * src/ucs2swapped.h: Remove #defines for UCS-2-BE, UCS-2-LE.
6059 * src/ucs4swapped.h: Remove #defines for UCS-4-BE, UCS-4-LE.
6060 * src/encodings.def (UCS-2BE): Renamed from UCS-2-BE.
6061 (UCS-2LE): Renamed from UCS-2-LE.
6062 (UCS-4BE): Renamed from UCS-4-BE.
6063 (UCS-4LE): Renamed from UCS-4-LE.
6064 * Makefile.devel (src/aliases.h): Pass option "-i 1" to gperf.
6065 * README, man/iconv_open.3: Add UCS-2BE, UCS-2LE, UCS-4BE, UCS-4LE.
6066 * tests/Makefile.in (check): Check UCS-2BE, UCS-2LE, UCS-4BE, UCS-4LE.
6067 * tests/Makefile.msvc (check): Likewise.
6068 * tests/UCS-*snippet*: New files.
6070 Allow building as a shared library on Windows.
6071 Allow running the tests on Windows.
6072 * Makefile.devel (include/iconv.h.msvc): Remove rule.
6073 (include/iconv.h.msvc-static, include/iconv.h.msvc-shared): New
6076 * windows/dllexport.h: New file.
6077 * include/iconv.h.msvc: Remove file.
6078 * include/iconv.h.msvc-static, include/iconv.h.msvc-shared: New
6079 autogenerated files.
6080 * Makefile.msvc (STATIC, DEBUG): Default to 0.
6081 (all): Choose either include\iconv.h.msvc-static or
6082 include\iconv.h.msvc-shared.
6083 (check): Depend on all.
6084 (all, check, mostlyclean, clean, distclean, maintainer-clean):
6085 Recurse into tests directory.
6086 * src/Makefile.msvc (STATIC, DEBUG): Default to 0.
6087 (WARN_CFLAGS, PICFLAGS, OPTIMFLAGS): New variables.
6088 (CFLAGS): Use them. Add -MD and -DBUILDING_LIBICONV.
6089 (RESOURCES): New variable.
6090 (iconv.lib): Change rule when building DLL.
6091 (clean, distclean): One filename per line.
6092 * tests/Makefile.msvc: New file.
6093 * tests/check-stateful.bat, tests/check-stateless.bat,
6094 tests/check-translit.bat: New files.
6095 * tests/uniq-u.c: New file, taken from GNU textutils.
6096 * README.win32: Update.
6097 Based on patches by Taro Muraoka <koron@tka.att.ne.jp>.
6099 2000-04-14 Bruno Haible <haible@clisp.cons.org>
6101 Fix an OSF/1 problem.
6102 * configure.in: Define GCC variable for substitution.
6103 * src/Makefile.in (libiconv_plug_osf.so): Change rule if not using
6106 2000-04-13 Bruno Haible <haible@clisp.cons.org>
6108 Fix a SunOS 4 problem.
6109 * include/iconv.h.in: If EILSEQ is not defined by the system, define
6110 it to ENOENT, not EINVAL.
6112 2000-04-02 Bruno Haible <haible@clisp.cons.org>
6114 Allow building on filesystems lacking symlinks and hard links.
6115 * Makefile.devel (autoconf/aclocal.m4): Replace AC_PROG_LN_S with
6117 * configure.in: Add CL_PROG_LN, CL_PROG_LN_S.
6118 * src/Makefile.in (LN): Use autoconfigured value @LN@.
6119 (LN_S): Use autoconfigured value @LN_S@.
6121 2000-03-15 Bruno Haible <haible@clisp.cons.org>
6123 * Version 1.2 released.
6124 * include/iconv.h.in (_LIBICONV_VERSION): Bump version number.
6125 * src/Makefile.in (LIBICONV_VERSION_INFO): Define to 1:1:1.
6127 2000-03-14 Bruno Haible <haible@clisp.cons.org>
6129 Implement and document UTF-16BE and UTF16LE.
6130 * src/utf16be.h, src/utf16le.h: New files.
6131 * src/converters.h: Include them.
6132 * src/encodings.def (UTF-16BE, UTF16LE): New encodings.
6133 * README, man/iconv_open.3: Add UTF-16BE, UTF16LE.
6134 * tests/Makefile.in (check): Check UTF-16, UTF-16BE, UTF16LE.
6135 * tests/UTF-16*snippet*: New files.
6137 * src/utf16.h (utf16_wctomb): Output a byte order mark.
6139 2000-03-13 Bruno Haible <haible@clisp.cons.org>
6141 Provide all encodings used by AIX locales.
6142 * tools/Makefile (all): Add cp856.h, cp922.h, cp1046.h, cp1124.h,
6144 (cp856.h, cp922.h, cp1046.h, cp1124.h, cp1129.h): New targets.
6145 * src/cp856.h, src/cp922.h, src/cp943.h, src/cp1046.h, src/cp1124.h,
6146 src/cp1129.h: New files.
6147 * src/converters.h: Include them if USE_AIX is defined.
6148 * src/encodings_aix.def: New file, with CP856, CP922, CP943, CP1046,
6150 * src/genflags.c: Define USE_AIX. Include encodings_aix.def.
6151 * src/genaliases2.c: New file.
6152 * src/iconv.c: Define USE_AIX on AIX.
6153 Include encodings_aix.def and aliases_aix.h.
6154 (aliases2_lookup): New function.
6155 (iconv_open): Call aliases2_lookup.
6156 * src/Makefile.in (iconv.lo): Depend on encodings_aix.def and
6158 * Makefile.devel (all): Add src/aliases_aix.h.
6159 (src/aliases_aix.h): New rule.
6160 (src/flags.h): Depend on src/encodings_aix.def.
6162 2000-02-24 Bruno Haible <haible@clisp.cons.org>
6164 * src/iconv.c (iconv): Don't write beyond the end of the output buffer.
6165 Reported by Edmund Grimley Evans <edmundo@rano.org>.
6167 2000-02-22 Bruno Haible <haible@clisp.cons.org>
6169 * src/utf7.h (direct_tab, xdirect_tab): Treat tab like space.
6171 2000-02-15 Bruno Haible <haible@clisp.cons.org>
6173 * src/iconv.c (iconv): Add cast in xxx_reset call.
6175 2000-02-05 Bruno Haible <haible@clisp.cons.org>
6177 * src/tis620.h: Simplify.
6179 2000-01-27 Bruno Haible <haible@clisp.cons.org>
6181 * Makefile.devel (CLISP_DIR): Change to "..".
6183 2000-01-24 Bruno Haible <haible@clisp.cons.org>
6185 * Version 1.1 released.
6186 * include/iconv.h.in (_LIBICONV_VERSION): Bump version number.
6187 * src/Makefile.in (LIBICONV_VERSION_INFO): Define to 1:0:1.
6189 2000-01-23 Bruno Haible <haible@clisp.cons.org>
6191 * src/utf7.h (utf7_wctomb): If base64 encoding is not active, encode
6194 2000-01-22 Bruno Haible <haible@clisp.cons.org>
6196 * include/iconv.h.in (iconvctl): New declaration.
6197 (ICONV_TRIVIALP, ICONV_GET_TRANSLITERATE, ICONV_SET_TRANSLITERATE):
6199 * src/iconv.c (iconvctl): New function.
6201 * tests/Makefile.in: Add a rule for ../src/libiconv.la. Define $(MAKE).
6203 Solve a build problem.
6204 * include/iconv.h.in: Renamed from include/libiconv.h.in.
6205 * Makefile.devel: libiconv.h -> iconv.h.
6206 * Makefile.in: Likewise.
6207 * configure.in: Likewise. Remove check for <iconv.h>.
6208 * src/iconv.c: Include iconv.h instead of libiconv.h.
6209 * tests/iconv.c, tests/table-from.c, tests/table-to.c: Likewise.
6211 * README, man/iconv_open.3: Don't document JOHAB any more.
6213 * man/iconv.3: Clarify return value again.
6215 2000-01-16 Bruno Haible <haible@clisp.cons.org>
6218 * src/encodings.def (ISO-8859-14): Add alias ISO-IR-199.
6219 (ISO-8859-15): Add alias ISO-IR-203.
6220 (EUC-CN): Add alias CN-GB, from RFC 1922.
6221 (BIG5): Add alias CN-BIG5, from RFC 1922.
6222 * Makefile.devel (src/aliases.h): Add 8th character to key set.
6225 * src/encodings.def (JIS_X0201): Drop JISX0201.1976-0 alias.
6226 (JIS_X0208): Drop JIS_X0208.1983-0, JIS_X0208.1983-1 aliases.
6227 (KSC_5601): Drop KSC5601.1987-0 alias.
6229 Improve GB/T 12345 (not used yet).
6230 * tools/Makefile (gb12345ext.h): Use GB12345-more.TXT.
6231 * src/gb12345ext.h: Regenerated.
6233 Improve and document CP949.
6234 * tools/Makefile (all): Add uhc_1.h and uhc_2.h.
6235 (uhc_1.h, uhc_2.h): New rules.
6236 * tools/cjk_tab_to_h.c (output_charset2uni_noholes_monotonic): New
6238 (output_uni2charset_sparse): Take an additional boolean argument.
6239 All callers changed.
6240 (*_uhc_1, *_uhc_2): New functions.
6241 (main): Treat uhc_1 and uhc_2.
6242 * src/uhc_1.h, src/uhc_2.h: New files.
6243 * src/cp949.h: New file, include them.
6244 * src/converters.h: Include it.
6245 * src/encodings.def (KSC_5601): Remove alias CP949.
6246 (CP949): New encoding.
6247 * README, man/iconv_open.3: Add CP949.
6248 * tests/Makefile.in (check): Check CP949.
6249 * tests/CP949.TXT: New file.
6252 * README, man/iconv_open.3: Add CP932.
6253 * tests/Makefile.in (check): Check CP932.
6254 * tests/CP932.TXT, tests/CP932.IRREVERSIBLE.TXT: New files.
6256 * Makefile.devel (src/flags.h): Depend on src/converters.h.
6258 * tests/Makefile.in (check): Check JIS_X0201.
6259 * tests/JIS_X0201.TXT: New file.
6261 * src/euc_kr.h (euc_kr_wctomb): Shrink size of buf.
6262 * src/iso2022_kr.h (iso2022_kr_wctomb): Likewise.
6264 * src/iso2022_cnext.h (iso2022_cn_ext_mbtowc): Use isoir165_mbtowc.
6265 (iso2022_cn_ext_wctomb): Use isoir165_wctomb.
6267 Add ISO-IR-165 (undocumented).
6268 * tools/Makefile (all): Add isoir165ext.h.
6269 (isoir165ext.h): New rule.
6270 * tools/cjk_tab_to_h.c (main): Treat isoir165ext like gb2312.
6271 * src/isoir165.h, src/isoir165ext.h: New files.
6272 * src/converters.h: Include it.
6273 * src/encodings.def: Add ISO-IR-165.
6274 * tests/Makefile.in (check): Check ISO-IR-165.
6275 * tests/ISO-IR-165.TXT, tests/ISO-IR-165.IRREVERSIBLE.TXT: New files.
6277 Add ISO646-CN (undocumented).
6278 * src/iso646_cn.h: New file.
6279 * src/converters.h: Include it.
6280 * src/encodings.def: Add ISO646-CN.
6281 * tests/Makefile.in (check): Check ISO646-CN.
6282 * tests/ISO646-CN.TXT: New file.
6284 Add ISO646-JP (undocumented).
6285 * src/iso646_jp.h: New file.
6286 * src/converters.h: Include it.
6287 * src/encodings.def: Add ISO646-JP.
6288 * tests/Makefile.in (check): Check ISO646-JP.
6289 * tests/ISO646-JP.TXT: New file.
6291 2000-01-05 Bruno Haible <haible@clisp.cons.org>
6294 * tools/Makefile (all): Add iso8859_16.h.
6295 (iso8859_16.h): New rule.
6296 * src/iso8859_16.h: New file.
6297 * src/converters.h: Include it.
6298 * src/encodings.def: Add ISO-8859-16.
6299 * README, man/iconv_open.3: Add ISO-8859-16.
6300 * tests/Makefile.in (check): Check ISO-8859-16.
6301 * tests/ISO-8859-16.TXT: New file.
6303 * man/iconv.3: Clarify what happens *inbuf in case 3.
6305 * src/iso8859_8.h: Update using newest table from ftp.unicode.org.
6306 * tests/ISO-8859-8.TXT: Likewise.
6308 2000-01-04 Bruno Haible <haible@clisp.cons.org>
6310 * Version 1.0 released.
6311 * include/libiconv.h.in (_LIBICONV_VERSION): Bump version number.
6312 * src/Makefile.in (LIBICONV_VERSION_INFO): Define to 0:1:0.
6313 (libiconv.la): Use LIBICONV_VERSION_INFO.
6315 2000-01-03 Bruno Haible <haible@clisp.cons.org>
6317 * tests/Makefile.in: New file.
6318 tests/check-stateless, tests/table-from.c, tests/table-to.c,
6319 tests/*.TXT, tests/genutf8.c: New files, checks for stateless
6321 tests/check-stateful, tests/iconv.c, tests/*-snippet*: New files,
6322 checks for stateful encodings.
6323 * Makefile.in (all, check, mostlyclean, clean, distclean,
6324 maintainer-clean): Descend into tests directory.
6325 * configure.in: Add tests/Makefile to AC_OUTPUT duties.
6327 * src/gentranslit.c: New file.
6328 * Makefile.devel (src/translit.h): New rule.
6329 * src/translit.def, src/translit.h: New files.
6330 * src/iconv.c: Include it.
6331 (iconv): Transliterate using translit.h table.
6333 * src/genflags.c: New file.
6334 * Makefile.devel (src/flags.h): New rule.
6335 * src/flags.h: New file.
6336 * src/iconv.c: Include it.
6337 (encoding): Add field 'oflags'.
6338 (all_encodings): Initialize the field 'oflags'.
6339 (iconv_open): Copy field 'oflags'.
6340 (iconv): Transliterate quotation marks U+2018, U+2019, U+201A.
6341 * src/Makefile.in (iconv.lo): Update dependencies.
6343 * src/converters.h: New file, extracted from src/iconv.c.
6344 * src/iconv.c: Include it.
6345 * src/Makefile.in (iconv.lo): Update dependencies.
6347 * tools/cjk_variants.c: New file.
6348 * tools/Makefile (ALL): Add cjk_variants.h.
6349 (cjk_variants.h, cjk_variants): New rules.
6350 * src/cjk_variants.h: New file.
6351 * src/iconv.c: Include it.
6352 (iconv): Use cjk_variants for transliteration.
6354 * man/iconv.3: Fix description of return value.
6355 * euc_kr.h (euc_kr_wctomb): Remove Hangul transliteration.
6356 * iso2022_kr.h (iso2022kr_wctomb): Likewise.
6357 * src/iconv.c (iconv): Do Hangul transliteration here and increment
6358 result once for every transliterated character.
6359 * src/johab_hangul.h (johab_hangul_decompose): Change result array
6360 from 'unsigned char*' to 'wchar_t*'.
6362 * src/cp1258.h (cp1258_mbtowc): Return RET_ILSEQ instead of storing
6365 * src/georgian_ps.h (georgian_ps_wctomb): Accept 0x00e6.
6367 * src/euc_jp.h (euc_jp_wctomb): Don't treat U+005C and U+007E like
6370 * src/euc_tw.h (euc_tw_mbtowc): Fix typo.
6372 * src/cp950.h (cp950_mbtowc, cp950_wctomb): Exclude the range
6375 * tools/cjk_tab_to_h.c (read_table_ksc5601): Some Hangul range was
6376 not being excluded. Fix that.
6377 * src/ksc5601.h: Regenerated.
6378 * src/johab.h (johab_mbtowc): Don't accept 0xDA{A1..D3} - this is
6379 valid in KSC5601/KSX1001 but not in JOHAB.
6381 * src/iconv.c (conv_struct): Add fields iindex, oindex.
6382 (iconv_open): Fill in iindex, oindex.
6384 * src/encodings.def (UCS-2-BE): Add aliases "UNICODE-1-1" and
6385 "csUnicode11", from IANA charset list.
6386 (MacRoman): Add aliases "MAC" and "csMacintosh" for "MACINTOSH",
6387 from IANA charset list.
6388 (JIS_X0208): Add aliases "X0208", "ISO-IR-87", "csISO87JISX0208",
6389 from IANA charset list.
6390 (GB_2312-80): New encoding, from IANA charset list.
6392 * README, man/iconv_open.3: Add MacIceland and MacUkraine.
6394 * Makefile.devel: Add rules for src/aliases.h and src/aliases.gperf.
6395 (all): Depend on src/aliases.h.
6396 * src/Makefile.in: Remove rules for $(srcdir)/aliases.h and
6397 $(srcdir)/aliases.gperf.
6400 * src/Makefile.in (libiconv_plug_linux.so): Remove unneeded "-ldl".
6402 1999-12-31 Bruno Haible <haible@clisp.cons.org>
6404 * Version 0.3 released.