1 2024-04-04 Bruno Haible <bruno@clisp.org>
3 Fix macro file 'serial' numbers for 'aclocal --install'.
4 * gnulib-local/m4/alloca.m4: Make 'serial' effective. Set value to 100,
5 in order to override gnulib's alloca.m4.
7 2023-12-30 Bruno Haible <bruno@clisp.org>
9 Switch to autoconf 2.72.
10 * autogen.sh: Update comment.
12 2023-09-18 Bruno Haible <bruno@clisp.org>
14 Fix shared library support on Android.
15 Patch from <https://savannah.gnu.org/patch/index.php?10393>.
16 * m4/libtool.m4: On Android, fix library_names_spec and
17 hardcode_libdir_flag_spec.
19 2023-09-16 Bruno Haible <bruno@clisp.org>
22 * include/export.h (LIBICONV_SHLIB_EXPORTED): Renamed from
23 LIBICONV_DLL_EXPORTED. Prefer the term "shared library", since the term
24 "DLL" applies only to Windows.
25 * Makefile.devel (include/iconv.h.build.in): Insert
26 LIBICONV_SHLIB_EXPORTED instead of LIBICONV_DLL_EXPORTED.
27 * configure.ac (DLL_VARIABLE): Update comment.
28 * lib/Makefile.in (DEFS): Update comment.
29 * woe32dll/export.h: Update comment.
31 2023-09-13 Bruno Haible <bruno@clisp.org>
33 Simplify the library: Don't compile relocatable.c any more.
34 The library does not need relocatable.h any more since 2018-09-22.
35 * lib/relocatable.h: Remove file.
36 * lib/relocatable.c: Remove file.
37 * lib/compat.c: New file.
38 * lib/Makefile.in (DEFS): Don't define LIBDIR, BUILDING_DLL,
39 ENABLE_RELOCATABLE, IN_LIBRARY, INSTALLDIR, NO_XMALLOC,
40 set_relocation_prefix, relocate, relocate2.
41 (SOURCES): Remove relocatable.c. Add compat.c.
42 (OBJECTS): Remove relocatable.lo. Add compat.lo.
43 (localcharset.lo): Update dependencies.
44 (relocatable.lo): Remove rule.
45 (compat.lo): Add rule.
46 (SOURCE_FILES): Remove relocatable.h, relocatable.c. Add compat.c.
48 2023-09-07 Bruno Haible <bruno@clisp.org>
50 Sync woe32dll/export.h with GNU libunistring and GNU gettext.
51 * woe32dll/export.h: Update comments.
52 (IMP): Define correctly for 64-bit Windows platforms.
54 2023-09-06 Bruno Haible <bruno@clisp.org>
56 Don't export symbols from static MSVC .obj files.
57 Suggested by Dmitry Bely <dmitry.bely@gmail.com> in
58 <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2023-08/msg00002.html>.
59 * include/export.h: Add a copyright notice. Set LIBICONV_DLL_EXPORTED to
60 empty on MSVC when DLL_EXPORT is not defined.
61 * Makefile.devel (include/iconv.h.build.in): Filter out the second
63 * configure.ac (DLL_VARIABLE): Test DLL_EXPORT, not _DLL.
64 * lib/relocatable.h: From gnulib:
65 (RELOCATABLE_DLL_EXPORTED): Don't use __declspec(dllexport) when
66 creating static .obj files with MSVC.
68 2023-08-30 Bruno Haible <bruno@clisp.org>
70 Recognize the *-*-windows* config triplets introduced on 2023-06-26.
71 * configure.ac: Treat windows* as equivalent to mingw*.
73 2023-06-29 Bruno Haible <bruno@clisp.org>
75 Update the installation instructions for Windows.
76 * INSTALL.windows: Add a note about MSYS2.
78 2023-05-29 Bruno Haible <bruno@clisp.org>
80 GB18030: Help transitioning away from PUA code points.
81 * lib/gb18030ext.h (gb18030_2005_ext_wctomb): Remove function.
82 (gb18030ext_wctomb): Renamed from gb18030_2022_ext_wctomb.
83 * lib/gb18030uni.h (gb18030_2005_uni_wctomb): Map 6 Ext-B code points to
85 (gb18030_2022_uni_wctomb): Small refactoring.
86 * lib/gb18030_2005.h (gb18030_2005_pua2charset): Map 6 PUA code points
87 to 4-bytes sequences instead of 2-bytes sequences.
88 (gb18030_2005_wctomb): Update accordingly. Invoke gb18030ext_wctomb
89 instead of gb18030_2005_ext_wctomb.
90 * lib/gb18030_2022.h (gb18030_2022_wctomb): Invoke gb18030ext_wctomb
91 instead of gb18030_2022_ext_wctomb.
92 * tests/GB18030-2005.IRREVERSIBLE.TXT: Update the inverse mappings of 6
93 Ext-B code points and 6 PUA code points.
96 2023-05-24 Bruno Haible <bruno@clisp.org>
98 man pages: List a fifth condition when iconv(3) may stop.
99 Based on the patch to the man-pages project
100 <https://marc.info/?l=linux-man&m=168496625522371&w=2> =
101 <https://lore.kernel.org/linux-man/2f9c4dbd-7aa6-fc7a-f126-453603ef695e@gmail.com/T/#m25e33d4defa1118e5c84951790f0319360abf9d4>
102 * man/iconv.3: List a fifth condition.
104 2023-05-24 Bruno Haible <bruno@clisp.org>
106 man pages: Use man page section title from groff or the distro.
107 Reported by Mike Fulton <mikefultonpersonal@gmail.com> in
108 <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2023-04/msg00027.html>.
109 * man/*.[13]: Remove section title "Linux Programmer's Manual".
111 2023-05-21 Bruno Haible <bruno@clisp.org>
113 Support creating shared libraries on Hurd/x86_64.
115 <https://lists.gnu.org/archive/html/bug-hurd/2023-05/msg00086.html>.
116 * m4/libtool.m4 (_LT_ENABLE_LOCK): Treat Hurd/x86_64 like
119 2023-05-21 Bruno Haible <bruno@clisp.org>
121 Fix link error regarding _libiconv_version on MSVC in C++ mode.
122 Reported at <https://savannah.gnu.org/bugs/?64227>.
123 * include/iconv.h.in (_libiconv_version): Enclose in an extern "C"
126 2023-05-20 Bruno Haible <bruno@clisp.org>
128 Implement GB18030 version 2022.
129 * lib/encodings.def (GB18030): Add alias GB18030:2005.
130 (GB18030:2022): New encoding.
131 * lib/gb18030ext.h (gb18030_2005_ext_2uni_pagefe): Renamed from
132 gb18030ext_2uni_pagefe.
133 (gb18030_2022_ext_2uni_pagefe): New array.
134 (gb18030_2005_ext_mbtowc): Renamed from gb18030ext_mbtowc.
135 (gb18030_2022_ext_mbtowc): New function.
136 (gb18030_2005_ext_wctomb): Renamed from gb18030ext_wctomb.
137 (gb18030_2022_ext_wctomb): New function.
138 * lib/gb18030uni.h (gb18030_2022_charset2uni_pua1,
139 gb18030_2022_charset2uni_pua2): New arrays.
140 (gb18030_2005_uni_mbtowc): Renamed from gb18030uni_mbtowc.
141 (gb18030_2022_uni_mbtowc): New function.
142 (gb18030_2022_uni2charset_pua1, gb18030_2022_uni2charset_pua2): New
144 (gb18030_2005_uni_wctomb): Renamed from gb18030uni_wctomb.
145 (gb18030_2022_uni_wctomb): New function.
146 * lib/gb18030_2005.h: Renamed from lib/gb18030.h. Update comments.
147 (gb18030_2005_mbtowc): Renamed from gb18030_mbtowc.
148 (gb18030_2005_pua2charset): Renamed from gb18030_pua2charset.
149 (gb18030_2005_wctomb): Renamed from gb18030_wctomb.
150 * lib/gb18030_2022.h: New file, based on lib/gb18030_2005.h.
151 * lib/converters.h: Don't include gb18030.h. Include gb18030_2005.h,
153 * lib/Makefile.in (SOURCE_FILES): Remove gb18030.h. Add gb18030_2005.h,
155 * tests/GB18030-2005-BMP.TXT: Renamed from tests/GB18030-BMP.TXT.
156 * tests/GB18030-2005.IRREVERSIBLE.TXT: Renamed from
157 tests/GB18030.IRREVERSIBLE.TXT.
158 * tests/GB18030-2022-BMP.TXT: New file.
159 * tests/Makefile.in (check): Test GB18030:2005 instead of GB18030. Also
161 (clean): Don't remove GB18030.TXT. Instead, remove GB18030-2005.TXT and
163 (SOURCE_FILES): Update. Add GB18030-2022-BMP.TXT.
164 * README: Mention the new encoding.
165 * man/iconv_open.3: Likewise.
168 2023-05-19 Bruno Haible <bruno@clisp.org>
170 Make the compiler used by Makefile.devel customizable.
171 Reported by Mike Fulton <mikefultonpersonal@gmail.com> in
172 <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2023-05/msg00006.html>.
173 * Makefile.devel: Require GNU make.
174 (CC): Use value from the environment, if set and non-empty.
175 (CFLAGS): Use value from the environment, if set.
176 * autogen.sh (GMAKE): New variable.
177 Use it for executing Makefile.devel.
179 2023-05-17 Bruno Haible <bruno@clisp.org>
181 On z/OS, allow charset tagging of temporary shell scripts.
182 Reported by Mike Fulton <mikefultonpersonal@gmail.com> in
183 <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2023-05/msg00002.html>.
184 * lib/genaliases.c (BINARY_MODE): New macro.
185 (main): Use it instead of "b".
187 2023-05-12 Bruno Haible <bruno@clisp.org>
189 Integrate the last change.
190 * src/Makefile.in (SOURCE_FILES): Add zos-tag.h.
191 * tests/Makefile.in (SOURCE_FILES): Add check-tag.
192 * NEWS: Mention the new functionality.
194 2023-05-12 Mike Fulton <mikefultonpersonal@gmail.com>
196 On z/OS, set a charset tag on iconv's output file.
197 For the concept of charset tags as external metadata on z/OS files, see
198 <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2023-04/msg00021.html>.
199 * src/zos-tag.h: New file.
200 * src/iconv.c: Include zos-tag.h.
201 (convert): Add a 'tocode' parameter. On z/OS, turn off auto-conversion
202 and tag the output file.
203 (main): Update callers.
204 * tests/check-ebcdic: On z/OS, make all test files initially untagged.
205 * tests/check-tag: New file.
206 * tests/Makefile.in (check): Pass the host_os to check-ebcdic. Invoke
209 2023-04-03 Bruno Haible <bruno@clisp.org>
211 Fix genflags compilation error.
212 * lib/genflags.c (ICONV_SURFACE_EBCDIC_ZOS_UNIX): New macro, copied from
215 Allow overriding the newline conversion for EBCDIC encodings.
216 Reported by Mike Fulton <mikefultonpersonal@gmail.com> in
217 <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2023-04/msg00009.html>.
218 * include/iconv.h.in (ICONV_SURFACE_NONE,
219 ICONV_SURFACE_EBCDIC_ZOS_UNIX): New macros.
220 (ICONV_GET_FROM_SURFACE, ICONV_SET_FROM_SURFACE, ICONV_GET_TO_SURFACE,
221 ICONV_SET_TO_SURFACE): New macros.
222 * lib/converters.h (struct conv_struct): Add the fields isurface,
224 (swap_x15_x25): New macro.
225 * lib/iconv.c (iconv_open, iconv_open_into): Add local variables
226 from_surface, to_surface.
227 (ALL_SURFACES): New macro.
228 (iconvctl): Adjust ICONV_TRIVIALP implementation. Implement the
229 ICONV_{GET,SET}_{FROM,TO}_SURFACE requests.
230 * lib/iconv_open1.h: Parse a /ZOS_UNIX surface specifier. Set
231 from_surface, to_surface.
232 * lib/iconv_open2.h: Copy the values of from_surface, to_surface into
233 the conversion descriptor.
234 * lib/ebcdic*.h (*_mbtowc): Test the isurface. If requested, call
235 swap_x15_x25 right after fetching an input byte.
236 (*_wctomb): Test the osurface. If requested, call swap_x15_x25 right
237 before storing an output byte.
238 * man/iconvctl.3 (REQUEST VALUES): Document the
239 ICONV_{GET,SET}_{FROM,TO}_SURFACE requests.
240 * src/iconv.c (main): If ICONV_EBCDIC_ZOS_UNIX is set, set the from/to
241 surfaces accordingly.
242 * man/iconv.1 (ENVIRONMENT): New section.
243 * tests/check-ebcdic: New file.
244 * tests/Makefile.in (check): Invoke it.
245 (SOURCE_FILES): Add it.
246 * NEWS: Mention the new functionality.
248 2023-03-31 Bruno Haible <bruno@clisp.org>
250 Add some transliterations for mathematical symbols.
251 Based on <https://sourceware.org/bugzilla/show_bug.cgi?id=23132>
252 and the translit_neutral change in
253 <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=513aaa0d782f8fae36732d06ca59d658149f0139>.
254 Reported by Mike Fulton <mikefultonpersonal@gmail.com> in
255 <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2023-03/msg00002.html>.
256 * lib/translit.def: Add a couple of transliterations in the range
260 2023-03-31 Bruno Haible <bruno@clisp.org>
262 Upgrade transliterations to Unicode 15.0.0.
263 * tools/gen-translit-def-part.lisp: Update comments.
264 * lib/translit.def: Include differences between the generated files
265 translit-part-4.0.0.def and translit-part-15.0.0.def.
267 2023-03-31 Bruno Haible <bruno@clisp.org>
269 Make table of transliterations more maintainable.
270 * tools/gen-translit-def-part.lisp: New file.
271 * Makefile.in (SOURCE_FILES): Add it.
273 2023-03-31 Bruno Haible <bruno@clisp.org>
275 Fix table of transliterations.
276 * lib/translit.def: Sort according to Unicode code point.
278 2023-02-13 Bruno Haible <bruno@clisp.org>
280 Fix iconv link command for Cygwin.
281 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 .
282 Rationale: libintl may depends on libiconv.
283 * src/Makefile.in (install): On the link command line, mention libintl
286 2023-01-29 Bruno Haible <bruno@clisp.org>
288 Fix a clang warning "a function declaration without a prototype...".
289 * lib/loop_wchar.h (mbrtowc): Don't declare. Drop portability to BeOS.
291 2022-07-18 Bruno Haible <bruno@clisp.org>
293 Make autopull.sh more suited for continuous integration.
294 * autopull.sh: Support option --one-time.
296 2022-07-18 Bruno Haible <bruno@clisp.org>
298 Move gnulib-tool invocation back from autopull.sh to autogen.sh.
299 * autogen.sh: Revert last change. Improve comments.
300 * autopull.sh: Only call 'gitsub.sh pull'.
301 * HACKING: Mention autopull.sh.
303 2022-07-17 Bruno Haible <bruno@clisp.org>
305 Split autogen.sh into autopull.sh and autogen.sh.
306 * autopull.sh: New file, based on autogen.sh.
307 * autogen.sh: Remove code that was moved to autopull.sh. Remove
308 --skip-gnulib option.
309 * Makefile.devel (all): Remove srclib/Makefile.gnulib.
310 * Makefile.in (SOURCE_FILES): Add autogen.sh.
311 * HACKING: Mention autopull.sh.
313 2022-05-22 Bruno Haible <bruno@clisp.org>
315 Add GNU Project notice.
316 * JOIN-GNU: New file. Inspired by a suggestion from José E. Marchesi
317 on the gnu-prog-discuss mailing list.
318 * README: Refer to it.
319 * Makefile.in (SOURCE_FILES): Add it.
321 2022-05-15 Bruno Haible <bruno@clisp.org>
323 Switch to libtool 2.4.7.
324 * m4/libtool.m4: Update from libtool-2.4.7, with modifications:
325 2008-04-06 Bruno Haible <bruno@clisp.org>
326 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
327 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
329 * m4/ltoptions.m4: Likewise.
330 * m4/ltsugar.m4: Likewise.
331 * m4/ltversion.m4: Likewise.
332 * m4/lt~obsolete.m4: Likewise.
333 * build-aux/ltmain.sh: Update from libtool-2.4.7, with modifications:
334 2017-07-15 Bruno Haible <bruno@clisp.org>
335 Allow building statically linked binaries, through
336 LDFLAGS="-static". Apply patch from
337 <https://lists.gnu.org/archive/html/bug-libtool/2017-07/msg00000.html>.
338 * build-aux/ltmain.sh (func_mode_help, func_mode_link): In the
339 link mode, accept option '-static-uninstalled-libs' in place of
340 '-static', and make '-static' an equivalent of '-all-static'.
342 2022-04-13 Bruno Haible <bruno@clisp.org>
344 Fix undefined behaviour.
345 * tests/test-shiftseq.c (main2): Make input array larger.
347 2022-02-12 Bruno Haible <bruno@clisp.org>
350 * po/ro.po: Update Romanian translations.
351 * po/wa.po: Update Walloon translations.
353 2022-02-12 Bruno Haible <bruno@clisp.org>
355 Prepare for version 1.17.
356 * configure.ac: Bump version number to 1.17.
357 * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
358 * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 9:0:7.
359 * src/iconv.c (print_version): Update copyright year.
360 * windows/iconv.rc: Likewise.
361 * windows/libiconv.rc: Likewise.
362 * README: Update download link.
364 2022-02-12 Bruno Haible <bruno@clisp.org>
366 Update source file list (regression 2022-01-23).
367 * lib/Makefile.in (SOURCE_FILES): Add encodings_zos.def, ebcdic*.h.
368 (GENERATED_FILES): Add aliases_zos.h, canonical_zos.h.
369 * tests/Makefile.in (SOURCE_FILES): Add IBM-*.TXT.
371 2022-01-23 Bruno Haible <bruno@clisp.org>
374 * NEWS: Mention the EBCDIC encodings.
376 2022-01-23 Bruno Haible <bruno@clisp.org>
378 Optimize the EBCDIC table sizes.
379 * lib/converters.h (DEDUPLICATE_TABLES): New macro.
380 * lib/ebcdic1025.h: Deduplicate tables with ebcdic880.h.
381 * lib/ebcdic1123.h: Deduplicate tables with ebcdic1025.h.
382 * lib/ebcdic1132.h: Deduplicate tables with ebcdic838.h.
383 * lib/ebcdic1153.h: Deduplicate tables with ebcdic870.h.
384 * lib/ebcdic1154.h: Deduplicate tables with ebcdic880.h.
385 * lib/ebcdic1155.h: Deduplicate tables with ebcdic1026.h.
386 * lib/ebcdic1156.h: Deduplicate tables with ebcdic1112.h.
387 * lib/ebcdic1157.h: Deduplicate tables with ebcdic1122.h.
388 * lib/ebcdic1158.h: Deduplicate tables with ebcdic1154.h, ebcdic1123.h.
389 * lib/ebcdic1160.h: Deduplicate tables with ebcdic838.h.
390 * lib/ebcdic1164.h: Deduplicate tables with ebcdic1130.h.
391 * lib/ebcdic1165.h: Deduplicate tables with ebcdic870.h.
392 * lib/ebcdic1166.h: Deduplicate tables with ebcdic1154.h.
393 * lib/ebcdic4971.h: Deduplicate tables with ebcdic875.h.
394 * lib/ebcdic12712.h: Deduplicate tables with ebcdic424.h.
396 2022-01-23 Bruno Haible <bruno@clisp.org>
398 New EBCDIC encodings.
399 Reported by Ulrich Schwab and Calvin Buckley via Jack Woehr.
400 * NOTES: Mention how to enable EBCDIC encodings.
401 * tests/IBM-*.TXT: New files.
402 * tools/8bit_tab_to_h.c (main): Emit copyright header with year 2022.
403 * tools/Makefile: Add rules for generating ebcdic*.h.
404 * lib/ebcdic*.h: New files, automatically generated by tools/Makefile.
405 * lib/ebcdic838.h: Tweak reverse mapping manually.
406 * lib/ebcdic1160.h: Likewise.
407 * lib/converters.h: Include all ebcdic*.h.
408 * lib/encodings_zos.def: New file.
409 * lib/genaliases2.c: Include encodings_zos.def.
410 * lib/genflags.c: Likewise.
411 * Makefile.devel (lib/aliases_zos.h lib/canonical_zos.h): New rule.
412 (lib/flags.h, totally-clean): Update.
413 * lib/aliases2.h: Include aliases_zos.h.
414 * lib/iconv.c (USE_ZOS): New macro.
415 Include encodings_zos.def, canonical_zos.h.
416 * README, man/iconv_open.3: Document the IBM-* encodings.
417 * tests/Makefile.in (check-extra-yes): Also test the EBCDIC encodings.
419 2022-01-04 Bruno Haible <bruno@clisp.org>
421 Update after gnulib changed.
422 * gnulib-local/m4/alloca.m4 (gl_FUNC_ALLOCA): Set GL_GENERATE_ALLOCA_H
423 instead of ALLOCA_H. Drop AC_SUBST and AM_CONDITIONAL invocations.
425 2021-09-19 Bruno Haible <bruno@clisp.org>
427 tests: Avoid check-subst failures in QEMU user-mode environments.
428 * Makefile.devel (GNULIB_MODULES): Add stdbool.
429 (gnulib-imported-files): Copy also tests/qemu.h.
430 * tests/is-native.c: New file.
431 * tests/Makefile.in (is-native, is-native.@OBJEXT@): New targets.
432 (clean): Remove the 'is-native' program.
433 (SOURCE_FILES): Add is-native.c.
434 (IMPORTED_FILES): Add qemu.h.
435 * tests/check-subst: Invoke 'locale charmap' only in native
438 2021-06-27 Bruno Haible <bruno@clisp.org>
441 Reported at <https://savannah.gnu.org/bugs/?60837>.
442 * README: Overhaul the paragraph that mentions iconv.m4.
444 2021-06-06 Bruno Haible <bruno@clisp.org>
446 gnulib-local: Put real license notice into the source files.
447 * gnulib-local/lib/alloca.in.h: Use an LGPLv2+ notice.
449 2021-02-28 Bruno Haible <bruno@clisp.org>
452 * DEPENDENCIES: List the normal dependencies of a package with an
453 Autoconf-generated configure file.
455 2021-02-07 Bruno Haible <bruno@clisp.org>
457 Support creating shared libraries on MidnightBSD.
458 Patch from <https://savannah.gnu.org/patch/?10007>.
459 * m4/libtool.m4: Treat MidnightBSD like FreeBSD.
460 * build-aux/ltmain.sh: Likewise.
462 2021-01-31 Bruno Haible <bruno@clisp.org>
464 Update after gnulib changed on 2020-08-26.
465 * configure.ac: Test $iconv_arg1, not $am_cv_proto_iconv_arg1.
467 2021-01-31 Bruno Haible <bruno@clisp.org>
469 Switch to autoconf 2.71.
470 * autogen.sh: Update comment.
471 * configure.ac: Use AS_HELP_STRING instead of AC_HELP_STRING. Invoke
472 AC_C_BIGENDIAN instead of CL_WORDS_LITTLEENDIAN.
473 * m4/eilseq.m4: Require Autoconf >= 2.61.
474 (AC_EILSEQ): Improve quoting. Use AC_COMPUTE_INT instead of
476 * m4/endian.m4: Remove file.
477 * Makefile.in (SOURCE_FILES): Remove it.
479 2020-12-08 Bruno Haible <bruno@clisp.org>
481 Switch to autoconf 2.70.
482 * Makefile.devel (AUTOCONF, AUTOHEADER): Remove '-2.69' suffix.
483 * HACKING: Remove sentence about symbolic links.
484 * autogen.sh: Update comment.
486 2020-08-31 Bruno Haible <bruno@clisp.org>
488 Fix some -Wcast-qual warning, reported by clang.
489 * lib/iconv.c (compare_by_name): Add more 'const'.
490 (iconv_canonicalize): Cast value to 'unsigned char', not pointer to 'unsigned char *'.
491 * lib/iconv_open1.h: Likewise.
493 2020-08-30 Bruno Haible <bruno@clisp.org>
495 Make sure that build-aux/compile is in the tarball.
496 * autogen.sh: Fetch also 'build-aux/compile' through gnulib-tool.
497 * Makefile.devel (srclib/Makefile.in): Don't fetch nor delete
499 * Makefile.in (AUTOMAKE_IMPORTED_FILES): Remove build-aux/compile.
500 (IMPORTED_FILES): Add build-aux/compile.
502 2020-08-29 Bruno Haible <bruno@clisp.org>
504 Update after gnulib changed.
505 * configure.ac (AC_PREREQ): Bump minimum Autoconf version to 2.64.
507 2020-08-06 Bruno Haible <bruno@clisp.org>
509 Avoid a GCC warning with GCC >= 7.
510 Reported by Reini Urban <rurban@cpan.org>
511 in <https://savannah.gnu.org/bugs/?58903>.
512 * lib/gentranslit.c (main): Reset i to 0 each time p gets a new value.
513 Add assertion about i's possible values.
515 2020-04-05 Bruno Haible <bruno@clisp.org>
517 Fix an autogen.sh failure (regression from 2016-12-04).
518 Reported by Petr Ovtchenkov <ptr@void-ptr.info> in
519 <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2020-04/msg00003.html>.
520 * autogen.sh: Invoke also the Makefile target srclib/Makefile.in, so as
521 to get build-aux/install-sh. Finish the "copy files" phase before recursing
522 through the subpackages tree through Makefile.devel.
523 * Makefile.devel: Reorder targets.
525 2020-04-04 Bruno Haible <bruno@clisp.org>
528 * gnulib-local/modules/mbstate (License): Set to LGPLv2+.
530 2020-04-04 Bruno Haible <bruno@clisp.org>
532 Change the license of the library from LGPL 2.0 to LGPL 2.1.
533 * COPYING.LIB: Upgrade to LGPL 2.1.
535 2019-12-23 Bruno Haible <bruno@clisp.org>
537 Do export the symbol 'locale_charset' (needed by GNU bash).
538 * lib/Makefile.in (DEFS): Define also BUILDING_LIBCHARSET.
540 2019-09-01 Bruno Haible <bruno@clisp.org>
542 build: Add support for shallow-cloning of subdirectories.
543 * gitsub.sh (func_usage): Document allowed git options with 'git pull'.
544 (func_pull): Accept GIT_OPTIONS argument.
545 (pull): Parse git options before complaining about too many arguments.
546 Pass the git options to func_pull.
548 2019-07-05 Bruno Haible <bruno@clisp.org>
550 Don't export the symbol 'aliases_lookup' on non-ELF platforms.
551 * Makefile.devel (lib/aliases.h, lib/aliases_sysaix.h,
552 lib/aliases_syshpux.h, lib/aliases_sysosf1.h, lib/aliases_syssolaris.h):
553 Add a 'static' keyword in front of the declaration of aliases_lookup.
555 2019-07-02 Bruno Haible <bruno@clisp.org>
557 Update to current gnulib.
558 * Makefile.devel (GNULIB_MODULES): Add lib-symbol-visibility.
559 (srclib/Makefile.gnulib): Copy codeset.m4.
560 * srclib/Makefile.am (AM_CFLAGS): Initialize.
562 2019-07-02 Bruno Haible <bruno@clisp.org>
564 Drop unused macro gl_GLIBC21.
565 * autogen.sh: Don't copy glibc21.m4.
567 2019-05-22 Bruno Haible <bruno@clisp.org>
570 Reported by Paul Hardy <unifoundry@gmail.com>.
571 * lib/jisx0213.h: Fix comment about the underlying standard version.
573 2019-05-11 Bruno Haible <bruno@clisp.org>
575 Update bug reporting instructions.
576 * README: Tell users to report bugs in the bug tracker or by email.
577 * src/iconv.c (usage): Likewise.
578 (print_version): Move URL out of translatable string.
580 2019-04-26 Bruno Haible <bruno@clisp.org>
583 $ rsync -Lrtvz translationproject.org::tp/latest/libiconv/ po/new
585 $ for f in *.po; do \
586 msgmerge --update --lang=${f%.po} --previous $f ../libiconv.pot; \
591 2019-04-26 Bruno Haible <bruno@clisp.org>
594 $ cd po; make update-po
596 2019-04-26 Bruno Haible <bruno@clisp.org>
598 Prepare for version 1.16.
599 * configure.ac: Bump version number to 1.16.
600 * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
601 * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 8:1:6.
602 * src/iconv.c (print_version): Update copyright year.
603 * windows/iconv.rc: Likewise.
604 * windows/libiconv.rc: Likewise.
605 * README: Update download link.
607 2019-04-26 Bruno Haible <bruno@clisp.org>
609 Tweak exported symbols when --enable-relocatable is used.
610 * lib/Makefile.in (DEFS): Map 'relocate2' to a different symbol.
612 2019-04-01 Bruno Haible <bruno@clisp.org>
614 build: Separate git operations from build operations.
615 * gitsub.sh: New file, from gnulib.
616 * .gitmodules: New file.
617 * autogen.sh: Remove all git operations. Look at GNULIB_SRCDIR
618 environment variable. Ignore the GNULIB_TOOL environment variable.
619 * HACKING: Explain when to use gitsub.sh.
621 2019-03-07 Bruno Haible <bruno@clisp.org>
623 Avoid signed integer overflow during shifts.
624 Reported by Jeffrey Walton <noloader@gmail.com>.
625 * lib/tcvn.h (tcvn_wctomb): Use unsigned integer type for bit mask
627 * lib/viscii.h (viscii_wctomb): Likewise.
629 2019-03-04 Bruno Haible <bruno@clisp.org>
631 Add support for --enable-relocatable to libcharset.
632 * autogen.sh: Copy some more files to libcharset/build-aux/ and
635 2019-03-04 Bruno Haible <bruno@clisp.org>
637 Update --enable-relocatable support after gnulib changed.
638 * configure.ac: Move the LT_INIT invocation before the gl_RELOCATABLE
639 invocation. Remove unused argument to gl_RELOCATABLE.
641 2019-01-27 Bruno Haible <bruno@clisp.org>
643 Accommodate a shell that is not in /bin/sh.
644 * Makefile.in (SHELL): Use the value found by configure.
645 * lib/Makefile.in (SHELL): Likewise.
646 * man/Makefile.in (SHELL): Likewise.
647 * src/Makefile.in (SHELL): Likewise.
648 * tests/Makefile.in (SHELL): Likewise.
649 (check, check-extra-yes): Use SHELL to run the check-* scripts.
651 2019-01-27 Bruno Haible <bruno@clisp.org>
653 Update after gnulib changed.
654 * Makefile.in (GNULIB_IMPORTED_FILES): Remove build-aux/snippet/*.
656 2019-01-27 Bruno Haible <bruno@clisp.org>
658 Update support for building with MSVC. Automake does not install ar-lib.
659 * autogen.sh: Fetch build-aux/ar-lib here.
660 * Makefile.devel (srclib/Makefile.in): Don't fetch build-aux/ar-lib
662 * Makefile.in (AUTOMAKE_IMPORTED_FILES): Remove build-aux/ar-lib.
663 (IMPORTED_FILES): Add build-aux/ar-lib.
665 2019-01-06 Bruno Haible <bruno@clisp.org>
667 Revisit handling of file descriptors closed by the parent process.
668 * src/iconv.c (main): Add comment.
670 2018-10-23 Bruno Haible <bruno@clisp.org>
672 Remove outdated DJGPP build infrastructure.
673 Approved by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
674 * djgpp: Remove directory.
675 * INSTALL.djgpp: Remove file.
676 * Makefile.in (SOURCE_FILES): Remove them.
678 2018-10-23 Bruno Haible <bruno@clisp.org>
680 Update after gnulib changed.
681 * configure.ac (AC_PREREQ): Bump minimum Autoconf version to 2.63.
683 2018-09-22 Bruno Haible <bruno@clisp.org>
685 Avoid some warnings in MSVC build.
686 * include/export.h: Handle MSVC compiler as well.
688 2018-09-22 Bruno Haible <bruno@clisp.org>
690 Update from gnulib. Move mapping tables into the code.
691 * autogen.sh: Don't create libcharset/m4/relocatable-lib.m4.
692 * Makefile.in (mostlyclean, clean, distclean, maintainer-clean): Don't
693 remove lib/charset.alias.
694 * tests/check-subst: Don't set CHARSETALIASDIR.
696 2018-05-04 Bruno Haible <bruno@clisp.org>
698 Drop special instructions for OSF/1.
699 * INSTALL.generic: Remove the recommendation for OSF/1.
701 2018-05-04 Bruno Haible <bruno@clisp.org>
703 Simplify: Remove the ability to install a preloadable library.
704 * preload/*: Remove directory.
705 * Makefile.devel: Don't recurse into 'preload'.
706 * Makefile.in: Likewise.
707 * configure.ac: Don't declare 'preload' as a subdirectory.
708 * README, NEWS: Update.
710 2018-05-04 Bruno Haible <bruno@clisp.org>
712 Simplify code. Drop support for Borland C++ on Windows.
713 * lib/iconv.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
715 * lib/iconv_open1.h: Likewise.
717 2018-05-04 Bruno Haible <bruno@clisp.org>
719 * lib/relocatable.c: Update from gnulib.
721 2018-05-04 Bruno Haible <bruno@clisp.org>
723 Switch to automake 1.16.
724 * autogen.sh: Update comment.
725 * Makefile.devel (AUTOMAKE, ACLOCAL): Switch to version 1.16.
726 * libcharset/Makefile.devel (ACLOCAL): Likewise.
727 * preload/Makefile.devel (ACLOCAL): Likewise.
729 2018-03-27 Bruno Haible <bruno@clisp.org>
732 * README: Don't recommend to use --prefix=/usr/local, as it produces
733 problems with GCC (since GCC's treatment of /usr/local/include and
734 /usr/local/lib is inconsistent by default). Don't recommend to use
735 the iconv.m4 installed by GNU gettext, because it won't work when
736 GNU automake and GNU gettext are installed with different --prefix
737 options; instead recommend the 'iconv' module from gnulib.
739 2018-01-27 Bruno Haible <bruno@clisp.org>
742 * INSTALL.windows: Renamed from README.windows.
743 * INSTALL.djgpp: Renamed from README.djgpp.
744 * Makefile.in (SOURCE_FILES): Update.
746 2018-01-03 Bruno Haible <bruno@clisp.org>
748 Fix installation in 64-bit mode on AIX.
749 * lib/Makefile.in (AR): New variable.
750 (install): Use it instead of hardcoding 'ar'.
752 2017-11-26 Bruno Haible <bruno@clisp.org>
754 Avoid end-of-lines problem in generated shell scripts on Cygwin.
755 Patch by Feiyun Wang <feiyunw@yahoo.com>.
756 * lib/genaliases.c (main): Create canonical.sh and canonical_local.sh
757 with Unix end-of-line characters, regardless of Cygwin choice of
758 text mode vs. binary mode.
760 2017-07-15 Bruno Haible <bruno@clisp.org>
762 Allow building statically linked binaries, through LDFLAGS="-static".
764 <https://lists.gnu.org/archive/html/bug-libtool/2017-07/msg00000.html>.
765 * build-aux/ltmain.sh (func_mode_help, func_mode_link): In the link
766 mode, accept option '-static-uninstalled-libs' in place of '-static',
767 and make '-static' an equivalent of '-all-static'.
769 2017-07-15 Bruno Haible <bruno@clisp.org>
771 Don't attempt to build preloadable_libiconv.so when linking statically.
772 * preload/configure.ac (enable_shared, enable_static): Don't force
773 shared libraries when LDFLAGS indicates static linking.
774 (PLUGLIB): Set to empty when is not configured for building shared
777 2017-07-15 Bruno Haible <bruno@clisp.org>
779 Get rid of autom4te.cache directories, as far as possible.
780 * Makefile.devel (srclib/Makefile.in, aclocal.m4, configure,
781 config.h.in): Remove autom4te.cache after invoking aclocal, autoconf,
782 autoheader, automake.
783 * preload/Makefile.devel (aclocal, configure): Likewise.
785 2017-05-18 Bruno Haible <bruno@clisp.org>
787 * lib/relocatable.h: Update from gnulib.
788 * lib/relocatable.c: Update from gnulib.
790 2017-01-30 Bruno Haible <bruno@clisp.org>
792 Prepare for version 1.15.
793 * src/iconv.c (print_version): Update copyright year.
794 * windows/iconv.rc: Likewise.
795 * windows/libiconv.rc: Likewise.
797 2016-12-29 Bruno Haible <bruno@clisp.org>
799 Make Makefile.devel consistent with .gitignore.
800 * Makefile.devel (srclib/Makefile.in): Depend on aclocal.m4.
801 (totally-clean): Remove also aclocal.m4.
803 2016-12-25 Bruno Haible <bruno@clisp.org>
806 * autogen.sh: Emit a "done" diagnostic when autogen.sh completed
809 2016-12-25 Bruno Haible <bruno@clisp.org>
811 Reorder Makefile.devel.
812 * Makefile.devel: Reorder: put gnulib targets before autotools targets.
814 2016-12-14 Bruno Haible <bruno@clisp.org>
816 Cleanup useless removals.
817 * lib/Makefile.in (distclean): No need to remove 'libtool'.
819 2016-12-04 Bruno Haible <bruno@clisp.org>
822 * Makefile.devel: Update comments about release process.
824 2016-12-04 Bruno Haible <bruno@clisp.org>
826 Create tarballs through an Automake-like "make dist" command.
827 * Makefile.in (SOURCE_FILES, LIBTOOL_IMPORTED_FILES,
828 AUTOMAKE_OLD_IMPORTED_FILES, AUTOMAKE_IMPORTED_FILES, IMPORTED_FILES,
829 GENERATED_FILES, DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
830 (distdir): New target.
831 (PACKAGE, VERSION, TAR, GZIP): New macros.
833 * lib/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
834 DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
835 (distdir): New target.
836 * man/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
837 DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
838 (distdir): New target.
839 * preload/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
840 DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
841 (distdir): New target.
842 * src/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
843 DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
844 (distdir): New target.
845 * tests/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
846 DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
847 (distdir): New target.
849 2016-12-04 Bruno Haible <bruno@clisp.org>
851 Remove duplicates of imported files from version control.
852 * autogen.sh: Copy imported files to libcharset.
854 2016-12-04 Bruno Haible <bruno@clisp.org>
856 Always use the newest released copies of files brought in from Automake.
857 * Makefile.devel (srclib/Makefile.in): Make sure to get new versions of
858 files brought in by automake.
859 * build-aux/install-sh: Remove from version control.
860 * build-aux/missing: Likewise.
862 2016-12-04 Bruno Haible <bruno@clisp.org>
864 Always use the newest copies of config.guess, config.sub.
865 * Makefile.devel (gnulib-imported-files): New target.
866 * autogen.sh: Invoke it.
867 * build-aux/config.guess: Remove from version control.
868 * build-aux/config.sub: Likewise.
870 2016-12-04 Bruno Haible <bruno@clisp.org>
872 Always use the newest copy of fcntl-o.m4.
873 * m4/fcntl-o.m4: Remove file. Rely on srcm4/fcntl-o.m4 instead.
875 2016-12-04 Bruno Haible <bruno@clisp.org>
877 Remove obsolete documentation.
878 * PORTS: Remove file.
880 2016-12-03 Bruno Haible <bruno@clisp.org>
882 Make Makefile.devel more useful for the users of the released tarball.
883 * Makefile.devel (srclib/Makefile.gnulib): Don't force this target.
884 (gnulib-clean): New target.
885 (totally-clean): New target. Do the removals from autogen.sh. Also,
886 remove lib/aliases*.gperf, lib/canonical*.h, man/iconvctl.3.html,
887 man/iconv_open_into.3.html.
888 * autogen.sh: Invoke target gnulib-clean before srclib/Makefile.gnulib.
889 Invoke target totally-clean before all.
890 * preload/Makefile.devel (totally-clean): New target.
892 2016-12-03 Bruno Haible <bruno@clisp.org>
894 Modernize configure.ac.
895 * configure.ac: Use 2-argument AC_INIT. Avoid an AM_INIT_AUTOMAKE
897 * preload/configure.ac: Use 2-argument AC_INIT. Use AC_CONFIG_SRCDIR.
899 2016-12-03 Bruno Haible <bruno@clisp.org>
901 Towards reproducible builds.
902 * Makefile.devel (man/%.html): Remove the CreationDate comment line
905 2016-12-04 Bruno Haible <bruno@clisp.org>
907 Update to gettext-0.19.8.1.
908 * ABOUT-NLS: Update through 'gettextize'.
910 2016-12-03 Bruno Haible <bruno@clisp.org>
912 Update documentation.
913 * HACKING: Refer to the Git repository.
915 2016-12-03 Bruno Haible <bruno@clisp.org>
917 Avoid compilation warnings in 'genflags' program.
918 * lib/genflags.c: Avoid warnings from GCC's -Wunused-function option.
920 2016-12-02 Bruno Haible <bruno@clisp.org>
922 * relocatable.c: Update from gnulib.
924 2016-11-25 Bruno Haible <bruno@clisp.org>
926 Prepare for version 1.15.
927 * configure.ac: Bump version number to 1.15.
929 * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
930 * windows/iconv.rc: Update.
931 * windows/libiconv.rc: Update.
932 * Makefile.devel: Update comments.
933 * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 8:0:6.
934 * src/iconv.c (print_version): Update copyright year.
936 2016-11-23 Bruno Haible <bruno@clisp.org>
938 Update installation instructions for Windows.
939 * README.windows: Assume a 64-bit Windows. Explain both 32-bit and
940 64-bit builds. Add instructions for the MS Visual C/C++ tool chain.
941 Revamp instructions for Cygwin.
943 2016-11-23 Bruno Haible <bruno@clisp.org>
945 Drop the nickname "woe32".
946 * README.windows: Renamed from README.woe32.
948 2016-11-22 Bruno Haible <bruno@clisp.org>
950 Update support for building with MSVC.
951 * Makefile.devel (srclib/Makefile.in): Import 'ar-lib' and 'compile'
953 * lib/Makefile.in (install-lib, install): Install the .la file with
954 $(INSTALL), not $(INSTALL_DATA). Otherwise the native Windows DLL gets
955 installed without execution permissions, and programs linked to it fail:
956 in a Cygwin shell with exit code 127, or from a cmd.exe window with a
957 dialog "The application was unable to start correctly (0xc0000022)."
959 2016-11-19 Bruno Haible <bruno@clisp.org>
961 Fix link error when compiling with gcc -O0.
962 * lib/iconv.c (aliases2_lookup): Make static.
963 Reported by Chung-Lin Tang <chunglin.tang@gmail.com>
964 at https://savannah.gnu.org/bugs/?47953 .
966 2016-11-17 Bruno Haible <bruno@clisp.org>
968 UTF-8: Reject surrogates and out-of-range code points.
969 * lib/utf8.h (utf8_mbtowc, utf8_wctomb): Reject code points in the
970 range 0xD800..0xDFFF and >= 0x110000.
971 * tests/genutf8.c (main): Don't emit mappings for 0xD800..0xDFFF.
973 2016-10-22 Bruno Haible <bruno@clisp.org>
975 Switch to libtool 2.4.6.
976 * m4/libtool.m4: Update from libtool-2.4.6, with modifications:
977 2008-04-06 Bruno Haible <bruno@clisp.org>
978 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
979 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
981 * m4/ltoptions.m4: Likewise.
982 * m4/ltversion.m4: Likewise.
983 * build-aux/ltmain.sh: Likewise.
985 2016-10-14 Bruno Haible <bruno@clisp.org>
987 Use 'size_t', not 'int', for the length of a string.
988 * lib/iconv.c: Include <limits.h>.
989 * lib/genflags.c: Likewise.
990 * lib/converters.h (struct mbtowc_funcs, struct wctomb_funcs): Change
991 'int n' parameter to 'size_t n'.
992 (RET_COUNT_MAX): New macro.
993 * lib/*.h: Use 'size_t n' instead of 'int n'.
994 * lib/ucs2.h (ucs2_mbtowc): Make sure 'count' does not cause an 'int'
996 * lib/ucs4.h (ucs4_mbtowc): Likewise.
997 * lib/utf16.h (utf16_mbtowc): Likewise.
998 * lib/utf32.h (utf32_mbtowc): Likewise.
999 * tools/8bit_tab_to_h.c: Generate function signatures with 'size_t n'.
1000 * tools/cjk_tab_to_h.c: Likewise.
1001 * NEWS: Mention the change.
1003 2016-10-04 Bruno Haible <bruno@clisp.org>
1005 Extend CP1255 mapping.
1006 * lib/cp1255.h (cp1255_2uni, cp1255_page05): Map 0xCA to U+05BA.
1007 * tests/CP1255.TXT: Likewise.
1008 This matches https://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WindowsBestFit/bestfit1255.txt
1009 and what the native Windows converter does since at least Windows XP.
1011 2016-10-01 Ben Noordhuis <info@bnoordhuis.nl> (tiny change)
1012 Bruno Haible <bruno@clisp.org>
1014 Remove large stack requirement from gentranslit.
1015 * lib/gentranslit.c (main): Heap-allocate large arrays.
1016 * Makefile.devel (lib/translit.h): Remove 'ulimit -s unlimited' command.
1018 2015-12-10 Ben Noordhuis <info@bnoordhuis.nl> (tiny change)
1020 Remove unused array from gentranslit.
1021 * lib/gentranslit.c (main): Remove unused array.
1022 * Makefile.devel (CC): Add -Wall option.
1023 Reported in https://savannah.gnu.org/bugs/?46663 .
1025 2016-10-01 Bruno Haible <bruno@clisp.org>
1028 * src/iconv.c (main): Increment i after parsing the --silent option.
1029 Reported in https://savannah.gnu.org/bugs/?41187 .
1031 2016-10-01 Bruno Haible <bruno@clisp.org>
1033 Update to current gnulib.
1034 * Makefile.devel (GNULIB_MODULES): Remove memmove.
1035 * tests/Makefile.in (INCLUDES): Make sure to include the top-level
1036 "config.h". Needed for the 'binary-io' module.
1038 2016-10-01 Bruno Haible <bruno@clisp.org>
1040 Switch to automake 1.15.
1041 * autogen.sh: Update comment.
1042 * Makefile.devel (AUTOMAKE, ACLOCAL): Switch to version 1.15.
1043 (srclib/Makefile.in): Don't remove auxiliary files brought in by
1045 * preload/Makefile.devel (ACLOCAL): Switch to version 1.15.
1046 * srclib/Makefile.am (AUTOMAKE_OPTIONS): Add subdir-objects.
1047 * build-aux/missing: Update from automake-1.15.
1049 2016-10-01 Bruno Haible <bruno@clisp.org>
1051 Remove autogenerated doc files from version control.
1052 * man/iconvctl.3.html: Remove file.
1053 * man/iconv_open_into.3.html: Remove file.
1055 2012-12-06 Bruno Haible <bruno@clisp.org>
1057 Change copyright holder of man pages.
1058 * man/*.[13]: Replace myself with FSF.
1060 2012-06-30 Bruno Haible <bruno@clisp.org>
1062 Make it possible to run 'genaliases2' on native Windows.
1063 * lib/genaliases2.c (main): Expect 3 arguments. Open the output files
1064 explicitly. Complain if they don't exist.
1065 * Makefile.devel (lib/aliases_*.h): Pass the output filenames as
1066 arguments to genaliases.
1067 Reported at <https://savannah.gnu.org/bugs/?36748>.
1069 Make it possible to run 'genaliases' on native Windows.
1070 * lib/genaliases.c (main): Expect 3 arguments. Open the output files
1071 explicitly. Complain if they don't exist. Improve error checking.
1072 * Makefile.devel (lib/aliases*.h): Pass the output filenames as
1073 arguments to genaliases.
1074 Reported at <https://savannah.gnu.org/bugs/?36748>.
1076 2012-05-13 Bruno Haible <bruno@clisp.org>
1078 Tweak the GB18030 converter to map 0x8135F437 to U+E7C7.
1079 * lib/gb18030.h (gb18030_pua2charset, gb18030_wctomb): Remove mapping
1080 from U+E7C7 to 0xA8BC.
1081 * lib/gb18030uni.h (gb18030uni_mbtowc): Treat 0x8135F437 as a special
1083 (gb18030uni_wctomb): Treat U+E7C7 as a special case.
1084 * tests/GB18030-BMP.TXT: Map 0x8135F437 to U+E7C7, not U+1E3F.
1085 * tests/GB18030.IRREVERSIBLE.TXT: Remove irreversible mappings for
1086 0x8135F437 and U+E7C7.
1088 2012-04-28 Bruno Haible <bruno@clisp.org>
1090 Switch to autoconf 2.69 and automake 1.12.
1091 * autogen.sh: Update comment.
1092 * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.69.
1093 (AUTOMAKE, ACLOCAL): Switch to version 1.12.
1094 * preload/Makefile.devel (AUTOCONF): Switch to version 2.69.
1095 (ACLOCAL): Switch to version 1.12.
1097 2012-03-24 Bruno Haible <bruno@clisp.org>
1099 Avoid a GCC warning.
1100 * lib/isoir165.h (isoir165_mbtowc): Don't shadow the 'ret' variable.
1102 2012-01-26 Bruno Haible <bruno@clisp.org>
1105 * README: Quote 'like this', not `like this', as per the recent change
1106 to the GNU coding standards.
1108 * gnulib-local/lib/xmalloc.c: Likewise.
1109 * lib/config.h.in: Likewise.
1110 * src/iconv.c (usage): Likewise.
1111 * tests/uniq-u.c: Likewise.
1112 * tools/cjk_tab_to_h.c (output_uni2charset_sparse, do_jisx0213):
1114 * lib/big5.h: Update accordingly.
1115 * lib/cns11643_inv.h: Likewise.
1116 * lib/cp932ext.h: Likewise.
1117 * lib/cp950ext.h: Likewise.
1118 * lib/gb12345ext.h: Likewise.
1119 * lib/gb2312.h: Likewise.
1120 * lib/gbkext_inv.h: Likewise.
1121 * lib/hkscs1999.h: Likewise.
1122 * lib/hkscs2001.h: Likewise.
1123 * lib/hkscs2004.h: Likewise.
1124 * lib/hkscs2008.h: Likewise.
1125 * lib/isoir165ext.h: Likewise.
1126 * lib/jisx0208.h: Likewise.
1127 * lib/jisx0212.h: Likewise.
1128 * lib/jisx0213.h: Likewise.
1129 * lib/ksc5601.h: Likewise.
1130 * lib/uhc_1.h: Likewise.
1131 * lib/uhc_2.h: Likewise.
1133 2012-01-15 Bruno Haible <bruno@clisp.org>
1136 * lib/config.h.in (inline, mode_t, ssize_t): Copy snippets from top
1138 * tests/genutf8.c: Include config.h.
1139 * tests/gengb18030z.c: Likewise.
1140 * woe32dll/export.h (VARIABLE): Define to empty if not using GCC.
1142 2011-01-28 Bruno Haible <bruno@clisp.org>
1145 * woe32dll/export.h: Add a reference to the woe32dll writeup.
1147 2012-01-06 Bruno Haible <bruno@clisp.org>
1149 Update after gnulib changed.
1150 * gnulib-local/lib/error.h.diff: Update.
1152 2012-01-06 Bruno Haible <bruno@clisp.org>
1154 Talk about "native Windows API", not "Woe32".
1155 * lib/relocatable.c: Update comments to mention native Windows.
1157 2012-01-04 Bruno Haible <bruno@clisp.org>
1159 Talk about "native Windows API", not "Win32".
1160 * lib/relocatable.c: Update comments to mention native Windows.
1161 (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1163 2011-10-27 Bruno Haible <bruno@clisp.org>
1165 Fix bug with error handling in UCS-2, UCS-4, UTF-32 decoders.
1166 * lib/ucs2.h (ucs2_mbtowc): Increment count only after validating wc.
1167 * lib/ucs4.h (ucs4_mbtowc): Likewise.
1168 * lib/utf32.h (utf32_mbtowc): Likewise.
1169 Reported at <https://savannah.gnu.org/bugs/?34916>.
1171 2012-06-30 Bruno Haible <bruno@clisp.org>
1173 Improve ISO-2022-CP-MS versus CP932.
1174 * lib/iso2022_jpms.h (iso2022_jpms_mbtowc): Recognize characters from
1175 the rows 0x79..0x7C as rows from CP932.
1176 * tests/ISO-2022-JP-MS-snippet.alt: New file, renamed from
1177 tests/ISO-2022-JP-MS-snippet.
1178 * tests/ISO-2022-JP-MS-snippet.UTF-8: Update the rows that correspond
1179 to ESC $ B 0x79..0x7C.
1180 * tests/ISO-2022-JP-MS-snippet: Likewise.
1181 * tests/check-stateful: Also test the *-snippet.alt file if it exists.
1182 * tests/check-stateful.bat: Likewise.
1184 2012-06-30 Bruno Haible <bruno@clisp.org>
1186 Improve ISO-2022-CP-MS versus CP932.
1187 * lib/cp50221_0208_ext.h (cp50221_0208_ext_page30): Map U+301D like
1189 * lib/iso2022_jpms.h (iso2022_jpms_wctomb): Map U+663B to JISX0208
1190 0x7A 0x36, U+FFE2 to 0x7C 0x7B, U+FFE4 to 0x7C 0x7C.
1191 Reported by Jeff Diehl <diehl.jeff@gmail.com>.
1193 2011-10-23 Bruno Haible <bruno@clisp.org>
1195 New encoding ISO-2022-CP-MS.
1196 * NOTES: Mention ISO-2022-JP-MS.
1197 * tools/CP50221-0208-EXT.TXT: New file.
1198 * tools/CP50221-0212-EXT.TXT: New file.
1199 * tools/8bit_tab_to_h.c: Add comments about how to generate
1200 cp50221_0208_ext.h, cp50221_0212_ext.h.
1201 * tools/Makefile: Add rules for generating cp50221_0208_ext.h,
1203 * lib/cp50221_0208_ext.h: New file, mostly generated.
1204 * lib/cp50221_0212_ext.h: New file, mostly generated.
1205 * lib/iso2022_jpms.h: New file.
1206 * lib/converters.h: Include it.
1207 * lib/encodings.def: Add ISO-2022-JP-MS.
1208 * README, man/iconv_open.3: Add ISO-2022-JP-MS.
1209 * tests/ISO-2022-JP-MS-snippet: New file.
1210 * tests/ISO-2022-JP-MS-snippet.UTF-8: New file.
1211 * tests/Makefile.in (check): Also test ISO-2022-JP-MS.
1212 Reported by Jeff Diehl <diehl.jeff@gmail.com>.
1214 2011-10-23 Bruno Haible <bruno@clisp.org>
1216 * lib/encodings.def: Add comments about Windows names of encodings.
1218 2011-10-18 Bruno Haible <bruno@clisp.org>
1220 * m4/libtool.m4: Update from libtool-2.4.2, with modifications:
1221 2008-04-06 Bruno Haible <bruno@clisp.org>
1222 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
1223 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
1224 to ${CONFIG_SHELL}..
1225 * m4/ltoptions.m4: Likewise.
1226 * m4/ltversion.m4: Likewise.
1227 * build-aux/ltmain.sh: Likewise.
1229 2011-10-03 Bruno Haible <bruno@clisp.org>
1231 * lib/relocatable.c: Update from gnulib.
1233 2011-09-02 Bruno Haible <bruno@clisp.org>
1235 Fix "make check" failure when $(srcdir) != $(builddir).
1236 * tests/Makefile.in (check): When $(srcdir) != ., temporarily copy
1237 GB18030.IRREVERSIBLE.TXT into the build directory.
1238 Reported by Christian Weisgerber <naddy@mips.inka.de>.
1240 2011-08-07 Bruno Haible <bruno@clisp.org>
1242 Ensure all HTML-formatted man pages are up-to-date.
1243 * Makefile.devel (all): Depend on man/iconvctl.3.html and
1244 man/iconv_open_into.3.html.
1246 2011-08-07 Bruno Haible <bruno@clisp.org>
1248 * Version 1.14 released.
1250 2011-08-07 Bruno Haible <bruno@clisp.org>
1252 * configure.ac: Bump version number to 1.14.
1254 * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
1255 * windows/iconv.rc: Update.
1256 * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 7:1:5.
1257 * src/iconv.c (print_version): Update copyright year.
1259 2011-08-07 Bruno Haible <bruno@clisp.org>
1261 Avoid a test failure on Solaris 2.6 and HP-UX 11.00.
1262 * tests/test-to-wchar.c (main): Skip the test if conversion to wchar_t
1265 2011-08-07 Bruno Haible <bruno@clisp.org>
1267 * tests/check-subst: Add comments about OSF/1.
1269 2011-08-07 Bruno Haible <bruno@clisp.org>
1271 * lib/relocatable.c: Update from gnulib.
1273 2011-08-06 Bruno Haible <bruno@clisp.org>
1275 Upgrade the GB18030 converter to the version from 2005.
1276 * lib/gb18030ext.h (gb18030ext_2uni_pagefe): Change element type to
1277 'unsigned int'. Change values for 0xFE51..0xFE53, 0xFE59, 0xFE61,
1278 0xFE66, 0xFE67, 0xFE6C, 0xFE6D, 0xFE76, 0xFE7E, 0xFE90, 0xFE91, 0xFEA0.
1279 (gb18030ext_mbtowc): Change type of wc to 'unsigned int'. Change values
1280 for 0xA6D9..0xA6DF, 0xA6EC..0xA6ED, 0xA6F3, 0xA8BC.
1281 (gb18030ext_page9f, gb18030ext_pagefe): New constant arrays.
1282 (gb18030ext_wctomb): Change values for U+1E3F, U+9FB4..U+9FBB,
1283 U+FE10..U+FE19, U+20087, U+20089, U+200CC, U+215D7, U+2298F, U+241FE.
1284 * tests/GB18030-BMP.TXT: Change values for 0xA6D9..0xA6DF,
1285 0xA6EC..0xA6ED, 0xA6F3, 0xA8BC, 0xFE51..0xFE53, 0xFE59, 0xFE61, 0xFE66,
1286 0xFE67, 0xFE6C, 0xFE6D, 0xFE76, 0xFE7E, 0xFE90, 0xFE91, 0xFEA0, to map
1287 to now-assigned Unicode codepoints.
1288 * tests/GB18030.IRREVERSIBLE.TXT: New file.
1290 2011-08-06 Bruno Haible <bruno@clisp.org>
1292 Fix conversion bug in CP1258 converter.
1293 * lib/vietcomb.h (viet_comp_table_data): Remove entry for
1294 U+00A5 U+0301. Fix entry for U+00A8 U+0301.
1295 (viet_decomp_table): Fix entry for U+0385.
1296 * tests/CP1258.IRREVERSIBLE.TXT: Update.
1297 Reported by Gertjan Halkes <gertjan@ghalkes.nl>.
1299 2011-07-03 Bruno Haible <bruno@clisp.org>
1301 Improve interactive behaviour of iconv program.
1302 * src/iconv.c (convert): Flush the output before starting a possibly
1303 blocking safe_read call.
1305 2011-07-03 Bruno Haible <bruno@clisp.org>
1307 Fix interactive behaviour of iconv program.
1308 * Makefile.devel (GNULIB_MODULES): Add safe-read.
1309 * src/iconv.c: Include safe-read.h.
1310 (convert): Take the infile as a file descriptor, not as a FILE stream.
1311 Use safe_read() instead of fread().
1313 Reported by Xavier Pucel <xpucel@hotmail.com>.
1315 2011-05-02 Bruno Haible <bruno@clisp.org>
1317 Update after gnulib changed.
1318 * autogen.sh (GNULIB_MODULES): Remove exit, add stdlib.
1320 2011-06-02 Bruno Haible <bruno@clisp.org>
1322 Update after gnulib changed.
1323 * gnulib-local/m4/alloca.m4 (gl_FUNC_ALLOCA): Update.
1325 2011-06-04 Bruno Haible <bruno@clisp.org>
1327 Work around <wchar.h> bug on OSF/1 5.1.
1328 * lib/loop_wchar.h: Before including <wchar.h>, include <stdio.h> and
1329 some other includes.
1331 2011-03-27 KO Myung-Hun <komh@chollian.net>
1333 Fix installation on OS/2.
1334 * src/Makefile.in (all, iconv_no_i18n): Add $(EXEEXT) suffix to
1335 iconv_no_i18n. This is the recommended way to use libtool, see
1336 <https://lists.gnu.org/archive/html/bug-libtool/2009-04/msg00013.html>.
1338 2011-03-31 Bruno Haible <bruno@clisp.org>
1340 gentranslit: Fix buffer overrun.
1341 * lib/gentranslit.c (main): Allocate more room for the suffix strings
1342 of the translit pages.
1343 Reported by Ben Noordhuis <info@bnoordhuis.nl>.
1345 2011-02-28 Bruno Haible <bruno@clisp.org>
1347 * lib/relocatable.h: Update from gnulib.
1348 * lib/relocatable.c: Likewise.
1350 2011-01-29 Corinna Vinschen <corinna-cygwin@cygwin.com>
1351 Bruno Haible <bruno@clisp.org>
1353 Simplify "wchar_t" handling on Cygwin 1.7.x.
1354 * lib/iconv.c (iconv_canonicalize): On Cygwin >= 1.7, map
1355 ei_local_wchar_t to ei_utf16le or ei_utf16be, not ei_ucs2internal.
1356 * lib/iconv_open1.h: Likewise.
1357 Rationale: <https://cygwin.com/ml/cygwin/2011-01/msg00410.html>.
1359 2011-01-29 Bruno Haible <bruno@clisp.org>
1361 Adjust the meaning of "wchar_t" on native Windows systems.
1362 * lib/iconv.c (iconv_canonicalize): On native Windows, map
1363 ei_local_wchar_t to ei_utf16le or ei_utf16be, not ei_ucs2internal.
1364 * lib/iconv_open1.h: Likewise.
1365 Reported by Corinna Vinschen <corinna-cygwin@cygwin.com>
1366 in <https://cygwin.com/ml/cygwin/2011-01/msg00410.html>.
1368 2010-11-23 Bruno Haible <bruno@clisp.org>
1370 Implement newer release of BIG5-HKSCS.
1371 * tools/Makefile (ALL): Add hkscs2008.h.
1372 (hkscs2008.h): New rule.
1373 * tools/cjk_tab_to_h.c (main): Recognize hkscs2008.
1374 * lib/encodings.def: Add BIG5-HKSCS:2008. Change BIG5-HKSCS alias to be
1375 equivalent to BIG5-HKSCS:2008.
1376 * lib/hkscs2008.h: New file, autogenerated.
1377 * lib/big5hkscs2008.h: New file, based on lib/big5hkscs2004.h.
1378 * lib/converters.h: Include the new file.
1379 * README, man/iconv_open.3: Add BIG5-HKSCS:2004.
1380 * tests/BIG5-HKSCS-2008.TXT: New file, based on
1381 tests/BIG5-HKSCS-2004.TXT.
1382 * tests/BIG5-HKSCS-2008.IRREVERSIBLE.TXT: New file, copied from
1383 tests/BIG5-HKSCS-2004.IRREVERSIBLE.TXT
1384 * tests/BIG5-HKSCS-2008-snippet: New file, based on
1385 tests/BIG5-HKSCS-2004-snippet.
1386 * tests/BIG5-HKSCS-2008-snippet.UTF-8: New file, based on
1387 tests/BIG5-HKSCS-2004-snippet.UTF-8.
1388 * tests/Makefile.in (check): Check also BIG5-HKSCS:2008.
1389 Reported by oCameLo <camel322@gmail.com>.
1391 2010-11-23 Bruno Haible <bruno@clisp.org>
1393 Make cjk_tab_to_h 64-bit clean.
1394 * tools/cjk_tab_to_h.c (do_jisx0213): Add a cast from size_t to int.
1395 (output_title): Update copyright year.
1397 2010-09-23 Bruno Haible <bruno@clisp.org>
1399 Switch to autoconf 2.68.
1400 * autogen.sh: Update comment.
1401 * configure.ac: Fix AC_COMPILE_IFELSE invocation.
1402 * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.68.
1403 * preload/Makefile.devel (AUTOCONF): Likewise.
1405 2010-09-23 Bruno Haible <bruno@clisp.org>
1407 * m4/libtool.m4: Update from libtool-2.4, with modifications:
1408 2008-04-06 Bruno Haible <bruno@clisp.org>
1409 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
1410 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
1412 * m4/ltversion.m4: Update from libtool-2.4.
1413 * build-aux/ltmain.sh: Likewise.
1415 2010-09-23 Bruno Haible <bruno@clisp.org>
1417 Simplify use of gnulib-tool now that gnulib-tool --import works better.
1418 * autogen.sh: Don't remove gnulib-cache.m4 before running gnulib-tool.
1419 * Makefile.devel (srclib/Makefile.gnulib): Depend on 'force'.
1421 2010-07-31 Bruno Haible <bruno@clisp.org>
1423 * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.67.
1424 * preload/Makefile.devel (AUTOCONF): Likewise.
1426 2010-07-03 Bruno Haible <bruno@clisp.org>
1428 * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.66.
1429 * preload/Makefile.devel (AUTOCONF): Likewise.
1431 2010-06-04 Bruno Haible <bruno@clisp.org>
1433 Addendum to 2009-10-18 commit.
1434 * m4/fcntl-o.m4: New file, from gnulib.
1435 * configure.ac: Invoke gl_FCNTL_O_FLAGS.
1436 * lib/config.h.in (HAVE_WORKING_O_NOFOLLOW): New macro.
1438 2010-06-04 Bruno Haible <bruno@clisp.org>
1440 * m4/libtool.m4: Update from libtool-2.2.8, with modifications:
1441 2008-04-06 Bruno Haible <bruno@clisp.org>
1442 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
1443 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
1445 * m4/ltoptions.m4: Update from libtool-2.2.8.
1446 * m4/ltversion.m4: Likewise.
1447 * m4/lt~obsolete.m4: Likewise.
1448 * build-aux/ltmain.sh: Likewise.
1450 2010-04-06 Bruno Haible <bruno@clisp.org>
1452 Avoid a compilation error of gnulib's test-iconv-h-c++.cc on mingw.
1453 * include/iconv.h.in: Restrict the extern "C" { ... } scope so that it
1454 doesn't contains #include directives.
1456 2010-03-30 Bruno Haible <bruno@clisp.org>
1458 * README.woe32: Update for Cygwin 1.7.x.
1460 2009-12-26 Bruno Haible <bruno@clisp.org>
1462 * windows/libiconv.rc: Update.
1463 * windows/iconv.rc: Update.
1465 2009-12-11 Bruno Haible <bruno@clisp.org>
1467 * include/iconv.h.in: Untabify.
1468 * gnulib-local/lib/xalloc.h: Untabify.
1469 * woe32dll/export.h: Untabify.
1470 * tests/uniq-u.c: Untabify.
1472 2009-12-11 Bruno Haible <bruno@clisp.org>
1474 * srclib/Makefile.am (MOSTLYCLEANDIRS): New macro.
1476 2009-12-11 Bruno Haible <bruno@clisp.org>
1478 * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.65.
1479 * preload/Makefile.devel (AUTOCONF): Likewise.
1481 2009-11-22 Bruno Haible <bruno@clisp.org>
1483 * tests/check-subst: Add reference to the Solaris printf bug.
1484 Reported by Dagobert Michelsen <dagobert@familie-michelsen.de>.
1486 2009-09-01 Bruno Haible <bruno@clisp.org>
1488 * README.woe32: Put the -mno-cygwin option into CC and CXX.
1489 Recommended by Paolo Bonzini and Eric Blake.
1491 2009-08-15 Bruno Haible <bruno@clisp.org>
1493 * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.64.
1494 * preload/Makefile.devel (AUTOCONF): Likewise.
1496 2009-08-15 Bruno Haible <bruno@clisp.org>
1498 Use .git/info/exclude, not .gitignore, for imported or generated files.
1499 * Makefile.devel (srclib/Makefile.gnulib): Pass option --no-vc-files to
1502 2009-07-07 Bruno Haible <bruno@clisp.org>
1504 Fix an endless loop.
1505 * lib/loop_wchar.h (wchar_to_loop_convert): Handle the case of
1506 incomplete input correctly.
1507 * tests/test-to-wchar.c: New file.
1508 * tests/Makefile.in (tests-to-wchar, tests-to-wchar.o): New rules.
1509 (check): Depend on and run tests-to-wchar.
1510 (clean): Add tests-to-wchar.
1511 Reported by Tristan Gingold <gingold@adacore.com>.
1513 2009-06-30 Bruno Haible <bruno@clisp.org>
1515 * Version 1.13.1 released.
1517 2009-06-30 Bruno Haible <bruno@clisp.org>
1519 * configure.ac: Bump version number to 1.13.1.
1522 2009-06-04 Bruno Haible <bruno@clisp.org>
1524 * preload/Makefile.devel (AUTOCONF): Switch to version 2.63.
1525 (ACLOCAL): Switch to version 1.11.
1527 2009-05-19 Bruno Haible <bruno@clisp.org>
1529 * Makefile.devel (AUTOMAKE, ACLOCAL): Switch to version 1.11.
1530 * autogen.sh: Update comments.
1532 2009-04-24 Bruno Haible <bruno@clisp.org>
1534 Fix a compilation error on HP-UX 11.00, introduced on 2008-09-16.
1535 * src/iconv_open2.h: Don't initialize nonexistent field if
1536 !(HAVE_WCRTOMB || HAVE_MBRTOWC).
1537 Patch by Joel Brobecker <brobecker@adacore.com>.
1539 2009-04-15 Bruno Haible <bruno@clisp.org>
1541 * src/Makefile.in (install, uninstall): Append the $(EXEEXT) suffix
1542 explicitly. Needed on Cygwin.
1544 2009-04-11 Bruno Haible <bruno@clisp.org>
1546 * configure.ac: Move the statements for WOE32 and WINDRES.
1548 2009-03-26 Bruno Haible <bruno@clisp.org>
1550 * Version 1.13 released.
1552 2009-03-26 Bruno Haible <bruno@clisp.org>
1554 * src/iconv.c: Update copyright header to GPLv3+.
1555 (print_version): Update license info.
1557 2009-03-26 Bruno Haible <bruno@clisp.org>
1559 * src/iconv.c (print_version): Bump year.
1561 2009-03-25 Bruno Haible <bruno@clisp.org>
1563 * build-aux/config.guess: Update to GNU version 2009-02-03.
1564 * build-aux/config.sub: Likewise.
1566 2009-03-25 Bruno Haible <bruno@clisp.org>
1568 * configure.ac: Bump version number to 1.13.
1570 * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
1571 * windows/iconv.rc: Update.
1572 * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 7:0:5.
1574 2009-03-25 Bruno Haible <bruno@clisp.org>
1576 Fix the handling of Windows resources in shared libraries.
1577 * configure.ac: Invoke LT_LANG for 'Windows Resource'.
1578 * lib/Makefile.in (RC): New variable.
1579 (WINDRES): Remove variable.
1580 (OBJECTS_RES_yes): Add .lo suffix.
1581 (libiconv.res.lo): Renamed from libiconv.res. Use libtool --tag=RC.
1583 Based on a patch by Roumen Petrov <bugtrack@roumenpetrov.info>.
1585 2009-03-14 Bruno Haible <bruno@clisp.org>
1587 * autogen.sh: Checkout gnulib using 'git' instead of 'cvs'.
1589 2009-01-24 Bruno Haible <bruno@clisp.org>
1591 * tools/Makefile (ALL): Add cp1131.h.
1592 (cp1131.h): New rule.
1593 * lib/encodings.def: Add CP1131.
1594 * lib/cp1131.h: New file.
1595 * lib/converters.h: Include it.
1596 * README, man/iconv_open.3: Add CP1131.
1597 * NOTES: Mention CP1131.
1598 * tests/CP1131.TXT: New file.
1599 * tests/Makefile.in (check): Also test CP1131.
1601 2009-01-17 Bruno Haible <bruno@clisp.org>
1603 Add support for "make install-strip".
1604 * configure.ac: Search for 'strip'. Invoke AM_PROG_INSTALL_STRIP.
1605 * Makefile.in (install-strip): New rule.
1606 * src/Makefile.in (STRIP, INSTALL_STRIP_PROGRAM, install_sh): New
1608 (install-strip): New rule.
1609 * lib/Makefile.in (install-strip): New target.
1610 * preload/Makefile.in (install-strip): Likewise.
1611 * man/Makefile.in (install-strip): Likewise.
1612 Reported by Alon Bar-Lev <alon.barlev@gmail.com>.
1614 2009-01-17 Bruno Haible <bruno@clisp.org>
1616 Update after gnulib changed.
1617 * src/Makefile.in (RELOCATABLE_STRIP): New variable.
1619 2009-01-17 Bruno Haible <bruno@clisp.org>
1621 Make --enable-relocatable work on glibc systems.
1622 * src/Makefile.in (host): New variable.
1624 2009-01-17 Bruno Haible <bruno@clisp.org>
1626 * lib/genflags.c: Include <string.h>.
1628 2009-01-14 Bruno Haible <bruno@clisp.org>
1630 * configure.ac: More consistent m4 quoting.
1631 * preload/configure.ac: Likewise.
1633 2008-09-28 Bruno Haible <bruno@clisp.org>
1635 * build-aux/ltmain.sh (func_emit_cwrapperexe_src): On mingw,
1636 preprocess the argument vector through prepare_spawn.
1638 2008-09-27 Bruno Haible <bruno@clisp.org>
1640 * build-aux/config.guess: Update to GNU version 2008-09-08.
1641 * build-aux/config.sub: Likewise.
1643 2008-09-26 Bruno Haible <bruno@clisp.org>
1645 * tests/test-shiftseq.c (main1, main2): Use ICONV_CONST.
1647 2008-09-26 Bruno Haible <bruno@clisp.org>
1649 * Makefile.devel (GNULIB_MODULES): Add sigpipe, stdio.
1650 * tests/Makefile.in (check, table-from, table-to, test-shiftseq): Link
1651 all programs against libicrt.a. Needed for the stdio function
1652 replacements on mingw.
1654 2008-09-21 Tadamasa Teranishi <yw3t-trns@asahi-net.or.jp>
1656 * lib/encodings_extra.def: Add aliases for EUC-JISX0213, SHIFT_JISX0213,
1657 ISO-2022-JP-3, found on <http://x0213.org/codetable/index.en.html>.
1659 2008-09-20 Bruno Haible <bruno@clisp.org>
1661 * man/iconv_open_into.3: New file.
1663 2008-09-16 Bruno Haible <bruno@clisp.org>
1665 New function iconv_open_into.
1666 * include/iconv.h.in: Include <wchar.h> and its prerequisites.
1667 (iconv_allocation_t): New type.
1668 (iconv_open_into): New declaration.
1669 * lib/iconv_open1.h: New file, extracted from lib/iconv.c.
1670 * lib/iconv_open2.h: New file, extracted from lib/iconv.c.
1671 * lib/iconv.c (iconv_open): Include iconv_open1.h and iconv_open2.h.
1672 Verify size of iconv_allocation_t.
1673 (iconv_open_into): New function.
1674 * lib/loop_wchar.h (struct wchar_conv_struct): Don't define a state
1675 field if !(HAVE_WCRTOMB || HAVE_MBRTOWC).
1676 * configure.ac: Set and substitute USE_MBSTATE_T, BROKEN_WCHAR_H.
1677 Reported by Roman Rybalko <romanr@romanr.info>.
1679 2008-09-16 Bruno Haible <bruno@clisp.org>
1681 * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.63.
1683 2008-09-16 Bruno Haible <bruno@clisp.org>
1685 * include/iconv.h.in: Use Unicode single-quotes in comments.
1687 2008-09-14 Bruno Haible <bruno@clisp.org>
1689 * Makefile.devel (GNULIB_MODULES): Add strerror.
1691 2008-09-07 Bruno Haible <bruno@clisp.org>
1693 Make behaviour when encountering invalid input after a shift sequence
1695 * lib/converters.h (RET_SHIFT_ILSEQ): New macro.
1696 (RET_ILSEQ): Define in terms of RET_SHIFT_ILSEQ.
1697 (RET_TOOFEW): Change to avoid collisions with RET_SHIFT_ILSEQ.
1698 (DECODE_SHIFT_ILSEQ, DECODE_TOOFEW): New macros.
1699 * lib/loop_unicode.h (unicode_loop_convert): Take into account the
1700 shift count contained in the negative return values.
1701 * lib/hz.h (hz_mbtowc): When encountering invalid input, store the
1702 modified state and return RET_SHIFT_ILSEQ.
1703 * lib/iso2022_cn.h (iso2022_cn_mbtowc): Likewise.
1704 * lib/iso2022_cnext.h (iso2022_cn_ext_mbtowc): Likewise.
1705 * lib/iso2022_jp.h (iso2022_jp_mbtowc): Likewise.
1706 * lib/iso2022_jp1.h (iso2022_jp1_mbtowc): Likewise.
1707 * lib/iso2022_jp2.h (iso2022_jp2_mbtowc): Likewise.
1708 * lib/iso2022_jp3.h (iso2022_jp3_mbtowc): Likewise.
1709 * lib/iso2022_kr.h (iso2022_kr_mbtowc): Likewise.
1710 * lib/ucs2.h (ucs2_mbtowc): Likewise.
1711 * lib/ucs4.h (ucs4_mbtowc): Likewise.
1712 * lib/utf16.h (utf16_mbtowc): Likewise.
1713 * lib/utf32.h (utf32_mbtowc): Likewise.
1714 * lib/utf7.h (utf7_mbtowc): Likewise.
1715 * lib/utf16be.h (utf16be_mbtowcutf16be_mbtowc): When encountering
1716 invalid input, return RET_SHIFT_ILSEQ.
1717 * lib/utf16le.h (utf16le_mbtowc): Likewise.
1718 * tests/test-shiftseq.c: New file.
1719 * tests/Makefile.in (check): Run test-shiftseq.
1720 (test-shiftseq, test-shiftseq.@OBJEXT@): New rules.
1721 (clean): Remove test-shiftseq executable.
1722 Reported by Roman Rybalko <roman_rybalko@users.sourceforge.net>
1723 at <https://savannah.gnu.org/bugs/?24216>.
1725 2008-09-07 Bruno Haible <bruno@clisp.org>
1727 * man/iconv.3: Clarify the processing of shift-sequences.
1729 2008-09-07 Bruno Haible <bruno@clisp.org>
1731 * m4/libtool.m4: Update from libtool-2.2.6, with modifications:
1732 2008-04-06 Bruno Haible <bruno@clisp.org>
1733 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
1734 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
1736 * m4/ltoptions.m4: Update from libtool-2.2.6.
1737 * m4/ltsugar.m4: Likewise.
1738 * m4/ltversion.m4: Likewise.
1739 * build-aux/ltmain.sh: Likewise.
1741 2008-09-06 Bruno Haible <bruno@clisp.org>
1743 * lib/gbk.h (gbk_wctomb): Fix an out-of-bounds write.
1744 Reported by Roman Rybalko <roman_rybalko@users.sourceforge.net>
1745 at <https://savannah.gnu.org/bugs/?24214>.
1747 2008-06-30 Bruno Haible <bruno@clisp.org>
1749 Fix sed expressions to work with the old sed-3.02 on MSYS.
1750 * windows/windres-options (sed_extract_major, sed_extract_minor,
1751 sed_extract_subminor): Put a semicolon before the closing brace. Use
1752 an i\ command instead of an a\ command.
1753 Reported by Sunil Negi <sunil.negi@morningstar.com>
1754 in <http://article.gmane.org/gmane.comp.gnu.mingw.msys/4410>
1755 via Keith Marshall <keithmarshall@users.sourceforge.net>.
1757 2008-05-22 Bruno Haible <bruno@clisp.org>
1759 * README.woe32: Update with info from GNU gettext's README.woe32.
1761 2008-05-18 Bruno Haible <bruno@clisp.org>
1763 * m4/libtool.m4: Update from libtool-2.2.4, with modifications:
1764 2008-04-06 Bruno Haible <bruno@clisp.org>
1765 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
1766 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
1768 * m4/ltoptions.m4: Update from libtool-2.2.4.
1769 * m4/ltversion.m4: Likewise.
1770 * m4/lt~obsolete.m4: Likewise.
1771 * build-aux/ltmain.sh: Likewise.
1773 2008-04-14 Bruno Haible <bruno@clisp.org>
1775 * tests/Makefile.in (check): Remove *.dSYM directories left over by gcc
1778 2008-04-14 Bruno Haible <bruno@clisp.org>
1780 * preload/configure.ac: Invoke AC_USE_SYSTEM_EXTENSIONS instead of
1781 AC_AIX and AC_MINIX.
1782 * Makefile.devel (AUTOCONF, AUTOHEADER): Require autoconf-2.62.
1783 * preload/Makefile.devel (AUTOCONF): Likewise.
1784 * autogen.sh: Likewise.
1786 2008-04-06 Bruno Haible <bruno@clisp.org>
1788 * m4/libtool.m4: Update from libtool-2.2.2, with modifications:
1789 2008-04-06 Bruno Haible <bruno@clisp.org>
1790 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
1791 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
1793 * m4/ltoptions.m4: New file, from libtool-2.2.2.
1794 * m4/ltsugar.m4: New file, from libtool-2.2.2.
1795 * m4/ltversion.m4: New file, from libtool-2.2.2.
1796 * m4/lt~obsolete.m4: New file, from libtool-2.2.2.
1797 * build-aux/ltmain.sh: New file, from libtool-2.2.2.
1798 * configure.ac: Use LT_INIT instead of AC_PROG_LIBTOOL.
1799 * preload/configure.ac: Likewise.
1801 2008-04-06 Bruno Haible <bruno@clisp.org>
1803 More portable way of building the preloadable library.
1804 * preload/Makefile.devel: New file.
1805 * preload/Makefile.in: New file, based on lib/Makefile.in.
1806 * preload/configure.ac: New file, based on configure.ac.
1807 * Makefile.devel (all): Recurse into preload directory.
1808 * Makefile.in (all, install, installdirs, uninstall, check,
1809 mostlyclean, clean, distclean, maintainer-clean): Recurse into preload
1811 * configure.ac: Likewise.
1812 (OS, GCC, PLUGLIB): Remove definitions.
1813 * lib/Makefile.in (all): Don't depend on PLUGLIB.
1814 (preloadable_libiconv.so, preloadable_libiconv_linux.so,
1815 preloadable_libiconv_solaris.so, preloadable_libiconv_osf.so): Remove
1817 (install, uninstall, clean): Don't handle the preloadable library here.
1819 2008-04-06 Bruno Haible <bruno@clisp.org>
1821 Avoid a gcc warning.
1822 * lib/loop_unicode.h (unicode_loop_convert): Add a cast.
1824 2008-04-06 Bruno Haible <bruno@clisp.org>
1826 * src/iconv.c (print_version): Bump year.
1828 2008-04-06 Bruno Haible <bruno@clisp.org>
1830 Support all possible nl_langinfo(CODESET) results on the respective
1831 platforms, according to libcharset/lib/config.charset.
1832 * lib/encodings.def: Add DEFALIAS statements, conditional on
1833 USE_AIX_ALIASES, USE_HPUX_ALIASES, USE_OSF1_ALIASES,
1834 USE_SOLARIS_ALIASES.
1835 * lib/encodings_aix.def: Add DEFALIAS statements, conditional on
1837 * lib/encodings_osf1.def: Add DEFALIAS statements, conditional on
1839 * lib/genaliases.c (emit_alias): New function, extracted from
1841 (emit_encoding): Use it.
1842 (main): Define DEFALIAS.
1843 * lib/genaliases2.c (counter): New variable, extracted from
1845 (emit_alias): New function, extracted from emit_encoding.
1846 (emit_encoding): Use it.
1847 (main): Define DEFALIAS.
1848 * lib/genflags.c (main): Define DEFALIAS.
1849 * lib/iconv.c (all_encodings): Define DEFALIAS.
1850 Include the system dependent variant of aliases.h on the appropriate
1852 (all_canonical): Include the system dependent variant of canonical.h,
1853 canonical_aix.h, canonical_osf1.h, canonical_local.h on the appropriate
1855 * lib/aliases2.h: Include the system dependent variant of
1856 aliases_aix.h or aliases_osf1.h on the appropriate systems.
1857 * lib/Makefile.in (iconv.lo): Depend on aliases_sysaix.h,
1858 aliases_syshpux.h, aliases_sysosf1.h, aliases_syssolaris.h,
1859 aliases_aix_sysaix.h, lib/aliases_osf1_sysosf1.h, and also
1860 aliases_extra.h, translit.h.
1861 * Makefile.devel (all): Depend on lib/aliases_sysaix.h,
1862 lib/aliases_syshpux.h, lib/aliases_sysosf1.h, lib/aliases_syssolaris.h,
1863 lib/aliases_aix_sysaix.h, lib/aliases_osf1_sysosf1.h.
1864 (lib/aliases_sysaix.h, lib/aliases_syshpux.h, lib/aliases_sysosf1.h,
1865 lib/aliases_syssolaris.h): New rules.
1866 (lib/aliases_aix_sysaix.h): New rule.
1867 (lib/aliases_osf1_sysosf1.h): New rule.
1868 * autogen.sh: Also remove lib/aliases_sysaix.h, lib/aliases_syshpux.h,
1869 lib/aliases_sysosf1.h, lib/aliases_syssolaris.h,
1870 lib/aliases_aix_sysaix.h, lib/aliases_osf1_sysosf1.h.
1872 2008-04-06 Bruno Haible <bruno@clisp.org>
1874 * build-aux/config.libpath: Remove file, brought in by gnulib-tool.
1875 * build-aux/config.rpath: Remove file, brought in by gnulib-tool.
1877 2007-11-11 Bruno Haible <bruno@clisp.org>
1879 * Version 1.12 released.
1881 2007-11-11 Bruno Haible <bruno@clisp.org>
1883 * Makefile.devel (AUTOCONF, AUTOHEADER): Require version 2.61.
1884 (AUTOMAKE, ACLOCAL): Require version 1.10.
1885 (srclib/Makefile.in): Avoid error from automake.
1887 2007-10-26 Bruno Haible <bruno@clisp.org>
1889 * m4/libtool.m4: Update, based on libtool-1.5.24.
1890 * build-aux/ltmain.sh: Update, based on libtool-1.5.24.
1892 2007-10-23 Bruno Haible <bruno@clisp.org>
1894 * build-aux/config.guess: Update to GNU version 2007-07-22.
1895 * build-aux/config.sub: Likewise.
1897 2007-10-23 Bruno Haible <bruno@clisp.org>
1899 * configure.ac: Bump version number to 1.12.
1902 2007-10-23 Bruno Haible <bruno@clisp.org>
1904 Move relocatability infrastructure to gnulib.
1905 * gnulib-local/lib/relocatable.h: Remove file.
1906 * gnulib-local/lib/relocatable.c: Remove file.
1908 2007-10-23 Bruno Haible <bruno@clisp.org>
1910 Update from GNU gettext.
1911 2006-11-26 Bruno Haible <bruno@clisp.org>
1912 * gnulib-local/lib/xalloc.h (xmemdup): Add a typesafe C++
1914 Based on a patch from Paul Eggert in gnulib.
1915 2006-11-06 Bruno Haible <bruno@clisp.org>
1916 * gnulib-local/lib/xalloc.h (xcharalloc): New macro.
1917 (xmemdup): New declaration.
1918 * gnulib-local/lib/xstrdup.c (xmemdup): New function.
1919 2006-11-03 Bruno Haible <bruno@clisp.org>
1920 * gnulib-local/lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC,
1921 XCALLOC): New macros.
1922 (xnboundedmalloc): New inline function.
1923 * gnulib-local/lib/xstrdup.c (xstrdup): Use XNMALLOC instead of
1925 2006-11-02 Bruno Haible <bruno@clisp.org>
1926 * lib/xalloc.h (xnmalloc): New declaration. From gnulib
1928 * lib/xmalloc.c (fixup_null_alloc): Write NULL, not 0.
1929 (xnmalloc): New function.
1931 2007-10-23 Bruno Haible <bruno@clisp.org>
1933 Moved module xreadlink to gnulib.
1934 * gnulib-local/modules/xreadlink: Remove file.
1935 * gnulib-local/lib/xreadlink.h: Remove file.
1936 * gnulib-local/lib/xreadlink.c: Remove file.
1937 * gnulib-local/m4/xreadlink.m4: Remove file.
1939 2007-10-07 Bruno Haible <bruno@clisp.org>
1941 Update program license to GPLv3.
1942 * COPYING: Replace with GPL 3.
1943 * windows/iconv.rc (Comments): Update.
1945 2007-10-07 Bruno Haible <bruno@clisp.org>
1947 * gnulib-local/lib/alloca.in.h: Renamed from gnulib-local/lib/alloca_.h.
1949 2007-03-30 Bruno Haible <bruno@clisp.org>
1951 * gnulib-local/lib/alloca_.h: Change prefix of double-inclusion guard
1954 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
1956 * gnulib-local/lib/alloca_.h (alloca) [defined alloca]: Don't define or
1959 2007-09-29 Bruno Haible <bruno@clisp.org>
1961 * autogen.sh (GNULIB_CVS_ROOT): Change to read-only git mirror
1962 valid since 2007-09-19.
1964 2007-07-07 Bruno Haible <bruno@clisp.org>
1966 * autogen.sh: Add an option --skip-gnulib.
1968 2007-07-07 Bruno Haible <bruno@clisp.org>
1970 * gnulib-local/lib/uniwidth.h: Remove file, moved to gnulib.
1971 * gnulib-local/lib/width.c: Remove file, moved to gnulib.
1972 * gnulib-local/lib/cjk.h: Remove file, moved to gnulib.
1973 * gnulib-local/modules/uniwidth: Remove file.
1974 * Makefile.devel (GNULIB_MODULES): Remove uniwidth, add uniwidth/width.
1975 * src/iconv.c: Include uniwidth/cjk.h instead of cjk.h.
1977 2007-06-30 Bruno Haible <bruno@clisp.org>
1979 * src/iconv.c (print_version): Use the standard --version output, see
1980 <https://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00302.html>.
1982 2007-06-30 Bruno Haible <bruno@clisp.org>
1984 * autogen.sh: New file.
1985 * DEPENDENCIES: New file.
1986 * HACKING: New file.
1988 2007-06-30 Bruno Haible <bruno@clisp.org>
1990 * src/iconv.c: Provide translator comments for many messages.
1991 (conversion_error_EILSEQ, conversion_error_EINVAL,
1992 conversion_error_other): New functions, extracted from convert.
1993 (convert): Use them.
1994 Reported by Tim Van Holder <tim.van.holder@telenet.be>.
1996 2007-06-09 Bruno Haible <bruno@clisp.org>
1998 * gnulib-local/lib/relocwrapper.c: Remove file.
2000 2007-05-27 Bruno Haible <bruno@clisp.org>
2002 * windows/libiconv.rc: New file.
2003 * windows/iconv.rc: New file.
2004 * windows/windres-options: New file.
2005 * configure.ac (WOE32): New variable.
2006 (WINDRES) [WOE32]: New variable.
2007 * lib/Makefile.in (WINDRES): New variable.
2008 (PACKAGE_VERSION): New variable.
2009 (OBJECTS_EXP_yes): Renamed from OBJECTS_yes.
2010 (OBJECTS_EXP_no): Renamed from OBJECTS_no.
2011 (OBJECTS_RES_yes, OBJECTS_RES_no): New variables.
2012 (OBJECTS): Add one of them.
2013 (libiconv.res): New rule.
2014 (clean): Remove also libiconv.res.
2015 * src/Makefile.in (WINDRES): New variable.
2016 (PACKAGE_VERSION): New variable.
2017 (OBJECTS_RES_yes, OBJECTS_RES_no): New variables.
2018 (all, iconv_no_i18n, install): Use them.
2019 (iconv.res): New rule.
2020 (clean): Remove also iconv.res.
2021 Suggested and inspired by work by Perry Rapp.
2023 2007-05-27 Bruno Haible <bruno@clisp.org>
2025 Follow broken iconv() prototype in POSIX.
2026 * configure.ac (ICONV_CONST): Set to empty if the system has no iconv.
2027 * lib/config.h.in (ICONV_CONST): Change default value to an empty
2029 * src/iconv.c (ICONV_CONST): Change default value to empty.
2030 Reported by Andreas Krennmair <ak@synflood.at>.
2032 2007-05-25 Bruno Haible <bruno@clisp.org>
2034 * tools/Makefile (ALL): Add rk1048.h.
2035 (rk1048.h): New rule.
2036 * lib/encodings.def: Add RK1048.
2037 * lib/rk1048.h: New file.
2038 * lib/converters.h: Include it.
2039 * README, man/iconv_open.3: Add RK1048.
2040 * NOTES: Mention RK1048.
2041 * tests/RK1048.TXT: New file.
2042 * tests/Makefile.in (check): Also test RK1048.
2043 Suggested by Timur Birsh <team9@host.kz>.
2045 2007-04-24 Bruno Haible <bruno@clisp.org>
2047 * man/iconv_open.3: Tweak explanation of TRANSLIT.
2048 Reported by Perry Rapp.
2050 2007-04-23 Bruno Haible <bruno@clisp.org>
2052 * tests/check-subst: Use the output of 'printf' only if it didn't
2053 crash. Needed to work around a buffer overflow in Solaris /bin/printf.
2054 Reported by Arto C. Nirkko <anirkko@insel.ch>.
2056 2007-04-23 Bruno Haible <bruno@clisp.org>
2058 * lib/iconv.c (iconv_open, iconv_canonicalize): Treat native Woe32
2059 systems like those which define __STDC_ISO_10646__.
2060 Reported by Keith Marshall <keithmarshall@users.sourceforge.net>.
2062 2007-03-31 Bruno Haible <bruno@clisp.org>
2064 * man/iconv.1: Use HYPHEN-MINUS signs instead of HYPHENs where
2066 * man/iconv_open.3: Likewise.
2067 * man/iconv.3: Likewise.
2068 * man/iconv_close.3: Likewise.
2069 * man/iconvctl.3: Likewise.
2071 2007-03-31 Bruno Haible <bruno@clisp.org>
2073 * man/iconv.1: Mark as POSIX compliant.
2074 * man/iconv_open.3: Likewise.
2075 * man/iconv.3: Likewise.
2076 * man/iconv_close.3: Likewise.
2078 * man/*.[13]: Syntactic simplifications.
2080 2007-03-19 Bruno Haible <bruno@clisp.org>
2082 Assume that mkinstalldirs also creates the necessary parent directories.
2083 * Makefile.in (install, installdirs): Don't explicitly create the
2085 * lib/Makefile.in (install, installdirs): Likewise.
2086 * src/Makefile.in (install, installdirs): Likewise.
2087 * man/Makefile.in (install, installdirs): Likewise.
2088 Reported by Thomas Klausner <tk@giga.or.at>.
2090 2007-03-04 Bruno Haible <bruno@clisp.org>
2092 * Makefile.devel (GNULIB_MODULES): Add relocatable-prog. Remove
2093 relocatable, relocwrapper.
2094 * configure.ac: Invoke gl_RELOCATABLE instead of AC_RELOCATABLE.
2095 * gnulib-local/modules/progreloc: Remove file.
2096 * gnulib-local/modules/relocatable: Remove file.
2097 * gnulib-local/modules/relocwrapper: Remove file.
2098 * gnulib-local/m4/relocatable.m4: Remove file.
2099 * gnulib-local/lib/strerror.c.diff: Remove file.
2100 * src/Makefile.in: Remove SET_RELOCATABLE invocation. Instead get
2101 RELOCATABLE_LDFLAGS and INSTALL_PROGRAM_ENV.
2103 2007-02-19 Bruno Haible <bruno@clisp.org>
2105 * gnulib-local/lib/xmalloc.c: Don't include exit.h.
2106 * src/iconv.c: Likewise.
2108 2007-02-16 Juan Manuel Guerrero <juan.guerrero@gmx.de>
2112 2007-02-03 Bruno Haible <bruno@clisp.org>
2114 * tools/Makefile (ksc5601.h): Add one extra character.
2115 * lib/ksc5601.h: Regenerated.
2116 * lib/cp949.h (cp949_mbtowc, cp949_wctomb): Exclude the new character.
2117 * tests/EUC-KR.TXT: Add CIRCLED HANGUL IEUNG U.
2118 * tests/JOHAB.TXT: Likewise.
2119 Reported by Jungshik Shin (신정식, 申政湜) <jungshik@google.com>.
2121 * lib/euc_kr.h: Update comments.
2122 * lib/johab.h: Likewise.
2124 2007-02-03 Bruno Haible <bruno@clisp.org>
2126 * tools/cjk_tab_to_h.c (output_title): Bump copyright year.
2128 2007-01-26 Bruno Haible <bruno@clisp.org>
2130 Moved streq.h to gnulib.
2131 * gnulib-local/lib/streq.h: Remove file.
2132 * gnulib-local/modules/uniwidth (Files): Remove lib/streq.h.
2133 (Depends-on): Add streq.
2134 (lib_SOURCES): Remove streq.h.
2136 2007-01-26 Bruno Haible <bruno@clisp.org>
2138 Moved unitypes.h to gnulib.
2139 * gnulib-local/lib/unitypes.h: Remove file.
2140 * gnulib-local/modules/uniwidth (Files): Remove lib/unitypes.h.
2141 (Depends-on): Add unitypes.
2142 (lib_SOURCES): Remove unitypes.h.
2144 2007-01-26 Bruno Haible <bruno@clisp.org>
2146 Moved canonicalize to gnulib.
2147 * gnulib-local/modules/canonicalize: Remove file.
2148 * gnulib-local/lib/canonicalize.h: Remove file.
2149 * gnulib-local/lib/canonicalize.c: Remove file.
2150 * gnulib-local/m4/canonicalize.m4: Remove file.
2151 * gnulib-local/modules/progreloc (Depends-on): Replace 'canonicalize'
2152 with 'canonicalize-lgpl'.
2154 2006-12-20 Bruno Haible <bruno@clisp.org>
2156 * lib/Makefile.in (install): On AIX, add the contents of
2157 /lib/libiconv.a to libiconv.a.
2159 2006-12-20 Bruno Haible <bruno@clisp.org>
2161 * Makefile.devel (all): Depend on srclib/Makefile.gnulib, not
2163 (aclocal.m4): Likewise. Touch the resulting file, since aclocal not
2165 (srclib/Makefile.gnulib): Renamed from srclib/Makefile.am. Pass
2166 option --makefile-name.
2167 (srclib/Makefile.in): Depend on srclib/Makefile.gnulib too.
2168 * srclib/Makefile.am: New file that includes srclib/Makefile.gnulib.
2170 2006-10-31 Bruno Haible <bruno@clisp.org>
2172 Update from GNU gettext.
2173 2006-10-29 Bruno Haible <bruno@clisp.org>
2174 Make it compile in C++ mode.
2175 * gnulib-local/lib/xalloc.h (xrealloc): Define as template
2176 with appropriate return type.
2177 * gnulib-local/lib/xstrdup.c (xstrdup): Cast xmalloc result.
2178 2006-10-26 Bruno Haible <bruno@clisp.org>
2179 * gnulib-local/modules/canonicalize (Makefile.am): Remove
2180 EXTRA_DIST. Now done by gnulib-tool.
2181 * gnulib-local/modules/relocatable (Makefile.am): Likewise.
2182 * gnulib-local/modules/relocwrapper (Makefile.am): Likewise.
2183 2006-10-25 Bruno Haible <bruno@clisp.org>
2184 * gnulib-local/m4/relocatable.m4 (AC_RELOCATABLE_BODY):
2185 Renamed from AC_RELOCATABLE, without the AC_LIBOBJ invocation.
2186 (AC_RELOCATABLE): New macro. Invoke AC_LIBOBJ here.
2187 * gnulib-local/modules/relocwrapper (configure.ac): Invoke
2188 AC_RELOCATABLE instead of requiring it.
2189 2006-10-12 Bruno Haible <bruno@clisp.org>
2190 * gnulib-local/modules/canonicalize (Makefile.am): Distribute
2191 all files in lib/ through EXTRA_DIST.
2192 * gnulib-local/modules/relocatable (Makefile.am): Likewise.
2193 2006-09-14 Bruno Haible <bruno@clisp.org>
2194 * gnulib-local/lib/canonicalize.c: Include <config.h>
2196 * gnulib-local/lib/relocatable.c: Likewise.
2197 * lib/relocatable.c: Likewise.
2198 * gnulib-local/lib/relocwrapper.c: Likewise.
2199 * gnulib-local/lib/xmalloc.c: Likewise.
2200 * gnulib-local/lib/xreadlink.c: Likewise.
2201 * gnulib-local/lib/xstrdup.c: Likewise.
2202 2006-08-02 Bruno Haible <bruno@clisp.org>
2203 * gnulib-local/modules/canonicalize: Put under LGPL.
2204 * gnulib-local/modules/relocatable: Likewise.
2205 2006-07-18 Bruno Haible <bruno@clisp.org>
2206 * gnulib-local/xalloc.h (xzalloc): New declaration.
2207 * gnulib-local/xmalloc.c (xzalloc): New function.
2209 2006-10-24 Bruno Haible <bruno@clisp.org>
2211 * man/Makefile.in (PACKAGE): New variable. Needed for docdir.
2212 Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
2214 2006-10-14 Bruno Haible <bruno@clisp.org>
2216 * COPYING: New file.
2217 * README: Clarify copyright of the iconv program.
2218 Reported by Charles Wilson <cwilson@fastmail.fm>.
2220 2006-08-08 Bruno Haible <bruno@clisp.org>
2222 * INSTALL.generic: Add a recommendation for Tru64.
2223 Reported by Gary V. Vaughan <gary@gnu.org>.
2225 2006-07-29 Bruno Haible <bruno@clisp.org>
2227 * tests/check-subst: Set CHARSETALIASDIR.
2228 Needed so that "make check" works before "make install" on systems
2231 2006-07-29 Bruno Haible <bruno@clisp.org>
2233 * Makefile.devel (aclocal.m4): Depend on srclib/Makefile.am.
2234 (AUTOCONF_FILES): Add the existing *.m4 files.
2236 2006-07-29 Bruno Haible <bruno@clisp.org>
2238 * gnulib-local/lib/xreadlink.c: Assume <stdlib.h> exists.
2239 * src/iconv.c: Assume <locale.h> exists.
2240 * configure.ac: Remove tests for <locale.h>, <stddef.h>, <stdlib.h>,
2243 2006-07-29 Bruno Haible <bruno@clisp.org>
2245 * configure.ac: Remove obsolete calls AC_PROG_GCC_TRADITIONAL,
2246 AC_ISC_POSIX, AC_HEADER_STDC.
2248 2006-07-29 Bruno Haible <bruno@clisp.org>
2250 * configure.ac: Remove macro invocations that are redundant through
2251 gl_EARLY and gl_INIT.
2253 2006-07-29 Bruno Haible <bruno@clisp.org>
2255 * gnulib-local/m4/alloca.m4 (gl_PREREQ_ALLOCA): Add a dummy statement.
2256 Avoids a sh syntax error.
2258 2006-07-29 Bruno Haible <bruno@clisp.org>
2260 * gnulib-local/m4/relocatable.m4: Add comments.
2262 2006-07-29 Bruno Haible <bruno@clisp.org>
2264 * gnulib-local/modules/libiconv-misc: New file.
2265 * Makefile.devel (GNULIB_MODULES): Add libiconv-misc.
2267 * Makefile.devel (srclib/Makefile.am): Pass --no-libtool.
2269 2006-07-29 Bruno Haible <bruno@clisp.org>
2271 Note: gnulib macros no longer invoke AC_TYPE_SIZE_T nor
2272 AC_CHECK_TYPE([ptrdiff_t], , [AC_DEFINE([ptrdiff_t], [long], ...)])
2273 because we now assume that the system defines size_t and ptrdiff_t.
2275 2006-07-29 Bruno Haible <bruno@clisp.org>
2277 Switch to using gnulib.
2278 * configure.ac (AC_PREREQ): Require autoconf-2.60.
2279 Invoke gl_EARLY and gl_INIT.
2280 * Makefile.devel (all): Depend on srclib/Makefile.am.
2281 (aclocal.m4): Pass -I srcm4 to aclocal. Simplify dependencies, assuming
2283 (GNULIB_MODULES): New variable.
2284 (srclib/Makefile.am): New rule.
2285 * gnulib-local: New directory.
2286 * gnulib-local/m4/alloca.m4: Moved here from m4/alloca.m4.
2287 * gnulib-local/m4/canonicalize.m4: Moved here from m4/canonicalize.m4.
2288 * gnulib-local/m4/relocatable.m4: Moved here from m4/relocatable.m4.
2289 * gnulib-local/m4/xreadlink.m4: Moved here from m4/xreadlink.m4.
2290 * gnulib-local/lib/alloca_.h: Moved here from srclib/alloca_.h.
2291 * gnulib-local/lib/canonicalize.h: Moved here from srclib/canonicalize.h.
2292 * gnulib-local/lib/canonicalize.c: Moved here from srclib/canonicalize.c.
2293 * gnulib-local/lib/cjk.h: Moved here from srclib/cjk.h.
2294 * gnulib-local/lib/error.h.diff: New file.
2295 * gnulib-local/lib/progname.h.diff: New file.
2296 * gnulib-local/lib/relocatable.h: Moved here from srclib/relocatable.h.
2297 * gnulib-local/lib/relocatable.c: Moved here from srclib/relocatable.c.
2298 * gnulib-local/lib/relocwrapper.c: Moved here from srclib/relocwrapper.c.
2299 * gnulib-local/lib/streq.h: Moved here from srclib/streq.h.
2300 * gnulib-local/lib/strerror.c.diff: New file.
2301 * gnulib-local/lib/unitypes.h: Moved here from srclib/unitypes.h.
2302 * gnulib-local/lib/uniwidth.h: Moved here from srclib/uniwidth.h.
2303 * gnulib-local/lib/width.c: Moved here from srclib/width.c.
2304 * gnulib-local/lib/xalloc.h: Moved here from srclib/xalloc.h.
2305 * gnulib-local/lib/xmalloc.c: Moved here from srclib/xmalloc.c.
2306 * gnulib-local/lib/xstrdup.c: Moved here from srclib/xstrdup.c.
2307 * gnulib-local/lib/xreadlink.h: Moved here from srclib/xreadlink.h.
2308 * gnulib-local/lib/xreadlink.c: Moved here from srclib/xreadlink.c.
2309 * gnulib-local/modules/canonicalize: New file.
2310 * gnulib-local/modules/progreloc: New file.
2311 * gnulib-local/modules/relocatable: New file.
2312 * gnulib-local/modules/relocwrapper: New file.
2313 * gnulib-local/modules/uniwidth: New file.
2314 * gnulib-local/modules/xalloc: New file.
2315 * gnulib-local/modules/xreadlink: New file.
2317 * m4/allocsa.m4: Remove file. Now taken from gnulib.
2318 * m4/codeset.m4: Likewise.
2319 * m4/eealloc.m4: Likewise.
2320 * m4/error.m4: Likewise.
2321 * m4/extensions.m4: Likewise.
2322 * m4/full-header-path.m4: Likewise.
2323 * m4/gettext.m4: Likewise.
2324 * m4/glibc21.m4: Likewise.
2325 * m4/iconv.m4: Likewise.
2326 * m4/intmax.m4: Likewise.
2327 * m4/inttypes-h.m4: Likewise.
2328 * m4/inttypes_h.m4: Likewise.
2329 * m4/isc-posix.m4: Likewise.
2330 * m4/lcmessage.m4: Likewise.
2331 * m4/lib-ld.m4: Likewise.
2332 * m4/lib-link.m4: Likewise.
2333 * m4/lib-prefix.m4: Likewise.
2334 * m4/longdouble.m4: Likewise.
2335 * m4/longlong.m4: Likewise.
2336 * m4/mbstate_t.m4: Likewise.
2337 * m4/nls.m4: Likewise.
2338 * m4/onceonly.m4: Likewise.
2339 * m4/pathmax.m4: Likewise.
2340 * m4/po.m4: Likewise.
2341 * m4/printf-posix.m4: Likewise.
2342 * m4/progtest.m4: Likewise.
2343 * m4/readlink.m4: Likewise.
2344 * m4/setenv.m4: Likewise.
2345 * m4/signed.m4: Likewise.
2346 * m4/size_max.m4: Likewise.
2347 * m4/ssize_t.m4: Likewise.
2348 * m4/stdbool.m4: Likewise.
2349 * m4/stdint.m4: Likewise.
2350 * m4/stdint_h.m4: Likewise.
2351 * m4/strerror.m4: Likewise.
2352 * m4/strerror_r.m4: Likewise.
2353 * m4/unistd_h.m4: Likewise.
2354 * m4/unlocked-io.m4: Likewise.
2355 * m4/visibility.m4: Likewise.
2356 * m4/wchar_t.m4: Likewise.
2357 * m4/wint_t.m4: Likewise.
2359 * srclib/allocsa.h: Remove file. Now taken from gnulib.
2360 * srclib/allocsa.c: Likewise.
2361 * srclib/binary-io.h: Likewise.
2362 * srclib/error.h: Likewise.
2363 * srclib/error.c: Likewise.
2364 * srclib/exit.h: Likewise.
2365 * srclib/gettext.h: Likewise.
2366 * srclib/memmove.c: Likewise.
2367 * srclib/pathmax.h: Likewise.
2368 * srclib/progname.h: Likewise.
2369 * srclib/progname.c: Likewise.
2370 * srclib/progreloc.c: Likewise.
2371 * srclib/readlink.c: Likewise.
2372 * srclib/setenv.h: Likewise.
2373 * srclib/setenv.c: Likewise.
2374 * srclib/stdbool_.h: Likewise.
2375 * srclib/stdint_.h: Likewise.
2376 * srclib/strerror.c: Likewise.
2377 * srclib/unlocked-io.h: Likewise.
2378 * srclib/unsetenv.c: Likewise.
2379 * srclib/Makefile.am: Remove file.
2381 2006-07-27 Bruno Haible <bruno@clisp.org>
2383 Remove OS/2 build support that doesn't assume GNU make and GNU bash.
2384 * README.os2: Remove file.
2385 * Makefile.os2: Remove file.
2386 * lib/Makefile.os2: Remove file.
2387 * src/Makefile.os2: Remove file.
2388 * man/Makefile.os2: Remove file.
2389 * tests/Makefile.os2: Remove file.
2390 * tests/check-stateful.cmd: Remove file.
2391 * tests/check-stateless.cmd: Remove file.
2392 * tests/check-translit.cmd: Remove file.
2394 2006-07-25 Bruno Haible <bruno@clisp.org>
2396 Remove MSVC/nmake build support.
2397 * windows: Remove directory.
2398 * Makefile.msvc: Remove file.
2399 * lib/Makefile.msvc: Remove file.
2400 * srclib/Makefile.msvc: Remove file.
2401 * src/Makefile.msvc: Remove file.
2402 * tests/Makefile.msvc: Remove file.
2403 * man/Makefile.msvc: Remove file.
2404 * po/Rules-msvc: Remove file.
2405 * po/Makefile.msvc.sh: Remove file.
2406 * Makefile.devel (config.h.msvc, lib/config.h.msvc): Remove rules.
2407 (include/iconv.h.msvc-static, include/iconv.h.msvc-shared): Remove
2409 (po/Makefile.msvc): Remove rule.
2412 2006-07-25 Bruno Haible <bruno@clisp.org>
2415 * vms: Remove directory.
2416 * Makefile.vms: Remove file.
2417 * lib/Makefile.vms: Remove file.
2418 * srclib/Makefile.vms: Remove file.
2419 * src/Makefile.vms: Remove file.
2420 * tests/Makefile.vms: Remove file.
2421 * man/Makefile.vms: Remove file.
2422 * Makefile.devel (config.h_vms, lib/config.h_vms): Remove rules.
2423 (include/iconv.h_vms): Remove rule.
2426 2006-07-23 Bruno Haible <bruno@clisp.org>
2428 * lib/Makefile.in (libiconv.la): Use the CFLAGS during linking.
2429 * src/Makefile.in (iconv_no_i18n): Likewise.
2430 (install): Likewise.
2431 * tests/Makefile.in (table-from, table-to): Likewise.
2432 Needed because the CFLAGS can e.g. trigger profiling.
2433 Reported by Russell Aspinwall <russell.aspinwall@flomerics.co.uk>.
2435 2006-07-19 Bruno Haible <bruno@clisp.org>
2437 * Version 1.11 released.
2439 2006-07-19 Bruno Haible <bruno@clisp.org>
2441 * srclib/Makefile.am (libicrt_a_SOURCES): Remove error.h, error.c.
2442 (LIBADD_SOURCE): Add them here.
2444 2006-07-19 Bruno Haible <bruno@clisp.org>
2446 * build-aux/config.guess: Update to GNU version 2006-07-02.
2447 * build-aux/config.sub: Likewise.
2449 2006-07-14 Bruno Haible <bruno@clisp.org>
2451 * lib/Makefile.in (clean): Remove also *.stackdump.
2452 * src/Makefile.in (clean): Likewise.
2453 * tests/Makefile.in (clean): Likewise.
2455 2006-07-14 Bruno Haible <bruno@clisp.org>
2457 * src/Makefile.in (clean): Remove also iconv_no_i18n. Needed for
2459 * tests/Makefile.in (clean): Remove also the programs, without
2460 EXEEXT. Needed for cygwin or mingw.
2461 * Makefile.in (mostlyclean, clean, distclean, maintainer-clean):
2462 Remove also bin directory. Needed for cygwin and mingw.
2464 2006-07-03 Bruno Haible <bruno@clisp.org>
2466 * src/iconv.c (check_subst_formatstring): Use ngettext.
2467 (subst_wc_to_mb_fallback, subst_mb_to_mb_fallback): Fix error messages
2468 after 2006-01-22 change.
2469 * configure.ac: Require a gettext version with ngettext.
2471 2006-06-28 Bruno Haible <bruno@clisp.org>
2473 * m4/gettext.m4: Update from GNU gettext.
2474 * m4/po.m4: Update from GNU gettext.
2476 2006-06-27 Bruno Haible <bruno@clisp.org>
2478 * Makefile.devel (AUTOCONF, AUTOHEADER): Use autoconf-2.60.
2479 * Makefile.in (datarootdir): New variable.
2480 (install, installdirs, uninstall): Also pass datarootdir.
2481 * configure.ac (mandir): Remove customization.
2482 * man/Makefile.in (datarootdir): New variable.
2483 (docdir, htmldir): Use autoconf-substituted value.
2484 * src/Makefile.in (datarootdir): New variable.
2485 (localedir): Use autoconf-substituted value.
2487 2006-06-27 Bruno Haible <bruno@clisp.org>
2489 * m4/stdint.m4: Update from gnulib.
2490 * srclib/stdint_.h: Update from gnulib.
2491 * srclib/Makefile.am: Update.
2493 2006-06-17 Bruno Haible <bruno@clisp.org>
2495 * srclib/unsetenv.c: Update from GNU gettext.
2496 * srclib/xreadlink.c: Likewise.
2498 2006-06-16 Bruno Haible <bruno@clisp.org>
2500 * m4/full-header-path.m4: New file, from gnulib.
2501 * m4/size_max.m4: New file, from gnulib.
2502 * m4/stdint.m4: Update from gnulib.
2503 * srclib/stdint_.h: Update from gnulib.
2504 * srclib/Makefile.am (stdint.h): Likewise.
2505 * Makefile.devel (aclocal.m4): Update dependencies.
2507 2006-06-16 Bruno Haible <bruno@clisp.org>
2509 * m4/ssize_t.m4: Update from GNU gettext.
2511 2006-06-12 Bruno Haible <bruno@clisp.org>
2513 * m4/gettext.m4: Update from GNU gettext.
2514 * m4/inttypes-h.m4: New file, from GNU gettext.
2515 * m4/inttypes.m4: Remove file.
2516 * m4/stdint.m4 (gl_STDINT_H): Update.
2517 * Makefile.devel (aclocal.m4): Update dependencies.
2519 2006-06-10 Bruno Haible <bruno@clisp.org>
2521 * src/iconv.c (error) [NO_I18N]: Define here instead of including
2522 error.h. Fixes link failure introduced on 2006-01-22.
2524 2006-03-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2526 * m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [ linux ]: Avoid warning when
2527 "parsing" /etc/ld.so.conf and empty /etc/ld.so.conf.d.
2529 2006-05-20 Bruno Haible <bruno@clisp.org>
2531 * tests/BIG5-HKSCS-1999-snippet: New file.
2532 * tests/BIG5-HKSCS-1999-snippet.UTF-8: New file.
2533 * tests/BIG5-HKSCS-2001-snippet: New file.
2534 * tests/BIG5-HKSCS-2001-snippet.UTF-8: New file.
2535 * tests/BIG5-HKSCS-2004-snippet: New file.
2536 * tests/BIG5-HKSCS-2004-snippet.UTF-8: New file.
2537 * tests/Makefile.in (check): Test also the stateful parts of
2538 BIG5-HKSCS:1999, BIG5-HKSCS:2001, BIG5-HKSCS:2004.
2540 2006-05-17 Bruno Haible <bruno@clisp.org>
2542 Implement newer releases of BIG5-HKSCS.
2543 * tools/Makefile (ALL): Remove hkscs.h, add hkscs1999.h, hkscs2001.h,
2545 (hkscs.h): Remove rule.
2546 (hkscs1999.h, hkscs2001.h, hkscs2004.h): New rules.
2547 * tools/cjk_tab_to_h.c (output_title): Update year.
2548 (main): Recognize hkscs1999, hkscs2001, hkscs2004.
2549 * lib/encodings.def: Rename BIG5-HKSCS to BIG5-HKSCS:1999. Add
2550 BIG5-HKSCS:2001, BIG5-HKSCS:2004. Make all three stateful.
2551 * lib/hkscs.h: Remove file.
2552 * lib/hkscs1999.h: New file.
2553 * lib/hkscs2001.h: New file.
2554 * lib/hkscs2004.h: New file.
2555 * lib/big5hkscs.h: Remove file.
2556 * lib/big5hkscs1999.h: New file.
2557 * lib/big5hkscs2001.h: New file.
2558 * lib/big5hkscs2004.h: New file.
2559 * lib/converters.h: Include the new files.
2560 * README, man/iconv_open.3: Add BIG5-HKSCS:1999, BIG5-HKSCS:2001.
2561 * tests/BIG5-HKSCS.TXT: Remove file.
2562 * tests/BIG5-HKSCS.IRREVERSIBLE.TXT: Remove file.
2563 * tests/BIG5-HKSCS-1999.TXT: New file.
2564 * tests/BIG5-HKSCS-1999.IRREVERSIBLE.TXT: New file.
2565 * tests/BIG5-HKSCS-2001.TXT: New file.
2566 * tests/BIG5-HKSCS-2001.IRREVERSIBLE.TXT: New file.
2567 * tests/BIG5-HKSCS-2004.TXT: New file.
2568 * tests/BIG5-HKSCS-2004.IRREVERSIBLE.TXT: New file.
2569 * tests/check-stateless: Convert colon in the charset name to a dash in
2571 * tests/Makefile.in (check): Check BIG5-HKSCS:1999, BIG5-HKSCS:2001,
2572 BIG5-HKSCS:2004 instead of just BIG5-HKSCS.
2573 * tests/Makefile.msvc (check): Don't check BIG5-HKSCS.
2574 * tests/Makefile.os2 (check): Likewise.
2576 2006-05-17 Bruno Haible <bruno@clisp.org>
2578 * srclib/progreloc.c: Update from GNU gettext.
2580 2006-05-16 Bruno Haible <bruno@clisp.org>
2582 * src/Makefile.in (clean): Use EXEEXT.
2583 * tests/Makefile.in (check, clean): Likewise.
2585 2006-05-15 Bruno Haible <bruno@clisp.org>
2587 * configure.ac: Move some checks before AC_RELOCATABLE.
2589 2006-05-15 Bruno Haible <bruno@clisp.org>
2591 Support for building shared libraries on mingw and Cygwin.
2592 * configure.ac (WOE32DLL, DLL_VARIABLE): New variables.
2593 * include/iconv.h.in (_libiconv_version): Mark as DLL_VARIABLE.
2594 * woe32dll/export.h: New file, from GNU gettext.
2595 * woe32dll/iconv-exports.h: New file.
2596 * Makefile.devel (include/iconv.h_vms, include/iconv.h.msvc-static,
2597 include/iconv.h.msvc-shared): Remove the DLL_VARIABLE annotation.
2598 * lib/Makefile.in (INCLUDES): Add -I for parent directory.
2599 (LDFLAGS): Add WOE32DLL dependent flags.
2600 (LDFLAGS_yes, LDFLAGS_no): New variables.
2601 (OBJECTS): Add WOE32DLL dependent objects.
2602 (OBJECTS_yes, OBJECTS_no): New variables.
2603 (iconv-exports.lo): New rule.
2605 2006-05-15 Bruno Haible <bruno@clisp.org>
2607 * srclib/gettext.h: Update from GNU gettext.
2608 * srclib/pathmax.h: Update from GNU gettext.
2609 * srclib/progreloc.c: Update from GNU gettext.
2610 * srclib/unsetenv.c: Update from GNU gettext.
2611 * srclib/Makefile.am: Add snippet for creation of unistd.h.
2612 * m4/extensions.m4: Update from GNU gettext.
2613 * m4/gettext.m4: Update from GNU gettext.
2614 * m4/lib-ld.m4: Update from GNU gettext.
2615 * m4/lib-link.m4: Update from GNU gettext.
2616 * m4/lib-prefix.m4: Update from GNU gettext.
2617 * m4/longdouble.m4: Update from GNU gettext.
2618 * m4/nls.m4: Update from GNU gettext.
2619 * m4/onceonly.m4: Update from GNU gettext.
2620 * m4/po.m4: Update from GNU gettext.
2621 * m4/relocatable.m4: Update from GNU gettext.
2622 * m4/unistd_h.m4: New file, from GNU gettext.
2623 * Makefile.devel (aclocal.m4): Depend on it.
2624 * configure.ac: Invoke gl_HEADER_UNISTD.
2626 2006-05-14 Bruno Haible <bruno@clisp.org>,
2627 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2629 * m4/libtool.m4 [ linux ] (AC_LIBTOOL_LANG_CXX_CONFIG)
2630 (AC_LIBTOOL_POSTDEP_PREDEP, AC_LIBTOOL_PROG_COMPILER_PIC)
2631 (AC_LIBTOOL_PROG_LD_SHLIBS): Add support for Sun C 5.9,
2632 Sun C++ 5.9, and Sun Fortran 8.3 on Linux.
2634 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
2636 * m4/libtool.m4: On Cygwin, like on mingw, define DLL_EXPORT when
2637 compiling a shared library object.
2639 2006-05-15 Bruno Haible <bruno@clisp.org>
2641 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
2643 2006-03-31 Juan Manuel Guerrero <juan.guerrero@gmx.de>
2647 2006-01-23 Bruno Haible <bruno@clisp.org>
2649 * configure.ac: Invoke gl_ALLOCSA.
2651 * Makefile.devel (aclocal.m4): Depend on $(CONFIGURES_IN).
2653 2006-01-22 Bruno Haible <bruno@clisp.org>
2655 * src/iconv.c (xmalloc, xalloc_die) [NO_I18N]: Define to avoid using
2658 2006-01-22 Bruno Haible <bruno@clisp.org>
2660 * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 6:0:4.
2662 2006-01-22 Bruno Haible <bruno@clisp.org>
2664 * src/iconv.c: Include error.h, exit.h.
2665 (print_version): Use EXIT_SUCCESS.
2666 (check_subst_formatstring, subst_mb_to_uc_fallback,
2667 subst_uc_to_mb_fallback, subst_mb_to_wc_fallback,
2668 subst_wc_to_mb_fallback, subst_mb_to_mb_fallback, convert, main): Use
2669 error() instead of fprintf to stderr.
2671 2006-01-22 Bruno Haible <bruno@clisp.org>
2673 New feature: character-dependent substitutions.
2674 * include/iconv.h.in (iconv_unicode_mb_to_uc_fallback,
2675 iconv_unicode_uc_to_mb_fallback, iconv_wchar_mb_to_wc_fallback,
2676 iconv_wchar_wc_to_mb_fallback): New types.
2677 (struct iconv_fallbacks): New structure type.
2678 (ICONV_SET_FALLBACKS): New macro.
2679 * configure.ac: Invoke gt_TYPE_WCHAR_T and substitute HAVE_WCHAR_T.
2680 * Makefile.os2 (all): Also substitute @HAVE_WCHAR_T@ in build/iconv.h.
2681 * Makefile.devel (include/iconv.h_vms, include/iconv.h.msvc-static,
2682 include/iconv.h.msvc-shared): Also substitute @HAVE_WCHAR_T@.
2683 * lib/converters.h (struct conv_struct): Add field 'fallbacks'.
2684 * lib/loop_unicode.h (struct uc_to_mb_fallback_locals): New type.
2685 (uc_to_mb_write_replacement): New function.
2686 (struct mb_to_uc_fallback_locals): New type.
2687 (mb_to_uc_write_replacement): New function.
2688 (unicode_loop_convert): Call mb_to_uc_fallback and uc_to_mb_fallback.
2689 (unicode_loop_reset): Call uc_to_mb_fallback.
2690 * lib/loop_wchar.h (struct wc_to_mb_fallback_locals): New type.
2691 (wc_to_mb_write_replacement): New function.
2692 (wchar_from_loop_convert): Call wc_to_mb_fallback.
2693 (struct mb_to_wc_fallback_locals): New type.
2694 (mb_to_wc_write_replacement): New function.
2695 (wchar_to_loop_convert): Call mb_to_wc_fallback.
2696 * lib/iconv.c (iconv_open): Initialize the 'fallbacks' field.
2697 (iconvctl): Handle ICONV_SET_FALLBACKS.
2698 * lib/genflags.c (struct iconv_fallbacks): New dummy definition.
2699 * src/iconv.c: Include limits.h.
2700 (isdigit, c_isprint): New macros.
2701 (usage): Document long options and new options.
2702 (check_subst_formatstring): New function.
2703 (ilseq_byte_subst, ilseq_wchar_subst, ilseq_unicode_subst): New
2705 (ilseq_byte_subst_size, ilseq_wchar_subst_size,
2706 ilseq_unicode_subst_size): New variables.
2707 (ilseq_byte_subst_buffer, ilseq_wchar_subst_buffer,
2708 ilseq_unicode_subst_buffer): New variables.
2709 (subst_mb_to_uc_cd, subst_mb_to_uc_temp_buffer): New variables.
2710 (subst_mb_to_uc_fallback): New function.
2711 (subst_uc_to_mb_cd, subst_uc_to_mb_temp_buffer): New variables.
2712 (subst_uc_to_mb_fallback): New function.
2713 (subst_mb_to_wc_cd, subst_mb_to_wc_temp_buffer): New variables.
2714 (subst_mb_to_wc_fallback): New function.
2715 (subst_wc_to_mb_cd, subst_wc_to_mb_temp_buffer): New variables.
2716 (subst_wc_to_mb_fallback): New function.
2717 (subst_mb_to_mb_cd, subst_mb_to_mb_temp_buffer): New variables.
2718 (subst_mb_to_mb_fallback): New function.
2719 (convert): Enlarge the outbuf when the conversion failed with E2BIG.
2720 (main): Handle new options --byte-subst, --widechar-subst,
2722 * man/iconv.1: Document --unicode-subst, --byte-subst, --widechar-subst
2724 * tests/check-subst: New file.
2725 * tests/Makefile.in (check): Also invoke check-subst.
2726 Suggested by James Taylor <james@oakseed.demon.co.uk>.
2728 2006-01-21 Bruno Haible <bruno@clisp.org>
2730 * src/iconv.c (print_version): Bump copyright year.
2731 (main): Accept long options --from-code, --to-code, --list, --silent.
2732 Accept abbreviated long options, like getopt() does.
2733 * man/iconv.1: Document long options.
2735 2005-12-29 Bruno Haible <bruno@clisp.org>
2737 * src/iconv.c (print_version): Update copyright year.
2739 2005-12-29 Bruno Haible <bruno@clisp.org>
2741 * configure.ac: Renamed from configure.in.
2742 * Makefile.devel (CONFIGURES_IN, configure, config.h.in): Update.
2744 2005-12-29 Bruno Haible <bruno@clisp.org>
2746 * configure.in: Bump version number.
2747 * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
2748 * windows/iconv.rc: Likewise.
2749 * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 5:1:3.
2751 2005-12-29 Bruno Haible <bruno@clisp.org>
2753 * build-aux/config.guess: Update to GNU version 2005-12-23.
2754 * build-aux/config.sub: Likewise.
2755 * build-aux/config.libpath: Update from GNU gettext.
2756 * build-aux/install-sh: Upgrade to automake-1.9.5.
2757 * build-aux/missing: Upgrade to automake-1.9.5.
2758 * build-aux/mkinstalldirs: Upgrade to automake-1.9.5.
2760 2005-12-29 Bruno Haible <bruno@clisp.org>
2762 * m4/alloca.m4: Update from GNU gettext.
2763 * m4/allocsa.m4: Update from GNU gettext.
2764 * m4/canonicalize.m4: Update from GNU gettext.
2765 * m4/codeset.m4: Update from GNU gettext.
2766 * m4/eealloc.m4: Update from GNU gettext.
2767 * m4/error.m4: Update from GNU gettext.
2768 * m4/extensions.m4: Update from GNU gettext.
2769 * m4/gettext.m4: Update from GNU gettext.
2770 * m4/glibc21.m4: Update from GNU gettext.
2771 * m4/iconv.m4: Update from GNU gettext.
2772 * m4/intmax.m4: Update from GNU gettext.
2773 * m4/inttypes_h.m4: New file, from GNU gettext.
2774 * m4/isc-posix.m4: Update from GNU gettext.
2775 * m4/lcmessage.m4: Update from GNU gettext.
2776 * m4/longdouble.m4: Update from GNU gettext.
2777 * m4/longlong.m4: Update from GNU gettext.
2778 * m4/mbstate_t.m4: Update from GNU gettext.
2779 * m4/nls.m4: Update from GNU gettext.
2780 * m4/onceonly.m4: Update from GNU gettext.
2781 * m4/pathmax.m4: Update from GNU gettext.
2782 * m4/po.m4: Update from GNU gettext.
2783 * m4/printf-posix.m4: Update from GNU gettext.
2784 * m4/progtest.m4: Update from GNU gettext.
2785 * m4/readlink.m4: Update from GNU gettext.
2786 * m4/relocatable.m4: Update from GNU gettext.
2787 * m4/setenv.m4: Update from GNU gettext.
2788 * m4/signed.m4: Update from GNU gettext.
2789 * m4/ssize_t.m4: Update from GNU gettext.
2790 * m4/stdbool.m4: Update from GNU gettext.
2791 * m4/stdint_h.m4: New file, from GNU gettext.
2792 * m4/strerror.m4: Update from GNU gettext.
2793 * m4/strerror_r.m4: Update from GNU gettext.
2794 * m4/unlocked-io.m4: Update from GNU gettext.
2795 * m4/wchar_t.m4: Update from GNU gettext.
2796 * m4/wint_t.m4: Update from GNU gettext.
2797 * m4/xreadlink.m4: Update from GNU gettext.
2798 * Makefile.devel (aclocal.m4): Depend on m4/inttypes_h.m4 and
2799 m4/stdint_h.m4 as well.
2800 * configure.in: Invoke AC_TYPE_MBSTATE_T instead of AC_MBSTATE_T.
2801 Invoke gl_FUNC_GLIBC_UNLOCKED_IO instead of jm_FUNC_GLIBC_UNLOCKED_IO.
2802 Invoke gl_ERROR instead of gt_FUNC_ERROR_AT_LINE.
2803 Don't invoke AC_AIX and AC_MINIX, done by gl_USE_SYSTEM_EXTENSIONS.
2804 Temporarily redefine AC_LIBOBJ and AC_REPLACE_FUNCS, so as to fill
2805 SRCLIBOBJS instead of LIBOBJS.
2806 * srclib/alloca_.h: Update from GNU gettext.
2807 * srclib/allocsa.h: Update from GNU gettext.
2808 * srclib/canonicalize.c: Update from GNU gettext.
2809 * srclib/error.h: Update from GNU gettext.
2810 * srclib/error.c: Update from GNU gettext.
2811 * srclib/gettext.h: Update from GNU gettext.
2812 * srclib/memmove.c: Update from GNU gettext.
2813 * srclib/progname.h: Update from GNU gettext.
2814 * srclib/progname.c: Update from GNU gettext.
2815 * srclib/progreloc.c: Update from GNU gettext.
2816 * srclib/readlink.c: Update from GNU gettext.
2817 * srclib/relocatable.c: Update from GNU gettext.
2818 * srclib/relocwrapper.c: Update from GNU gettext.
2819 * srclib/setenv.h: Update from GNU gettext.
2820 * srclib/setenv.c: Update from GNU gettext.
2821 * srclib/stdbool_.h: Update from GNU gettext.
2822 * srclib/stdint_.h: Update from gnulib.
2823 * srclib/strerror.c: Update from GNU gettext.
2824 * srclib/unlocked-io.h: Update from GNU gettext.
2825 * srclib/unsetenv.c: Update from GNU gettext.
2826 * srclib/xalloc.h: Update from GNU gettext.
2827 * srclib/xmalloc.c: Update from GNU gettext.
2828 * srclib/xreadlink.c: Update from GNU gettext.
2829 * srclib/xstrdup.c: Update from GNU gettext.
2830 * srclib/Makefile.am (DEFS): Also define EXEEXT.
2831 (libicrt_a_LIBADD): Use SRCLIBOBJS instead of LIBOBJS.
2832 (libicrt_a_DEPENDENCIES): New variable.
2833 * src/Makefile.in (EXEEXT): New variable.
2834 * build-aux/install-reloc: Update from GNU gettext.
2835 * build-aux/reloc-ldflags: Update from GNU gettext.
2836 * build-aux/config.rpath: Update from GNU gettext.
2838 2005-12-29 Bruno Haible <bruno@clisp.org>
2840 * m4/libtool.m4: Update, based on libtool-1.5.22.
2841 * build-aux/ltmain.sh: Update, based on libtool-1.5.22.
2843 2005-12-24 Bruno Haible <bruno@clisp.org>
2845 Check the whole range of GB18030.
2846 * tests/GB18030-BMP.TXT: Renamed from tests/GB18030.TXT.
2847 * tests/gengb18030z.c: New file.
2848 * tests/table-from.c (main): For GB18030, don't stop at U+10000.
2849 * tests/table-to.c (main): Likewise.
2850 * tests/Makefile.in (check): Generate GB18030.TXT on the fly from
2852 (clean): Remove also gengb18030z and GB18030.TXT.
2853 * tests/Makefile.msvc (check): Generate GB18030.TXT on the fly from
2855 (clean): Remove also GB18030Z.TXT, GB18030TMP.TXT, GB18030.TXT.
2856 * tests/Makefile.os2 (check): Depend on gengb18030z.exe. Generate
2857 GB18030.TXT on the fly from GB18030-BMP.TXT.
2858 (clean): Remove also GB18030Z.TXT, GB18030TMP.TXT, GB18030.TXT.
2860 2005-12-20 Bruno Haible <bruno@clisp.org>
2862 * tests/table-to.c (main): Test the mappings up to U+10FFFF, not only
2863 up to U+2FFFF. Tolerate that Unicode language tags are silently mapped
2866 2005-12-22 Bruno Haible <bruno@clisp.org>
2868 Extend GB18030 converter to cover the entire Unicode PUA.
2869 * lib/gb18030.h: Update comments, based on second printing.
2870 (gb18030_mbtowc): Add mapping for range U+E000..U+E765.
2871 (gb18030_pua2charset): New array.
2872 (gb18030_wctomb): Add mapping for range U+E000..U+E765 and the two-byte
2873 part of range U+E766..U+E864.
2874 * lib/gb18030ext.h (gb18030ext_2uni_pagefe): Add mappings to private
2876 (gb18030ext_mbtowc): Add mapping for the two-byte part of range
2878 * lib/gb18030uni.h (gb18030uni_charset2uni_ranges,
2879 gb18030uni_uni2charset_ranges, gb18030uni_ranges): Add 12 more
2881 (gb18030uni_mbtowc, gb18030uni_wctomb): Update.
2882 * tests/GB18030.TXT: Complete mappings to private area.
2884 2005-12-22 Bruno Haible <bruno@clisp.org>
2886 * lib/gbk.h: Update comments.
2888 2005-12-20 Bruno Haible <bruno@clisp.org>
2890 Add private area mappings to CP949.
2891 * lib/cp949.h (cp949_mbtowc, cp949_wctomb): Map U+E000..U+E0BB like
2893 * tests/CP949.TXT: Add mappings for U+E000..U+E0BB.
2895 2005-12-15 Bruno Haible <bruno@clisp.org>
2897 Add private area mappings to CP950.
2898 * lib/cp950.h (cp950_mbtowc, cp950_wctomb): Map U+E000..U+F6B0 like
2900 * tests/CP950.TXT: Add mappings for U+E000..U+F6B0.
2902 2005-12-15 Bruno Haible <bruno@clisp.org>
2904 Make CP936 follow what Microsoft does.
2905 In http://www.microsoft.com/globaldev/reference/dbcs/936.mspx they
2906 added a 0x80 - U+20AC mapping to the code chart, but not to the
2907 tooltips and not to the list of mappings.
2908 * lib/cp936.h: New file.
2909 * lib/gbk.h: Update comments.
2910 * lib/ces_gbk.h: Update comments.
2911 * lib/converters.h: Include cp936.h.
2912 * lib/encodings.def (CP936): New encoding.
2913 (GBK): Remove CP936 aliases.
2914 * README, man/iconv_open.3: Add CP936.
2915 * tests/Makefile.in (check): Check CP936.
2916 * tests/Makefile.msvc (check): Likewise.
2917 * tests/Makefile.os2 (check): Likewise.
2918 * tests/CP936.TXT: New file.
2920 2005-12-14 Bruno Haible <bruno@clisp.org>
2922 * lib/cp932.h (cp932_wctomb): Map U+FF5E, U+2225, U+FF0D, U+FFE0,
2923 U+FFE1 like Microsoft does it.
2924 * lib/CP932.IRREVERSIBLE.TXT: Add these mappings.
2925 Reported by Lei Wang <lwang@qilinsoft.com>.
2927 2005-12-14 Bruno Haible <bruno@clisp.org>
2929 Follow Euro sign addition done in 1999 in
2930 http://www.microsoft.com/globaldev/reference/dbcs/950/950_A3.mspx
2931 * lib/cp950.h (cp950_mbtowc, cp950_wctomb): Add mapping for 0xA3E1.
2932 * tests/CP950.TXT: Add mapping for 0xA3E1.
2934 2005-11-11 Bruno Haible <bruno@clisp.org>
2936 * lib/euc_jp.h (euc_jp_wctomb): When writing a 3-bytes byte sequence
2937 and only two bytes are available in the output buffer, return
2938 RET_TOOSMALL instead of overrunning the output buffer.
2939 * lib/isoir165.h (isoir165_wctomb): When only one byte is available
2940 in the output buffer, don't overrun the output buffer.
2941 Reported by William Bardwell <bardwell@curl.com>.
2943 2005-09-18 Bruno Haible <bruno@clisp.org>
2945 * m4/libtool.m4: Update, based on libtool-1.5.20.
2946 * build-aux/ltmain.sh: Update, based on libtool-1.5.20.
2948 2005-08-12 Bruno Haible <bruno@clisp.org>
2950 * lib/big5_2003.h: Map 0xF9FA..0xF9FD differently.
2951 * tests/BIG5-2003.TXT: Likewise.
2952 * tests/BIG5-2003.IRREVERSIBLE.TXT: New file.
2953 Reported by Ping Yeh <ping@pingyeh.net>.
2955 2005-07-24 Bruno Haible <bruno@clisp.org>
2957 Tidy up exported symbols.
2958 * m4/visibility.m4: New file.
2959 * include/export.h: New file.
2960 * configure.in: Invoke gl_VISIBILITY. Use AC_CONFIG_FILES. Arrange to
2961 create also include/iconv.h.inst.
2962 * Makefile.devel (all): Depend on include/iconv.h.build.in.
2963 (aclocal.m4): Depend on m4/visibility.m4.
2964 (include/iconv.h.build.in): New rule.
2965 * Makefile.in (install-lib, install): Install include/iconv.h.inst,
2966 not the include/iconv.h that was used for building.
2967 (distclean, maintainer-clean): Remove also include/iconv.h.inst.
2968 * lib/Makefile.in (CFLAGS): Add @CFLAG_VISIBILITY@.
2969 (DEFS): Also define BUILDING_LIBICONV and BUILDING_DLL.
2970 * lib/config.h.in (HAVE_VISIBILITY): New macro.
2971 * lib/relocatable.h (RELOCATABLE_DLL_EXPORTED) [HAVE_VISIBILITY]:
2972 Define to the gcc visibility attribute.
2973 * srclib/relocatable.h (RELOCATABLE_DLL_EXPORTED) [HAVE_VISIBILITY]:
2976 2005-07-25 Bruno Haible <bruno@clisp.org>
2978 2003-08-24 Bruno Haible <bruno@clisp.org>
2979 * lib/relocatable.h: Make this file includable in C++ mode: add extern
2982 2005-07-08 Bruno Haible <bruno@clisp.org>
2984 * Version 1.10 released.
2986 2005-07-08 Bruno Haible <bruno@clisp.org>
2988 * m4/libtool.m4 (postinstall_cmds) [cygwin,mingw,pw32]: Make DLL
2989 executable after installing it.
2991 2005-07-08 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:0:3.
2998 2005-07-05 Bruno Haible <bruno@clisp.org>
3000 * Makefile.devel (ACLOCAL): New variable.
3001 (aclocal.m4): Use it.
3003 2005-07-05 Bruno Haible <bruno@clisp.org>
3005 * m4/relocatable.m4 (AC_RELOCATABLE): On mingw, simply set
3006 SET_RELOCATABLE to a trivial value.
3008 2004-08-08 Bruno Haible <bruno@clisp.org>
3010 * srclib/progreloc.c (xstrdup): Define as strdup if no xmalloc should
3013 2004-04-28 Bruno Haible <bruno@clisp.org>
3015 * srclib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
3016 Treat Cygwin like Windows, since it now accepts Windows pathnames.
3018 2005-06-09 Bruno Haible <bruno@clisp.org>
3020 * Makefile.in (mkinstalldirs): Use build-aux/ instead of autoconf/.
3021 * lib/Makefile.in (mkinstalldirs): Likewise.
3022 * src/Makefile.in (mkinstalldirs): Likewise.
3023 * man/Makefile.in (mkinstalldirs): Likewise.
3025 2005-06-08 Bruno Haible <bruno@clisp.org>
3027 * srclib/canonicalize.c (__realpath): Avoid gcc warnings on platforms
3028 that don't support symbolic links.
3030 2005-06-08 Bruno Haible <bruno@clisp.org>
3032 * srclib/binary-io.h (fileno): Undefine before defining it. Avoids a
3033 gcc warning on mingw.
3035 2005-05-22 Bruno Haible <bruno@clisp.org>
3037 Implement and document BIG5-2003.
3038 * lib/big5_2003.h: New file.
3039 * lib/converters.h: Include it.
3040 * lib/encodings_extra.def (BIG5-2003): New encoding.
3041 * README, man/iconv_open.3: Add BIG5-2003.
3042 * tests/Makefile.in (check-extra-yes): Check BIG5-2003.
3043 * tests/BIG5-2003.TXT: New file.
3045 2005-05-21 Bruno Haible <bruno@clisp.org>
3047 Add EURO SIGN to EUC-TW converter.
3048 * lib/cns11643_1.h (cns11643_1_2uni_page42): Add entry for 0x14242.
3049 (cns11643_1_mbtowc): Update.
3050 * lib/cns11643_inv.h (cns11643_inv_2charset): Add entry for 0x20AC.
3051 (cns11643_inv_uni2indx_page*): Update.
3052 * lib/dec_hanyu.h (dec_hanyu_mbtowc, dec_hanyu_wctomb): Consider only
3054 * tests/EUC-TW.TXT: Add entry for 0x20AC.
3055 * tests/EUC-TW.IRREVERSIBLE.TXT: Likewise.
3057 2005-05-03 Bruno Haible <bruno@clisp.org>
3059 * tools/Makefile (ALL): Add pt154.h.
3060 (pt154.h): New rule.
3061 * lib/encodings.def: Add PT154.
3062 * lib/pt154.h: New file.
3063 * lib/converters.h: Include it.
3064 * README, man/iconv_open.3: Add PT154.
3065 * NOTES: Mention PT154.
3066 * tests/PT154.TXT: New file.
3067 * tests/Makefile.in (check): Also test PT154.
3068 * tests/Makefile.msvc (check): Likewise.
3069 * tests/Makefile.os2 (check): Likewise.
3071 2005-03-29 Bruno Haible <bruno@clisp.org>
3073 Rename libiconv_plug.so to preloadable_libiconv.so.
3074 * configure.in (PLUGLIB): Set to preloadable_libiconv.so instead of
3076 * lib/Makefile.in (preloadable_libiconv.so): Renamed from
3078 (preloadable_libiconv_linux.so): Renamed from libiconv_plug_linux.so.
3079 (preloadable_libiconv_solaris.so): Renamed from
3080 libiconv_plug_solaris.so.
3081 (preloadable_libiconv_osf.so): Renamed from libiconv_plug_osf.so.
3085 2005-03-29 Bruno Haible <bruno@clisp.org>
3087 Implement and document ATARIST.
3088 * tools/Makefile (ALL): Add atarist.h.
3089 (atarist.h): New rule.
3090 * lib/atarist.h: New file.
3091 * lib/converters.h: Include it.
3092 * lib/encodings_extra.def (ATARIST): New encoding.
3093 * README, man/iconv_open.3: Add ATARIST.
3094 * tests/Makefile.in (check-extra-yes): Check ATARIST.
3095 * tests/ATARIST.TXT: New file.
3097 2005-03-22 Bruno Haible <bruno@clisp.org>
3099 * build-aux: New directory, renamed from autoconf.
3100 * configure.in (AC_CONFIG_AUX_DIR): Use build-aux.
3102 2005-03-16 Bruno Haible <bruno@clisp.org>
3104 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
3105 HAVE_LONGLONG_64BIT.
3106 * srclib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
3107 HAVE_LONGLONG_64BIT.
3108 * srclib/Makefile.am (stdint.h): Likewise.
3110 2005-03-14 Bruno Haible <bruno@clisp.org>
3112 * Makefile.devel (aclocal.m4): Depend also on allocsa.m4, eealloc.m4,
3113 extensions.m4, intmax.m4, inttypes.m4, longdouble.m4, longlong.m4,
3114 printf-posix.m4, readlink.m4, signed.m4, ssize_t.m4, stdint.m4,
3115 wchar_t.m4, wint_t.m4.
3117 2005-03-13 Bruno Haible <bruno@clisp.org>
3119 Make stdout error checking reliable, also when writing to a NFS file.
3120 * src/iconv.c (main): Check the return value of fclose(stdout).
3121 * lib/genaliases.c (main): Likewise.
3122 * lib/genaliases2.c (main): Likewise.
3123 * lib/genflags.c (main): Likewise.
3124 * lib/gentranslit.c (main): Likewise.
3125 * tests/genutf8.c (main): Likewise.
3126 * tests/table-from.c (main): Likewise.
3127 * tests/table-to.c (main): Likewise.
3129 2005-03-13 Bruno Haible <bruno@clisp.org>
3131 * src/iconv.c (convert): Before outputting an error message, flush
3132 stdout and output a newline if suitable.
3134 2005-03-13 Bruno Haible <bruno@clisp.org>
3136 Improved error messages.
3137 * srclib/width.c: New file, from GNU clisp.
3138 * srclib/uniwidth.h: New file, from GNU clisp with modifications.
3139 * srclib/unitypes.h: New file, from GNU clisp with modifications.
3140 * srclib/cjk.h: New file, from GNU clisp.
3141 * srclib/streq.h: New file, from GNU clisp.
3142 * srclib/stdint_.h: New file, from gnulib.
3143 * m4/stdint.m4: New file, from gnulib.
3144 * m4/inttypes.m4: New file, from gnulib.
3145 * srclib/Makefile.am: Add gnulib module 'stdint' snippet.
3146 (BUILT_SOURCES): New variable.
3147 (libicrt_a_SOURCES): Add width.c, uniwidth.h, unitypes.h, cjk.h,
3149 * configure.in: Invoke gl_STDINT_H.
3150 * src/iconv.c: Include cjk.h, uniwidth.h.
3151 (line, column, cjkcode): New variables.
3152 (update_line_column): New function.
3153 (convert): Initialize line and column. In all error message, show also
3154 the line and column number.
3155 (main): Initialize cjkcode. Set up hooks to call update_line_column.
3157 2005-03-13 Bruno Haible <bruno@clisp.org>
3159 * include/iconv.h.in (iconv_canonicalize): New declaration.
3160 * lib/genaliases.c (emit_encoding): Take two output streams as
3161 arguments. To the second stream, emit a shell command for extracting
3162 offsets into the gperf generated string pool.
3163 (main): Write the shell commands into file descriptors 3 and 4.
3164 * lib/genaliases2.c (emit_encoding): Take two output streams as
3165 arguments. To the second stream, emit an expression for the offset
3166 into the string pool.
3167 (main): Write the offsets into file descriptor 3.
3168 * Makefile.devel (lib/aliases.gperf): Remove target.
3169 (lib/aliases.h): Generate lib/aliases.gperf temporarily. Generate also
3170 lib/canonical.h and lib/canonical_local.h.
3171 (lib/aliases_aix.h): Generate also lib/canonical_aix.h.
3172 (lib/aliases_osf1.h): Generate also lib/canonical_osf1.h.
3173 (lib/aliases_dos.h): Generate also lib/canonical_dos.h.
3174 (lib/aliases_extra.h): Generate also lib/canonical_extra.h.
3175 * lib/iconv.c (stringpool2): Provide default definition when it doesn't
3177 (all_canonical): New array.
3178 (iconv_canonicalize): New function.
3180 2005-03-13 Bruno Haible <bruno@clisp.org>
3182 * include/iconv.h.in (iconv_unicode_char_hook, iconv_wide_char_hook,
3183 iconv_hooks): New types.
3184 (ICONV_SET_HOOKS): New macro.
3185 * lib/converters.h (struct conv_struct): Add field 'hooks'.
3186 * lib/iconv.c (iconv_open): Initialize hooks to NULL.
3187 (iconvctl): Handle ICONV_SET_HOOKS.
3188 * lib/loop_unicode.h (unicode_loop_convert, unicode_loop_reset): After
3189 conversion of a character, call the uc_hook.
3190 * lib/loop_wchar.h (wchar_id_loop_convert): After every character, call
3192 * lib/genflags.c (iconv_hooks): Provide a dummy definition.
3194 2005-02-05 Bruno Haible <bruno@clisp.org>
3196 * src/iconv.c (main): In case of unsupported encodings, show a hint
3199 2005-01-06 Bruno Haible <bruno@clisp.org>
3201 * lib/Makefile.msvc (CFLAGS): Define also INSTALLPREFIX.
3202 * lib/Makefile.vms (DEFS): Likewise.
3203 Reported by Troels Walsted Hansen <Troels.W.Hansen@fast.no>.
3205 2005-01-05 Bruno Haible <bruno@clisp.org>
3207 * autoconf/config.rpath: Update from GNU gettext.
3209 2005-01-05 Bruno Haible <bruno@clisp.org>
3211 Assume automake-1.9.
3212 * Makefile.devel (AUTOMAKE): Assume automake-1.9.
3214 2005-01-05 Bruno Haible <bruno@clisp.org>
3216 * m4/libtool.m4: Update from GNU gettext, based on libtool-1.5.10.
3217 * autoconf/ltmain.sh: Update from GNU gettext, based on libtool-1.5.10.
3219 2004-11-11 Bruno Haible <bruno@clisp.org>
3221 * lib/iconv.c (iconv_open): Accept the suffixes //TRANSLIT and //IGNORE
3223 Reported by Lukas Gebauer <gebauerl@mlp.cz>.
3225 2004-09-21 Juan Manuel Guerrero <st001906@hrz1.hrz.tu-darmstadt.de>
3227 * djgpp/config.bat: Update.
3228 * djgpp/config.sed: Update.
3229 * djgpp/config.site: Update.
3230 * djgpp/edtest.bat: Update.
3231 * djgpp/fnchange.in: Update.
3232 * djgpp/Makefile.maint: Update.
3233 * djgpp/makefile.sed: Update.
3234 * djgpp/README.in: Update.
3235 * djgpp/sources.sed: Update.
3236 * djgpp/translit-check.sed: Update.
3238 2004-08-25 Bruno Haible <bruno@clisp.org>
3240 * m4/libtool.m4: Update from GNU gettext, based on libtool-1.5.6.
3241 * autoconf/ltmain.sh: Update from GNU gettext, based on libtool-1.5.6.
3243 2004-07-31 Bruno Haible <bruno@clisp.org>
3245 Update to JISX 0213 plane 1 to 2004 version (ISO-IR-233).
3246 * tools/Makefile (jisx0213.h): Bump version number.
3247 * tools/JISX0213.TXT: Change mappings U+2015 -> U+2014,
3248 U+2299 -> U+29BF, and add 10 new characters.
3249 * tools/cjk_tab_to_h.c (output_title): Bump year.
3250 (do_jisx0213): Update comments. Emit a conditional 'inline'.
3251 * lib/jisx0213.h: Regenerated.
3252 * lib/iso2022_jp3.h (iso2022_jp3_mbtowc): Accept escape sequence
3253 ESC $ ( Q as a synonym of ESC $ ( O.
3254 (iso2022_jp3_wctomb): Emit ESC $ ( Q instead of ESC $ ( O.
3255 * tests/EUC-JISX0213.TXT: Change mappings U+2015 -> U+2014,
3256 U+2299 -> U+29BF, and add 10 new characters.
3257 * tests/SHIFT_JISX0213.TXT: Likewise.
3258 * tests/ISO-2022-JP-3-snippet: Update.
3259 * tests/ISO-2022-JP-3-snippet.UTF-8: Update.
3261 2004-07-22 Bruno Haible <bruno@clisp.org>
3263 * lib/encodings.def (ISO-8859-7): Add alias ISO_8859-7:2003.
3264 * tools/Makefile (iso8859_7.h): Use conversion table from 2003.
3265 * lib/iso8859_7.h: Add mappings for 0xa4, 0xa5, 0xaa.
3266 * tests/ISO-8859-7.TXT: Update to ISO_8859-7:2003.
3268 2004-07-22 Bruno Haible <bruno@clisp.org>
3270 * tools/Makefile (ALL): Add iso8859_11.h.
3271 (iso8859_11.h): New rule.
3272 * lib/encodings.def: Add ISO-8859-11.
3273 * lib/iso8859_11.h: New file.
3274 * lib/converters.h: Include it.
3275 * tests/ISO-8859-11.TXT: New file.
3276 * tests/Makefile.in (check): Also test ISO-8859-11.
3277 * tests/Makefile.msvc (check): Likewise.
3278 * tests/Makefile.os2 (check): Likewise.
3280 2004-07-17 Bruno Haible <bruno@clisp.org>
3282 * src/iconv.c (main): Terminate option parsing when option -- is seen.
3283 Reported by Len Lattanzi <zardoz@users.sourceforge.net>.
3285 2004-03-05 Bruno Haible <bruno@clisp.org>
3287 * src/Makefile.in (install): Make DESTDIR work on HP-UX.
3288 Reported by Bob Proulx <box@proulx.com>.
3290 2004-02-19 Bruno Haible <bruno@clisp.org>
3292 * lib/vietcomb.h (viet_comp_table_data): Un-uncomment 0x00D5, 0x00F5,
3293 0x0168, 0x0169. Needed for TCVN-5712 but not for CP1258.
3294 (viet_comp_table0301_len): Increment by 4.
3296 * lib/cp1255.h (cp1255_mbtowc): Don't delay the handling of characters
3297 which are not entries in cp1255_comp_table_data.
3298 * lib/cp1258.h (cp1258_comp_bases): New array.
3299 (cp1258_mbtowc): Don't delay the handling of characters which are not
3300 relevant entries in viet_comp_table_data.
3301 * lib/tcvn.h (tcvn_comp_bases): New array.
3302 (tcvn_mbtowc): Don't delay the handling of characters which are not
3303 relevant entries in viet_comp_table_data.
3304 Reported by Alain Bench <veronatif@free.fr>.
3306 2004-02-02 Perry Rapp <lifelines_3_0_18@hotmail.com>
3307 Bruno Haible <bruno@clisp.org>
3309 * man/iconvctl.3: New file.
3310 * man/iconv.3: Refer to it in "See also".
3311 * man/iconv_open.3: Likewise.
3313 2004-01-24 Bruno Haible <bruno@clisp.org>
3315 * srclib/progreloc.c (xstrdup): Define as strdup if no xmalloc should
3318 2004-01-20 Bruno Haible <bruno@clisp.org>
3320 Upgrade from gettext-0.14.
3322 * configure.in: Call gl_USE_SYSTEM_EXTENSIONS. Call AM_STDBOOL_H
3323 instead of gt_STDBOOL_H. Provide a definition for DLL_VARIABLE.
3324 * srclib/Makefile.am (libicrt_a_SOURCES): Add allocsa.h, allocsa.c,
3325 xalloc.h. Remove xmalloc.h.
3326 (libicrt_a_LIBADD): Remove @ALLOCA@.
3327 * srclib/Makefile.msvc (OBJECTS): Add allocsa.obj.
3328 (allocsa.obj): New rule.
3329 * srclib/Makefile.vms (OBJECTS): Add allocsa.obj.
3330 (allocsa.obj): New rule.
3331 * Makefile.devel (config.h_vms): Set MALLOC_0_IS_NONNULL to 0.
3332 (config.h.msvc): Set MALLOC_0_IS_NONNULL to 1.
3336 2003-10-09 Bruno Haible <bruno@clisp.org>
3337 * lib/relocatable.c: Include xalloc.h instead of xmalloc.h.
3339 2003-08-01 Bruno Haible <bruno@clisp.org>
3340 * lib/relocatable.c (find_shared_library_fullname): Disable the code on
3341 Linux/libc5. Reported by Alain Guibert <derogaton+bgli@oreka.com>.
3343 2003-06-22 Bruno Haible <bruno@clisp.org>
3344 * lib/relocatable.c (compute_curr_prefix): Comment out this function in
3345 the case when it is not used.
3346 Reported by Pavel Roskin <proski@gnu.org>.
3350 * m4/gettext.m4: Upgrade from GNU gettext. Many changes.
3351 * m4/po.m4: Likewise.
3353 * m4/readlink.m4: New file, from GNU gettext.
3355 2003-11-30 Bruno Haible <bruno@clisp.org>
3356 * m4/allocsa.m4: New file.
3357 * m4/eealloc.m4: New file.
3358 * m4/setenv.m4 (gl_PREREQ_SETENV): Require gl_ALLOCSA instead of
3361 2003-10-21 Bruno Haible <bruno@clisp.org>
3362 * m4/canonicalize.m4 (gl_PREREQ_CANONICALIZE): Also test for
3365 2003-08-24 Bruno Haible <bruno@clisp.org>
3366 * m4/relocatable.m4 (AC_RELOCATABLE): Use $(host) instead of @host@,
3367 since the substitution of @host@ may occur before the substitution of
3370 2003-08-23 Bruno Haible <bruno@clisp.org>
3371 * stdbool.m4: Replace with the version from gnulib, without
3374 2003-08-08 Paul Eggert <eggert@twinsun.com>
3375 * m4/extensions.m4: New file.
3376 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
3377 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
3379 2003-07-01 Bruno Haible <bruno@clisp.org>
3380 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
3381 <sys/types.h> should be sufficient.
3382 Reported by Paul Eggert.
3384 2003-07-01 Bruno Haible <bruno@clisp.org>
3385 * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Avoid "duplicated macro" error
3386 from aclocal-1.4-p4.
3387 Reported by Luke Schierer <lschiere@rackspace.com> and
3388 Michael C. Toren <mct@toren.net>.
3390 2003-07-01 Paul Eggert <eggert@twinsun.com>
3391 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
3392 xreadlink.c now includes it unconditionally.
3394 2003-06-17 Paul Eggert <eggert@twinsun.com>
3395 * m4/lib-ld.m4 (AC_LIB_PROG_LD_GNU, AC_LIB_PROG_LD): Don't use egrep,
3396 for portability to POSIX 1003.1-2001. Backported from libtool-1.5.
3398 2003-05-28 Paul Eggert <eggert@twinsun.com>
3399 * m4/pathmax.m4 (gl_PATHMAX): Don't check for limits.h.
3400 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
3402 2002-12-24 Bruno Haible <bruno@clisp.org>
3403 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
3404 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
3406 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
3411 2003-11-30 Bruno Haible <bruno@clisp.org>
3412 * srclib/alloca.c: Remove file.
3414 2003-11-30 Bruno Haible <bruno@clisp.org>
3415 Safer stack allocation.
3416 * srclib/allocsa.h: New file.
3417 * srclib/allocsa.c: New file.
3418 * canonicalize.c: Include allocsa.h.
3419 (__realpath): Use allocsa instead of alloca. Don't clobber errno right
3420 before returning NULL.
3421 * srclib/relocwrapper.c: Indirectly depends on allocsa.
3422 * srclib/setenv.c: Include allocsa.h.
3423 (alloca): Remove fallback definition.
3424 (freea): Remove macro.
3425 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
3428 2003-11-17 Bruno Haible <bruno@clisp.org>
3429 * srclib/canonicalize.c: #undef realpath after <config.h> but before
3430 the system includes, so as to avoid a prototype clash on Solaris 2.5.1.
3431 Reported by Warren L. Dodge <warrend@mdhost.cse.tek.com>.
3433 2003-10-21 Bruno Haible <bruno@clisp.org>
3434 * srclib/canonicalize.c (lstat): Define as an alias to 'stat' on
3435 systems without symbolic links.
3437 2003-10-17 Bruno Haible <bruno@clisp.org>
3438 * srclib/binary-io.h: Avoid warnings on Cygwin.
3440 2003-10-09 Bruno Haible <bruno@clisp.org>
3441 * srclib/xalloc.h: Renamed from xmalloc.h.
3442 * srclib/progreloc.c: Include xalloc.h instead of xmalloc.h.
3443 * srclib/relocatable.c: Likewise.
3444 * srclib/xmalloc.c: Likewise.
3445 * srclib/xreadlink.c: Likewise.
3446 * srclib/xstrdup.c: Likewise.
3448 2003-09-12 Paul Eggert <eggert@twinsun.com>
3449 * srclib/progreloc.c (get_full_program_name): Define via prototype.
3451 2003-09-12 Paul Eggert <eggert@twinsun.com>
3452 * srclib/setenv.c (clearenv): Define via prototype.
3454 2003-09-10 Bruno Haible <bruno@clisp.org>
3455 * srclib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
3456 * srclib/unsetenv.c: Likewise.
3458 2003-08-28 Bruno Haible <bruno@clisp.org>
3459 * srclib/binary-io.h: Undefine O_BINARY before defining it. This avoids
3460 a warning on QNX, which defines O_BINARY to 000000.
3462 2003-08-24 Bruno Haible <bruno@clisp.org>
3463 * srclib/binary-io.h: Include <stdio.h>, to avoid a compilation error
3464 when MSVC7 <stdio.h> is included later.
3466 2003-08-24 Bruno Haible <bruno@clisp.org>
3467 * srclib/error.h: Use ANSI C "..." declarations when compiling with
3468 MSVC, even though it doesn't define __STDC__ by default.
3469 * srclib/error.c: Use <stdarg.h> when compiling with MSVC, even though
3470 it doesn't define __STDC__ by default.
3472 2003-08-24 Bruno Haible <bruno@clisp.org>
3473 Support for building DLLs on Windows.
3474 * srclib/error.h (error_print_progname, error_message_count,
3475 error_one_per_line): Add DLL_VARIABLE attribute.
3476 * srclib/progname.h (program_name): Likewise.
3478 2003-08-24 Bruno Haible <bruno@clisp.org>
3479 * srclib/progname.h: Make this file includable in C++ mode: add extern
3481 * srclib/relocatable.h: Likewise.
3482 * srclib/xmalloc.h: Likewise.
3484 2003-08-22 Bruno Haible <bruno@clisp.org>
3485 * srclib/progname.h (error_with_progname, maybe_print_progname): Remove
3487 * srclib/progname.c (error_with_progname): Remove variable.
3488 (maybe_print_progname): Remove function.
3490 2003-08-01 Bruno Haible <bruno@clisp.org>
3491 * srclib/relocatable.c (find_shared_library_fullname): Disable the code
3492 on Linux/libc5. Reported by Alain Guibert <derogaton+bgli@oreka.com>.
3494 2003-07-01 Paul Eggert <eggert@twinsun.com>
3495 * srclib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
3496 having it depend on HAVE_SYS_TYPES_H.
3498 2003-06-23 Bruno Haible <bruno@clisp.org>
3499 Avoid compilation units that are empty after preprocessing.
3500 * srclib/canonicalize.c: Add dummy declaration.
3501 * srclib/strerror.c: Likewise.
3502 * srclib/error.c: Include <stdio.h> even if there's nothing to be
3505 2003-06-22 Bruno Haible <bruno@clisp.org>
3506 * srclib/relocatable.c (compute_curr_prefix): Comment out this function
3507 in the case when it is not used.
3508 Reported by Pavel Roskin <proski@gnu.org>.
3510 2003-05-28 Paul Eggert <eggert@twinsun.com>
3511 * srclib/pathmax.h: Include <limits.h> without checking for
3513 * srclib/xreadlink.c: Likewise.
3515 2004-01-20 Bruno Haible <bruno@clisp.org>
3517 Assume automake-1.8.
3518 * Makefile.devel (AUTOCONF, AUTOHEADER): Assume autoconf-2.59.
3519 (AUTOMAKE): Assume automake-1.8.
3520 * Makefile.in (am--refresh): New target.
3522 2004-01-23 Bruno Haible <bruno@clisp.org>
3524 * Version 1.9.2 released.
3526 2004-01-23 Bruno Haible <bruno@clisp.org>
3528 * tests/table-from.c: Include binary-io.h.
3529 (main): Switch stdout to binary mode.
3530 * tests/table-to.c: Include binary-io.h.
3531 (main): Switch stdout to binary mode.
3532 * tests/genutf8.c: Include binary-io.h.
3533 (main): Switch stdout to binary mode.
3534 * tests/Makefile.in (INCLUDES): Also look in srclib.
3535 (check): Pass INCLUDES when compiling genutf8.c.
3536 * tests/Makefile.os2 (INCLUDES): Also look in srclib.
3537 (genutf8.exe): Pass INCLUDES when compiling genutf8.c.
3538 * tests/Makefile.msvc (INCLUDES): Also look in srclib.
3539 (check): Pass INCLUDES when compiling genutf8.c.
3541 2004-01-21 Bruno Haible <bruno@clisp.org>
3543 * src/iconv.c (force_binary): Remove variable.
3544 (usage): Don't document --binary any more.
3545 (convert, main): Always switch to binary mode.
3546 * tests/check-stateful.bat: Remove --binary option.
3547 * tests/check-translit.bat: Likewise.
3548 * tests/check-stateful.cmd: Likewise.
3549 * tests/check-translit.cmd: Likewise.
3550 * djgpp/stateful-check.sed: Remove MODE variable.
3551 * djgpp/translit-check.sed: Likewise.
3553 2004-01-21 Bruno Haible <bruno@clisp.org>
3555 * man/iconv.3: Fix description of return value in case of error.
3556 Reported by Jonathan Wakely <redi@users.sf.net>.
3558 2003-09-12 Paul Eggert <eggert@twinsun.com>
3560 * srclib/progreloc.c (get_full_program_name): Define via prototype.
3562 2003-08-15 Bruno Haible <bruno@clisp.org>
3564 * Makefile.devel (lib/translit.h): Add ulimit command so that the
3565 gentranslit program gets the stack it needs. Many Linux distributions
3566 allow only 8 MB of stack by default.
3568 2003-08-01 Bruno Haible <bruno@clisp.org>
3570 * lib/relocatable.c (find_shared_library_fullname): Disable the code on
3572 * srclib/relocatable.c (find_shared_library_fullname): Likewise.
3573 Reported by Alain Guibert <derogaton+bgli@oreka.com>.
3575 2003-07-02 Bruno Haible <bruno@clisp.org>
3577 * m4/lib-ld.m4: Update from GNU gettext.
3578 * m4/lib-prefix.m4: Update from GNU gettext.
3579 * m4/gettext.m4: Update from GNU gettext.
3580 * m4/intmax.m4: New file, from GNU gettext.
3581 * m4/longdouble.m4: New file, from GNU gettext.
3582 * m4/longlong.m4: New file, from GNU gettext.
3583 * m4/printf-posix.m4: New file, from GNU gettext.
3584 * m4/signed.m4: New file, from GNU gettext.
3585 * m4/wchar_t.m4: New file, from GNU gettext.
3586 * m4/wint_t.m4: New file, from GNU gettext.
3587 * m4/pathmax.m4: Update from GNU gettext and gnulib.
3588 * m4/ssize_t.m4: Update from GNU gettext and gnulib.
3589 * m4/xreadlink.m4: Update from GNU gettext and gnulib.
3590 * m4/readlink.m4: New file, from gnulib.
3591 * autoconf/install-reloc: Update from GNU gettext.
3592 * srclib/stdbool_.h: Renamed from srclib/stdbool.h.in.
3593 * srclib/readlink.c: New file, from GNU gettext and gnulib.
3594 * srclib/Makefile.am (LIBADD_SOURCE): Add readlink.c.
3595 (EXTRA_DIST, stdbool.h): Use stdbool_.h instead of stdbool.h.in.
3596 * configure.in: Invoke gl_FUNC_READLINK.
3598 2003-06-22 Bruno Haible <bruno@clisp.org>
3600 * src/Makefile.in (install): Link with the already installed library.
3601 This fixes a link error on Solaris.
3602 Reported by Paul Eggert.
3604 2003-06-08 Bruno Haible <bruno@clisp.org>
3606 * srclib/canonicalize.c (__getcwd) [VMS]: Pass 3 arguments to getcwd.
3608 2003-05-02 Bruno Haible <bruno@clisp.org>
3610 Support for libtool-1.5.
3611 * srclib/progname.c (set_program_name): Remove a leading
3612 "<dirname>/.libs/lt-" or "<dirname>/.libs/", not only "lt-".
3614 2003-06-23 Bruno Haible <bruno@clisp.org>
3616 Avoid compilation units that are empty after preprocessing.
3617 * srclib/canonicalize.c: Add dummy declaration.
3618 * srclib/strerror.c: Likewise.
3619 * srclib/error.c: Include <stdio.h> even if there's nothing to be
3622 2003-06-22 Bruno Haible <bruno@clisp.org>
3624 Portability to mingw32.
3625 * m4/ssize_t.m4: New file, from GNU gettext.
3626 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
3627 Reported by Jeff Bonggren <jbon@cfl.rr.com>.
3629 2003-06-22 Bruno Haible <bruno@clisp.org>
3631 Portability to mingw32.
3632 * lib/relocatable.c [WIN32]: Include <windows.h>.
3633 * srclib/relocatable.c: Likewise.
3634 Reported by Jeff Bonggren <jbon@cfl.rr.com>.
3636 2003-06-22 Bruno Haible <bruno@clisp.org>
3638 * lib/relocatable.c (compute_curr_prefix): Comment out this function in
3639 the case when it is not used.
3640 * srclib/relocatable.c (compute_curr_prefix): Likewise.
3641 Reported by Pavel Roskin <proski@gnu.org>.
3643 2003-06-18 Bruno Haible <bruno@clisp.org>
3645 * config/install-sh: Update from automake-1.7.5.
3647 2003-06-16 Bruno Haible <bruno@clisp.org>
3649 * lib/encodings.def (ISO-8859-15): Add alias LATIN-9.
3650 (ISO-8859-16): Add aliases ISO_8859-16:2001, LATIN10, L10. Remove alias
3652 (GBK): Add aliases MS936, WINDOWS-936.
3653 Reported by Guido Flohr <guido@imperia.net>.
3655 2003-05-09 Bruno Haible <bruno@clisp.org>
3657 * srclib/canonicalize.c: Add #ifdef around versioned_symbol. Avoids an
3658 "extraneous semicolon" warning from Tru64 cc.
3660 2003-06-07 Bruno Haible <bruno@clisp.org>
3662 * Makefile.devel (config.h_vms): Don't define HAVE_ENVIRON_DECL.
3663 * Makefile.vms (config.h): New rule.
3664 (all, install): Depend on it.
3665 (all, install, installdirs, uninstall, check): Fix typo.
3666 (mostlyclean, clean, distclean, maintainer-clean): Likewise. Remove
3668 * lib/Makefile.vms (DEFS): Fix value of INSTALLDIR.
3669 (OBJECTS): Use libiconv.obj instead of iconv.obj.
3670 (libiconv.obj): Renamed from iconv.obj.
3671 * srclib/Makefile.vms (INCLUDES): Add parent directory.
3672 (OBJECTS): Remove strtoul.obj, setenv.obj, unsetenv.obj.
3673 (strtoul.obj, setenv.obj, unsetenv.obj): Remove rules.
3674 (alloca.h): New rule.
3675 (canonicalize.obj): Depend on it.
3676 (clean): Remove alloca.h.
3677 * src/Makefile.vms (datadir, localedir): New variables.
3678 (DEFS): Also define LOCALEDIR.
3679 (iconv.obj): Add flags for relocatability,
3680 (iconv.exe): Link with libicrt. Use link_options.
3681 * vms/link_options.opt: New file.
3682 Reported by Jouk Jansen <joukj@hrem.stm.tudelft.nl>.
3684 2003-06-07 Bruno Haible <bruno@clisp.org>
3686 Support for relocatable data files even on Woe32.
3687 * lib/Makefile.msvc (PICFLAGS): Also define PIC.
3689 2003-05-22 Bruno Haible <bruno@clisp.org>
3691 * Version 1.9.1 released.
3693 2003-05-22 Bruno Haible <bruno@clisp.org>
3695 * lib/genaliases.c (main): Emit %pic instead of %null-strings.
3696 Change type of 'name' field to 'int'.
3697 * lib/genaliases2.c (emit_encoding): Add a 'tag' argument. Emit an
3698 invocation of macro S(), including the tag and a counter.
3699 (main): Use the command-line argument as tag.
3700 * Makefile.devel (lib/aliases_aix.h, lib/aliases_osf1.h,
3701 lib/aliases_dos.h, lib/aliases_extra.h): Pass a tag to the program.
3702 * lib/iconv.c (stringpool2_t): New type.
3703 (stringpool2_contents): New data table.
3704 (stringpool2): New macro.
3705 (sysdep_aliases): Make position-independent. Move #includes out to
3707 (aliases2_lookup): Update.
3709 (compare_by_index): Use 'struct nalias' instead of 'struct alias'.
3710 (iconvlist): Convert 'struct alias' to 'struct nalias' while copying.
3711 * lib/aliases2.h: New file, extracted from lib/iconv.c.
3713 2003-05-20 Bruno Haible <bruno@clisp.org>
3715 * lib/iconv.c (iconvlist): Test p->name against NULL, not against "".
3716 Reported by Muraoka Taro <koron@tka.att.ne.jp>.
3718 2003-05-19 Bruno Haible <bruno@clisp.org>
3720 * windows/iconv.rc: Include <winver.h>.
3721 Reported by Perry Rapp.
3723 2003-05-18 Bruno Haible <bruno@clisp.org>
3725 * Version 1.9 released.
3727 2003-05-18 Bruno Haible <bruno@clisp.org>
3729 * lib/Makefile.in (libiconv_plug_osf.so): Avoid using LIBTOOL_LINK.
3731 2003-05-18 Bruno Haible <bruno@clisp.org>
3733 * lib/Makefile.msvc (DEBUGFLAGS): New variable.
3734 (iconv.lib): Use it.
3735 * src/Makefile.msvc (DEBUGFLAGS): New variable.
3736 * tests/Makefile.msvc (DEBUGFLAGS): New variable.
3738 2003-05-17 Bruno Haible <bruno@clisp.org>
3740 * src/Makefile.msvc (libdir, datadir, localedir): New variables.
3741 (IIlibdir, IIdatadir, IIlocaledir): New variables.
3742 (CFLAGS): Define LOCALEDIR.
3743 (iconv_no_i18n.exe): New rule.
3744 (all): Depend on it.
3745 * tests/check-stateful.bat: Invoke iconv_no_i18n instead of iconv.
3746 * tests/check-translit.bat: Likewise.
3748 2003-05-16 Bruno Haible <bruno@clisp.org>
3750 * lib/genaliases.c (main): Emit declarations for gperf-3.0.
3751 * Makefile.devel (lib/aliases.h): Remove gperf command line options;
3752 add new option "-m 10" for gperf-3.0.
3754 2003-05-12 Bruno Haible <bruno@clisp.org>
3756 * m4/error.m4: Update from gettext.
3758 2003-05-12 Bruno Haible <bruno@clisp.org>
3760 * configure.in: Invoke AC_GNU_SOURCE and jm_FUNC_GLIBC_UNLOCKED_IO.
3762 2003-05-12 Bruno Haible <bruno@clisp.org>
3764 * lib/Makefile.msvc (PICFLAGS, CFLAGS): Move BUILDING_* macros from
3767 2003-05-09 Bruno Haible <bruno@clisp.org>
3769 * srclib/error.c: Update from gnulib with modifications.
3770 * srclib/unlocked-io.h: New file, from gnulib.
3771 * m4/strerror_r.m4: New file, from gnulib.
3772 * m4/unlocked-io.m4: New file, from gnulib.
3773 * Makefile.devel (aclocal.m4): Depend on them.
3775 2003-05-08 Bruno Haible <bruno@clisp.org>
3777 * Makefile.msvc (IIPREFIX): New variable.
3778 * srclib/Makefile.msvc (INCLUDES): Add -I..\windows.
3779 * src/Makefile.msvc (IIPREFIX, IIprefix, IIexec_prefix, IIbindir,
3780 IIincludedir): New variables.
3781 (INCLUDES): Add -I..\windows.
3782 (iconv.exe): Define INSTALLPREFIX and INSTALLDIR. Link with
3784 Patches by Perry Rapp.
3786 2003-05-07 Bruno Haible <bruno@clisp.org>
3788 * README.woe32: Fix instructions for step 1.
3789 * srclib/Makefile.msvc (OBJECTS): Remove strtoul.obj.
3790 (strtoul.obj): Remove rule.
3791 Reported by Perry Rapp.
3793 2003-05-07 Bruno Haible <bruno@clisp.org>
3795 * Makefile.vms: New file.
3796 * lib/Makefile.vms: New file.
3797 * srclib/Makefile.vms: New file.
3798 * src/Makefile.vms: New file.
3799 * man/Makefile.vms: New file.
3800 * tests/Makefile.vms: New file.
3801 * Makefile.devel (config.h_vms, lib/config.h_vms, include/iconv.h_vms):
3803 (all): Depend on them.
3805 2003-05-07 Bruno Haible <bruno@clisp.org>
3807 * srclib/Makefile.msvc (OBJECTS): Remove findprog.obj.
3808 (findprog.obj): Remove rule.
3809 * src/Makefile.msvc (includedir): New variable.
3811 2003-05-06 Bruno Haible <bruno@clisp.org>
3813 * lib/translit.def: Upgrade to Unicode 4.0.
3815 2003-05-06 Bruno Haible <bruno@clisp.org>
3817 * srclib/Makefile.am (DEFS): Fix spelling of DEPENDS_ON_LIBICONV.
3818 * srclib/Makefile.msvc (CFLAGS): Likewise.
3820 * srclib/Makefile.msvc (INCLUDES): Add -I.. .
3821 Reported by Perry Rapp.
3823 * Makefile.msvc (config.h): New rule.
3824 (all): Depend on it.
3825 (mostlyclean, clean, distclean, maintainer-clean): Erase config.h.
3826 Reported by Perry Rapp.
3828 2003-05-06 Bruno Haible <bruno@clisp.org>
3830 * autoconf/config.guess: Update to GNU version 2003-02-22.
3831 * autoconf/config.sub: Likewise.
3833 2003-05-06 Bruno Haible <bruno@clisp.org>
3835 * m4/lib-link.m4: Update from GNU gettext.
3836 * autoconf/config.rpath: Update from GNU gettext.
3838 * m4/libtool.m4: Update from GNU gettext, based on libtool-1.5.
3839 * autoconf/ltmain.sh: Update from GNU gettext, based on libtool-1.5.
3841 * m4/gettext.m4: Update from GNU gettext.
3842 * m4/nls.m4: Update from GNU gettext.
3843 * m4/po.m4: Update from GNU gettext.
3844 * Makefile.devel (aclocal.m4): Depend on m4/nls.m4 and m4/po.m4.
3846 2003-04-12 Bruno Haible <bruno@clisp.org>
3848 Support for OpenVMS 7.3.
3849 * lib/iconv.c (USE_OSF1): Define also on VMS.
3851 2003-04-12 Bruno Haible <bruno@clisp.org>
3853 Better support for FreeBSD.
3854 * lib/encodings.def (ISO8859-{1,2,3,4,5,6,7,8,9,10,13,14,15,16): New
3855 aliases, for compatibility with earlier FreeBSD iconv implementation
3856 by Konstantin Chuguev.
3857 * lib/iconv.c (iconv_open, iconv, iconv_close) [FreeBSD]: Define as
3859 * src/Makefile.in (install) [FreeBSD]: Avoid installation problem.
3861 2003-04-12 Bruno Haible <bruno@clisp.org>
3863 * configure.in (mandir): Change default value.
3864 * Makefile.in (datadir): New variable.
3865 (install, installdirs, uninstall): Pass datadir to po and man
3867 * Makefile.os2 (datadir): New variable.
3868 (mandir): Use it instead of prefix.
3869 (install, uninstall): Pass datadir to man directory.
3870 * Makefile.msvc (mandir, docdir): Use datadir instead of prefix.
3871 * man/Makefile.in (datadir): New variable.
3872 (docdir): Use it instead of prefix.
3873 (install, installdirs): Update.
3874 * man/Makefile.os2 (datadir): New variable.
3875 (mandir): Use it instead of prefix.
3876 * man/Makefile.msvc (datadir): New variable.
3877 (mandir, docdir): Use it instead of prefix.
3878 (install, installdirs): Update.
3880 2003-04-06 Bruno Haible <bruno@clisp.org>
3882 Make it possible to build with or without libintl support on Woe32.
3883 * Makefile.devel (config.h.msvc): Remove ENABLE_NLS.
3884 * Makefile.msvc (NO_NLS): New variable.
3885 * srclib/Makefile.msvc (NO_NLS): New variable.
3886 (CFLAGS, INCLUDES): Use them.
3887 * src/Makefile.msvc (NO_NLS): New variable.
3888 (NLSFLAGS, INCINTL, LIBINTL): New variables.
3889 (CFLAGS, INCLUDES, iconv.exe): Use them.
3891 2003-04-12 Bruno Haible <bruno@clisp.org>
3893 * lib/loop_unicode.h (unicode_transliterate): When the Hangul or
3894 variants transliteration failed with RET_ILUNI, don't return
3896 Reported by the FreeBSD porters.
3898 2003-04-06 Bruno Haible <bruno@clisp.org>
3900 * srclib/binary-io.h: New file, from GNU gettext.
3901 * src/iconv.c: Include it.
3902 (O_BINARY, O_TEXT, SET_BINARY): Remove definitions.
3904 2003-04-05 Bruno Haible <bruno@clisp.org>
3906 Support for relocatable installation.
3907 * m4/alloca.m4: New file, from GNU gettext.
3908 * m4/canonicalize.m4: New file, from GNU gettext.
3909 * m4/error.m4: New file, from GNU gettext.
3910 * m4/onceonly.m4: New file, from GNU gettext.
3911 * m4/pathmax.m4: New file, from GNU gettext.
3912 * m4/relocatable.m4: New file, from GNU gettext.
3913 * m4/setenv.m4: New file, from GNU gettext.
3914 * m4/stdbool.m4: New file, from GNU gettext.
3915 * m4/strerror.m4: New file, from GNU gettext.
3916 * m4/xreadlink.m4: New file, from GNU gettext.
3917 * autoconf/config.libpath: New file, from GNU gettext.
3918 * autoconf/install-reloc: New file, from GNU gettext.
3919 * autoconf/reloc-ldflags: New file, from GNU gettext.
3920 * autoconf/missing: New file, from GNU automake 1.7.3.
3921 * lib/relocatable.h: New file, from GNU gettext.
3922 * lib/relocatable.c: New file, from GNU gettext.
3923 * srclib/alloca.c: New file, from GNU gettext.
3924 * srclib/alloca_.h: New file, from GNU gettext.
3925 * srclib/canonicalize.c: New file, from GNU gettext.
3926 * srclib/canonicalize.h: New file, from GNU gettext.
3927 * srclib/error.c: New file, from GNU gettext.
3928 * srclib/error.h: New file, from GNU gettext.
3929 * srclib/exit.h: New file, from GNU gettext.
3930 * srclib/gettext.h: New file, from GNU gettext.
3931 * srclib/memmove.c: New file, from GNU gettext.
3932 * srclib/pathmax.h: New file, from GNU gettext.
3933 * srclib/progname.c: New file, from GNU gettext.
3934 * srclib/progname.h: New file, from GNU gettext.
3935 * srclib/progreloc.c: New file, from GNU gettext.
3936 * srclib/relocatable.c: New file, from GNU gettext.
3937 * srclib/relocatable.h: New file, from GNU gettext.
3938 * srclib/relocwrapper.c: New file, from GNU gettext.
3939 * srclib/setenv.c: New file, from GNU gettext.
3940 * srclib/setenv.h: New file, from GNU gettext.
3941 * srclib/stdbool.h.in: New file, from GNU gettext.
3942 * srclib/strerror.c: New file, from GNU gettext.
3943 * srclib/unsetenv.c: New file, from GNU gettext.
3944 * srclib/xmalloc.c: New file, from GNU gettext.
3945 * srclib/xmalloc.h: New file, from GNU gettext.
3946 * srclib/xreadlink.c: New file, from GNU gettext.
3947 * srclib/xreadlink.h: New file, from GNU gettext.
3948 * srclib/xstrdup.c: New file, from GNU gettext.
3949 * srclib/Makefile.am: New file.
3950 * srclib/Makefile.msvc: New file.
3951 * windows/alloca.h: New file, from GNU gettext.
3952 * windows/stdbool.h: New file, from GNU gettext.
3953 * configure.in (AC_CONFIG_HEADERS): Replace src/config.h with config.h.
3954 Add AC_RELOCATABLE, AC_HEADER_STDC, AC_CHECK_HEADERS(stddef.h stdlib.h
3955 string.h), AC_CHECK_FUNCS(getc_unlocked), AC_REPLACE_FUNCS(memmove),
3956 AM_LANGINFO_CODESET, gl_FUNC_ALLOCA, gl_CANONICALIZE,
3957 gt_FUNC_ERROR_AT_LINE, gl_PATHMAX, gt_FUNC_SETENV, gt_STDBOOL_H,
3958 gl_FUNC_STRERROR, gl_XREADLINK, AC_OUTPUT(srclib/Makefile).
3959 * lib/config.h.in: Add HAVE_GETC_UNLOCKED, HAVE_LANGINFO_CODESET,
3960 HAVE_SETLOCALE, HAVE_STDDEF_H, HAVE_STDLIB_H, HAVE_STRING_H, for
3961 localcharset.c. Add ENABLE_RELOCATABLE, INSTALLPREFIX, for
3963 * lib/Makefile.in (DEFS): New variable.
3964 (SOURCES): Add localcharset.c and relocatable.c.
3965 (OBJECTS): Add localcharset.lo and relocatable.lo.
3966 (LIBCHARSET_OBJECTS): Remove variable.
3967 (libiconv_plug_linux.so, libiconv_plug_solaris.so,
3968 libiconv_plug_osf.so): Use $(DEFS). Don't use $(LIBCHARSET_OBJECTS).
3969 (iconv.lo): Use $(DEFS).
3970 (localcharset.lo, relocatable.lo): New rules.
3971 * lib/Makefile.msvc (CFLAGS): Define HAVE_CONFIG_H, BUILDING_DLL,
3972 ENABLE_RELOCATABLE, IN_LIBRARY, INSTALLDIR, NO_XMALLOC,
3973 set_relocation_prefix, relocate. Remove $(PICFLAGS).
3974 (INCLUDES): Simplify.
3975 (SOURCES): Remove variable.
3976 (OBJECTS): Add localcharset.obj and relocatable.obj.
3977 (LIBCHARSET_OBJECTS): Remove variable.
3978 (iconv.obj): Add $(PICFLAGS).
3979 (localcharset.obj, relocatable.obj): New rules.
3980 (iconv.lib): Drop $(LIBCHARSET_OBJECTS).
3981 * include/iconv.h.in (libiconv_set_relocation_prefix): New declaration.
3982 * src/gettext.h: Remove file.
3983 * src/iconv.c: Include progname.h and relocatable.h.
3984 (ICONV_CONST): Define to const if the system has no iconv.
3985 (main): Invoke set_program_name. Relocate LOCALEDIR.
3986 * src/Makefile.in (top_srcdir): New variable.
3987 (INCLUDES): Add .. and ../srclib.
3988 (iconv_no_i18n, iconv): Link with ../srclib/libicrt.a.
3989 (iconv_no_i18n.@OBJEXT@, iconv.@OBJEXT@): Define INSTALLDIR.
3990 (RELOCATABLE_LIBRARY_PATH, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR,
3991 RELOCATABLE_CONFIG_H_DIR, @SET_RELOCATABLE@, iconv_LDFLAGS): New
3993 (iconv): Use $(iconv_LDFLAGS).
3994 (install): Use $(INSTALL_PROGRAM_ENV).
3995 (distclean): Drop removing config.h.
3996 * src/Makefile.msvc (INCLUDES): Add .., simplify.
3997 * tests/Makefile.msvc (INCLUDES): Simplify.
3998 * Makefile.devel (AUTOHEADER, AUTOMAKE): New variables.
3999 (config.h.in, srclib/Makefile.in, config.h.msvc): New rules.
4000 (all): Depend on them.
4001 (aclocal.m4) Depend also on m4/alloca.m4, m4/canonicalize.m4,
4002 m4/error.m4, m4/onceonly.m4, m4/pathmax.m4, m4/relocatable.m4,
4003 m4/setenv.m4, m4/stdbool.m4, m4/strerror.m4, m4/xreadlink.m4.
4004 (lib/config.h.msvc): Additional processing.
4005 * Makefile.in (all, install, installdirs, uninstall, check): Recurse
4007 (mostlyclean, clean, distclean, maintainerclean): Likewise. Remove
4009 (distclean, maintainerclean): Remove also config.h and some stamps.
4010 * Makefile.msvc (all, install, installdirs, uninstall, check,
4011 mostlyclean, clean, distclean, maintainerclean): Recurse into srclib.
4012 * INSTALL.generic: Document --enable-relocatable and
4013 --with-libintl-prefix. Remove the recommendation to set CPPFLAGS and
4014 LDFLAGS. The lib-link.m4 macros make this unnecessary.
4016 2003-04-05 Bruno Haible <bruno@clisp.org>
4018 * configure.in: Bump version number to 1.9.
4019 * include/iconv.h.in (_LIBICONV_VERSION): Bump.
4020 * windows/iconv.rc: Bump version number.
4021 * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 4:0:2.
4023 2003-04-05 Bruno Haible <bruno@clisp.org>
4025 * Makefile.msvc (PREFIX): New variable.
4027 (distclean, maintainer-clean): Drop Unix specific removals.
4028 * lib/Makefile.msvc (PREFIX, IIPREFIX): New variables.
4030 (IIprefix, IIexec_prefix, IIbindir, IIlibdir): New variables.
4031 (clean): Drop Unix specific removal.
4032 * src/Makefile.msvc (PREFIX): New variable.
4034 (clean): Drop Unix specific removal.
4035 (distclean): Likewise.
4036 * tests/Makefile.msvc (clean): Drop Unix specific removal.
4037 (distclean): Likewise.
4039 2003-04-05 Bruno Haible <bruno@clisp.org>
4041 * m4/endian.m4 (CL_WORDS_LITTLEENDIAN): Use 3-argument AC_DEFINE.
4043 2003-04-05 Bruno Haible <bruno@clisp.org>
4045 * m4/general.m4 (CL_CONFIG_SUBDIRS, CL_CANONICAL_HOST,
4046 CL_CANONICAL_HOST_CPU, CL_CANONICAL_HOST_CPU_FOR_FFCALL): Remove
4048 * m4/gettext.m4: Update from GNU gettext.
4049 * m4/iconv.m4: Update from GNU gettext.
4050 * m4/lcmessage.m4: Update from GNU gettext.
4051 * m4/progtest.m4: Update from GNU gettext.
4052 * m4/libtool.m4: Update from GNU gettext.
4053 2003-02-16 Bruno Haible <bruno@clisp.org>
4054 Workaround autoconf >= 2.52 breakage.
4055 * libtool.m4 (AC_LIBTOOL_ARG_WITH): New macro.
4056 (_LT_AC_LTCONFIG_HACK, AC_PROG_LD): Use it.
4057 * autoconf/ltmain.sh: Update from GNU gettext.
4058 2003-02-18 Bruno Haible <bruno@clisp.org>
4059 Fix the 2002-09-16 fix.
4060 * ltmain.sh (install): If "ln -s -f" fails (this is the case
4061 with /usr/bin/ln on Solaris 2.7), fall back to "rm && ln -s".
4063 2003-04-05 Bruno Haible <bruno@clisp.org>
4065 Start using automake.
4066 * configure.in: Add AM_INIT_AUTOMAKE invocation.
4067 (PACKAGE, VERSION): Remove.
4068 Use AC_CANONICAL_HOST instead of CL_CANONICAL_HOST.
4069 Use AC_PROG_LN_S instead of CL_PROG_LN_S.
4070 Use AC_PROG_RANLIB instead of CL_PROG_RANLIB.
4071 Reorder so that AC_CANONICAL_HOST comes early but still after
4073 * m4/ranlib.m4: Remove file.
4074 * m4/libtool.m4: Undo AC_ -> CL_ substitutions.
4075 * Makefile.devel (CLISP_DIR): Comment out.
4076 (AUTOCONF_FILES): Change to aclocal.m4.
4077 (aclocal.m4): Renamed from autoconf/aclocal.m4. Update dependencies.
4078 (configure.in): Drop --include option.
4080 2003-03-17 Bruno Haible <bruno@clisp.org>
4082 Improved MSVC support.
4083 * Makefile.msvc (prefix): Use less Unixy value.
4084 (local_prefix): Remove variable.
4085 (libdir, includedir, mandir): Use backslashes.
4086 (bindir, datadir, localedir, docdir): New variables.
4087 (INSTALL, INSTALL_PROGRAM, INSTALL_DATA): New variables.
4088 (all): Recurse into po/ and man/.
4089 (install, installdirs, uninstall): Rewritten.
4090 (check, mostlyclean, clean, distclean, maintainer-clean): Recurse
4092 * lib/Makefile.msvc (prefix): Use less Unixy value.
4093 (local_prefix): Remove variable.
4094 (libdir): Use backslashes.
4095 (bindir): New variable.
4096 (INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Set to real values.
4097 (RESOURCES): Enable iconv.res.
4098 (install, installdirs, uninstall): New rules.
4099 (clean): Remove config.h.
4100 (distclean): Don't remove config.h here.
4101 * src/Makefile.msvc (prefix, exec_prefix, bindir): New variables.
4102 (INSTALL, INSTALL_PROGRAM, INSTALL_DATA): New variables.
4103 (install, installdirs, uninstall): New rules.
4104 * man/Makefile.msvc: New file.
4105 * tests/Makefile.msvc (install, installdirs, uninstall): New rules.
4106 * Makefile.devel (all): Depend on po/Makefile.msvc.
4107 (po/Makefile.msvc): New rule.
4108 * windows/iconv.rc: Update.
4109 * README.woe32: Mention automatic installation command.
4111 Rename libcharset.h to localcharset.h.
4112 * lib/iconv.c: Include localcharset.h, not libcharset.h.
4113 * Makefile.in (lib/localcharset.h): Renamed from lib/libcharset.h.
4114 (all, install): Update dependencies.
4115 (all): Create lib/localcharset.h, not lib/libcharset.h.
4116 (mostlyclean, clean, distclean, maintainer-clean): Remove
4117 lib/localcharset.h, not lib/libcharset.h.
4118 * djgpp/README.in, djgpp/README: Update.
4119 * djgpp/config.bat: Update.
4120 * djgpp/config.sed: Update.
4121 * djgpp/fnchange.in, djgpp/fnchange.lst: Update.
4123 2003-01-31 Bruno Haible <bruno@clisp.org>
4125 * src/Makefile.in (all): Don't do the chmod if it has already been
4128 2003-01-31 Bruno Haible <bruno@clisp.org>
4130 * lib/loop_unicode.h (unicode_transliterate): Enable recursive
4131 transliteration. Idea from Perry Rapp.
4132 * lib/gentranslit.c (main): Change bound from 0x10000 to 0x110000.
4133 Change element type of translit_data to 'unsigned int'.
4134 * lib/translit.def: Many new transliterations, mostly taken from glibc.
4135 * lib/translit.h: Regenerated.
4136 * tests/Translit1.ISO-8859-1, tests/Translit1.ASCII: New files.
4137 * tests/Makefile.in (check): Add Translit1 check.
4138 * tests/Makefile.msvc (check): Likewise.
4139 * tests/Makefile.os2 (check): Likewise.
4140 * tests/TranslitFail1.ISO-8859-1: Choose a sentence which the new
4141 improved transliteration cannot do.
4143 2003-02-14 Bruno Haible <bruno@clisp.org>
4145 * Makefile.devel (AUTOCONF): Switch to autoconf-2.57.
4146 (configure): Update rule.
4148 2003-01-03 Albert Chin <libtool@thewrittenword.com>
4150 * autoconf/ltmain.sh: Don't pass -R flags found in a .la's
4151 dependency_libs variable directly down to the linker.
4152 Reported by Tim Mooney <mooney@dogbert.cc.ndsu.nodak.edu>.
4154 2003-01-01 Bruno Haible <bruno@clisp.org>
4156 * src/Makefile.in (install): Use libiconv.la in ../lib, not in
4157 $(libdir), so that installing with DESTDIR works.
4158 Reported by Michael Adams <michael@michaeladams.org>.
4160 2003-01-01 Bruno Haible <bruno@clisp.org>
4162 * Makefile.in (mkinstalldirs): New variable.
4163 (install-lib, install, installdirs): Use it instead of mkdir.
4164 * lib/Makefile.in (mkinstalldirs): New variable.
4165 (install-lib, install, installdirs): Use it instead of mkdir.
4166 * man/Makefile.in (mkinstalldirs): New variable.
4167 (install, installdirs): Use it instead of mkdir.
4168 * src/Makefile.in (mkinstalldirs): New variable.
4169 (install, installdirs): Use it instead of mkdir.
4171 2002-09-27 Bruno Haible <bruno@clisp.org>
4173 * autoconf/mkinstalldirs: Upgrade to automake-1.7.2 version.
4175 2002-11-07 Bruno Haible <bruno@clisp.org>
4177 * m4/libtool.m4: Upgrade to libtool-1.4.3.
4178 * autoconf/ltmain.sh: Upgrade to libtool-1.4.3.
4180 2002-07-14 Bruno Haible <bruno@clisp.org>
4182 * m4/libtool.m4 (_LT_AC_LTCONFIG_HACK): Add support for GNU/FreeBSD.
4184 2002-06-12 Bruno Haible <bruno@clisp.org>
4186 * configure.in: Use new AC_* names of libtool macros. Invoke
4187 AC_LIBTOOL_WIN32_DLL.
4189 2002-12-19 Bruno Haible <bruno@clisp.org>
4191 * lib/Makefile.in (libiconv_plug_solaris.so): Change rule if using gcc.
4192 Reported by Henry Nelson <henry@irm.nara.kindai.ac.jp>.
4194 2002-11-07 Bruno Haible <bruno@clisp.org>
4196 Make "make install" without prior "make" work.
4197 * Makefile.in (lib/libcharset.h): New rule.
4198 (all, install): Depend on it.
4199 Reported by Martin Mokrejš <mmokrejs@natur.cuni.cz>.
4201 2002-10-28 Bruno Haible <bruno@clisp.org>
4203 * man/Makefile.in (install): Change directory back to the working
4204 directory, so that install-sh (which may be a relative pathname) is
4205 found in the right place.
4207 2002-09-16 Bruno Haible <bruno@clisp.org>
4209 * autoconf/ltmain.sh (install): Use "ln -s -f" instead of
4210 "rm -f && ln -s" to make a symlink for a shared library.
4211 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4213 2002-09-02 Bruno Haible <bruno@clisp.org>
4215 * src/iconv.c (main): Don't call bindtextdomain if !ENABLE_NLS.
4217 2002-08-16 Bruno Haible <bruno@clisp.org>
4219 * src/iconv.c (main): Perform fflush before testing ferror(stdout).
4221 2002-05-29 Bruno Haible <bruno@clisp.org>
4223 * Version 1.8 released.
4225 2002-05-26 Bruno Haible <bruno@clisp.org>
4227 * lib/c99.h: New file.
4228 * lib/converters.h: Include it.
4229 * lib/encodings.def (C99): New encoding.
4230 * README, man/iconv_open.3: Document C99 encoding.
4232 2002-05-26 Bruno Haible <bruno@clisp.org>
4234 * lib/java.h (java_mbtowc): Accept 12-byte sequences for non-BMP
4236 (java_wctomb): Produce 12-byte sequences for non-BMP characters.
4238 2002-05-29 Bruno Haible <bruno@clisp.org>
4240 Fix installation of iconv program when linked with a libintl that was
4241 built against an earlier libiconv.
4242 * src/iconv.c: Conditionally disable NLS.
4243 * src/iconv_no_i18n.c: New file.
4244 * src/Makefile.in (libdir): New variable.
4245 (all): Depend on iconv_no_i18n, iconv.@OBJEXT@ but not iconv. Make
4246 directory writable, so iconv executable can be created during "make
4248 (iconv): Remove rule.
4249 (iconv_no_i18n, iconv_no_i18n.@OBJEXT@): New rules.
4250 (install): Link iconv now, after the new libiconv.so is installed.
4251 (clean): Also remove iconv_no_i18n.
4252 * tests/Makefile.in: (check, check-extra-yes): Depend on iconv_no_i18n,
4254 * tests/check-stateful: Use iconv_no_i18n, not iconv.
4255 * tests/check-translit: LIkewise.
4256 * tests/check-translitfailure: Likewise.
4258 2002-05-29 Bruno Haible <bruno@clisp.org>
4260 * configure.in: Call AC_PROG_INSTALL instead of CL_PROG_INSTALL.
4261 * m4/install.m4: Remove file.
4262 * Makefile.devel (autoconf/aclocal.m4): Don't depend on m4/install.m4.
4264 2002-05-24 Bruno Haible <bruno@clisp.org>
4266 * lib/jisx0213.h: Use 'inline' only conditionally.
4268 2002-05-18 Bruno Haible <bruno@clisp.org>
4270 * configure.in (AC_INIT), include/iconv.h.in (_LIBICONV_VERSION),
4271 README, windows/iconv.rc, djgpp/README, djgpp/fnchange.lst:
4272 Bump version number.
4273 * lib/Makefile.in (LIBICONV_VERSION_INFO): Define to 3:0:1.
4275 2002-02-06 Bruno Haible <bruno@clisp.org>
4277 * autoconf/ltmain.sh: Upgrade from libtool-1.4 to libtool-1.4.2.
4279 2002-02-02 Bruno Haible <bruno@clisp.org>
4281 * autoconf/ltmain.sh: Add DESTDIR support on ELF systems.
4283 2001-11-03 Bruno Haible <haible@clisp.cons.org>
4285 * autoconf/ltmain.sh: chmod 777 the .libs directory, so that
4286 "make install" succeeds.
4288 2002-05-18 Bruno Haible <bruno@clisp.org>
4290 * src/Makefile.in (iconv): Remove the -liconv dependency of -lintl
4291 from the command line. Needed to ensure that the new libiconv version
4294 2002-05-14 Bruno Haible <bruno@clisp.org>
4296 Implement and document CP853, TDS565, RISCOS-LATIN1.
4297 * tools/Makefile (ALL): Add cp853.h, tds565.h, riscos1.h.
4298 (cp853.h, tds565.h, riscos1.h): New rules.
4299 * lib/cp853.h: New file.
4300 * lib/tds565.h: New file.
4301 * lib/riscos1.h: New file.
4302 * lib/converters.h: Include them.
4303 * lib/encodings_dos.def (CP853): New encoding.
4304 * lib/encodings_extra.def (TDS565, RISCOS-LATIN1): New encodings.
4305 * README, man/iconv_open.3: Add CP853, TDS565, RISCOS-LATIN1.
4306 * tests/Makefile.in (check-extra-yes): Check CP853, TDS565,
4308 * tests/Makefile.msvc (check): Check CP853.
4309 * tests/CP853.TXT: New file.
4310 * tests/TDS565.TXT: New file.
4311 * tests/RISCOS-LATIN1.TXT: New file.
4313 * lib/cp860.h (cp860_wctomb): Optimize.
4315 2002-05-12 Bruno Haible <bruno@clisp.org>
4317 * tools/Makefile (ksc5601.h): Add two extra characters.
4318 * lib/ksc5601.h: Regenerated.
4319 * tests/EUC-KR.TXT: Add EURO SIGN and REGISTERED SIGN.
4320 * tests/CP949.TXT: Likewise.
4321 * tests/JOHAB.TXT: Likewise.
4323 2002-05-12 Bruno Haible <bruno@clisp.org>
4325 * README: Mention extra encodings.
4326 * man/iconv_open.3: Likewise. Improve formatting in text and html
4329 2002-05-12 Bruno Haible <bruno@clisp.org>
4331 * tests/SHIFT_JIS.TXT: Renamed from tests/SHIFT-JIS.TXT.
4333 2002-05-12 Bruno Haible <bruno@clisp.org>
4335 * Makefile.devel (AUTOCONF): New variable.
4336 (AUTOCONF_FILES): Remove autoconf/autoconf.m4f.
4337 (configure): Use the AUTOCONF variable.
4338 * autoconf/autoconf: Remove file.
4339 * autoconf/autoconf.m4: Remove file.
4340 * autoconf/autoconf.m4f: Remove file.
4342 2002-05-12 Bruno Haible <bruno@clisp.org>
4344 * tools/JISX0213.TXT: New file.
4345 * tools/cjk_tab_to_h.c (do_jisx0213): New function.
4346 (main): Accept "jisx0213".
4347 * tools/Makefile (all): Add jisx0213.h.
4348 (jisx0213.h): New rule.
4349 * lib/jisx0213.h: New file, generated by cjk_tab_to_h.
4350 * lib/euc_jisx0213.h: New file.
4351 * lib/shift_jisx0213.h: New file.
4352 * lib/iso2022_jp3.h: New file.
4353 * lib/converters.h: Include them.
4354 * lib/encodings_extra.def (EUC-JISX0213, SHIFT_JISX0213,
4355 ISO-2022-JP-3): New encodings.
4356 * tests/EUC-JISX0213.TXT: New file.
4357 * tests/SHIFT_JISX0213.TXT: New file.
4358 * tests/ISO-2022-JP-3-snippet: New file.
4359 * tests/ISO-2022-JP-3-snippet.UTF-8: New file.
4360 * tests/Makefile.in (check-extra): Also check EUC-JISX0213,
4361 SHIFT_JISX0213, ISO-2022-JP-3.
4362 * tests/check-stateless: Add support for encodings which contain
4363 precomposed Unicode characters, by eliminating precomposed characters
4364 before the comparison.
4365 * tests/table-from.c (main): Fix usage message.
4366 * tests/table-to.c (main): Make it work for encodings for which the
4367 "to" direction is stateful.
4369 2002-05-09 Bruno Haible <bruno@clisp.org>
4371 New configure option --enable-extra-encodings.
4372 * lib/encodings_extra.def: New file.
4373 * lib/converters.h: Handle USE_EXTRA.
4374 * lib/genaliases2.c (main): Handle USE_EXTRA.
4375 * lib/genflags.c: Define USE_EXTRA.
4376 (main): Include encodings_extra.def.
4377 * lib/iconv.c: Handle ENABLE_EXTRA, conditionally set USE_EXTRA.
4379 * lib/config.h.in (ENABLE_EXTRA): New macro.
4380 * configure.in: Accept option --enable-extra-encodings.
4381 * Makefile.devel (all): Depend on lib/aliases_extra.h.
4382 (lib/aliases_extra.h): New rule.
4383 (lib/flags.h): Depend on lib/encodings_extra.def.
4384 * tests/Makefile.in (check-extra, check-extra-no, check-extra-yes):
4386 (check): Invoke check-extra.
4387 * tests/Makefile.msvc (check): Also check the DOS encodings.
4389 Support for testing the AIX encodings.
4390 * tests/CP856.TXT: New file.
4391 * tests/CP922.TXT: New file.
4392 * tests/CP1046.TXT: New file.
4393 * tests/CP1124.TXT: New file.
4394 * tests/CP1129.TXT: New file.
4395 * tests/CP1161.TXT, tests/CP1161.IRREVERSIBLE.TXT: New files.
4396 * tests/CP1162.TXT: New file.
4397 * tests/CP1163.TXT, tests/CP1163.IRREVERSIBLE.TXT: New files.
4399 Support for testing the OSF/1 encodings.
4400 * tests/DEC-KANJI.TXT: New file.
4401 * tests/DEC-HANYU.TXT, tests/DEC-HANYU.IRREVERSIBLE.TXT: New files.
4403 Support for testing the DOS encodings.
4404 * tests/CP437.TXT: New file.
4405 * tests/CP737.TXT: New file.
4406 * tests/CP775.TXT: New file.
4407 * tests/CP852.TXT: New file.
4408 * tests/CP855.TXT: New file.
4409 * tests/CP857.TXT: New file.
4410 * tests/CP858.TXT: New file.
4411 * tests/CP860.TXT: New file.
4412 * tests/CP861.TXT: New file.
4413 * tests/CP863.TXT: New file.
4414 * tests/CP864.TXT: New file.
4415 * tests/CP865.TXT: New file.
4416 * tests/CP869.TXT: New file.
4417 * tests/CP1125.TXT: New file.
4419 2002-05-09 Bruno Haible <bruno@clisp.org>
4421 Implement more ASCII compatible DOS encodings.
4422 * tools/Makefile (ALL): Add cp737.h, cp858.h, cp860.h, cp863.h.
4423 (cp737.h, cp858.h, cp860.h, cp863.h): New rules.
4424 * lib/cp737.h: New file.
4425 * lib/cp858.h: New file.
4426 * lib/cp860.h: New file.
4427 * lib/cp863.h: New file.
4428 * lib/converters.h: Include them.
4429 * lib/encodings_dos.def (CP737, CP858, CP860, CP863): New encodings.
4431 2002-05-09 Bruno Haible <bruno@clisp.org>
4433 Implement new ASCII compatible encodings from IBM.
4434 * tools/Makefile (ALL): Add cp1161.h, cp1162.h, cp1163.h.
4435 (cp1161.h, cp1162.h, cp1163.h): New rules.
4436 * lib/cp1161.h: New file.
4437 * lib/cp1162.h: New file.
4438 * lib/cp1163.h: New file.
4439 * lib/converters.h: Include them.
4440 * lib/encodings_aix.def (CP1161, CP1162, CP1163): New encodings.
4442 2002-05-09 Bruno Haible <bruno@clisp.org>
4444 Implement and document KOI8-T.
4445 * tools/Makefile (ALL): Add koi8_t.h.
4446 (koi8_t.h): New rule.
4447 * lib/koi8_t.h: New file.
4448 * lib/converters.h: Include it.
4449 * lib/encodings.def (KOI8-T): New encoding.
4450 * README, man/iconv_open.3: Add KOI8-T.
4451 * tests/Makefile.in (tests): Check KOI8-T.
4452 * tests/Makefile.os2 (tests): Likewise.
4453 * tests/Makefile.msvc (tests): Likewise.
4454 * tests/KOI8-T.TXT: New file.
4456 2002-05-09 Bruno Haible <bruno@clisp.org>
4458 * tools/8bit_tab_to_h.c (main): Update copyright year.
4459 * tools/cjk_variants.c (main): Likewise.
4461 2002-05-08 Bruno Haible <bruno@clisp.org>
4463 * README.woe32: Renamed from README.win32.
4465 2002-05-08 Bruno Haible <bruno@clisp.org>
4467 * lib/iconv.c: Enable DOS encodings also when compiling for Woe32,
4468 because the Woe32 consoles use them.
4470 2002-05-04 Bruno Haible <bruno@clisp.org>
4472 * lib/loop_unicode.h (unicode_loop_convert): When quitting the loop
4473 without writing an output character, restore cd->istate to its value
4474 before the xxx_mbtowc call. Otherwise we lose some characters during
4475 CP1255/CP1258/TCVN to Unicode conversion.
4476 (unicode_loop_reset): Likewise for the xxx_flushwc call.
4477 * tests/CP1255-snippet, tests/CP1255-snippet.UTF-8: Make the test
4478 files large enough to test against the bug.
4479 * tests/CP1258-snippet, tests/CP1258-snippet.UTF-8: Likewise.
4480 * tests/TCVN-snippet, tests/TCVN-snippet.UTF-8: Likewise.
4482 2002-04-28 Bruno Haible <bruno@clisp.org>
4484 * tools/Makefile (armscii_8.h): Use table from glibc-2.2.90.
4485 * tests/ARMSCII-8.TXT: Update to glibc-2.2.90 version.
4486 * tests/ARMSCII-8.IRREVERSIBLE.TXT: Remove 0x0027.
4487 * lib/armscii_8.h: Regenerated.
4489 2002-04-28 Bruno Haible <bruno@clisp.org>
4491 * src/iconv.c: Include gettext.h.
4493 (usage, print_version, convert, main): Internationalize.
4494 (main): Call setlocale, bindtextdomain, textdomain.
4495 * src/gettext.h: New file, from GNU gettext 0.11.2.
4496 * src/config.h.in: New file, needed for ENABLE_NLS.
4497 * src/Makefile.in (datadir, localedir): New variables.
4498 (iconv): Link with @LTLIBINTL@.
4499 (iconv.@OBJEXT@): Define LOCALEDIR.
4500 (distclean): Remove config.h.
4501 * po: New directory.
4502 * Makefile.in (all, install, installdirs, uninstall, check,
4503 mostlyclean, clean, distclean, maintainer-clean): Recurse into the po
4505 * autoconf/mkinstalldirs: New file, from automake-1.5.
4506 * ABOUT-NLS: New file, from GNU gettext 0.11.2.
4507 * m4/codeset.m4: New file, from GNU gettext 0.11.2.
4508 * m4/gettext.m4: New file, from GNU gettext 0.11.2.
4509 * m4/glibc21.m4: New file, from GNU gettext 0.11.2.
4510 * m4/isc-posix.m4: New file, from GNU gettext 0.11.2.
4511 * m4/lcmessage.m4: New file, from GNU gettext 0.11.2.
4512 * m4/progtest.m4: New file, from GNU gettext 0.11.2.
4513 * configure.in: Require autoconf-2.52, needed for multiple config.h.in
4514 files. Use new form of AC_INIT. Invoke AM_GNU_GETTEXT.
4515 (PACKAGE, VERSION): Define, needed for po/Makefile.in.in.
4516 * lib/config.h.in (HAVE_LOCALE_H, HAVE_SETLOCALE): Remove.
4518 2002-04-28 gettextize <bug-gnu-gettext@gnu.org>
4520 * configure.in (AC_OUTPUT): Add po/Makefile.in.
4522 2002-04-28 Bruno Haible <bruno@clisp.org>
4524 * m4/eilseq.m4: Renamed from autoconf/eilseq.m4.
4525 * m4/mbstate_t.m4: Renamed from autoconf/mbstate_t.m4.
4526 * m4/general.m4: New file, from GNU clisp.
4527 * m4/proto.m4: New file, from GNU clisp.
4528 * m4/ranlib.m4: New file, from GNU clisp.
4529 * m4/install.m4: New file, from GNU clisp.
4530 * m4/cp.m4: New file, from GNU clisp.
4531 * m4/ln.m4: New file, from GNU clisp.
4532 * m4/endian.m4: New file, from GNU clisp.
4533 * m4/iconv.m4: New file, from GNU gettext 0.11.2.
4534 * m4/lib-ld.m4: New file, from GNU gettext 0.11.2.
4535 * m4/lib-link.m4: New file, from GNU gettext 0.11.2.
4536 * m4/lib-prefix.m4: New file, from GNU gettext 0.11.2.
4537 * autoconf/config.rpath: New file, from GNU gettext 0.11.2.
4538 * m4/libtool.m4: New file, based on libtool-1.4.2.
4539 * Makefile.devel (ACLOCAL): Remove variable.
4540 (ACSELECT): Remove variable.
4541 (OTHERMACROS): Remove variable.
4542 (m4/*.m4): New rules.
4543 (autoconf/aclocal.m4): Construct using aclocal instead of acselect.
4544 * configure.in: Invoke AM_ICONV instead of CL_ICONV.
4546 2002-04-06 Bruno Haible <bruno@clisp.org>
4548 Upgrade to Unicode 3.2.
4549 * tools/cjk_tab_to_h.c (output_title): Bump copyright year.
4550 (compact_large_charset2uni): Add an argument. Determine optimal shift.
4551 Copy modified enc->charset2uni table.
4552 (output_charset2uni): Deal with shift other than 8. Copy encoding, so
4553 as to not disturb subsequent output_uni2charset[_sparse] call.
4554 * lib/hkscs.h: Regenerated.
4555 * tests/BIG5-HKSCS.TXT: Update.
4556 * tests/BIG5-HKSCS.IRREVERSIBLE.TXT: Update.
4558 2002-04-06 Bruno Haible <bruno@clisp.org>
4560 Upgrade to Unicode 3.2.
4561 * tools/Makefile (cns11643_1.h, cns11643_2.h, cns11643_3.h,
4562 cns11643_4a.h, cns11643_4b.h, cns11643_5.h, cns11643_6.h,
4563 cns11643_7.h, cns11643_15.h, cns11643_inv.h): Use
4564 CNS11643-Unicode32.TXT instead of CNS11643-Unicode31.TXT.
4565 * lib/cns11643_3.h: Regenerated.
4566 * lib/cns11643_4a.h: Regenerated.
4567 * lib/cns11643_4b.h: Regenerated.
4568 * lib/cns11643_5.h: Regenerated.
4569 * lib/cns11643_6.h: Regenerated.
4570 * lib/cns11643_7.h: Regenerated.
4571 * lib/cns11643_15.h: Regenerated.
4572 * lib/cns11643_inv.h: Regenerated.
4573 * tests/EUC-TW.TXT: Update.
4575 2002-01-17 Bruno Haible <bruno@clisp.org>
4577 * lib/tcvn.h (tcvn_2uni_1): Make it smaller.
4578 (tcvn_mbtowc): Small optimization.
4580 2002-01-13 Bruno Haible <bruno@clisp.org>
4582 New options -l, -c, -s.
4583 * src/iconv.c (discard_unconvertible, silent): New variables.
4584 (usage): Document options -l, -c, -s.
4585 (print_one): New function.
4586 (convert): If silent is true, don't print error messages about the
4587 conversion to stderr. If discard_unconvertible is true, set the
4588 iconv descriptor to DISCARD_ILSEQ the first time, but make sure to
4589 return the same return code as when discard_unconvertible is false.
4590 (main): Accept options -l, -c, -s. Implement option -l.
4591 * man/iconv.1: Document options -l, -c, -s.
4593 2002-01-13 Bruno Haible <bruno@clisp.org>
4595 Support for "iconv -c".
4596 * include/iconv.h.in (ICONV_GET_DISCARD_ILSEQ): New macro.
4597 (ICONV_SET_DISCARD_ILSEQ): Likewise.
4598 * lib/converters.h (struct conv_struct): New field discard_ilseq.
4599 * lib/iconv.c (iconv_open): Set discard_ilseq to true if tocode
4600 has an "//IGNORE" suffix, and to false otherwise.
4601 (iconvctl): Implement ICONV_GET_DISCARD_ILSEQ, ICONV_SET_DISCARD_ILSEQ.
4602 * lib/loop_unicode.h (unicode_loop_convert): If discard_ilseq is
4603 true, skip one input character instead of returning EILSEQ.
4604 (unicode_loop_reset): Likewise.
4605 * lib/loop_wchar.h (wchar_from_loop_convert): Likewise.
4606 (wchar_to_loop_convert): Likewise.
4608 2002-01-13 Bruno Haible <bruno@clisp.org>
4610 Support for "iconv -l".
4611 * include/iconv.h.in (iconvlist): New declaration.
4612 * Makefile.devel (lib/aliases.h): Change gperf options.
4613 * lib/iconv.c (compare_by_index, compare_by_name, iconvlist): New
4616 2002-01-06 Bruno Haible <bruno@clisp.org>
4618 * lib/loop_unicode.h (unicode_transliterate): If the transliteration
4619 fails due to limited output encoding, return RET_ILUNI, not
4620 RET_TOOSMALL. Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4621 * tests/check-translitfailure: New file.
4622 * tests/TranslitFail1.ISO-8859-1: New file.
4623 * tests/Makefile.in (check): Call check-translitfailure.
4625 2001-12-15 Bruno Haible <bruno@clisp.org>
4627 * lib/euc_jp.h (euc_jp_wctomb): Add irreversible mappings for
4628 Shift_JIS characters 0x5C and 0x7E.
4629 * tests/EUC-JP.IRREVERSIBLE.TXT: New file.
4631 2001-12-05 Bruno Haible <bruno@clisp.org>
4633 * lib/iconv.c (iconv_open): Recognize the empty encoding name. Avoid
4634 endless loop if locale_charset() returns the empty string.
4635 * README, man/iconv_open.3: Add the empty encoding name.
4637 2001-11-10 Bruno Haible <haible@clisp.cons.org>
4639 * lib/Makefile.in (libiconv_plug_linux.so): Allow building it with a
4642 2001-10-23 Bruno Haible <haible@clisp.cons.org>
4644 * tools/Makefile (cp1125.h): New target.
4646 * lib/cp1125.h: New file.
4647 * lib/converters.h: Include it.
4648 * lib/encodings_dos.def (CP1125): New encoding.
4650 2001-09-08 Bruno Haible <haible@clisp.cons.org>
4652 * autoconf/eilseq.m4: New file.
4653 * Makefile.devel (OTHERMACROS): Add it.
4654 * configure.in: Call AC_EILSEQ.
4655 * include/iconv.h.in (EILSEQ): Define to the autoconf determined value.
4657 2001-08-25 Bruno Haible <haible@clisp.cons.org>
4659 Upgrade to autoconf-2.52.
4660 * autoconf/autoconf: Upgrade to autoconf-2.52.
4661 * autoconf/acgeneral.m4: Remove file.
4662 * autoconf/acspecific.m4: Remove file.
4663 * autoconf/autoconf.m4f: New file, from autoconf-2.52.
4664 * autoconf/aclocal.m4: Require autoconf-2.52.
4665 (CL_CANONICAL_HOST): Call AC_CANONICAL_HOST. Don't cache the result,
4666 AC_CANONICAL_HOST does it itself. Add $SHELL in front of
4667 $ac_config_guess and $ac_config_sub.
4668 * Makefile.devel (AUTOCONF_FILES): Remove acgeneral.m4, acspecific.m4.
4670 (configure): Use autoconf options -A, -l instead of -m.
4671 * configure.in: Use AC_CONFIG_SUBDIRS, not AC_OUTPUT_SUBDIRS.
4673 2001-08-05 Bruno Haible <haible@clisp.cons.org>
4675 * autoconf/acgeneral.m4 (AC_MSG_RESULTPROTO): Remove macro.
4676 (AC_LANG_EXTERN): Move to aclocal.m4.
4677 * autoconf/aclocal.m4 (AC_LANG_EXTERN): Moved here from acgeneral.m4.
4678 (CL_PROTO): Use AC_MSG_RESULT directly, instead of AC_MSG_RESULTPROTO.
4679 (CL_SILENT): No need to pushdef AC_MSG_RESULTPROTO.
4681 2001-08-05 Bruno Haible <haible@clisp.cons.org>
4683 Make it possible to build libiconv with CC=gcc CFLAGS="-x c++".
4684 * lib/loop_wchar.h (wchar_to_loop_convert): Rename local variable
4686 * lib/Makefile.in (libiconv_plug_linux.so): Add "-x none" option
4687 between sources and libs.
4688 (libiconv_plug_solaris.so) [GCC]: Likewise.
4689 (libiconv_plug_osf.so) [GCC]: Likewise.
4690 * src/Makefile.in (iconv.@OBJEXT@): New rule.
4691 (iconv): Depend on it.
4692 (clean): Erase *.@OBJEXT@, not *.o.
4693 * tests/Makefile.in (table-from.@OBJEXT@): New rule.
4694 (table-from): Depend on it.
4695 (table-to.@OBJEXT@): New rule.
4696 (table-to): Depend on it.
4697 (clean): Erase *.@OBJEXT@, not *.o.
4699 2001-07-28 Bruno Haible <haible@clisp.cons.org>
4701 * tools/Makefile (iso8859_16.h): Generate from the unicode.org table.
4702 * lib/iso8859_16.h: Regenerated.
4703 * tests/ISO-8859-16.TXT: Swap the values of 0xA5 and 0xAB.
4705 2001-07-17 Bruno Haible <haible@clisp.cons.org>
4707 * configure.in (VERSION): Define. Needed by djgpp/Makefile.maint.
4709 2001-07-03 Bruno Haible <haible@clisp.cons.org>
4711 * configure.in: Also check for mbsinit.
4712 * lib/loop_wchar.h (mbsinit): Define to 1 if not defined.
4713 Needed for SCO 3.2v5.0.2.
4715 2001-06-27 Bruno Haible <haible@clisp.cons.org>
4717 * Version 1.7 released.
4719 2001-06-27 Bruno Haible <haible@clisp.cons.org>
4721 * INSTALL.generic (Particular Systems): Generalize section about
4722 /usr/local to "most systems".
4724 * lib/Makefile.in (all): Build @PLUGLIB@ before libiconv.la, because
4725 Solaris cc destroys iconv.o and iconv.lo while building
4726 libiconv_plug_solaris.so.
4727 (clean): Remove so_locations, left there by the OSF/1 linker.
4729 * lib/cp1255.h (cp1255_decomp): Use 'signed int' instead of 'int'.
4731 * lib/vietcomb.h (viet_decomp): Use 'unsigned int' instead of
4734 * tests/table-from.c: Include string.h.
4735 * tests/table-to.c: Likewise.
4737 2001-06-26 Bruno Haible <haible@clisp.cons.org>
4739 * tools/Makefile (jisx0208.h): Replace U+005C with U+FF3C.
4740 (jisx0212.h): Replace U+007E with U+FF5E.
4741 * lib/jisx0208.h: Regenerated.
4742 * lib/jisx0212.h: Regenerated.
4743 * tests/EUC-JP.TXT: Map 0xA1C0 to U+FF3C. Map 0x8FA2B7 to U+FF5E.
4744 * tests/EUC-JP.IRREVERSIBLE.TXT: Remove file.
4745 * tests/SHIFT-JIS.TXT: Map 0x815F to U+FF3C.
4746 * tests/CP932.TXT: Likewise.
4747 * tests/CP932.IRREVERSIBLE.TXT: 0x815F mapping is now reversible.
4749 2001-06-25 Bruno Haible <haible@clisp.cons.org>
4751 * src/Makefile.in (iconv): Mention $(INCLUDES) before $(CFLAGS) and
4753 * src/Makefile.msvc (iconv.exe): Likewise.
4754 * src/Makefile.os2 (iconv.exe): Likewise.
4755 * lib/Makefile.in (libiconv_plug_linux.so): Likewise.
4756 (libiconv_plug_solaris.so): Likewise.
4757 (libiconv_plug_osf.so): Likewise.
4758 (iconv.lo): Likewise.
4759 * lib/Makefile.msvc (iconv.obj): Likewise.
4760 * lib/Makefile.os2 (iconv.obj): Likewise.
4761 * tests/Makefile.in (table-from, table-to): Likewise.
4762 * tests/Makefile.msvc (table-from.exe, table-to.exe): Likewise.
4763 * tests/Makefile.os2 (table-from.exe, table-to.exe): Likewise.
4764 (genutf8.exe): Don't use $(INCLUDES).
4766 2001-06-25 Bruno Haible <haible@clisp.cons.org>
4768 * include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
4769 Bump version number.
4770 * lib/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:4:0.
4772 2001-06-25 Bruno Haible <haible@clisp.cons.org>
4774 * Makefile.devel (OTHERMACROS): Use libtool.m4 in libcharset subdir.
4776 2001-06-25 Bruno Haible <haible@clisp.cons.org>
4778 * lib/encodings.def: Make SHIFT_JIS the primary name of SJIS.
4780 2001-06-08 Bruno Haible <haible@clisp.cons.org>
4782 * autoconf/ltmain.sh: Upgrade to libtool-1.4.
4783 * autoconf/ltconfig: Remove file.
4785 2001-06-08 Bruno Haible <haible@clisp.cons.org>
4787 * autoconf/config.guess: Update to GNU version 2001-05-11.
4788 * autoconf/config.sub: Likewise.
4790 2001-06-03 Bruno Haible <haible@clisp.cons.org>
4792 * lib/loop_unicode.h (unicode_loop_convert): Ignore Unicode 3.1 tag
4793 characters if they cannot be converted.
4794 (unicode_loop_reset): Likewise.
4795 * lib/iso2022_jp2.h (STATE_TAG_NONE, STATE_TAG_LANGUAGE,
4796 STATE_TAG_LANGUAGE_j, STATE_TAG_LANGUAGE_ja, STATE_TAG_LANGUAGE_k,
4797 STATE_TAG_LANGUAGE_ko, STATE_TAG_LANGUAGE_z, STATE_TAG_LANGUAGE_zh):
4799 (SPLIT_STATE, COMBINE_STATE): Different differently for wctomb
4801 (iso2022_jp2_wctomb): Keep track of Unicode 3.1 language tag.
4802 If "ja", prefer conversion to Japanese character sets. If "zh",
4803 prefer conversion to GB2312. If "ko", prefer conversion to KSC5601.
4805 * lib/converters.h (RET_ILUNI): Change value from 0 to -1.
4806 (RET_TOOSMALL): Change value from -1 to -2.
4807 * lib/loop_unicode.h (unicode_transliterate): Allow xxx_wctomb to
4808 return 0 written bytes.
4810 2001-06-06 Bruno Haible <haible@clisp.cons.org>
4812 * lib/encodings.def: Align with IANA character-set registry.
4813 (US-ASCII): Add alias "ANSI_X3.4-1986".
4814 (ISO-8859-14): Add alias "ISO-CELTIC".
4815 (JIS_X0208): Add alias "JIS_C6226-1983".
4816 (BIG5HKSCS): Add alias "BIG5-HKSCS".
4817 * README, man/iconv_open.3: Rename BIG5HKSCS to BIG5-HKSCS.
4818 * tests/Makefile.in (check): Likewise.
4819 * tests/Makefile.os2 (check): Likewise.
4820 * tests/Makefile.msvc (check): Likewise.
4821 * tests/BIG5-HKSCS.TXT: Renamed from BIG5HKSCS.TXT.
4822 * tests/BIG5-HKSCS.IRREVERSIBLE.TXT: Renamed from
4823 BIG5HKSCS.IRREVERSIBLE.TXT.
4825 2001-06-02 Bruno Haible <haible@clisp.cons.org>
4827 * tools/cjk_tab_to_h.c (Encoding): Add fffd field.
4828 (is_charset2uni_large, compact_large_charset2uni): New functions.
4829 (find_charset2uni_pages): Use enc->fffd instead of 0xfffd.
4830 (output_charset2uni): If mapping to more than the Unicode BMP,
4831 use an extra indirection to keep each value in 16 bits.
4832 (invert): Bump limit from U+10000 to U+30000.
4833 (output_uni2charset_dense): Likewise.
4834 (output_uni2charset_sparse): Likewise. If mapping to more than one
4835 CJK plane, use three bytes per value instead of two bytes.
4836 (byte_row_cns11643): Allow more than 3 CJK planes.
4837 (do_cns11643_only_uni2charset): Increase number of rows, to include
4838 plane 15. Remove plane bits hack.
4839 (main): Accept names cns11643_4a,4b,5,6,7,15 as well.
4840 * tools/Makefile (ALL): Add cns11643_4a.h, cns11643_4b.h, cns11643_5.h,
4841 cns11643_6.h, cns11643_7.h, cns11643_15.h.
4842 (cns11643_1.h, cns11643_2.h, cns11643_3.h): Use new Unicode 3.1
4844 (cns11643_4a.h, cns11643_4b.h, cns11643_5.h, cns11643_6.h,
4845 cns11643_7.h, cns11643_15.h): New rules.
4846 (cns11643_inv.h): Change title.
4847 * lib/cns11643_1.h: Regenerated from Unicode 3.1 derived table.
4848 * lib/cns11643_3.h: Likewise.
4849 * lib/cns11643_4a.h: New file.
4850 * lib/cns11643_4b.h: New file.
4851 * lib/cns11643_4.h: New file.
4852 * lib/cns11643_5.h: New file.
4853 * lib/cns11643_6.h: New file.
4854 * lib/cns11643_7.h: New file.
4855 * lib/cns11643_15.h: New file.
4856 * lib/cns11643_inv.h: Regenerated from Unicode 3.1 derived table.
4857 (cns11643_inv_wctomb): Return 3 bytes now.
4858 * lib/cns11643.h: Include cns11643_4.h, cns11643_5.h, cns11643_6.h,
4859 cns11643_7.h, cns11643_15.h.
4860 (cns11643_wctomb): Now a simple alias to cns11643_inv_wctomb. Return
4861 plane number starting at 1, not 0.
4862 * lib/dec_hanyu.h (dec_hanyu_wctomb): Update for cns11643_wctomb
4864 * lib/euc_tw.h (euc_tw_mbtowc): Accept CNS11643 planes 4,5,6,7,15 as
4866 (euc_tw_wctomb): Update for cns11643_wctomb change.
4867 * lib/iso2022_cn.h (iso2022_cn_wctomb): Likewise.
4868 * lib/iso2022_cnext.h (iso2022_cn_ext_mbtowc): Accept CNS11643 planes
4870 (iso2022_cn_ext_wctomb): Update for cns11643_wctomb change.
4871 Try CNS11643 planes 4,5,6,7 as well.
4872 * tests/EUC-TW.TXT: Many additions, mostly in planes 3,4,5,6,7,15.
4873 * tests/EUC-TW.IRREVERSIBLE.TXT: Reflect additions to CNS11643 plane 1.
4876 2001-06-01 Bruno Haible <haible@clisp.cons.org>
4878 * tests/table-from.c (bmp_only): New variable.
4879 (ucs4_decode): If bmp_only, don't return characters outside Unicode
4881 (main): When testing UTF-8 or GB18030, set bmp_only to 1. Don't print
4882 a conversion line if ucs4_decode returns NULL.
4883 * tests/table-to.c (main): When testing encodings other than UTF-8 and
4884 GB18030, loop upto U+30000 instead of U+10000.
4886 2001-05-24 Bruno Haible <haible@clisp.cons.org>
4888 * lib/converters.h (mbtowc_funcs): Add flushwc member function.
4889 * lib/flushwc.h: New file.
4890 * lib/cp1255.h: Include flushwc.h.
4891 (cp1255_comp_table_data, cp1255_comp_table): New arrays.
4892 (cp1255_mbtowc): Compose base and combining characters.
4893 (cp1255_flushwc): New macro.
4894 * lib/vietcomb.h (viet_comp_table_data, viet_comp_table): New arrays.
4895 * lib/cp1258.h: Include flushwc.h.
4896 (cp1258_mbtowc): Compose base and combining characters.
4897 (cp1258_flushwc): New macro.
4898 * lib/tcvn.h: Include flushwc.h.
4899 (tcvn_mbtowc): Compose base and combining characters.
4900 (tcvn_flushwc): New macro.
4901 * lib/loop_unicode.h: (unicode_transliterate): New function, extracted
4902 from unicode_loop_convert.
4903 (unicode_loop_convert): Use unicode_transliterate.
4904 (unicode_loop_reset): Call xxx_flushwc and output the resulting
4906 * lib/encodings.def: Add xxx_flushwc member.
4907 * lib/encodings_aix.def: Likewise.
4908 * lib/encodings_dos.def: Likewise.
4909 * lib/encodings_local.def: Likewise.
4910 * lib/encodings_osf1.def: Likewise.
4911 * lib/genaliases.c: Add an argument to the DEFENCODING macro.
4912 * lib/genaliases2.c: Likewise.
4913 * lib/genflags.c: Likewise.
4914 * lib/iconv.c: Likewise.
4915 * tests/table-from.c (try): Reset the iconv descriptor before the main
4916 call, and flush it afterwards.
4917 (ucs4_decode): New function.
4918 (main): Allow up to 3 Unicode characters output. Call ucs4_decode.
4919 * tests/CP1255-snippet: New file.
4920 * tests/CP1255-snippet.UTF-8: New file.
4921 * tests/CP1258-snippet: New file.
4922 * tests/CP1258-snippet.UTF-8: New file.
4923 * tests/TCVN-snippet: New file.
4924 * tests/TCVN-snippet.UTF-8: New file.
4925 * tests/Makefile.in (check): Check combining behaviour of CP1255,
4927 * tests/Makefile.msvc (check): Likewise.
4928 * tests/Makefile.os2 (check): Likewise.
4930 2001-05-22 Bruno Haible <haible@clisp.cons.org>
4932 * lib/converters.h (RET_ILUNI): New macro.
4933 (RET_ILSEQ): Change value to -1.
4934 (RET_TOOFEW): Change value.
4935 * lib/loop_unicode.h (unicode_loop_convert): Write RET_ILUNI instead
4936 of 0. Update handling of xxx_mbtowc return value.
4937 * lib/genflags.c (emit_encoding): Likewise.
4938 * lib/ascii.h (ascii_wctomb): Use RET_ILUNI instead of RET_ILSEQ.
4939 * lib/armscii_8.h (armscii_8_wctomb): Likewise.
4940 * lib/big5.h (big5_wctomb): Likewise.
4941 * lib/big5hkscs.h (big5hkscs_wctomb): Likewise.
4942 * lib/ces_big5.h (ces_big5_wctomb): Likewise.
4943 * lib/ces_gbk.h (ces_gbk_wctomb): Likewise.
4944 * lib/cns11643.h (cns11643_wctomb): Likewise.
4945 * lib/cns11643_inv.h (cns11643_inv_wctomb): Likewise.
4946 * lib/cp437.h (cp437_wctomb): Likewise.
4947 * lib/cp775.h (cp775_wctomb): Likewise.
4948 * lib/cp850.h (cp850_wctomb): Likewise.
4949 * lib/cp852.h (cp852_wctomb): Likewise.
4950 * lib/cp855.h (cp855_wctomb): Likewise.
4951 * lib/cp856.h (cp856_wctomb): Likewise.
4952 * lib/cp857.h (cp857_wctomb): Likewise.
4953 * lib/cp861.h (cp861_wctomb): Likewise.
4954 * lib/cp862.h (cp862_wctomb): Likewise.
4955 * lib/cp864.h (cp864_wctomb): Likewise.
4956 * lib/cp865.h (cp865_wctomb): Likewise.
4957 * lib/cp866.h (cp866_wctomb): Likewise.
4958 * lib/cp869.h (cp869_wctomb): Likewise.
4959 * lib/cp874.h (cp874_wctomb): Likewise.
4960 * lib/cp922.h (cp922_wctomb): Likewise.
4961 * lib/cp932ext.h (cp932ext_wctomb): Likewise.
4962 * lib/cp932.h (cp932_wctomb): Likewise.
4963 * lib/cp936ext.h (cp936ext_wctomb): Likewise.
4964 * lib/cp949.h (cp949_wctomb): Likewise.
4965 * lib/cp950ext.h (cp950ext_wctomb): Likewise.
4966 * lib/cp950.h (cp950_wctomb): Likewise.
4967 * lib/cp1046.h (cp1046_wctomb): Likewise.
4968 * lib/cp1124.h (cp1124_wctomb): Likewise.
4969 * lib/cp1129.h (cp1129_wctomb): Likewise.
4970 * lib/cp1133.h (cp1133_wctomb): Likewise.
4971 * lib/cp1250.h (cp1250_wctomb): Likewise.
4972 * lib/cp1251.h (cp1251_wctomb): Likewise.
4973 * lib/cp1252.h (cp1252_wctomb): Likewise.
4974 * lib/cp1253.h (cp1253_wctomb): Likewise.
4975 * lib/cp1254.h (cp1254_wctomb): Likewise.
4976 * lib/cp1255.h (cp1255_wctomb): Likewise.
4977 * lib/cp1256.h (cp1256_wctomb): Likewise.
4978 * lib/cp1257.h (cp1257_wctomb): Likewise.
4979 * lib/cp1258.h (cp1258_wctomb): Likewise.
4980 * lib/dec_hanyu.h (dec_hanyu_wctomb): Likewise.
4981 * lib/dec_kanji.h (dec_kanji_wctomb): Likewise.
4982 * lib/euc_cn.h (euc_cn_wctomb): Likewise.
4983 * lib/euc_jp.h (euc_jp_wctomb): Likewise.
4984 * lib/euc_kr.h (euc_kr_wctomb): Likewise.
4985 * lib/euc_tw.h (euc_tw_wctomb): Likewise.
4986 * lib/gb12345ext.h (gb12345ext_wctomb): Likewise.
4987 * lib/gb12345.h (gb12345_wctomb): Likewise.
4988 * lib/gb18030ext.h (gb18030ext_wctomb): Likewise.
4989 * lib/gb18030.h (gb18030_wctomb): Likewise.
4990 * lib/gb18030uni.h (gb18030uni_wctomb): Likewise.
4991 * lib/gb2312.h (gb2312_wctomb): Likewise.
4992 * lib/gbkext_inv.h (gbkext_inv_wctomb): Likewise.
4993 * lib/gbk.h (gbk_wctomb): Likewise.
4994 * lib/georgian_academy.h (georgian_academy_wctomb): Likewise.
4995 * lib/georgian_ps.h (georgian_ps_wctomb): Likewise.
4996 * lib/hkscs.h (hkscs_wctomb): Likewise.
4997 * lib/hp_roman8.h (hp_roman8_wctomb): Likewise.
4998 * lib/hz.h (hz_wctomb): Likewise.
4999 * lib/iso2022_cnext.h (iso2022_cn_ext_wctomb): Likewise.
5000 * lib/iso2022_cn.h (iso2022_cn_wctomb): Likewise.
5001 * lib/iso2022_jp1.h (iso2022_jp1_wctomb): Likewise.
5002 * lib/iso2022_jp2.h (iso2022_jp2_wctomb): Likewise.
5003 * lib/iso2022_jp.h (iso2022_jp_wctomb): Likewise.
5004 * lib/iso2022_kr.h (iso2022_kr_wctomb): Likewise.
5005 * lib/iso646_cn.h (iso646_cn_wctomb): Likewise.
5006 * lib/iso646_jp.h (iso646_jp_wctomb): Likewise.
5007 * lib/iso8859_1.h (iso8859_1_wctomb): Likewise.
5008 * lib/iso8859_2.h (iso8859_2_wctomb): Likewise.
5009 * lib/iso8859_3.h (iso8859_3_wctomb): Likewise.
5010 * lib/iso8859_4.h (iso8859_4_wctomb): Likewise.
5011 * lib/iso8859_5.h (iso8859_5_wctomb): Likewise.
5012 * lib/iso8859_6.h (iso8859_6_wctomb): Likewise.
5013 * lib/iso8859_7.h (iso8859_7_wctomb): Likewise.
5014 * lib/iso8859_8.h (iso8859_8_wctomb): Likewise.
5015 * lib/iso8859_9.h (iso8859_9_wctomb): Likewise.
5016 * lib/iso8859_10.h (iso8859_10_wctomb): Likewise.
5017 * lib/iso8859_13.h (iso8859_13_wctomb): Likewise.
5018 * lib/iso8859_14.h (iso8859_14_wctomb): Likewise.
5019 * lib/iso8859_15.h (iso8859_15_wctomb): Likewise.
5020 * lib/iso8859_16.h (iso8859_16_wctomb): Likewise.
5021 * lib/isoir165ext.h (isoir165ext_wctomb): Likewise.
5022 * lib/isoir165.h (isoir165_wctomb): Likewise.
5023 * lib/jisx0201.h (jisx0201_wctomb): Likewise.
5024 * lib/jisx0208.h (jisx0208_wctomb): Likewise.
5025 * lib/jisx0212.h (jisx0212_wctomb): Likewise.
5026 * lib/johab.h (johab_wctomb): Likewise.
5027 * lib/johab_hangul.h (johab_hangul_wctomb, johab_hangul_decompose):
5029 * lib/koi8_r.h (koi8_r_wctomb): Likewise.
5030 * lib/koi8_ru.h (koi8_ru_wctomb): Likewise.
5031 * lib/koi8_u.h (koi8_u_wctomb): Likewise.
5032 * lib/ksc5601.h (ksc5601_wctomb): Likewise.
5033 * lib/mac_arabic.h (mac_arabic_wctomb): Likewise.
5034 * lib/mac_centraleurope.h (mac_centraleurope_wctomb): Likewise.
5035 * lib/mac_croatian.h (mac_croatian_wctomb): Likewise.
5036 * lib/mac_cyrillic.h (mac_cyrillic_wctomb): Likewise.
5037 * lib/mac_greek.h (mac_greek_wctomb): Likewise.
5038 * lib/mac_hebrew.h (mac_hebrew_wctomb): Likewise.
5039 * lib/mac_iceland.h (mac_iceland_wctomb): Likewise.
5040 * lib/mac_roman.h (mac_roman_wctomb): Likewise.
5041 * lib/mac_romania.h (mac_romania_wctomb): Likewise.
5042 * lib/mac_thai.h (mac_thai_wctomb): Likewise.
5043 * lib/mac_turkish.h (mac_turkish_wctomb): Likewise.
5044 * lib/mac_ukraine.h (mac_ukraine_wctomb): Likewise.
5045 * lib/mulelao.h (mulelao_wctomb): Likewise.
5046 * lib/nextstep.h (nextstep_wctomb): Likewise.
5047 * lib/sjis.h (sjis_wctomb): Likewise.
5048 * lib/tcvn.h (tcvn_wctomb): Likewise.
5049 * lib/tis620.h (tis620_wctomb): Likewise.
5050 * lib/ucs2be.h (ucs2be_wctomb): Likewise.
5051 * lib/ucs2.h (ucs2_wctomb): Likewise.
5052 * lib/ucs2internal.h (ucs2internal_wctomb): Likewise.
5053 * lib/ucs2le.h (ucs2le_wctomb): Likewise.
5054 * lib/ucs2swapped.h (ucs2swapped_wctomb): Likewise.
5055 * lib/ucs4.h (ucs4_wctomb): Likewise.
5056 * lib/uhc_1.h (uhc_1_wctomb): Likewise.
5057 * lib/uhc_2.h (uhc_2_wctomb): Likewise.
5058 * lib/utf16be.h (utf16be_wctomb): Likewise.
5059 * lib/utf16.h (utf16_wctomb): Likewise.
5060 * lib/utf16le.h (utf16le_wctomb): Likewise.
5061 * lib/utf32be.h (utf32be_wctomb): Likewise.
5062 * lib/utf32.h (utf32_wctomb): Likewise.
5063 * lib/utf32le.h (utf32le_wctomb): Likewise.
5064 * lib/utf7.h (utf7_wctomb): Likewise.
5065 * lib/utf8.h (utf8_wctomb): Likewise.
5066 * lib/viscii.h (viscii_wctomb): Likewise.
5067 * tools/8bit_tab_to_h.c (main): Likewise.
5068 * tools/cjk_tab_to_h.c (output_uni2charset_dense,
5069 output_uni2charset_sparse, do_gb18030uni): Likewise.
5071 2001-05-19 Bruno Haible <haible@clisp.cons.org>
5073 * Makefile.devel (all): Add man/{iconv.1,iconv*.3}.html.
5074 (man/%.html): New rule.
5075 * man/Makefile.in (docdir, htmldir): New variables.
5076 (install, installdirs): Install the HTML formatted man pages in
5078 (uninstall): Uninstall them.
5080 2001-05-20 Bruno Haible <haible@clisp.cons.org>
5082 * lib/cp1255.h (cp1255_decomp_table): New array.
5083 (cp1255_comb_table): New array.
5084 (cp1255_wctomb): Decompose Unicode characters.
5085 * tests/CP1255.IRREVERSIBLE.TXT: New file.
5087 2001-05-13 Bruno Haible <haible@clisp.cons.org>
5089 * lib/vietcomb.h: New file.
5090 * lib/cp1258.h: Include it.
5091 (cp1258_comb_table): New array.
5092 (cp1258_wctomb): Decompose Unicode characters.
5093 * lib/tcvn.h: Include it.
5094 (tcvn_comb_table): New array.
5095 (tcvn_wctomb): Decompose Unicode characters.
5096 * tests/CP1258.IRREVERSIBLE.TXT: New file.
5097 * tests/TCVN.IRREVERSIBLE.TXT: New file.
5099 2001-05-06 Bruno Haible <haible@clisp.cons.org>
5101 * lib/Makefile.msvc (config.h): Allow the 'del' command to fail.
5102 (iconv.lib): Likewise.
5104 2001-05-06 Bruno Haible <haible@clisp.cons.org>
5106 * lib/Makefile.in (CPPFLAGS, LDFLAGS): New variables.
5107 (CPP): Remove variable.
5108 (libiconv.la, libiconv_plug_linux.so, libiconv_plug_solaris.so,
5109 libiconv_plug_osf.so): Use LDFLAGS.
5110 (libiconv_plug_linux.so, libiconv_plug_solaris.so,
5111 libiconv_plug_osf.so, iconv.lo): Use CPPFLAGS.
5112 * lib/Makefile.msvc (CPP): Remove variable.
5113 * src/Makefile.in (CPPFLAGS, LDFLAGS): New variables.
5114 (CPP): Remove variable.
5115 (iconv): Use CPPFLAGS and LDFLAGS.
5116 * src/Makefile.msvc (CPP): Remove variable.
5117 * tests/Makefile.in (CPPFLAGS, LDFLAGS): New variables.
5118 (check, table-from, table-to): Use CPPFLAGS and LDFLAGS.
5119 * tests/Makefile.msvc (CPP): Remove variable.
5121 2001-05-06 Bruno Haible <haible@clisp.cons.org>
5123 * lib/Makefile.in (libiconv_plug_solaris.so): Change rule if not using
5124 gcc. Reported by Paananen Mikko <mikkopa@cs.tut.fi>.
5126 2001-04-11 Bruno Haible <haible@clisp.cons.org>
5128 Implement and document UTF-32, UTF-32BE, UTF-32LE.
5129 * src/utf32.h, src/utf32be.h, src/utf32le.h: New files.
5130 * src/converters.h: Include them.
5131 * src/encodings.def (UTF-32, UTF-32BE, UTF32LE): New encodings.
5132 * README, man/iconv_open.3: Add UTF-32, UTF-32BE, UTF32LE.
5133 * tests/Makefile.in (check): Check UTF-32, UTF-32BE, UTF32LE.
5134 * tests/Makefile.os2 (check): Likewise.
5135 * tests/Makefile.msvc (check): Likewise.
5136 * tests/UTF-32*snippet*: New files.
5138 * lib/ucs4.h (ucs4_mbtowc): Fix value of other-endian byte order.
5139 (ucs4_wctomb): Allow any 31-bit codepoint.
5141 2001-04-11 Bruno Haible <haible@clisp.cons.org>
5143 * tests/GB18030.TXT: Add mappings for all of U+0000..U+FFFF, including
5144 unassigned code points.
5145 * tests/table-from.c (main); When dumping GB18030, don't print code
5146 points larger than U+FFFF.
5148 2001-03-30 Bruno Haible <haible@clisp.cons.org>
5150 * tools/Makefile (GB18030uni.TXT): Use a table source which includes
5151 the unassigned Unicode code points.
5152 * lib/gb18030uni.h: Update.
5153 (gb18030uni_ranges): Remove bitmap_offset field.
5154 (gb18030uni_bitmap): Remove array.
5155 (gb18030uni_mbtowc): Omit gb18030uni_bitmap access.
5156 (gb18030uni_wctomb): Likewise.
5157 * lib/gb18030.h (gb18030_mbtowc): Handle Unicode characters >= 0x10000.
5158 (gb18030_wctomb): Likewise.
5160 2001-03-21 Bruno Haible <haible@clisp.cons.org>
5162 * INSTALL.generic (Particular Systems): Add recommendations for AIX 3.
5164 2001-03-21 Bruno Haible <haible@clisp.cons.org>
5166 * src/iconv.c (print_version): Now called GNU libiconv.
5168 2001-03-20 Bruno Haible <haible@clisp.cons.org>
5170 * README: This package is now called GNU libiconv.
5172 * tools/8bit_tab_to_h.c (main): Emit copyright notice to the output
5174 * tools/cjk_tab_to_h.c (output_title): Likewise.
5175 * tools/cjk_variants.c (main): Likewise.
5176 * lib/gentranslit.c (main): Likewise.
5178 2001-03-19 Bruno Haible <haible@clisp.cons.org>
5180 * autoconf/aclocal.m4 (CL_CANONICAL_HOST): Always define
5181 ac_config_guess and ac_config_sub. Then ignore requests for
5182 AC_CONFIG_AUX_DIR_DEFAULT or AC_CANONICAL_HOST.
5184 2001-03-10 Bruno Haible <haible@clisp.cons.org>
5186 * INSTALL.generic: New section "Particular Systems".
5188 2001-03-10 Bruno Haible <haible@clisp.cons.org>
5190 * lib/Makefile.in (libiconv.la): Pass flag -no-undefined. Needed on
5191 platforms like BeOS.
5193 * lib/loop_wchar.h (mbstate_t): Don't typedef if already #defined in
5196 2001-03-06 Bruno Haible <haible@clisp.cons.org>
5198 * Version 1.6 released.
5199 * include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
5200 Bump version number.
5201 * lib/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:3:0.
5203 2001-03-05 Bruno Haible <haible@clisp.cons.org>
5205 Provide all encodings used by OSF/1 5.1 locales.
5206 * lib/dec_kanji.h: New file.
5207 * lib/dec_hanyu.h: New file.
5208 * lib/converters.h: Include them if USE_OSF1 is defined.
5209 * lib/encodings_osf1.def: New file.
5210 * lib/genflags.c (main): Include it. Define USE_OSF1.
5211 * lib/genaliases2.c (main): Include it conditionally.
5212 * lib/iconv.c: Define USE_OSF1 on OSF/1.
5213 Include encodings_osf1.def and aliases_osf1.h.
5214 * lib/Makefile.in (iconv.lo): Depend on encodings_osf1.def and
5216 * Makefile.devel (lib/aliases_osf1.h): New target.
5217 (all): Depend on lib/aliases_osf1.h.
5218 (lib/flags.h): Depend on lib/encodings_osf1.def.
5220 2001-03-01 Bruno Haible <haible@clisp.cons.org>
5222 * tools/Makefile (cp775.h): New target.
5224 * lib/cp775.h: New file.
5225 * lib/converters.h: Include it.
5226 * lib/encodings_dos.def (CP775): New encoding.
5228 2001-02-25 Bruno Haible <haible@clisp.cons.org>
5230 * lib/iconv.c (iconv_open): locale_charset() doesn't return NULL any
5233 2001-02-24 Bruno Haible <haible@clisp.cons.org>
5235 * src/iconv.c (convert): Use ICONV_CONST.
5236 * tests/table-from.c: Include config.h.
5237 (try): Use ICONV_CONST.
5238 * tests/table-to.c: Include config.h.
5239 (main): Use ICONV_CONST.
5240 * tests/Makefile.in (INCLUDES): Add -I../lib.
5241 * tests/Makefile.os2 (INCLUDES): Likewise.
5242 * tests/Makefile.msvc (INCLUDES): Add -I..\lib.
5244 2001-02-24 Bruno Haible <haible@clisp.cons.org>
5246 Provide all encodings used by DOS locales.
5247 * tools/Makefile (cp437.h, cp852.h, cp855.h, cp857.h, cp861.h,
5248 cp864.h, cp865.h, cp869.h): New targets.
5250 * lib/cp437.h: New file.
5251 * lib/cp852.h: New file.
5252 * lib/cp855.h: New file.
5253 * lib/cp857.h: New file.
5254 * lib/cp861.h: New file.
5255 * lib/cp864.h: New file.
5256 * lib/cp865.h: New file.
5257 * lib/cp869.h: New file.
5258 * lib/converters.h: Include them if USE_DOS is defined.
5259 * lib/encodings_dos.def: New file.
5260 * lib/genflags.c (main): Include it. Define USE_DOS.
5261 * lib/genaliases2.c (main): Include it conditionally.
5262 * lib/iconv.c: Define USE_DOS on DJGPP.
5263 Include encodings_dos.def and aliases_dos.h.
5264 * lib/Makefile.in (iconv.lo): Depend on encodings_dos.def and
5266 * Makefile.devel (lib/aliases_dos.h): New target.
5267 (all): Depend on lib/aliases_dos.h.
5268 (lib/flags.h): Depend on lib/encodings_dos.def.
5270 2001-02-23 Bruno Haible <haible@clisp.cons.org>
5272 * src/iconv.c [DJGPP]: Include <io.h> and <unistd.h>.
5273 (SET_BINARY) [O_BINARY]: New macro.
5274 (usage): Mention --binary if available.
5275 (convert): Use SET_BINARY instead of setmode.
5277 Reported by Juan Manuel Guerrero <st001906@hrz1.hrz.tu-darmstadt.de>.
5279 2001-02-25 Bruno Haible <haible@clisp.cons.org>
5281 * autoconf/ltconfig:
5282 sed -e 's/reload object files/produce relocatable object files/'.
5284 2001-02-20 Bruno Haible <haible@clisp.cons.org>
5286 * src/iconv.c (usage, main): Make -f and -t options optional.
5287 * man/iconv.1: Mark them as optional.
5289 2001-02-20 Bruno Haible <haible@clisp.cons.org>
5291 * tools/Makefile (GB18030ext.TXT, GB18030uni.TXT): Generate from
5293 * lib/gb18030uni.h, lib/gb18030ext.h: Add mapping 0xA989 -> U+303E,
5294 0xFE5E -> U+2E97. Shift the entire four-byte range.
5295 * tests/GB18030.TXT: Regenerated.
5297 2001-02-20 Bruno Haible <haible@clisp.cons.org>
5299 Better support for DOS/Windows platforms.
5300 * autoconf/ltconfig: Upgrade to libtool-1.3.5.
5301 * autoconf/ltmain.sh: Likewise.
5302 * autoconf/aclocal.m4: Likewise.
5303 * autoconf/install-sh: New file.
5304 * configure.in: Call AC_OBJEXT and AC_EXEEXT. Call AC_CONFIG_AUX_DIR.
5306 2001-02-20 Bruno Haible <haible@clisp.cons.org>
5308 * Makefile.in (libdir, includedir, mandir): Use the autoconf
5309 determined value, in order to respect the configure arguments.
5310 * lib/Makefile.in (libdir): Likewise.
5311 * src/Makefile.in (bindir): Likewise.
5312 * man/Makefile.in (mandir): Likewise.
5314 2001-02-04 Bruno Haible <haible@clisp.cons.org>
5316 * lib/translit.def: Add all the neutral transliterations from glibc.
5317 * lib/gentranslit.c (main): Allow UTF-8 replacements which are in
5318 UCS-2 but not in ISO-8859-1. Generate a table of 'unsigned short'.
5319 Avoid accessing data[-1].
5320 * lib/loop_unicode.h (unicode_loop_convert): Change type of pointer
5323 2001-01-05 Bruno Haible <haible@clisp.cons.org>
5325 Implement and document CP862.
5326 * tools/Makefile (ALL): Add cp862.h.
5327 (cp862.h): New target.
5328 * lib/cp862.h: New file.
5329 * lib/converters.h: Include it.
5330 * lib/encodings.def (CP862): New encoding.
5331 * README, man/iconv_open.3: Add CP862.
5332 * tests/Makefile.in (check): Check CP862.
5333 * tests/Makefile.msvc (check): Likewise.
5334 * tests/Makefile.os2 (check): Likewise.
5335 * tests/CP862.TXT: New file.
5337 2000-12-18 Bruno Haible <haible@clisp.cons.org>
5339 * autoconf/mbstate_t.m4: New file, from textutils-2.0.10.
5340 * Makefile.devel (OTHERMACROS): Add it.
5341 * configure.in: Call AC_MBSTATE_T.
5342 * lib/config.h.in (mbstate_t): New definition.
5343 * lib/loop_wchar.h (mbrtowc): For BeOS, declare and define fallback.
5345 2000-12-12 Bruno Haible <haible@clisp.cons.org>
5347 * Makefile.in: Use $(MAKE) instead of $(MAKE) -r. Needed with Solaris
5348 "make", which doesn't set MAKE as expected by @SET_MAKE@ if -r is
5349 given. Reported by Toshimitsu Fujiwara.
5351 2000-12-08 Bruno Haible <haible@clisp.cons.org>
5353 * Makefile.in (exec_prefix): Use configure's --exec-prefix argument.
5354 * lib/Makefile.in (exec_prefix): Likewise.
5355 * src/Makefile.in (exec_prefix): Likewise.
5356 * man/Makefile.in (exec_prefix): Likewise.
5358 2000-12-02 Bruno Haible <haible@clisp.cons.org>
5360 * Version 1.5 released.
5361 * include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
5362 Bump version number.
5363 * lib/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:2:0.
5365 2000-12-02 Bruno Haible <haible@clisp.cons.org>
5367 * Makefile.in (mostlyclean, clean, distclean, maintainer-clean):
5368 Remove files installed in lib by libcharset.
5369 * Makefile.msvc (mostlyclean): Likewise.
5371 * Makefile.in (check): Depend on target 'all'.
5372 * Makefile.os2 (check): Likewise.
5373 * Makefile.msvc (check): Depend on target 'force' as well.
5375 * src/iconv.c (usage): Take an exitcode argument.
5376 (print_version): New function.
5377 (main): Recognize --help and --version command line options.
5379 2000-12-02 Bruno Haible <haible@clisp.cons.org>
5381 * Makefile.msvc: Replace STATIC with its opposite flag, DLL.
5382 * lib/Makefile.msvc: Likewise.
5383 * src/Makefile.msvc: Likewise.
5384 * tests/Makefile.msvc: Likewise.
5386 2000-12-01 Bruno Haible <haible@clisp.cons.org>
5388 * src/iconv.c: Include <fcntl.h>. Define fallbacks for setmode, fileno.
5389 (force_binary): New variable.
5390 (convert): If requested, set the input O_BINARY.
5391 (main): Accept --binary option. If requested, set the output O_BINARY.
5392 * tests/check-stateful.bat: Pass --binary to iconv.
5393 * tests/check-stateful.cmd: Likewise.
5394 * tests/check-translit.bat: Likewise.
5395 * tests/check-translit.cmd: Likewise.
5397 2000-12-01 Bruno Haible <haible@clisp.cons.org>
5399 * include/iconv.h.in (_libiconv_version): New declaration.
5400 * lib/iconv.c (_libiconv_version): New variable.
5402 2000-11-30 Bruno Haible <haible@clisp.cons.org>
5404 * Makefile.msvc (all): File now named lib/libcharset.h.
5405 (clean, distclean, maintainer-clean): Likewise.
5407 2000-11-23 Bruno Haible <haible@clisp.cons.org>
5409 * lib/*: Move here all files from src/*.
5410 * src/*: Move all files to lib.
5411 * lib/Makefile.in (distclean): No need to remove config.status,
5412 config.log, config.cache.
5413 * configure.in: Require lib/iconv.c, not src/iconv.c. Create
5414 lib/config.h, not src/config.h. Also create lib/Makefile.
5415 * Makefile.in (all): Install libcharset into lib, not src. Recurse
5417 (install-lib): Recurse into lib, not src.
5418 (install): Recurse into libcharset, lib and src.
5419 (installdirs, uninstall): Likewise.
5420 (check, mostlyclean, clean, distclean, maintainer-clean): Likewise.
5421 * Makefile.msvc (all): Recurse into lib and src.
5422 (install): Recurse into libcharset, lib and src.
5423 (installdirs, uninstall): Likewise.
5424 (check, mostlyclean, clean, distclean, maintainer-clean): Likewise.
5425 * Makefile.os2 (all): Recurse into lib and src.
5426 (install-lib): Recurse into lib, not src.
5427 (install, uninstall): Recurse into lib and src.
5428 (check, mostlyclean, clean, distclean, maintainer-clean): Likewise.
5429 * Makefile.devel (lib/config.h.msvc): Renamed from src/config.h.msvc.
5430 (lib/aliases.h): Renamed from src/aliases.h.
5431 (lib/aliases.gperf): Renamed from src/aliases.gperf.
5432 (lib/aliases_aix.h): Renamed from src/aliases_aix.h.
5433 (lib/flags.h): Renamed from src/flags.h.
5434 (lib/translit.h): Renamed from src/translit.h.
5435 * src/iconv.c: Moved here from tests/iconv.c.
5436 * src/Makefile.in: New file.
5437 * src/Makefile.msvc: New file.
5438 * src/Makefile.os2: New file.
5439 * tests/Makefile.in (iconv): Remove target.
5440 (../lib/libiconv.la): Renamed from ../src/libiconv.la.
5441 (clean): No need to remove iconv.
5442 * tests/Makefile.msvc (iconv.exe): Remove target.
5443 * tests/Makefile.os2 (iconv.exe): Likewise.
5444 * tests/check-stateful: iconv is in ../src.
5445 * tests/check-stateful.bat: Likewise.
5446 * tests/check-stateful.cmd: Likewise.
5447 * tests/check-translit: iconv is in ../src.
5448 * tests/check-translit.bat: Likewise.
5449 * tests/check-translit.cmd: Likewise.
5450 * man/iconv.1: New file.
5451 * man/Makefile.in (install, installdirs, uninstall): Also install *.1
5453 * man/Makefile.os2 (MAN3): Renamed from MAN.
5454 (MAN1): New variable.
5455 (install, uninstall): Also install *.1 man pages.
5457 2000-11-21 Bruno Haible <haible@clisp.cons.org>
5459 * Makefile.msvc (all, check, mostlyclean, clean, distclean,
5460 maintainer-clean): Recurse into libcharset.
5461 (clean, distclean, maintainer-clean): Remove src\libcharset.h.
5462 * src/Makefile.msvc (LIBCHARSET_OBJECTS): New variable.
5463 (iconv.lib): Link with $(LIBCHARSET_OBJECTS).
5465 2000-11-18 Bruno Haible <haible@clisp.cons.org>
5467 * src/cp950.h (cp950_mbtowc, cp950_wctomb): Change implementation
5468 so that it agrees with Microsoft's definition of CP950.
5469 * tests/CP950.TXT: Likewise.
5470 * tests/CP950.IRREVERSIBLE.TXT: Add 0xA244, 0xA2CC, 0xA2CE.
5472 2000-11-18 Bruno Haible <haible@clisp.cons.org>
5474 Add support for locale dependent "char" and "wchar_t" encodings.
5475 * libcharset: New subdirectory.
5476 * src/loop_unicode.h: New file, extracted from src/iconv.c.
5477 * src/loop_wchar.h: New file.
5478 * src/loops.h: New file. Include loop_unicode.h and loop_wchar.h.
5479 * src/encodings_local.def: New file.
5480 * src/genaliases.c: Also create aliases for encodings_local.def.
5481 * src/converters.h (conv_struct): Add lfuncs field.
5482 * src/genflags.c: Add dummy definitions of struct loop_funcs.
5483 * src/iconv.c: Include libcharset.h.
5484 (loop_funcs): New structure.
5485 Treat encodings_local.def like encodings.def.
5487 (iconv_open): Move the bulk of the code to loop_unicode.h.
5489 (iconvctl): Extend determination of TRIVIALP to wchar_t conversion
5491 * src/Makefile.in (PLUG_SOURCES): Remove variable.
5492 (LIBCHARSET_OBJECTS): New variable.
5493 (libiconv.la): Link in the LIBCHARSET_OBJECTS.
5494 (libiconv_plug_linux.so, libiconv_plug_solaris.so,
5495 libiconv_plug_osf.so): Link in the LIBCHARSET_OBJECTS, using
5497 (iconv.lo): Depend on encodings_local.def.
5498 * src/Makefile.msvc (iconv.obj): Depend on encodings_local.def.
5499 * src/Makefile.os2 (iconv.obj): Likewise.
5500 * configure.in: Add tests for locale.h, mbrtowc, wcrtomb, setlocale.
5501 Recurse into libcharset.
5502 * src/config.h.in (HAVE_LOCALE_H, HAVE_MBRTOWC, HAVE_WCRTOMB,
5503 HAVE_SETLOCALE): New macros.
5504 * tests/iconv.c: Include config.h and locale.h.
5505 (main): Call setlocale.
5506 * tests/Makefile.in (iconv): Search for config.h in ../src.
5507 * tests/Makefile.os2 (iconv.exe): Likewise.
5508 * tests/Makefile.msvc (iconv.exe): Likewise.
5509 * README, man/iconv_open.3: Document "char" and "wchar_t" encodings.
5510 * Makefile.in: After "cd", use "&&" not ";".
5511 (all, check, mostlyclean, clean, distclean, maintainer-clean):
5512 Recurse into libcharset.
5513 * Makefile.devel (all): Recurse into libcharset.
5514 (src/aliases.gperf): Depend on src/encodings_local.def.
5516 2000-11-18 Bruno Haible <haible@clisp.cons.org>
5518 * src/converters.h (ucs4_t): New type.
5519 (wchar_t): Remove locally defined override.
5520 (mbtowc_funcs, wctomb_funcs): Use ucs4_t instead of wchar_t.
5521 * src/iconv.c (iconv): Likewise.
5522 * src/genflags.c (emit_encoding): Use ucs4_t instead of wchar_t.
5523 * tools/8bit_tab_to_h.c: Use "ucs4_t" instead of "wchar_t".
5524 * tools/cjk_tab_to_h.c: Likewise.
5525 * src/armscii_8.h: Use ucs4_t instead of wchar_t.
5526 * src/ascii.h: Likewise.
5527 * src/big5.h: Likewise.
5528 * src/big5hkscs.h: Likewise.
5529 * src/ces_big5.h: Likewise.
5530 * src/ces_gbk.h: Likewise.
5531 * src/cns11643.h: Likewise.
5532 * src/cns11643_1.h: Likewise.
5533 * src/cns11643_2.h: Likewise.
5534 * src/cns11643_3.h: Likewise.
5535 * src/cns11643_inv.h: Likewise.
5536 * src/cp1046.h: Likewise.
5537 * src/cp1124.h: Likewise.
5538 * src/cp1129.h: Likewise.
5539 * src/cp1133.h: Likewise.
5540 * src/cp1250.h: Likewise.
5541 * src/cp1251.h: Likewise.
5542 * src/cp1252.h: Likewise.
5543 * src/cp1253.h: Likewise.
5544 * src/cp1254.h: Likewise.
5545 * src/cp1255.h: Likewise.
5546 * src/cp1256.h: Likewise.
5547 * src/cp1257.h: Likewise.
5548 * src/cp1258.h: Likewise.
5549 * src/cp850.h: Likewise.
5550 * src/cp856.h: Likewise.
5551 * src/cp866.h: Likewise.
5552 * src/cp874.h: Likewise.
5553 * src/cp922.h: Likewise.
5554 * src/cp932.h: Likewise.
5555 * src/cp932ext.h: Likewise.
5556 * src/cp936ext.h: Likewise.
5557 * src/cp949.h: Likewise.
5558 * src/cp950.h: Likewise.
5559 * src/cp950ext.h: Likewise.
5560 * src/euc_cn.h: Likewise.
5561 * src/euc_jp.h: Likewise.
5562 * src/euc_kr.h: Likewise.
5563 * src/euc_tw.h: Likewise.
5564 * src/gb12345.h: Likewise.
5565 * src/gb12345ext.h: Likewise.
5566 * src/gb18030.h: Likewise.
5567 * src/gb18030ext.h: Likewise.
5568 * src/gb18030uni.h: Likewise.
5569 * src/gb2312.h: Likewise.
5570 * src/gbk.h: Likewise.
5571 * src/gbkext1.h: Likewise.
5572 * src/gbkext2.h: Likewise.
5573 * src/gbkext_inv.h: Likewise.
5574 * src/georgian_academy.h: Likewise.
5575 * src/georgian_ps.h: Likewise.
5576 * src/hkscs.h: Likewise.
5577 * src/hp_roman8.h: Likewise.
5578 * src/hz.h: Likewise.
5579 * src/iso2022_cn.h: Likewise.
5580 * src/iso2022_cnext.h: Likewise.
5581 * src/iso2022_jp.h: Likewise.
5582 * src/iso2022_jp1.h: Likewise.
5583 * src/iso2022_jp2.h: Likewise.
5584 * src/iso2022_kr.h: Likewise.
5585 * src/iso646_cn.h: Likewise.
5586 * src/iso646_jp.h: Likewise.
5587 * src/iso8859_1.h: Likewise.
5588 * src/iso8859_10.h: Likewise.
5589 * src/iso8859_13.h: Likewise.
5590 * src/iso8859_14.h: Likewise.
5591 * src/iso8859_15.h: Likewise.
5592 * src/iso8859_16.h: Likewise.
5593 * src/iso8859_2.h: Likewise.
5594 * src/iso8859_3.h: Likewise.
5595 * src/iso8859_4.h: Likewise.
5596 * src/iso8859_5.h: Likewise.
5597 * src/iso8859_6.h: Likewise.
5598 * src/iso8859_7.h: Likewise.
5599 * src/iso8859_8.h: Likewise.
5600 * src/iso8859_9.h: Likewise.
5601 * src/isoir165.h: Likewise.
5602 * src/isoir165ext.h: Likewise.
5603 * src/java.h: Likewise.
5604 * src/jisx0201.h: Likewise.
5605 * src/jisx0208.h: Likewise.
5606 * src/jisx0212.h: Likewise.
5607 * src/johab.h: Likewise.
5608 * src/johab_hangul.h: Likewise.
5609 * src/koi8_r.h: Likewise.
5610 * src/koi8_ru.h: Likewise.
5611 * src/koi8_u.h: Likewise.
5612 * src/ksc5601.h: Likewise.
5613 * src/mac_arabic.h: Likewise.
5614 * src/mac_centraleurope.h: Likewise.
5615 * src/mac_croatian.h: Likewise.
5616 * src/mac_cyrillic.h: Likewise.
5617 * src/mac_greek.h: Likewise.
5618 * src/mac_hebrew.h: Likewise.
5619 * src/mac_iceland.h: Likewise.
5620 * src/mac_roman.h: Likewise.
5621 * src/mac_romania.h: Likewise.
5622 * src/mac_thai.h: Likewise.
5623 * src/mac_turkish.h: Likewise.
5624 * src/mac_ukraine.h: Likewise.
5625 * src/mulelao.h: Likewise.
5626 * src/nextstep.h: Likewise.
5627 * src/sjis.h: Likewise.
5628 * src/tcvn.h: Likewise.
5629 * src/tis620.h: Likewise.
5630 * src/ucs2.h: Likewise.
5631 * src/ucs2be.h: Likewise.
5632 * src/ucs2internal.h: Likewise.
5633 * src/ucs2le.h: Likewise.
5634 * src/ucs2swapped.h: Likewise.
5635 * src/ucs4.h: Likewise.
5636 * src/ucs4be.h: Likewise.
5637 * src/ucs4internal.h: Likewise.
5638 * src/ucs4le.h: Likewise.
5639 * src/ucs4swapped.h: Likewise.
5640 * src/uhc_1.h: Likewise.
5641 * src/uhc_2.h: Likewise.
5642 * src/utf16.h: Likewise.
5643 * src/utf16be.h: Likewise.
5644 * src/utf16le.h: Likewise.
5645 * src/utf7.h: Likewise.
5646 * src/utf8.h: Likewise.
5647 * src/viscii.h: Likewise.
5649 2000-11-18 Bruno Haible <haible@clisp.cons.org>
5651 Make transliteration optional.
5652 * src/iconv.c (iconv_open): Strip off //TRANSLIT suffix from names.
5653 Set transliteration on if and only if tocode ends in //TRANSLIT.
5654 * README, man/iconv_open.3: Document how to enable transliteration.
5655 * tests/check-translit: Add //TRANSLIT to iconv's 't' argument.
5656 * tests/check-translit.bat: Likewise.
5657 * tests/check-translit.cmd: Likewise.
5659 2000-11-18 Bruno Haible <haible@clisp.cons.org>
5661 * man/iconv.3: Fix typo.
5663 2000-10-31 Bruno Haible <haible@clisp.cons.org>
5665 * README, man/iconv_open.3: Document JOHAB again.
5667 2000-11-15 Bruno Haible <haible@clisp.cons.org>
5669 * Makefile.msvc: Add support for MFLAGS and DEBUG parameters.
5670 (STATIC): Change default from 0 to 1.
5671 * src/Makefile.msvc: Likewise.
5672 * tests/Makefile.msvc: Likewise.
5673 * tests/check-stateless.bat: Call 'sort' with no arguments.
5675 2000-11-12 Bruno Haible <haible@clisp.cons.org>
5677 * autoconf/config.guess, autoconf/config.sub: Upgrade to newest
5678 version from GNU CVS.
5680 2000-10-24 Bruno Haible <haible@clisp.cons.org>
5682 * Version 1.4 released.
5683 * include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
5684 Bump version number.
5685 * src/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:1:0.
5687 2000-10-23 Bruno Haible <haible@clisp.cons.org>
5689 Implement and document GB18030 and BIG5HKSCS.
5690 * tools/cjk_tab_to_h.c (row_byte_hkscs, byte_row_hkscs, do_hkscs): New
5692 (do_gb18030uni): New function.
5693 (main): Accept gb18030ext, gb18030uni, hkscs.
5694 * tools/Makefile (ALL): Add gb18030ext.h, gb18030uni.h, hkscs.h.
5695 (gb18030ext.h, GB18030ext.TXT, gb18030uni.h, GB18030uni.TXT,
5696 hkscs.h): New targets.
5697 * src/gb18030ext.h, src/gb18030uni.h, src/gb18030.h: New files.
5698 * src/hkscs.h, src/big5hkscs.h: New files.
5699 * src/converters.h: Include gb18030.h and big5hkscs.h.
5700 * src/encodings.def (GB18030, BIG5HKSCS): New encodings.
5701 * README, man/iconv_open.3: Add GB18030, BIG5HKSCS.
5702 * tests/Makefile.in (check): Check GB18030, BIG5HKSCS.
5703 * tests/Makefile.msvc (check): Likewise.
5704 * tests/Makefile.os2 (check): Likewise.
5705 * tests/GB18030.TXT: New file.
5706 * tests/BIG5HKSCS.TXT, tests/BIG5HKSCS.IRREVERSIBLE.TXT: New files.
5708 2000-10-23 Bruno Haible <haible@clisp.cons.org>
5710 * tests/table-from.c (try, main): Use UCS-4-INTERNAL instead of
5711 UCS-2-INTERNAL, to avoid problems with UCS-2 surrogate handling.
5712 * tests/table-to.c (main): Likewise.
5714 2000-10-22 Bruno Haible <haible@clisp.cons.org>
5716 * src/gentranslit.c (main): Read the input in UTF-8 encoding.
5718 2000-10-09 Bruno Haible <haible@clisp.cons.org>
5720 CPU recognition on OpenBSD.
5721 * autoconf/aclocal.m4 (CL_WORDS_LITTLEENDIAN): Recognize __m68k__,
5722 __mc68020__, __MIPSEB__, __MIPSEL__, __m88k__ as CPU indicators.
5724 2000-10-03 Bruno Haible <haible@clisp.cons.org>
5726 * src/gentranslit.c (main): Don't output non-ASCII ISO-8859-1
5727 character literals, use the numeric value instead.
5728 Reported by Shin-Hsien Yeh <shyeh@alcatel.com.tw>.
5730 2000-09-29 Bruno Haible <haible@clisp.cons.org>
5732 * autoconf/aclocal.m4 (CL_CANONICAL_HOST): Fix bug in 2000-05-23
5735 2000-09-25 Bruno Haible <haible@clisp.cons.org>
5737 * autoconf/aclocal.m4 (CL_WORDS_LITTLEENDIAN): Recognize __i386__
5738 as equivalent to __i386. For OpenBSD.
5740 2000-09-21 Bruno Haible <haible@clisp.cons.org>
5742 * src/utf16.h (utf16_wctomb): Reject single surrogates.
5743 * src/utf16be.h (utf16be_wctomb): Likewise.
5744 * src/utf16le.h (utf16le_wctomb): Likewise.
5745 * src/ucs2.h (ucs2_mbtowc, ucs2_wctomb): Likewise.
5746 * src/ucs2be.h (ucs2be_mbtowc, ucs2be_wctomb): Likewise.
5747 * src/ucs2le.h (ucs2le_mbtowc, ucs2le_wctomb): Likewise.
5748 * src/ucs2internal.h (ucs2internal_mbtowc, ucs2internal_wctomb):
5750 * src/ucs2swapped.h (ucs2swapped_mbtowc, ucs2swapped_wctomb):
5753 2000-09-15 Bruno Haible <haible@clisp.cons.org>
5755 * Makefile.in (install, installdirs, uninstall): Support DESTDIR.
5756 * src/Makefile.in (install, installdirs, uninstall): Likewise.
5757 * man/Makefile.in (install, installdirs, uninstall): Likewise.
5759 2000-09-11 Bruno Haible <haible@clisp.cons.org>
5761 * src/utf7.h (utf7_mbtowc): Fix combining of UTF-16 surrogates.
5763 2000-08-26 Bruno Haible <haible@clisp.cons.org>
5765 * autoconf/acgeneral.m4 (AC_OUTPUT): Use braces in exec_prefix default
5768 2000-07-04 Akira Hatakeyama <akira@sra.co.jp>
5769 Bruno Haible <haible@clisp.cons.org>
5771 * os2/iconv.def, README.os2, Makefile.os2, src/Makefile.os2,
5772 tests/Makefile.os2, man/Makefile.os2, tests/check-stateful.cmd,
5773 tests/check-stateless.cmd, tests/check-translit.cmd: New files.
5775 2000-06-28 Bruno Haible <haible@clisp.cons.org>
5777 * src/ucs2internal.h (ucs2internal_mbtowc): Avoid gcc warning about
5779 * src/ucs4internal.h (ucs4internal_mbtowc): Likewise.
5780 * src/ucs2swapped.h (ucs2swapped_mbtowc, ucs2swapped_wctomb): Verify
5781 sizeof(unsigned short).
5782 * src/ucs4swapped.h (ucs4swapped_mbtowc, ucs4swapped_mbtowc): Verify
5783 sizeof(unsigned int).
5784 Reported by François Pinard <pinard@iro.umontreal.ca>.
5786 2000-05-29 Bruno Haible <haible@clisp.cons.org>
5788 * autoconf/aclocal.m4 (CL_PROG_INSTALL): Fix typo.
5789 Reported by Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>.
5791 2000-05-23 Bruno Haible <haible@clisp.cons.org>
5793 * autoconf/aclocal.m4 (CL_CANONICAL_HOST): Determine host_cpu,
5794 host_vendor, host_os correctly if $host has more than two hyphens.
5796 2000-04-15 Bruno Haible <haible@clisp.cons.org>
5798 * Version 1.3 released.
5799 * include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
5800 Bump version number.
5801 * src/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:0:0.
5803 2000-04-15 Bruno Haible <haible@clisp.cons.org>
5806 * INSTALL.generic: New file.
5808 Implement and document UCS-2BE, UCS-2LE, UCS-4BE, UCS-4LE.
5809 * src/ucs2be.h, src/ucs2le.h, src/ucs4be.h, src/ucs4le.h: New files.
5810 * src/converters.h: Include them.
5811 * src/ucs2swapped.h: Remove #defines for UCS-2-BE, UCS-2-LE.
5812 * src/ucs4swapped.h: Remove #defines for UCS-4-BE, UCS-4-LE.
5813 * src/encodings.def (UCS-2BE): Renamed from UCS-2-BE.
5814 (UCS-2LE): Renamed from UCS-2-LE.
5815 (UCS-4BE): Renamed from UCS-4-BE.
5816 (UCS-4LE): Renamed from UCS-4-LE.
5817 * Makefile.devel (src/aliases.h): Pass option "-i 1" to gperf.
5818 * README, man/iconv_open.3: Add UCS-2BE, UCS-2LE, UCS-4BE, UCS-4LE.
5819 * tests/Makefile.in (check): Check UCS-2BE, UCS-2LE, UCS-4BE, UCS-4LE.
5820 * tests/Makefile.msvc (check): Likewise.
5821 * tests/UCS-*snippet*: New files.
5823 Allow building as a shared library on Windows.
5824 Allow running the tests on Windows.
5825 * Makefile.devel (include/iconv.h.msvc): Remove rule.
5826 (include/iconv.h.msvc-static, include/iconv.h.msvc-shared): New
5829 * windows/dllexport.h: New file.
5830 * include/iconv.h.msvc: Remove file.
5831 * include/iconv.h.msvc-static, include/iconv.h.msvc-shared: New
5832 autogenerated files.
5833 * Makefile.msvc (STATIC, DEBUG): Default to 0.
5834 (all): Choose either include\iconv.h.msvc-static or
5835 include\iconv.h.msvc-shared.
5836 (check): Depend on all.
5837 (all, check, mostlyclean, clean, distclean, maintainer-clean):
5838 Recurse into tests directory.
5839 * src/Makefile.msvc (STATIC, DEBUG): Default to 0.
5840 (WARN_CFLAGS, PICFLAGS, OPTIMFLAGS): New variables.
5841 (CFLAGS): Use them. Add -MD and -DBUILDING_LIBICONV.
5842 (RESOURCES): New variable.
5843 (iconv.lib): Change rule when building DLL.
5844 (clean, distclean): One filename per line.
5845 * tests/Makefile.msvc: New file.
5846 * tests/check-stateful.bat, tests/check-stateless.bat,
5847 tests/check-translit.bat: New files.
5848 * tests/uniq-u.c: New file, taken from GNU textutils.
5849 * README.win32: Update.
5850 Based on patches by Taro Muraoka <koron@tka.att.ne.jp>.
5852 2000-04-14 Bruno Haible <haible@clisp.cons.org>
5854 Fix an OSF/1 problem.
5855 * configure.in: Define GCC variable for substitution.
5856 * src/Makefile.in (libiconv_plug_osf.so): Change rule if not using
5859 2000-04-13 Bruno Haible <haible@clisp.cons.org>
5861 Fix a SunOS 4 problem.
5862 * include/iconv.h.in: If EILSEQ is not defined by the system, define
5863 it to ENOENT, not EINVAL.
5865 2000-04-02 Bruno Haible <haible@clisp.cons.org>
5867 Allow building on filesystems lacking symlinks and hard links.
5868 * Makefile.devel (autoconf/aclocal.m4): Replace AC_PROG_LN_S with
5870 * configure.in: Add CL_PROG_LN, CL_PROG_LN_S.
5871 * src/Makefile.in (LN): Use autoconfigured value @LN@.
5872 (LN_S): Use autoconfigured value @LN_S@.
5874 2000-03-15 Bruno Haible <haible@clisp.cons.org>
5876 * Version 1.2 released.
5877 * include/iconv.h.in (_LIBICONV_VERSION): Bump version number.
5878 * src/Makefile.in (LIBICONV_VERSION_INFO): Define to 1:1:1.
5880 2000-03-14 Bruno Haible <haible@clisp.cons.org>
5882 Implement and document UTF-16BE and UTF16LE.
5883 * src/utf16be.h, src/utf16le.h: New files.
5884 * src/converters.h: Include them.
5885 * src/encodings.def (UTF-16BE, UTF16LE): New encodings.
5886 * README, man/iconv_open.3: Add UTF-16BE, UTF16LE.
5887 * tests/Makefile.in (check): Check UTF-16, UTF-16BE, UTF16LE.
5888 * tests/UTF-16*snippet*: New files.
5890 * src/utf16.h (utf16_wctomb): Output a byte order mark.
5892 2000-03-13 Bruno Haible <haible@clisp.cons.org>
5894 Provide all encodings used by AIX locales.
5895 * tools/Makefile (all): Add cp856.h, cp922.h, cp1046.h, cp1124.h,
5897 (cp856.h, cp922.h, cp1046.h, cp1124.h, cp1129.h): New targets.
5898 * src/cp856.h, src/cp922.h, src/cp943.h, src/cp1046.h, src/cp1124.h,
5899 src/cp1129.h: New files.
5900 * src/converters.h: Include them if USE_AIX is defined.
5901 * src/encodings_aix.def: New file, with CP856, CP922, CP943, CP1046,
5903 * src/genflags.c: Define USE_AIX. Include encodings_aix.def.
5904 * src/genaliases2.c: New file.
5905 * src/iconv.c: Define USE_AIX on AIX.
5906 Include encodings_aix.def and aliases_aix.h.
5907 (aliases2_lookup): New function.
5908 (iconv_open): Call aliases2_lookup.
5909 * src/Makefile.in (iconv.lo): Depend on encodings_aix.def and
5911 * Makefile.devel (all): Add src/aliases_aix.h.
5912 (src/aliases_aix.h): New rule.
5913 (src/flags.h): Depend on src/encodings_aix.def.
5915 2000-02-24 Bruno Haible <haible@clisp.cons.org>
5917 * src/iconv.c (iconv): Don't write beyond the end of the output buffer.
5918 Reported by Edmund Grimley Evans <edmundo@rano.org>.
5920 2000-02-22 Bruno Haible <haible@clisp.cons.org>
5922 * src/utf7.h (direct_tab, xdirect_tab): Treat tab like space.
5924 2000-02-15 Bruno Haible <haible@clisp.cons.org>
5926 * src/iconv.c (iconv): Add cast in xxx_reset call.
5928 2000-02-05 Bruno Haible <haible@clisp.cons.org>
5930 * src/tis620.h: Simplify.
5932 2000-01-27 Bruno Haible <haible@clisp.cons.org>
5934 * Makefile.devel (CLISP_DIR): Change to "..".
5936 2000-01-24 Bruno Haible <haible@clisp.cons.org>
5938 * Version 1.1 released.
5939 * include/iconv.h.in (_LIBICONV_VERSION): Bump version number.
5940 * src/Makefile.in (LIBICONV_VERSION_INFO): Define to 1:0:1.
5942 2000-01-23 Bruno Haible <haible@clisp.cons.org>
5944 * src/utf7.h (utf7_wctomb): If base64 encoding is not active, encode
5947 2000-01-22 Bruno Haible <haible@clisp.cons.org>
5949 * include/iconv.h.in (iconvctl): New declaration.
5950 (ICONV_TRIVIALP, ICONV_GET_TRANSLITERATE, ICONV_SET_TRANSLITERATE):
5952 * src/iconv.c (iconvctl): New function.
5954 * tests/Makefile.in: Add a rule for ../src/libiconv.la. Define $(MAKE).
5956 Solve a build problem.
5957 * include/iconv.h.in: Renamed from include/libiconv.h.in.
5958 * Makefile.devel: libiconv.h -> iconv.h.
5959 * Makefile.in: Likewise.
5960 * configure.in: Likewise. Remove check for <iconv.h>.
5961 * src/iconv.c: Include iconv.h instead of libiconv.h.
5962 * tests/iconv.c, tests/table-from.c, tests/table-to.c: Likewise.
5964 * README, man/iconv_open.3: Don't document JOHAB any more.
5966 * man/iconv.3: Clarify return value again.
5968 2000-01-16 Bruno Haible <haible@clisp.cons.org>
5971 * src/encodings.def (ISO-8859-14): Add alias ISO-IR-199.
5972 (ISO-8859-15): Add alias ISO-IR-203.
5973 (EUC-CN): Add alias CN-GB, from RFC 1922.
5974 (BIG5): Add alias CN-BIG5, from RFC 1922.
5975 * Makefile.devel (src/aliases.h): Add 8th character to key set.
5978 * src/encodings.def (JIS_X0201): Drop JISX0201.1976-0 alias.
5979 (JIS_X0208): Drop JIS_X0208.1983-0, JIS_X0208.1983-1 aliases.
5980 (KSC_5601): Drop KSC5601.1987-0 alias.
5982 Improve GB/T 12345 (not used yet).
5983 * tools/Makefile (gb12345ext.h): Use GB12345-more.TXT.
5984 * src/gb12345ext.h: Regenerated.
5986 Improve and document CP949.
5987 * tools/Makefile (all): Add uhc_1.h and uhc_2.h.
5988 (uhc_1.h, uhc_2.h): New rules.
5989 * tools/cjk_tab_to_h.c (output_charset2uni_noholes_monotonic): New
5991 (output_uni2charset_sparse): Take an additional boolean argument.
5992 All callers changed.
5993 (*_uhc_1, *_uhc_2): New functions.
5994 (main): Treat uhc_1 and uhc_2.
5995 * src/uhc_1.h, src/uhc_2.h: New files.
5996 * src/cp949.h: New file, include them.
5997 * src/converters.h: Include it.
5998 * src/encodings.def (KSC_5601): Remove alias CP949.
5999 (CP949): New encoding.
6000 * README, man/iconv_open.3: Add CP949.
6001 * tests/Makefile.in (check): Check CP949.
6002 * tests/CP949.TXT: New file.
6005 * README, man/iconv_open.3: Add CP932.
6006 * tests/Makefile.in (check): Check CP932.
6007 * tests/CP932.TXT, tests/CP932.IRREVERSIBLE.TXT: New files.
6009 * Makefile.devel (src/flags.h): Depend on src/converters.h.
6011 * tests/Makefile.in (check): Check JIS_X0201.
6012 * tests/JIS_X0201.TXT: New file.
6014 * src/euc_kr.h (euc_kr_wctomb): Shrink size of buf.
6015 * src/iso2022_kr.h (iso2022_kr_wctomb): Likewise.
6017 * src/iso2022_cnext.h (iso2022_cn_ext_mbtowc): Use isoir165_mbtowc.
6018 (iso2022_cn_ext_wctomb): Use isoir165_wctomb.
6020 Add ISO-IR-165 (undocumented).
6021 * tools/Makefile (all): Add isoir165ext.h.
6022 (isoir165ext.h): New rule.
6023 * tools/cjk_tab_to_h.c (main): Treat isoir165ext like gb2312.
6024 * src/isoir165.h, src/isoir165ext.h: New files.
6025 * src/converters.h: Include it.
6026 * src/encodings.def: Add ISO-IR-165.
6027 * tests/Makefile.in (check): Check ISO-IR-165.
6028 * tests/ISO-IR-165.TXT, tests/ISO-IR-165.IRREVERSIBLE.TXT: New files.
6030 Add ISO646-CN (undocumented).
6031 * src/iso646_cn.h: New file.
6032 * src/converters.h: Include it.
6033 * src/encodings.def: Add ISO646-CN.
6034 * tests/Makefile.in (check): Check ISO646-CN.
6035 * tests/ISO646-CN.TXT: New file.
6037 Add ISO646-JP (undocumented).
6038 * src/iso646_jp.h: New file.
6039 * src/converters.h: Include it.
6040 * src/encodings.def: Add ISO646-JP.
6041 * tests/Makefile.in (check): Check ISO646-JP.
6042 * tests/ISO646-JP.TXT: New file.
6044 2000-01-05 Bruno Haible <haible@clisp.cons.org>
6047 * tools/Makefile (all): Add iso8859_16.h.
6048 (iso8859_16.h): New rule.
6049 * src/iso8859_16.h: New file.
6050 * src/converters.h: Include it.
6051 * src/encodings.def: Add ISO-8859-16.
6052 * README, man/iconv_open.3: Add ISO-8859-16.
6053 * tests/Makefile.in (check): Check ISO-8859-16.
6054 * tests/ISO-8859-16.TXT: New file.
6056 * man/iconv.3: Clarify what happens *inbuf in case 3.
6058 * src/iso8859_8.h: Update using newest table from ftp.unicode.org.
6059 * tests/ISO-8859-8.TXT: Likewise.
6061 2000-01-04 Bruno Haible <haible@clisp.cons.org>
6063 * Version 1.0 released.
6064 * include/libiconv.h.in (_LIBICONV_VERSION): Bump version number.
6065 * src/Makefile.in (LIBICONV_VERSION_INFO): Define to 0:1:0.
6066 (libiconv.la): Use LIBICONV_VERSION_INFO.
6068 2000-01-03 Bruno Haible <haible@clisp.cons.org>
6070 * tests/Makefile.in: New file.
6071 tests/check-stateless, tests/table-from.c, tests/table-to.c,
6072 tests/*.TXT, tests/genutf8.c: New files, checks for stateless
6074 tests/check-stateful, tests/iconv.c, tests/*-snippet*: New files,
6075 checks for stateful encodings.
6076 * Makefile.in (all, check, mostlyclean, clean, distclean,
6077 maintainer-clean): Descend into tests directory.
6078 * configure.in: Add tests/Makefile to AC_OUTPUT duties.
6080 * src/gentranslit.c: New file.
6081 * Makefile.devel (src/translit.h): New rule.
6082 * src/translit.def, src/translit.h: New files.
6083 * src/iconv.c: Include it.
6084 (iconv): Transliterate using translit.h table.
6086 * src/genflags.c: New file.
6087 * Makefile.devel (src/flags.h): New rule.
6088 * src/flags.h: New file.
6089 * src/iconv.c: Include it.
6090 (encoding): Add field 'oflags'.
6091 (all_encodings): Initialize the field 'oflags'.
6092 (iconv_open): Copy field 'oflags'.
6093 (iconv): Transliterate quotation marks U+2018, U+2019, U+201A.
6094 * src/Makefile.in (iconv.lo): Update dependencies.
6096 * src/converters.h: New file, extracted from src/iconv.c.
6097 * src/iconv.c: Include it.
6098 * src/Makefile.in (iconv.lo): Update dependencies.
6100 * tools/cjk_variants.c: New file.
6101 * tools/Makefile (ALL): Add cjk_variants.h.
6102 (cjk_variants.h, cjk_variants): New rules.
6103 * src/cjk_variants.h: New file.
6104 * src/iconv.c: Include it.
6105 (iconv): Use cjk_variants for transliteration.
6107 * man/iconv.3: Fix description of return value.
6108 * euc_kr.h (euc_kr_wctomb): Remove Hangul transliteration.
6109 * iso2022_kr.h (iso2022kr_wctomb): Likewise.
6110 * src/iconv.c (iconv): Do Hangul transliteration here and increment
6111 result once for every transliterated character.
6112 * src/johab_hangul.h (johab_hangul_decompose): Change result array
6113 from 'unsigned char*' to 'wchar_t*'.
6115 * src/cp1258.h (cp1258_mbtowc): Return RET_ILSEQ instead of storing
6118 * src/georgian_ps.h (georgian_ps_wctomb): Accept 0x00e6.
6120 * src/euc_jp.h (euc_jp_wctomb): Don't treat U+005C and U+007E like
6123 * src/euc_tw.h (euc_tw_mbtowc): Fix typo.
6125 * src/cp950.h (cp950_mbtowc, cp950_wctomb): Exclude the range
6128 * tools/cjk_tab_to_h.c (read_table_ksc5601): Some Hangul range was
6129 not being excluded. Fix that.
6130 * src/ksc5601.h: Regenerated.
6131 * src/johab.h (johab_mbtowc): Don't accept 0xDA{A1..D3} - this is
6132 valid in KSC5601/KSX1001 but not in JOHAB.
6134 * src/iconv.c (conv_struct): Add fields iindex, oindex.
6135 (iconv_open): Fill in iindex, oindex.
6137 * src/encodings.def (UCS-2-BE): Add aliases "UNICODE-1-1" and
6138 "csUnicode11", from IANA charset list.
6139 (MacRoman): Add aliases "MAC" and "csMacintosh" for "MACINTOSH",
6140 from IANA charset list.
6141 (JIS_X0208): Add aliases "X0208", "ISO-IR-87", "csISO87JISX0208",
6142 from IANA charset list.
6143 (GB_2312-80): New encoding, from IANA charset list.
6145 * README, man/iconv_open.3: Add MacIceland and MacUkraine.
6147 * Makefile.devel: Add rules for src/aliases.h and src/aliases.gperf.
6148 (all): Depend on src/aliases.h.
6149 * src/Makefile.in: Remove rules for $(srcdir)/aliases.h and
6150 $(srcdir)/aliases.gperf.
6153 * src/Makefile.in (libiconv_plug_linux.so): Remove unneeded "-ldl".
6155 1999-12-31 Bruno Haible <haible@clisp.cons.org>
6157 * Version 0.3 released.