1 2021-02-07 Bruno Haible <bruno@clisp.org>
3 Support creating shared libraries on MidnightBSD.
4 Patch from <https://savannah.gnu.org/patch/?10007>.
5 * m4/libtool.m4: Treat MidnightBSD like FreeBSD.
6 * build-aux/ltmain.sh: Likewise.
8 2021-01-31 Bruno Haible <bruno@clisp.org>
10 Update after gnulib changed on 2020-08-26.
11 * configure.ac: Test $iconv_arg1, not $am_cv_proto_iconv_arg1.
13 2021-01-31 Bruno Haible <bruno@clisp.org>
15 Switch to autoconf 2.71.
16 * autogen.sh: Update comment.
17 * configure.ac: Use AS_HELP_STRING instead of AC_HELP_STRING. Invoke
18 AC_C_BIGENDIAN instead of CL_WORDS_LITTLEENDIAN.
19 * m4/eilseq.m4: Require Autoconf >= 2.61.
20 (AC_EILSEQ): Improve quoting. Use AC_COMPUTE_INT instead of
22 * m4/endian.m4: Remove file.
23 * Makefile.in (SOURCE_FILES): Remove it.
25 2020-12-08 Bruno Haible <bruno@clisp.org>
27 Switch to autoconf 2.70.
28 * Makefile.devel (AUTOCONF, AUTOHEADER): Remove '-2.69' suffix.
29 * HACKING: Remove sentence about symbolic links.
30 * autogen.sh: Update comment.
32 2020-08-31 Bruno Haible <bruno@clisp.org>
34 Fix some -Wcast-qual warning, reported by clang.
35 * lib/iconv.c (compare_by_name): Add more 'const'.
36 (iconv_canonicalize): Cast value to 'unsigned char', not pointer to 'unsigned char *'.
37 * lib/iconv_open1.h: Likewise.
39 2020-08-30 Bruno Haible <bruno@clisp.org>
41 Make sure that build-aux/compile is in the tarball.
42 * autogen.sh: Fetch also 'build-aux/compile' through gnulib-tool.
43 * Makefile.devel (srclib/Makefile.in): Don't fetch nor delete
45 * Makefile.in (AUTOMAKE_IMPORTED_FILES): Remove build-aux/compile.
46 (IMPORTED_FILES): Add build-aux/compile.
48 2020-08-29 Bruno Haible <bruno@clisp.org>
50 Update after gnulib changed.
51 * configure.ac (AC_PREREQ): Bump minimum Autoconf version to 2.64.
53 2020-08-06 Bruno Haible <bruno@clisp.org>
55 Avoid a GCC warning with GCC >= 7.
56 Reported by Reini Urban <rurban@cpan.org>
57 in <https://savannah.gnu.org/bugs/?58903>.
58 * lib/gentranslit.c (main): Reset i to 0 each time p gets a new value.
59 Add assertion about i's possible values.
61 2020-04-05 Bruno Haible <bruno@clisp.org>
63 Fix an autogen.sh failure (regression from 2016-12-04).
64 Reported by Petr Ovtchenkov <ptr@void-ptr.info> in
65 <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2020-04/msg00003.html>.
66 * autogen.sh: Invoke also the Makefile target srclib/Makefile.in, so as
67 to get build-aux/install-sh. Finish the "copy files" phase before recursing
68 through the subpackages tree through Makefile.devel.
69 * Makefile.devel: Reorder targets.
71 2020-04-04 Bruno Haible <bruno@clisp.org>
74 * gnulib-local/modules/mbstate (License): Set to LGPLv2+.
76 2020-04-04 Bruno Haible <bruno@clisp.org>
78 Change the license of the library from LGPL 2.0 to LGPL 2.1.
79 * COPYING.LIB: Upgrade to LGPL 2.1.
81 2019-12-23 Bruno Haible <bruno@clisp.org>
83 Do export the symbol 'locale_charset' (needed by GNU bash).
84 * lib/Makefile.in (DEFS): Define also BUILDING_LIBCHARSET.
86 2019-09-01 Bruno Haible <bruno@clisp.org>
88 build: Add support for shallow-cloning of subdirectories.
89 * gitsub.sh (func_usage): Document allowed git options with 'git pull'.
90 (func_pull): Accept GIT_OPTIONS argument.
91 (pull): Parse git options before complaining about too many arguments.
92 Pass the git options to func_pull.
94 2019-07-05 Bruno Haible <bruno@clisp.org>
96 Don't export the symbol 'aliases_lookup' on non-ELF platforms.
97 * Makefile.devel (lib/aliases.h, lib/aliases_sysaix.h,
98 lib/aliases_syshpux.h, lib/aliases_sysosf1.h, lib/aliases_syssolaris.h):
99 Add a 'static' keyword in front of the declaration of aliases_lookup.
101 2019-07-02 Bruno Haible <bruno@clisp.org>
103 Update to current gnulib.
104 * Makefile.devel (GNULIB_MODULES): Add lib-symbol-visibility.
105 (srclib/Makefile.gnulib): Copy codeset.m4.
106 * srclib/Makefile.am (AM_CFLAGS): Initialize.
108 2019-07-02 Bruno Haible <bruno@clisp.org>
110 Drop unused macro gl_GLIBC21.
111 * autogen.sh: Don't copy glibc21.m4.
113 2019-05-22 Bruno Haible <bruno@clisp.org>
116 Reported by Paul Hardy <unifoundry@gmail.com>.
117 * lib/jisx0213.h: Fix comment about the underlying standard version.
119 2019-05-11 Bruno Haible <bruno@clisp.org>
121 Update bug reporting instructions.
122 * README: Tell users to report bugs in the bug tracker or by email.
123 * src/iconv.c (usage): Likewise.
124 (print_version): Move URL out of translatable string.
126 2019-04-26 Bruno Haible <bruno@clisp.org>
129 $ rsync -Lrtvz translationproject.org::tp/latest/libiconv/ po/new
131 $ for f in *.po; do \
132 msgmerge --update --lang=${f%.po} --previous $f ../libiconv.pot; \
137 2019-04-26 Bruno Haible <bruno@clisp.org>
140 $ cd po; make update-po
142 2019-04-26 Bruno Haible <bruno@clisp.org>
144 Prepare for version 1.16.
145 * configure.ac: Bump version number to 1.15.
146 * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
147 * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 8:1:6.
148 * src/iconv.c (print_version): Update copyright year.
149 * windows/iconv.rc: Likewise.
150 * windows/libiconv.rc: Likewise.
151 * README: Update download link.
153 2019-04-26 Bruno Haible <bruno@clisp.org>
155 Tweak exported symbols when --enable-relocatable is used.
156 * lib/Makefile.in (DEFS): Map 'relocate2' to a different symbol.
158 2019-04-01 Bruno Haible <bruno@clisp.org>
160 build: Separate git operations from build operations.
161 * gitsub.sh: New file, from gnulib.
162 * .gitmodules: New file.
163 * autogen.sh: Remove all git operations. Look at GNULIB_SRCDIR
164 environment variable. Ignore the GNULIB_TOOL environment variable.
165 * HACKING: Explain when to use gitsub.sh.
167 2019-03-07 Bruno Haible <bruno@clisp.org>
169 Avoid signed integer overflow during shifts.
170 Reported by Jeffrey Walton <noloader@gmail.com>.
171 * lib/tcvn.h (tcvn_wctomb): Use unsigned integer type for bit mask
173 * lib/viscii.h (viscii_wctomb): Likewise.
175 2019-03-04 Bruno Haible <bruno@clisp.org>
177 Add support for --enable-relocatable to libcharset.
178 * autogen.sh: Copy some more files to libcharset/build-aux/ and
181 2019-03-04 Bruno Haible <bruno@clisp.org>
183 Update --enable-relocatable support after gnulib changed.
184 * configure.ac: Move the LT_INIT invocation before the gl_RELOCATABLE
185 invocation. Remove unused argument to gl_RELOCATABLE.
187 2019-01-27 Bruno Haible <bruno@clisp.org>
189 Accommodate a shell that is not in /bin/sh.
190 * Makefile.in (SHELL): Use the value found by configure.
191 * lib/Makefile.in (SHELL): Likewise.
192 * man/Makefile.in (SHELL): Likewise.
193 * src/Makefile.in (SHELL): Likewise.
194 * tests/Makefile.in (SHELL): Likewise.
195 (check, check-extra-yes): Use SHELL to run the check-* scripts.
197 2019-01-27 Bruno Haible <bruno@clisp.org>
199 Update after gnulib changed.
200 * Makefile.in (GNULIB_IMPORTED_FILES): Remove build-aux/snippet/*.
202 2019-01-27 Bruno Haible <bruno@clisp.org>
204 Update support for building with MSVC. Automake does not install ar-lib.
205 * autogen.sh: Fetch build-aux/ar-lib here.
206 * Makefile.devel (srclib/Makefile.in): Don't fetch build-aux/ar-lib
208 * Makefile.in (AUTOMAKE_IMPORTED_FILES): Remove build-aux/ar-lib.
209 (IMPORTED_FILES): Add build-aux/ar-lib.
211 2019-01-06 Bruno Haible <bruno@clisp.org>
213 Revisit handling of file descriptors closed by the parent process.
214 * src/iconv.c (main): Add comment.
216 2018-10-23 Bruno Haible <bruno@clisp.org>
218 Remove outdated DJGPP build infrastructure.
219 Approved by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
220 * djgpp: Remove directory.
221 * INSTALL.djgpp: Remove file.
222 * Makefile.in (SOURCE_FILES): Remove them.
224 2018-10-23 Bruno Haible <bruno@clisp.org>
226 Update after gnulib changed.
227 * configure.ac (AC_PREREQ): Bump minimum Autoconf version to 2.63.
229 2018-09-22 Bruno Haible <bruno@clisp.org>
231 Avoid some warnings in MSVC build.
232 * include/export.h: Handle MSVC compiler as well.
234 2018-09-22 Bruno Haible <bruno@clisp.org>
236 Update from gnulib. Move mapping tables into the code.
237 * autogen.sh: Don't create libcharset/m4/relocatable-lib.m4.
238 * Makefile.in (mostlyclean, clean, distclean, maintainer-clean): Don't
239 remove lib/charset.alias.
240 * tests/check-subst: Don't set CHARSETALIASDIR.
242 2018-05-04 Bruno Haible <bruno@clisp.org>
244 Drop special instructions for OSF/1.
245 * INSTALL.generic: Remove the recommendation for OSF/1.
247 2018-05-04 Bruno Haible <bruno@clisp.org>
249 Simplify: Remove the ability to install a preloadable library.
250 * preload/*: Remove directory.
251 * Makefile.devel: Don't recurse into 'preload'.
252 * Makefile.in: Likewise.
253 * configure.ac: Don't declare 'preload' as a subdirectory.
254 * README, NEWS: Update.
256 2018-05-04 Bruno Haible <bruno@clisp.org>
258 Simplify code. Drop support for Borland C++ on Windows.
259 * lib/iconv.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
261 * lib/iconv_open1.h: Likewise.
263 2018-05-04 Bruno Haible <bruno@clisp.org>
265 * lib/relocatable.c: Update from gnulib.
267 2018-05-04 Bruno Haible <bruno@clisp.org>
269 Switch to automake 1.16.
270 * autogen.sh: Update comment.
271 * Makefile.devel (AUTOMAKE, ACLOCAL): Switch to version 1.16.
272 * libcharset/Makefile.devel (ACLOCAL): Likewise.
273 * preload/Makefile.devel (ACLOCAL): Likewise.
275 2018-03-27 Bruno Haible <bruno@clisp.org>
278 * README: Don't recommend to use --prefix=/usr/local, as it produces
279 problems with GCC (since GCC's treatment of /usr/local/include and
280 /usr/local/lib is inconsistent by default). Don't recommend to use
281 the iconv.m4 installed by GNU gettext, because it won't work when
282 GNU automake and GNU gettext are installed with different --prefix
283 options; instead recommend the 'iconv' module from gnulib.
285 2018-01-27 Bruno Haible <bruno@clisp.org>
288 * INSTALL.windows: Renamed from README.windows.
289 * INSTALL.djgpp: Renamed from README.djgpp.
290 * Makefile.in (SOURCE_FILES): Update.
292 2018-01-03 Bruno Haible <bruno@clisp.org>
294 Fix installation in 64-bit mode on AIX.
295 * lib/Makefile.in (AR): New variable.
296 (install): Use it instead of hardcoding 'ar'.
298 2017-11-26 Bruno Haible <bruno@clisp.org>
300 Avoid end-of-lines problem in generated shell scripts on Cygwin.
301 Patch by Feiyun Wang <feiyunw@yahoo.com>.
302 * lib/genaliases.c (main): Create canonical.sh and canonical_local.sh
303 with Unix end-of-line characters, regardless of Cygwin choice of
304 text mode vs. binary mode.
306 2017-07-15 Bruno Haible <bruno@clisp.org>
308 Allow building statically linked binaries, through LDFLAGS="-static".
310 <https://lists.gnu.org/archive/html/bug-libtool/2017-07/msg00000.html>.
311 * build-aux/ltmain.sh (func_mode_help, func_mode_link): In the link
312 mode, accept option '-static-uninstalled-libs' in place of '-static',
313 and make '-static' an equivalent of '-all-static'.
315 2017-07-15 Bruno Haible <bruno@clisp.org>
317 Don't attempt to build preloadable_libiconv.so when linking statically.
318 * preload/configure.ac (enable_shared, enable_static): Don't force
319 shared libraries when LDFLAGS indicates static linking.
320 (PLUGLIB): Set to empty when is not configured for building shared
323 2017-07-15 Bruno Haible <bruno@clisp.org>
325 Get rid of autom4te.cache directories, as far as possible.
326 * Makefile.devel (srclib/Makefile.in, aclocal.m4, configure,
327 config.h.in): Remove autom4te.cache after invoking aclocal, autoconf,
328 autoheader, automake.
329 * preload/Makefile.devel (aclocal, configure): Likewise.
331 2017-05-18 Bruno Haible <bruno@clisp.org>
333 * lib/relocatable.h: Update from gnulib.
334 * lib/relocatable.c: Update from gnulib.
336 2017-01-30 Bruno Haible <bruno@clisp.org>
338 Prepare for version 1.15.
339 * src/iconv.c (print_version): Update copyright year.
340 * windows/iconv.rc: Likewise.
341 * windows/libiconv.rc: Likewise.
343 2016-12-29 Bruno Haible <bruno@clisp.org>
345 Make Makefile.devel consistent with .gitignore.
346 * Makefile.devel (srclib/Makefile.in): Depend on aclocal.m4.
347 (totally-clean): Remove also aclocal.m4.
349 2016-12-25 Bruno Haible <bruno@clisp.org>
352 * autogen.sh: Emit a "done" diagnostic when autogen.sh completed
355 2016-12-25 Bruno Haible <bruno@clisp.org>
357 Reorder Makefile.devel.
358 * Makefile.devel: Reorder: put gnulib targets before autotools targets.
360 2016-12-14 Bruno Haible <bruno@clisp.org>
362 Cleanup useless removals.
363 * lib/Makefile.in (distclean): No need to remove 'libtool'.
365 2016-12-04 Bruno Haible <bruno@clisp.org>
368 * Makefile.devel: Update comments about release process.
370 2016-12-04 Bruno Haible <bruno@clisp.org>
372 Create tarballs through an Automake-like "make dist" command.
373 * Makefile.in (SOURCE_FILES, LIBTOOL_IMPORTED_FILES,
374 AUTOMAKE_OLD_IMPORTED_FILES, AUTOMAKE_IMPORTED_FILES, IMPORTED_FILES,
375 GENERATED_FILES, DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
376 (distdir): New target.
377 (PACKAGE, VERSION, TAR, GZIP): New macros.
379 * lib/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
380 DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
381 (distdir): New target.
382 * man/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
383 DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
384 (distdir): New target.
385 * preload/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
386 DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
387 (distdir): New target.
388 * src/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
389 DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
390 (distdir): New target.
391 * tests/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
392 DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
393 (distdir): New target.
395 2016-12-04 Bruno Haible <bruno@clisp.org>
397 Remove duplicates of imported files from version control.
398 * autogen.sh: Copy imported files to libcharset.
400 2016-12-04 Bruno Haible <bruno@clisp.org>
402 Always use the newest released copies of files brought in from Automake.
403 * Makefile.devel (srclib/Makefile.in): Make sure to get new versions of
404 files brought in by automake.
405 * build-aux/install-sh: Remove from version control.
406 * build-aux/missing: Likewise.
408 2016-12-04 Bruno Haible <bruno@clisp.org>
410 Always use the newest copies of config.guess, config.sub.
411 * Makefile.devel (gnulib-imported-files): New target.
412 * autogen.sh: Invoke it.
413 * build-aux/config.guess: Remove from version control.
414 * build-aux/config.sub: Likewise.
416 2016-12-04 Bruno Haible <bruno@clisp.org>
418 Always use the newest copy of fcntl-o.m4.
419 * m4/fcntl-o.m4: Remove file. Rely on srcm4/fcntl-o.m4 instead.
421 2016-12-04 Bruno Haible <bruno@clisp.org>
423 Remove obsolete documentation.
424 * PORTS: Remove file.
426 2016-12-03 Bruno Haible <bruno@clisp.org>
428 Make Makefile.devel more useful for the users of the released tarball.
429 * Makefile.devel (srclib/Makefile.gnulib): Don't force this target.
430 (gnulib-clean): New target.
431 (totally-clean): New target. Do the removals from autogen.sh. Also,
432 remove lib/aliases*.gperf, lib/canonical*.h, man/iconvctl.3.html,
433 man/iconv_open_into.3.html.
434 * autogen.sh: Invoke target gnulib-clean before srclib/Makefile.gnulib.
435 Invoke target totally-clean before all.
436 * preload/Makefile.devel (totally-clean): New target.
438 2016-12-03 Bruno Haible <bruno@clisp.org>
440 Modernize configure.ac.
441 * configure.ac: Use 2-argument AC_INIT. Avoid an AM_INIT_AUTOMAKE
443 * preload/configure.ac: Use 2-argument AC_INIT. Use AC_CONFIG_SRCDIR.
445 2016-12-03 Bruno Haible <bruno@clisp.org>
447 Towards reproducible builds.
448 * Makefile.devel (man/%.html): Remove the CreationDate comment line
451 2016-12-04 Bruno Haible <bruno@clisp.org>
453 Update to gettext-0.19.8.1.
454 * ABOUT-NLS: Update through 'gettextize'.
456 2016-12-03 Bruno Haible <bruno@clisp.org>
458 Update documentation.
459 * HACKING: Refer to the Git repository.
461 2016-12-03 Bruno Haible <bruno@clisp.org>
463 Avoid compilation warnings in 'genflags' program.
464 * lib/genflags.c: Avoid warnings from GCC's -Wunused-function option.
466 2016-12-02 Bruno Haible <bruno@clisp.org>
468 * relocatable.c: Update from gnulib.
470 2016-11-25 Bruno Haible <bruno@clisp.org>
472 Prepare for version 1.15.
473 * configure.ac: Bump version number to 1.15.
475 * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
476 * windows/iconv.rc: Update.
477 * windows/libiconv.rc: Update.
478 * Makefile.devel: Update comments.
479 * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 8:0:6.
480 * src/iconv.c (print_version): Update copyright year.
482 2016-11-23 Bruno Haible <bruno@clisp.org>
484 Update installation instructions for Windows.
485 * README.windows: Assume a 64-bit Windows. Explain both 32-bit and
486 64-bit builds. Add instructions for the MS Visual C/C++ tool chain.
487 Revamp instructions for Cygwin.
489 2016-11-23 Bruno Haible <bruno@clisp.org>
491 Drop the nickname "woe32".
492 * README.windows: Renamed from README.woe32.
494 2016-11-22 Bruno Haible <bruno@clisp.org>
496 Update support for building with MSVC.
497 * Makefile.devel (srclib/Makefile.in): Import 'ar-lib' and 'compile'
499 * lib/Makefile.in (install-lib, install): Install the .la file with
500 $(INSTALL), not $(INSTALL_DATA). Otherwise the native Windows DLL gets
501 installed without execution permissions, and programs linked to it fail:
502 in a Cygwin shell with exit code 127, or from a cmd.exe window with a
503 dialog "The application was unable to start correctly (0xc0000022)."
505 2016-11-19 Bruno Haible <bruno@clisp.org>
507 Fix link error when compiling with gcc -O0.
508 * lib/iconv.c (aliases2_lookup): Make static.
509 Reported by Chung-Lin Tang <chunglin.tang@gmail.com>
510 at https://savannah.gnu.org/bugs/?47953 .
512 2016-11-17 Bruno Haible <bruno@clisp.org>
514 UTF-8: Reject surrogates and out-of-range code points.
515 * lib/utf8.h (utf8_mbtowc, utf8_wctomb): Reject code points in the
516 range 0xD800..0xDFFF and >= 0x110000.
517 * tests/genutf8.c (main): Don't emit mappings for 0xD800..0xDFFF.
519 2016-10-22 Bruno Haible <bruno@clisp.org>
521 Switch to libtool 2.4.6.
522 * m4/libtool.m4: Update from libtool-2.4.6, with modifications:
523 2008-04-06 Bruno Haible <bruno@clisp.org>
524 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
525 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
527 * m4/ltoptions.m4: Likewise.
528 * m4/ltversion.m4: Likewise.
529 * build-aux/ltmain.sh: Likewise.
531 2016-10-14 Bruno Haible <bruno@clisp.org>
533 Use 'size_t', not 'int', for the length of a string.
534 * lib/iconv.c: Include <limits.h>.
535 * lib/genflags.c: Likewise.
536 * lib/converters.h (struct mbtowc_funcs, struct wctomb_funcs): Change
537 'int n' parameter to 'size_t n'.
538 (RET_COUNT_MAX): New macro.
539 * lib/*.h: Use 'size_t n' instead of 'int n'.
540 * lib/ucs2.h (ucs2_mbtowc): Make sure 'count' does not cause an 'int'
542 * lib/ucs4.h (ucs4_mbtowc): Likewise.
543 * lib/utf16.h (utf16_mbtowc): Likewise.
544 * lib/utf32.h (utf32_mbtowc): Likewise.
545 * tools/8bit_tab_to_h.c: Generate function signatures with 'size_t n'.
546 * tools/cjk_tab_to_h.c: Likewise.
547 * NEWS: Mention the change.
549 2016-10-04 Bruno Haible <bruno@clisp.org>
551 Extend CP1255 mapping.
552 * lib/cp1255.h (cp1255_2uni, cp1255_page05): Map 0xCA to U+05BA.
553 * tests/CP1255.TXT: Likewise.
554 This matches https://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WindowsBestFit/bestfit1255.txt
555 and what the native Windows converter does since at least Windows XP.
557 2016-10-01 Ben Noordhuis <info@bnoordhuis.nl> (tiny change)
558 Bruno Haible <bruno@clisp.org>
560 Remove large stack requirement from gentranslit.
561 * lib/gentranslit.c (main): Heap-allocate large arrays.
562 * Makefile.devel (lib/translit.h): Remove 'ulimit -s unlimited' command.
564 2015-12-10 Ben Noordhuis <info@bnoordhuis.nl> (tiny change)
566 Remove unused array from gentranslit.
567 * lib/gentranslit.c (main): Remove unused array.
568 * Makefile.devel (CC): Add -Wall option.
569 Reported in https://savannah.gnu.org/bugs/?46663 .
571 2016-10-01 Bruno Haible <bruno@clisp.org>
574 * src/iconv.c (main): Increment i after parsing the --silent option.
575 Reported in https://savannah.gnu.org/bugs/?41187 .
577 2016-10-01 Bruno Haible <bruno@clisp.org>
579 Update to current gnulib.
580 * Makefile.devel (GNULIB_MODULES): Remove memmove.
581 * tests/Makefile.in (INCLUDES): Make sure to include the top-level
582 "config.h". Needed for the 'binary-io' module.
584 2016-10-01 Bruno Haible <bruno@clisp.org>
586 Switch to automake 1.15.
587 * autogen.sh: Update comment.
588 * Makefile.devel (AUTOMAKE, ACLOCAL): Switch to version 1.15.
589 (srclib/Makefile.in): Don't remove auxiliary files brought in by
591 * preload/Makefile.devel (ACLOCAL): Switch to version 1.15.
592 * srclib/Makefile.am (AUTOMAKE_OPTIONS): Add subdir-objects.
593 * build-aux/missing: Update from automake-1.15.
595 2016-10-01 Bruno Haible <bruno@clisp.org>
597 Remove autogenerated doc files from version control.
598 * man/iconvctl.3.html: Remove file.
599 * man/iconv_open_into.3.html: Remove file.
601 2012-12-06 Bruno Haible <bruno@clisp.org>
603 Change copyright holder of man pages.
604 * man/*.[13]: Replace myself with FSF.
606 2012-06-30 Bruno Haible <bruno@clisp.org>
608 Make it possible to run 'genaliases2' on native Windows.
609 * lib/genaliases2.c (main): Expect 3 arguments. Open the output files
610 explicitly. Complain if they don't exist.
611 * Makefile.devel (lib/aliases_*.h): Pass the output filenames as
612 arguments to genaliases.
613 Reported at <https://savannah.gnu.org/bugs/?36748>.
615 Make it possible to run 'genaliases' on native Windows.
616 * lib/genaliases.c (main): Expect 3 arguments. Open the output files
617 explicitly. Complain if they don't exist. Improve error checking.
618 * Makefile.devel (lib/aliases*.h): Pass the output filenames as
619 arguments to genaliases.
620 Reported at <https://savannah.gnu.org/bugs/?36748>.
622 2012-05-13 Bruno Haible <bruno@clisp.org>
624 Tweak the GB18030 converter to map 0x8135F437 to U+E7C7.
625 * lib/gb18030.h (gb18030_pua2charset, gb18030_wctomb): Remove mapping
626 from U+E7C7 to 0xA8BC.
627 * lib/gb18030uni.h (gb18030uni_mbtowc): Treat 0x8135F437 as a special
629 (gb18030uni_wctomb): Treat U+E7C7 as a special case.
630 * tests/GB18030-BMP.TXT: Map 0x8135F437 to U+E7C7, not U+1E3F.
631 * tests/GB18030.IRREVERSIBLE.TXT: Remove irreversible mappings for
632 0x8135F437 and U+E7C7.
634 2012-04-28 Bruno Haible <bruno@clisp.org>
636 Switch to autoconf 2.69 and automake 1.12.
637 * autogen.sh: Update comment.
638 * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.69.
639 (AUTOMAKE, ACLOCAL): Switch to version 1.12.
640 * preload/Makefile.devel (AUTOCONF): Switch to version 2.69.
641 (ACLOCAL): Switch to version 1.12.
643 2012-03-24 Bruno Haible <bruno@clisp.org>
646 * lib/isoir165.h (isoir165_mbtowc): Don't shadow the 'ret' variable.
648 2012-01-26 Bruno Haible <bruno@clisp.org>
651 * README: Quote 'like this', not `like this', as per the recent change
652 to the GNU coding standards.
654 * gnulib-local/lib/xmalloc.c: Likewise.
655 * lib/config.h.in: Likewise.
656 * src/iconv.c (usage): Likewise.
657 * tests/uniq-u.c: Likewise.
658 * tools/cjk_tab_to_h.c (output_uni2charset_sparse, do_jisx0213):
660 * lib/big5.h: Update accordingly.
661 * lib/cns11643_inv.h: Likewise.
662 * lib/cp932ext.h: Likewise.
663 * lib/cp950ext.h: Likewise.
664 * lib/gb12345ext.h: Likewise.
665 * lib/gb2312.h: Likewise.
666 * lib/gbkext_inv.h: Likewise.
667 * lib/hkscs1999.h: Likewise.
668 * lib/hkscs2001.h: Likewise.
669 * lib/hkscs2004.h: Likewise.
670 * lib/hkscs2008.h: Likewise.
671 * lib/isoir165ext.h: Likewise.
672 * lib/jisx0208.h: Likewise.
673 * lib/jisx0212.h: Likewise.
674 * lib/jisx0213.h: Likewise.
675 * lib/ksc5601.h: Likewise.
676 * lib/uhc_1.h: Likewise.
677 * lib/uhc_2.h: Likewise.
679 2012-01-15 Bruno Haible <bruno@clisp.org>
682 * lib/config.h.in (inline, mode_t, ssize_t): Copy snippets from top
684 * tests/genutf8.c: Include config.h.
685 * tests/gengb18030z.c: Likewise.
686 * woe32dll/export.h (VARIABLE): Define to empty if not using GCC.
688 2011-01-28 Bruno Haible <bruno@clisp.org>
691 * woe32dll/export.h: Add a reference to the woe32dll writeup.
693 2012-01-06 Bruno Haible <bruno@clisp.org>
695 Update after gnulib changed.
696 * gnulib-local/lib/error.h.diff: Update.
698 2012-01-06 Bruno Haible <bruno@clisp.org>
700 Talk about "native Windows API", not "Woe32".
701 * lib/relocatable.c: Update comments to mention native Windows.
703 2012-01-04 Bruno Haible <bruno@clisp.org>
705 Talk about "native Windows API", not "Win32".
706 * lib/relocatable.c: Update comments to mention native Windows.
707 (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
709 2011-10-27 Bruno Haible <bruno@clisp.org>
711 Fix bug with error handling in UCS-2, UCS-4, UTF-32 decoders.
712 * lib/ucs2.h (ucs2_mbtowc): Increment count only after validating wc.
713 * lib/ucs4.h (ucs4_mbtowc): Likewise.
714 * lib/utf32.h (utf32_mbtowc): Likewise.
715 Reported at <https://savannah.gnu.org/bugs/?34916>.
717 2012-06-30 Bruno Haible <bruno@clisp.org>
719 Improve ISO-2022-CP-MS versus CP932.
720 * lib/iso2022_jpms.h (iso2022_jpms_mbtowc): Recognize characters from
721 the rows 0x79..0x7C as rows from CP932.
722 * tests/ISO-2022-JP-MS-snippet.alt: New file, renamed from
723 tests/ISO-2022-JP-MS-snippet.
724 * tests/ISO-2022-JP-MS-snippet.UTF-8: Update the rows that correspond
725 to ESC $ B 0x79..0x7C.
726 * tests/ISO-2022-JP-MS-snippet: Likewise.
727 * tests/check-stateful: Also test the *-snippet.alt file if it exists.
728 * tests/check-stateful.bat: Likewise.
730 2012-06-30 Bruno Haible <bruno@clisp.org>
732 Improve ISO-2022-CP-MS versus CP932.
733 * lib/cp50221_0208_ext.h (cp50221_0208_ext_page30): Map U+301D like
735 * lib/iso2022_jpms.h (iso2022_jpms_wctomb): Map U+663B to JISX0208
736 0x7A 0x36, U+FFE2 to 0x7C 0x7B, U+FFE4 to 0x7C 0x7C.
737 Reported by Jeff Diehl <diehl.jeff@gmail.com>.
739 2011-10-23 Bruno Haible <bruno@clisp.org>
741 New encoding ISO-2022-CP-MS.
742 * NOTES: Mention ISO-2022-JP-MS.
743 * tools/CP50221-0208-EXT.TXT: New file.
744 * tools/CP50221-0212-EXT.TXT: New file.
745 * tools/8bit_tab_to_h.c: Add comments about how to generate
746 cp50221_0208_ext.h, cp50221_0212_ext.h.
747 * tools/Makefile: Add rules for generating cp50221_0208_ext.h,
749 * lib/cp50221_0208_ext.h: New file, mostly generated.
750 * lib/cp50221_0212_ext.h: New file, mostly generated.
751 * lib/iso2022_jpms.h: New file.
752 * lib/converters.h: Include it.
753 * lib/encodings.def: Add ISO-2022-JP-MS.
754 * README, man/iconv_open.3: Add ISO-2022-JP-MS.
755 * tests/ISO-2022-JP-MS-snippet: New file.
756 * tests/ISO-2022-JP-MS-snippet.UTF-8: New file.
757 * tests/Makefile.in (check): Also test ISO-2022-JP-MS.
758 Reported by Jeff Diehl <diehl.jeff@gmail.com>.
760 2011-10-23 Bruno Haible <bruno@clisp.org>
762 * lib/encodings.def: Add comments about Windows names of encodings.
764 2011-10-18 Bruno Haible <bruno@clisp.org>
766 * m4/libtool.m4: Update from libtool-2.4.2, with modifications:
767 2008-04-06 Bruno Haible <bruno@clisp.org>
768 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
769 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
771 * m4/ltoptions.m4: Likewise.
772 * m4/ltversion.m4: Likewise.
773 * build-aux/ltmain.sh: Likewise.
775 2011-10-03 Bruno Haible <bruno@clisp.org>
777 * lib/relocatable.c: Update from gnulib.
779 2011-09-02 Bruno Haible <bruno@clisp.org>
781 Fix "make check" failure when $(srcdir) != $(builddir).
782 * tests/Makefile.in (check): When $(srcdir) != ., temporarily copy
783 GB18030.IRREVERSIBLE.TXT into the build directory.
784 Reported by Christian Weisgerber <naddy@mips.inka.de>.
786 2011-08-07 Bruno Haible <bruno@clisp.org>
788 Ensure all HTML-formatted man pages are up-to-date.
789 * Makefile.devel (all): Depend on man/iconvctl.3.html and
790 man/iconv_open_into.3.html.
792 2011-08-07 Bruno Haible <bruno@clisp.org>
794 * Version 1.14 released.
796 2011-08-07 Bruno Haible <bruno@clisp.org>
798 * configure.ac: Bump version number to 1.14.
800 * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
801 * windows/iconv.rc: Update.
802 * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 7:1:5.
803 * src/iconv.c (print_version): Update copyright year.
805 2011-08-07 Bruno Haible <bruno@clisp.org>
807 Avoid a test failure on Solaris 2.6 and HP-UX 11.00.
808 * tests/test-to-wchar.c (main): Skip the test if conversion to wchar_t
811 2011-08-07 Bruno Haible <bruno@clisp.org>
813 * tests/check-subst: Add comments about OSF/1.
815 2011-08-07 Bruno Haible <bruno@clisp.org>
817 * lib/relocatable.c: Update from gnulib.
819 2011-08-06 Bruno Haible <bruno@clisp.org>
821 Upgrade the GB18030 converter to the version from 2005.
822 * lib/gb18030ext.h (gb18030ext_2uni_pagefe): Change element type to
823 'unsigned int'. Change values for 0xFE51..0xFE53, 0xFE59, 0xFE61,
824 0xFE66, 0xFE67, 0xFE6C, 0xFE6D, 0xFE76, 0xFE7E, 0xFE90, 0xFE91, 0xFEA0.
825 (gb18030ext_mbtowc): Change type of wc to 'unsigned int'. Change values
826 for 0xA6D9..0xA6DF, 0xA6EC..0xA6ED, 0xA6F3, 0xA8BC.
827 (gb18030ext_page9f, gb18030ext_pagefe): New constant arrays.
828 (gb18030ext_wctomb): Change values for U+1E3F, U+9FB4..U+9FBB,
829 U+FE10..U+FE19, U+20087, U+20089, U+200CC, U+215D7, U+2298F, U+241FE.
830 * tests/GB18030-BMP.TXT: Change values for 0xA6D9..0xA6DF,
831 0xA6EC..0xA6ED, 0xA6F3, 0xA8BC, 0xFE51..0xFE53, 0xFE59, 0xFE61, 0xFE66,
832 0xFE67, 0xFE6C, 0xFE6D, 0xFE76, 0xFE7E, 0xFE90, 0xFE91, 0xFEA0, to map
833 to now-assigned Unicode codepoints.
834 * tests/GB18030.IRREVERSIBLE.TXT: New file.
836 2011-08-06 Bruno Haible <bruno@clisp.org>
838 Fix conversion bug in CP1258 converter.
839 * lib/vietcomb.h (viet_comp_table_data): Remove entry for
840 U+00A5 U+0301. Fix entry for U+00A8 U+0301.
841 (viet_decomp_table): Fix entry for U+0385.
842 * tests/CP1258.IRREVERSIBLE.TXT: Update.
843 Reported by Gertjan Halkes <gertjan@ghalkes.nl>.
845 2011-07-03 Bruno Haible <bruno@clisp.org>
847 Improve interactive behaviour of iconv program.
848 * src/iconv.c (convert): Flush the output before starting a possibly
849 blocking safe_read call.
851 2011-07-03 Bruno Haible <bruno@clisp.org>
853 Fix interactive behaviour of iconv program.
854 * Makefile.devel (GNULIB_MODULES): Add safe-read.
855 * src/iconv.c: Include safe-read.h.
856 (convert): Take the infile as a file descriptor, not as a FILE stream.
857 Use safe_read() instead of fread().
859 Reported by Xavier Pucel <xpucel@hotmail.com>.
861 2011-05-02 Bruno Haible <bruno@clisp.org>
863 Update after gnulib changed.
864 * autogen.sh (GNULIB_MODULES): Remove exit, add stdlib.
866 2011-06-02 Bruno Haible <bruno@clisp.org>
868 Update after gnulib changed.
869 * gnulib-local/m4/alloca.m4 (gl_FUNC_ALLOCA): Update.
871 2011-06-04 Bruno Haible <bruno@clisp.org>
873 Work around <wchar.h> bug on OSF/1 5.1.
874 * lib/loop_wchar.h: Before including <wchar.h>, include <stdio.h> and
877 2011-03-27 KO Myung-Hun <komh@chollian.net>
879 Fix installation on OS/2.
880 * src/Makefile.in (all, iconv_no_i18n): Add $(EXEEXT) suffix to
881 iconv_no_i18n. This is the recommended way to use libtool, see
882 <https://lists.gnu.org/archive/html/bug-libtool/2009-04/msg00013.html>.
884 2011-03-31 Bruno Haible <bruno@clisp.org>
886 gentranslit: Fix buffer overrun.
887 * lib/gentranslit.c (main): Allocate more room for the suffix strings
888 of the translit pages.
889 Reported by Ben Noordhuis <info@bnoordhuis.nl>.
891 2011-02-28 Bruno Haible <bruno@clisp.org>
893 * lib/relocatable.h: Update from gnulib.
894 * lib/relocatable.c: Likewise.
896 2011-01-29 Corinna Vinschen <corinna-cygwin@cygwin.com>
897 Bruno Haible <bruno@clisp.org>
899 Simplify "wchar_t" handling on Cygwin 1.7.x.
900 * lib/iconv.c (iconv_canonicalize): On Cygwin >= 1.7, map
901 ei_local_wchar_t to ei_utf16le or ei_utf16be, not ei_ucs2internal.
902 * lib/iconv_open1.h: Likewise.
903 Rationale: <https://cygwin.com/ml/cygwin/2011-01/msg00410.html>.
905 2011-01-29 Bruno Haible <bruno@clisp.org>
907 Adjust the meaning of "wchar_t" on native Windows systems.
908 * lib/iconv.c (iconv_canonicalize): On native Windows, map
909 ei_local_wchar_t to ei_utf16le or ei_utf16be, not ei_ucs2internal.
910 * lib/iconv_open1.h: Likewise.
911 Reported by Corinna Vinschen <corinna-cygwin@cygwin.com>
912 in <https://cygwin.com/ml/cygwin/2011-01/msg00410.html>.
914 2010-11-23 Bruno Haible <bruno@clisp.org>
916 Implement newer release of BIG5-HKSCS.
917 * tools/Makefile (ALL): Add hkscs2008.h.
918 (hkscs2008.h): New rule.
919 * tools/cjk_tab_to_h.c (main): Recognize hkscs2008.
920 * lib/encodings.def: Add BIG5-HKSCS:2008. Change BIG5-HKSCS alias to be
921 equivalent to BIG5-HKSCS:2008.
922 * lib/hkscs2008.h: New file, autogenerated.
923 * lib/big5hkscs2008.h: New file, based on lib/big5hkscs2004.h.
924 * lib/converters.h: Include the new file.
925 * README, man/iconv_open.3: Add BIG5-HKSCS:2004.
926 * tests/BIG5-HKSCS-2008.TXT: New file, based on
927 tests/BIG5-HKSCS-2004.TXT.
928 * tests/BIG5-HKSCS-2008.IRREVERSIBLE.TXT: New file, copied from
929 tests/BIG5-HKSCS-2004.IRREVERSIBLE.TXT
930 * tests/BIG5-HKSCS-2008-snippet: New file, based on
931 tests/BIG5-HKSCS-2004-snippet.
932 * tests/BIG5-HKSCS-2008-snippet.UTF-8: New file, based on
933 tests/BIG5-HKSCS-2004-snippet.UTF-8.
934 * tests/Makefile.in (check): Check also BIG5-HKSCS:2008.
935 Reported by oCameLo <camel322@gmail.com>.
937 2010-11-23 Bruno Haible <bruno@clisp.org>
939 Make cjk_tab_to_h 64-bit clean.
940 * tools/cjk_tab_to_h.c (do_jisx0213): Add a cast from size_t to int.
941 (output_title): Update copyright year.
943 2010-09-23 Bruno Haible <bruno@clisp.org>
945 Switch to autoconf 2.68.
946 * autogen.sh: Update comment.
947 * configure.ac: Fix AC_COMPILE_IFELSE invocation.
948 * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.68.
949 * preload/Makefile.devel (AUTOCONF): Likewise.
951 2010-09-23 Bruno Haible <bruno@clisp.org>
953 * m4/libtool.m4: Update from libtool-2.4, with modifications:
954 2008-04-06 Bruno Haible <bruno@clisp.org>
955 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
956 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
958 * m4/ltversion.m4: Update from libtool-2.4.
959 * build-aux/ltmain.sh: Likewise.
961 2010-09-23 Bruno Haible <bruno@clisp.org>
963 Simplify use of gnulib-tool now that gnulib-tool --import works better.
964 * autogen.sh: Don't remove gnulib-cache.m4 before running gnulib-tool.
965 * Makefile.devel (srclib/Makefile.gnulib): Depend on 'force'.
967 2010-07-31 Bruno Haible <bruno@clisp.org>
969 * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.67.
970 * preload/Makefile.devel (AUTOCONF): Likewise.
972 2010-07-03 Bruno Haible <bruno@clisp.org>
974 * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.66.
975 * preload/Makefile.devel (AUTOCONF): Likewise.
977 2010-06-04 Bruno Haible <bruno@clisp.org>
979 Addendum to 2009-10-18 commit.
980 * m4/fcntl-o.m4: New file, from gnulib.
981 * configure.ac: Invoke gl_FCNTL_O_FLAGS.
982 * lib/config.h.in (HAVE_WORKING_O_NOFOLLOW): New macro.
984 2010-06-04 Bruno Haible <bruno@clisp.org>
986 * m4/libtool.m4: Update from libtool-2.2.8, with modifications:
987 2008-04-06 Bruno Haible <bruno@clisp.org>
988 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
989 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
991 * m4/ltoptions.m4: Update from libtool-2.2.8.
992 * m4/ltversion.m4: Likewise.
993 * m4/lt~obsolete.m4: Likewise.
994 * build-aux/ltmain.sh: Likewise.
996 2010-04-06 Bruno Haible <bruno@clisp.org>
998 Avoid a compilation error of gnulib's test-iconv-h-c++.cc on mingw.
999 * include/iconv.h.in: Restrict the extern "C" { ... } scope so that it
1000 doesn't contains #include directives.
1002 2010-03-30 Bruno Haible <bruno@clisp.org>
1004 * README.woe32: Update for Cygwin 1.7.x.
1006 2009-12-26 Bruno Haible <bruno@clisp.org>
1008 * windows/libiconv.rc: Update.
1009 * windows/iconv.rc: Update.
1011 2009-12-11 Bruno Haible <bruno@clisp.org>
1013 * include/iconv.h.in: Untabify.
1014 * gnulib-local/lib/xalloc.h: Untabify.
1015 * woe32dll/export.h: Untabify.
1016 * tests/uniq-u.c: Untabify.
1018 2009-12-11 Bruno Haible <bruno@clisp.org>
1020 * srclib/Makefile.am (MOSTLYCLEANDIRS): New macro.
1022 2009-12-11 Bruno Haible <bruno@clisp.org>
1024 * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.65.
1025 * preload/Makefile.devel (AUTOCONF): Likewise.
1027 2009-11-22 Bruno Haible <bruno@clisp.org>
1029 * tests/check-subst: Add reference to the Solaris printf bug.
1030 Reported by Dagobert Michelsen <dagobert@familie-michelsen.de>.
1032 2009-09-01 Bruno Haible <bruno@clisp.org>
1034 * README.woe32: Put the -mno-cygwin option into CC and CXX.
1035 Recommended by Paolo Bonzini and Eric Blake.
1037 2009-08-15 Bruno Haible <bruno@clisp.org>
1039 * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.64.
1040 * preload/Makefile.devel (AUTOCONF): Likewise.
1042 2009-08-15 Bruno Haible <bruno@clisp.org>
1044 Use .git/info/exclude, not .gitignore, for imported or generated files.
1045 * Makefile.devel (srclib/Makefile.gnulib): Pass option --no-vc-files to
1048 2009-07-07 Bruno Haible <bruno@clisp.org>
1050 Fix an endless loop.
1051 * lib/loop_wchar.h (wchar_to_loop_convert): Handle the case of
1052 incomplete input correctly.
1053 * tests/test-to-wchar.c: New file.
1054 * tests/Makefile.in (tests-to-wchar, tests-to-wchar.o): New rules.
1055 (check): Depend on and run tests-to-wchar.
1056 (clean): Add tests-to-wchar.
1057 Reported by Tristan Gingold <gingold@adacore.com>.
1059 2009-06-30 Bruno Haible <bruno@clisp.org>
1061 * Version 1.13.1 released.
1063 2009-06-30 Bruno Haible <bruno@clisp.org>
1065 * configure.ac: Bump version number to 1.13.1.
1068 2009-06-04 Bruno Haible <bruno@clisp.org>
1070 * preload/Makefile.devel (AUTOCONF): Switch to version 2.63.
1071 (ACLOCAL): Switch to version 1.11.
1073 2009-05-19 Bruno Haible <bruno@clisp.org>
1075 * Makefile.devel (AUTOMAKE, ACLOCAL): Switch to version 1.11.
1076 * autogen.sh: Update comments.
1078 2009-04-24 Bruno Haible <bruno@clisp.org>
1080 Fix a compilation error on HP-UX 11.00, introduced on 2008-09-16.
1081 * src/iconv_open2.h: Don't initialize nonexistent field if
1082 !(HAVE_WCRTOMB || HAVE_MBRTOWC).
1083 Patch by Joel Brobecker <brobecker@adacore.com>.
1085 2009-04-15 Bruno Haible <bruno@clisp.org>
1087 * src/Makefile.in (install, uninstall): Append the $(EXEEXT) suffix
1088 explicitly. Needed on Cygwin.
1090 2009-04-11 Bruno Haible <bruno@clisp.org>
1092 * configure.ac: Move the statements for WOE32 and WINDRES.
1094 2009-03-26 Bruno Haible <bruno@clisp.org>
1096 * Version 1.13 released.
1098 2009-03-26 Bruno Haible <bruno@clisp.org>
1100 * src/iconv.c: Update copyright header to GPLv3+.
1101 (print_version): Update license info.
1103 2009-03-26 Bruno Haible <bruno@clisp.org>
1105 * src/iconv.c (print_version): Bump year.
1107 2009-03-25 Bruno Haible <bruno@clisp.org>
1109 * build-aux/config.guess: Update to GNU version 2009-02-03.
1110 * build-aux/config.sub: Likewise.
1112 2009-03-25 Bruno Haible <bruno@clisp.org>
1114 * configure.ac: Bump version number to 1.13.
1116 * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
1117 * windows/iconv.rc: Update.
1118 * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 7:0:5.
1120 2009-03-25 Bruno Haible <bruno@clisp.org>
1122 Fix the handling of Windows resources in shared libraries.
1123 * configure.ac: Invoke LT_LANG for 'Windows Resource'.
1124 * lib/Makefile.in (RC): New variable.
1125 (WINDRES): Remove variable.
1126 (OBJECTS_RES_yes): Add .lo suffix.
1127 (libiconv.res.lo): Renamed from libiconv.res. Use libtool --tag=RC.
1129 Based on a patch by Roumen Petrov <bugtrack@roumenpetrov.info>.
1131 2009-03-14 Bruno Haible <bruno@clisp.org>
1133 * autogen.sh: Checkout gnulib using 'git' instead of 'cvs'.
1135 2009-01-24 Bruno Haible <bruno@clisp.org>
1137 * tools/Makefile (ALL): Add cp1131.h.
1138 (cp1131.h): New rule.
1139 * lib/encodings.def: Add CP1131.
1140 * lib/cp1131.h: New file.
1141 * lib/converters.h: Include it.
1142 * README, man/iconv_open.3: Add CP1131.
1143 * NOTES: Mention CP1131.
1144 * tests/CP1131.TXT: New file.
1145 * tests/Makefile.in (check): Also test CP1131.
1147 2009-01-17 Bruno Haible <bruno@clisp.org>
1149 Add support for "make install-strip".
1150 * configure.ac: Search for 'strip'. Invoke AM_PROG_INSTALL_STRIP.
1151 * Makefile.in (install-strip): New rule.
1152 * src/Makefile.in (STRIP, INSTALL_STRIP_PROGRAM, install_sh): New
1154 (install-strip): New rule.
1155 * lib/Makefile.in (install-strip): New target.
1156 * preload/Makefile.in (install-strip): Likewise.
1157 * man/Makefile.in (install-strip): Likewise.
1158 Reported by Alon Bar-Lev <alon.barlev@gmail.com>.
1160 2009-01-17 Bruno Haible <bruno@clisp.org>
1162 Update after gnulib changed.
1163 * src/Makefile.in (RELOCATABLE_STRIP): New variable.
1165 2009-01-17 Bruno Haible <bruno@clisp.org>
1167 Make --enable-relocatable work on glibc systems.
1168 * src/Makefile.in (host): New variable.
1170 2009-01-17 Bruno Haible <bruno@clisp.org>
1172 * lib/genflags.c: Include <string.h>.
1174 2009-01-14 Bruno Haible <bruno@clisp.org>
1176 * configure.ac: More consistent m4 quoting.
1177 * preload/configure.ac: Likewise.
1179 2008-09-28 Bruno Haible <bruno@clisp.org>
1181 * build-aux/ltmain.sh (func_emit_cwrapperexe_src): On mingw,
1182 preprocess the argument vector through prepare_spawn.
1184 2008-09-27 Bruno Haible <bruno@clisp.org>
1186 * build-aux/config.guess: Update to GNU version 2008-09-08.
1187 * build-aux/config.sub: Likewise.
1189 2008-09-26 Bruno Haible <bruno@clisp.org>
1191 * tests/test-shiftseq.c (main1, main2): Use ICONV_CONST.
1193 2008-09-26 Bruno Haible <bruno@clisp.org>
1195 * Makefile.devel (GNULIB_MODULES): Add sigpipe, stdio.
1196 * tests/Makefile.in (check, table-from, table-to, test-shiftseq): Link
1197 all programs against libicrt.a. Needed for the stdio function
1198 replacements on mingw.
1200 2008-09-21 Tadamasa Teranishi <yw3t-trns@asahi-net.or.jp>
1202 * lib/encodings_extra.def: Add aliases for EUC-JISX0213, SHIFT_JISX0213,
1203 ISO-2022-JP-3, found on <http://x0213.org/codetable/index.en.html>.
1205 2008-09-20 Bruno Haible <bruno@clisp.org>
1207 * man/iconv_open_into.3: New file.
1209 2008-09-16 Bruno Haible <bruno@clisp.org>
1211 New function iconv_open_into.
1212 * include/iconv.h.in: Include <wchar.h> and its prerequisites.
1213 (iconv_allocation_t): New type.
1214 (iconv_open_into): New declaration.
1215 * lib/iconv_open1.h: New file, extracted from lib/iconv.c.
1216 * lib/iconv_open2.h: New file, extracted from lib/iconv.c.
1217 * lib/iconv.c (iconv_open): Include iconv_open1.h and iconv_open2.h.
1218 Verify size of iconv_allocation_t.
1219 (iconv_open_into): New function.
1220 * lib/loop_wchar.h (struct wchar_conv_struct): Don't define a state
1221 field if !(HAVE_WCRTOMB || HAVE_MBRTOWC).
1222 * configure.ac: Set and substitute USE_MBSTATE_T, BROKEN_WCHAR_H.
1223 Reported by Roman Rybalko <romanr@romanr.info>.
1225 2008-09-16 Bruno Haible <bruno@clisp.org>
1227 * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.63.
1229 2008-09-16 Bruno Haible <bruno@clisp.org>
1231 * include/iconv.h.in: Use Unicode single-quotes in comments.
1233 2008-09-14 Bruno Haible <bruno@clisp.org>
1235 * Makefile.devel (GNULIB_MODULES): Add strerror.
1237 2008-09-07 Bruno Haible <bruno@clisp.org>
1239 Make behaviour when encountering invalid input after a shift sequence
1241 * lib/converters.h (RET_SHIFT_ILSEQ): New macro.
1242 (RET_ILSEQ): Define in terms of RET_SHIFT_ILSEQ.
1243 (RET_TOOFEW): Change to avoid collisions with RET_SHIFT_ILSEQ.
1244 (DECODE_SHIFT_ILSEQ, DECODE_TOOFEW): New macros.
1245 * lib/loop_unicode.h (unicode_loop_convert): Take into account the
1246 shift count contained in the negative return values.
1247 * lib/hz.h (hz_mbtowc): When encountering invalid input, store the
1248 modified state and return RET_SHIFT_ILSEQ.
1249 * lib/iso2022_cn.h (iso2022_cn_mbtowc): Likewise.
1250 * lib/iso2022_cnext.h (iso2022_cn_ext_mbtowc): Likewise.
1251 * lib/iso2022_jp.h (iso2022_jp_mbtowc): Likewise.
1252 * lib/iso2022_jp1.h (iso2022_jp1_mbtowc): Likewise.
1253 * lib/iso2022_jp2.h (iso2022_jp2_mbtowc): Likewise.
1254 * lib/iso2022_jp3.h (iso2022_jp3_mbtowc): Likewise.
1255 * lib/iso2022_kr.h (iso2022_kr_mbtowc): Likewise.
1256 * lib/ucs2.h (ucs2_mbtowc): Likewise.
1257 * lib/ucs4.h (ucs4_mbtowc): Likewise.
1258 * lib/utf16.h (utf16_mbtowc): Likewise.
1259 * lib/utf32.h (utf32_mbtowc): Likewise.
1260 * lib/utf7.h (utf7_mbtowc): Likewise.
1261 * lib/utf16be.h (utf16be_mbtowcutf16be_mbtowc): When encountering
1262 invalid input, return RET_SHIFT_ILSEQ.
1263 * lib/utf16le.h (utf16le_mbtowc): Likewise.
1264 * tests/test-shiftseq.c: New file.
1265 * tests/Makefile.in (check): Run test-shiftseq.
1266 (test-shiftseq, test-shiftseq.@OBJEXT@): New rules.
1267 (clean): Remove test-shiftseq executable.
1268 Reported by Roman Rybalko <roman_rybalko@users.sourceforge.net>
1269 at <https://savannah.gnu.org/bugs/?24216>.
1271 2008-09-07 Bruno Haible <bruno@clisp.org>
1273 * man/iconv.3: Clarify the processing of shift-sequences.
1275 2008-09-07 Bruno Haible <bruno@clisp.org>
1277 * m4/libtool.m4: Update from libtool-2.2.6, with modifications:
1278 2008-04-06 Bruno Haible <bruno@clisp.org>
1279 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
1280 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
1282 * m4/ltoptions.m4: Update from libtool-2.2.6.
1283 * m4/ltsugar.m4: Likewise.
1284 * m4/ltversion.m4: Likewise.
1285 * build-aux/ltmain.sh: Likewise.
1287 2008-09-06 Bruno Haible <bruno@clisp.org>
1289 * lib/gbk.h (gbk_wctomb): Fix an out-of-bounds write.
1290 Reported by Roman Rybalko <roman_rybalko@users.sourceforge.net>
1291 at <https://savannah.gnu.org/bugs/?24214>.
1293 2008-06-30 Bruno Haible <bruno@clisp.org>
1295 Fix sed expressions to work with the old sed-3.02 on MSYS.
1296 * windows/windres-options (sed_extract_major, sed_extract_minor,
1297 sed_extract_subminor): Put a semicolon before the closing brace. Use
1298 an i\ command instead of an a\ command.
1299 Reported by Sunil Negi <sunil.negi@morningstar.com>
1300 in <http://article.gmane.org/gmane.comp.gnu.mingw.msys/4410>
1301 via Keith Marshall <keithmarshall@users.sourceforge.net>.
1303 2008-05-22 Bruno Haible <bruno@clisp.org>
1305 * README.woe32: Update with info from GNU gettext's README.woe32.
1307 2008-05-18 Bruno Haible <bruno@clisp.org>
1309 * m4/libtool.m4: Update from libtool-2.2.4, with modifications:
1310 2008-04-06 Bruno Haible <bruno@clisp.org>
1311 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
1312 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
1314 * m4/ltoptions.m4: Update from libtool-2.2.4.
1315 * m4/ltversion.m4: Likewise.
1316 * m4/lt~obsolete.m4: Likewise.
1317 * build-aux/ltmain.sh: Likewise.
1319 2008-04-14 Bruno Haible <bruno@clisp.org>
1321 * tests/Makefile.in (check): Remove *.dSYM directories left over by gcc
1324 2008-04-14 Bruno Haible <bruno@clisp.org>
1326 * preload/configure.ac: Invoke AC_USE_SYSTEM_EXTENSIONS instead of
1327 AC_AIX and AC_MINIX.
1328 * Makefile.devel (AUTOCONF, AUTOHEADER): Require autoconf-2.62.
1329 * preload/Makefile.devel (AUTOCONF): Likewise.
1330 * autogen.sh: Likewise.
1332 2008-04-06 Bruno Haible <bruno@clisp.org>
1334 * m4/libtool.m4: Update from libtool-2.2.2, with modifications:
1335 2008-04-06 Bruno Haible <bruno@clisp.org>
1336 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
1337 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
1339 * m4/ltoptions.m4: New file, from libtool-2.2.2.
1340 * m4/ltsugar.m4: New file, from libtool-2.2.2.
1341 * m4/ltversion.m4: New file, from libtool-2.2.2.
1342 * m4/lt~obsolete.m4: New file, from libtool-2.2.2.
1343 * build-aux/ltmain.sh: New file, from libtool-2.2.2.
1344 * configure.ac: Use LT_INIT instead of AC_PROG_LIBTOOL.
1345 * preload/configure.ac: Likewise.
1347 2008-04-06 Bruno Haible <bruno@clisp.org>
1349 More portable way of building the preloadable library.
1350 * preload/Makefile.devel: New file.
1351 * preload/Makefile.in: New file, based on lib/Makefile.in.
1352 * preload/configure.ac: New file, based on configure.ac.
1353 * Makefile.devel (all): Recurse into preload directory.
1354 * Makefile.in (all, install, installdirs, uninstall, check,
1355 mostlyclean, clean, distclean, maintainer-clean): Recurse into preload
1357 * configure.ac: Likewise.
1358 (OS, GCC, PLUGLIB): Remove definitions.
1359 * lib/Makefile.in (all): Don't depend on PLUGLIB.
1360 (preloadable_libiconv.so, preloadable_libiconv_linux.so,
1361 preloadable_libiconv_solaris.so, preloadable_libiconv_osf.so): Remove
1363 (install, uninstall, clean): Don't handle the preloadable library here.
1365 2008-04-06 Bruno Haible <bruno@clisp.org>
1367 Avoid a gcc warning.
1368 * lib/loop_unicode.h (unicode_loop_convert): Add a cast.
1370 2008-04-06 Bruno Haible <bruno@clisp.org>
1372 * src/iconv.c (print_version): Bump year.
1374 2008-04-06 Bruno Haible <bruno@clisp.org>
1376 Support all possible nl_langinfo(CODESET) results on the respective
1377 platforms, according to libcharset/lib/config.charset.
1378 * lib/encodings.def: Add DEFALIAS statements, conditional on
1379 USE_AIX_ALIASES, USE_HPUX_ALIASES, USE_OSF1_ALIASES,
1380 USE_SOLARIS_ALIASES.
1381 * lib/encodings_aix.def: Add DEFALIAS statements, conditional on
1383 * lib/encodings_osf1.def: Add DEFALIAS statements, conditional on
1385 * lib/genaliases.c (emit_alias): New function, extracted from
1387 (emit_encoding): Use it.
1388 (main): Define DEFALIAS.
1389 * lib/genaliases2.c (counter): New variable, extracted from
1391 (emit_alias): New function, extracted from emit_encoding.
1392 (emit_encoding): Use it.
1393 (main): Define DEFALIAS.
1394 * lib/genflags.c (main): Define DEFALIAS.
1395 * lib/iconv.c (all_encodings): Define DEFALIAS.
1396 Include the system dependent variant of aliases.h on the appropriate
1398 (all_canonical): Include the system dependent variant of canonical.h,
1399 canonical_aix.h, canonical_osf1.h, canonical_local.h on the appropriate
1401 * lib/aliases2.h: Include the system dependent variant of
1402 aliases_aix.h or aliases_osf1.h on the appropriate systems.
1403 * lib/Makefile.in (iconv.lo): Depend on aliases_sysaix.h,
1404 aliases_syshpux.h, aliases_sysosf1.h, aliases_syssolaris.h,
1405 aliases_aix_sysaix.h, lib/aliases_osf1_sysosf1.h, and also
1406 aliases_extra.h, translit.h.
1407 * Makefile.devel (all): Depend on lib/aliases_sysaix.h,
1408 lib/aliases_syshpux.h, lib/aliases_sysosf1.h, lib/aliases_syssolaris.h,
1409 lib/aliases_aix_sysaix.h, lib/aliases_osf1_sysosf1.h.
1410 (lib/aliases_sysaix.h, lib/aliases_syshpux.h, lib/aliases_sysosf1.h,
1411 lib/aliases_syssolaris.h): New rules.
1412 (lib/aliases_aix_sysaix.h): New rule.
1413 (lib/aliases_osf1_sysosf1.h): New rule.
1414 * autogen.sh: Also remove lib/aliases_sysaix.h, lib/aliases_syshpux.h,
1415 lib/aliases_sysosf1.h, lib/aliases_syssolaris.h,
1416 lib/aliases_aix_sysaix.h, lib/aliases_osf1_sysosf1.h.
1418 2008-04-06 Bruno Haible <bruno@clisp.org>
1420 * build-aux/config.libpath: Remove file, brought in by gnulib-tool.
1421 * build-aux/config.rpath: Remove file, brought in by gnulib-tool.
1423 2007-11-11 Bruno Haible <bruno@clisp.org>
1425 * Version 1.12 released.
1427 2007-11-11 Bruno Haible <bruno@clisp.org>
1429 * Makefile.devel (AUTOCONF, AUTOHEADER): Require version 2.61.
1430 (AUTOMAKE, ACLOCAL): Require version 1.10.
1431 (srclib/Makefile.in): Avoid error from automake.
1433 2007-10-26 Bruno Haible <bruno@clisp.org>
1435 * m4/libtool.m4: Update, based on libtool-1.5.24.
1436 * build-aux/ltmain.sh: Update, based on libtool-1.5.24.
1438 2007-10-23 Bruno Haible <bruno@clisp.org>
1440 * build-aux/config.guess: Update to GNU version 2007-07-22.
1441 * build-aux/config.sub: Likewise.
1443 2007-10-23 Bruno Haible <bruno@clisp.org>
1445 * configure.ac: Bump version number to 1.12.
1448 2007-10-23 Bruno Haible <bruno@clisp.org>
1450 Move relocatability infrastructure to gnulib.
1451 * gnulib-local/lib/relocatable.h: Remove file.
1452 * gnulib-local/lib/relocatable.c: Remove file.
1454 2007-10-23 Bruno Haible <bruno@clisp.org>
1456 Update from GNU gettext.
1457 2006-11-26 Bruno Haible <bruno@clisp.org>
1458 * gnulib-local/lib/xalloc.h (xmemdup): Add a typesafe C++
1460 Based on a patch from Paul Eggert in gnulib.
1461 2006-11-06 Bruno Haible <bruno@clisp.org>
1462 * gnulib-local/lib/xalloc.h (xcharalloc): New macro.
1463 (xmemdup): New declaration.
1464 * gnulib-local/lib/xstrdup.c (xmemdup): New function.
1465 2006-11-03 Bruno Haible <bruno@clisp.org>
1466 * gnulib-local/lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC,
1467 XCALLOC): New macros.
1468 (xnboundedmalloc): New inline function.
1469 * gnulib-local/lib/xstrdup.c (xstrdup): Use XNMALLOC instead of
1471 2006-11-02 Bruno Haible <bruno@clisp.org>
1472 * lib/xalloc.h (xnmalloc): New declaration. From gnulib
1474 * lib/xmalloc.c (fixup_null_alloc): Write NULL, not 0.
1475 (xnmalloc): New function.
1477 2007-10-23 Bruno Haible <bruno@clisp.org>
1479 Moved module xreadlink to gnulib.
1480 * gnulib-local/modules/xreadlink: Remove file.
1481 * gnulib-local/lib/xreadlink.h: Remove file.
1482 * gnulib-local/lib/xreadlink.c: Remove file.
1483 * gnulib-local/m4/xreadlink.m4: Remove file.
1485 2007-10-07 Bruno Haible <bruno@clisp.org>
1487 Update program license to GPLv3.
1488 * COPYING: Replace with GPL 3.
1489 * windows/iconv.rc (Comments): Update.
1491 2007-10-07 Bruno Haible <bruno@clisp.org>
1493 * gnulib-local/lib/alloca.in.h: Renamed from gnulib-local/lib/alloca_.h.
1495 2007-03-30 Bruno Haible <bruno@clisp.org>
1497 * gnulib-local/lib/alloca_.h: Change prefix of double-inclusion guard
1500 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
1502 * gnulib-local/lib/alloca_.h (alloca) [defined alloca]: Don't define or
1505 2007-09-29 Bruno Haible <bruno@clisp.org>
1507 * autogen.sh (GNULIB_CVS_ROOT): Change to read-only git mirror
1508 valid since 2007-09-19.
1510 2007-07-07 Bruno Haible <bruno@clisp.org>
1512 * autogen.sh: Add an option --skip-gnulib.
1514 2007-07-07 Bruno Haible <bruno@clisp.org>
1516 * gnulib-local/lib/uniwidth.h: Remove file, moved to gnulib.
1517 * gnulib-local/lib/width.c: Remove file, moved to gnulib.
1518 * gnulib-local/lib/cjk.h: Remove file, moved to gnulib.
1519 * gnulib-local/modules/uniwidth: Remove file.
1520 * Makefile.devel (GNULIB_MODULES): Remove uniwidth, add uniwidth/width.
1521 * src/iconv.c: Include uniwidth/cjk.h instead of cjk.h.
1523 2007-06-30 Bruno Haible <bruno@clisp.org>
1525 * src/iconv.c (print_version): Use the standard --version output, see
1526 <https://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00302.html>.
1528 2007-06-30 Bruno Haible <bruno@clisp.org>
1530 * autogen.sh: New file.
1531 * DEPENDENCIES: New file.
1532 * HACKING: New file.
1534 2007-06-30 Bruno Haible <bruno@clisp.org>
1536 * src/iconv.c: Provide translator comments for many messages.
1537 (conversion_error_EILSEQ, conversion_error_EINVAL,
1538 conversion_error_other): New functions, extracted from convert.
1539 (convert): Use them.
1540 Reported by Tim Van Holder <tim.van.holder@telenet.be>.
1542 2007-06-09 Bruno Haible <bruno@clisp.org>
1544 * gnulib-local/lib/relocwrapper.c: Remove file.
1546 2007-05-27 Bruno Haible <bruno@clisp.org>
1548 * windows/libiconv.rc: New file.
1549 * windows/iconv.rc: New file.
1550 * windows/windres-options: New file.
1551 * configure.ac (WOE32): New variable.
1552 (WINDRES) [WOE32]: New variable.
1553 * lib/Makefile.in (WINDRES): New variable.
1554 (PACKAGE_VERSION): New variable.
1555 (OBJECTS_EXP_yes): Renamed from OBJECTS_yes.
1556 (OBJECTS_EXP_no): Renamed from OBJECTS_no.
1557 (OBJECTS_RES_yes, OBJECTS_RES_no): New variables.
1558 (OBJECTS): Add one of them.
1559 (libiconv.res): New rule.
1560 (clean): Remove also libiconv.res.
1561 * src/Makefile.in (WINDRES): New variable.
1562 (PACKAGE_VERSION): New variable.
1563 (OBJECTS_RES_yes, OBJECTS_RES_no): New variables.
1564 (all, iconv_no_i18n, install): Use them.
1565 (iconv.res): New rule.
1566 (clean): Remove also iconv.res.
1567 Suggested and inspired by work by Perry Rapp.
1569 2007-05-27 Bruno Haible <bruno@clisp.org>
1571 Follow broken iconv() prototype in POSIX.
1572 * configure.ac (ICONV_CONST): Set to empty if the system has no iconv.
1573 * lib/config.h.in (ICONV_CONST): Change default value to an empty
1575 * src/iconv.c (ICONV_CONST): Change default value to empty.
1576 Reported by Andreas Krennmair <ak@synflood.at>.
1578 2007-05-25 Bruno Haible <bruno@clisp.org>
1580 * tools/Makefile (ALL): Add rk1048.h.
1581 (rk1048.h): New rule.
1582 * lib/encodings.def: Add RK1048.
1583 * lib/rk1048.h: New file.
1584 * lib/converters.h: Include it.
1585 * README, man/iconv_open.3: Add RK1048.
1586 * NOTES: Mention RK1048.
1587 * tests/RK1048.TXT: New file.
1588 * tests/Makefile.in (check): Also test RK1048.
1589 Suggested by Timur Birsh <team9@host.kz>.
1591 2007-04-24 Bruno Haible <bruno@clisp.org>
1593 * man/iconv_open.3: Tweak explanation of TRANSLIT.
1594 Reported by Perry Rapp.
1596 2007-04-23 Bruno Haible <bruno@clisp.org>
1598 * tests/check-subst: Use the output of 'printf' only if it didn't
1599 crash. Needed to work around a buffer overflow in Solaris /bin/printf.
1600 Reported by Arto C. Nirkko <anirkko@insel.ch>.
1602 2007-04-23 Bruno Haible <bruno@clisp.org>
1604 * lib/iconv.c (iconv_open, iconv_canonicalize): Treat native Woe32
1605 systems like those which define __STDC_ISO_10646__.
1606 Reported by Keith Marshall <keithmarshall@users.sourceforge.net>.
1608 2007-03-31 Bruno Haible <bruno@clisp.org>
1610 * man/iconv.1: Use HYPHEN-MINUS signs instead of HYPHENs where
1612 * man/iconv_open.3: Likewise.
1613 * man/iconv.3: Likewise.
1614 * man/iconv_close.3: Likewise.
1615 * man/iconvctl.3: Likewise.
1617 2007-03-31 Bruno Haible <bruno@clisp.org>
1619 * man/iconv.1: Mark as POSIX compliant.
1620 * man/iconv_open.3: Likewise.
1621 * man/iconv.3: Likewise.
1622 * man/iconv_close.3: Likewise.
1624 * man/*.[13]: Syntactic simplifications.
1626 2007-03-19 Bruno Haible <bruno@clisp.org>
1628 Assume that mkinstalldirs also creates the necessary parent directories.
1629 * Makefile.in (install, installdirs): Don't explicitly create the
1631 * lib/Makefile.in (install, installdirs): Likewise.
1632 * src/Makefile.in (install, installdirs): Likewise.
1633 * man/Makefile.in (install, installdirs): Likewise.
1634 Reported by Thomas Klausner <tk@giga.or.at>.
1636 2007-03-04 Bruno Haible <bruno@clisp.org>
1638 * Makefile.devel (GNULIB_MODULES): Add relocatable-prog. Remove
1639 relocatable, relocwrapper.
1640 * configure.ac: Invoke gl_RELOCATABLE instead of AC_RELOCATABLE.
1641 * gnulib-local/modules/progreloc: Remove file.
1642 * gnulib-local/modules/relocatable: Remove file.
1643 * gnulib-local/modules/relocwrapper: Remove file.
1644 * gnulib-local/m4/relocatable.m4: Remove file.
1645 * gnulib-local/lib/strerror.c.diff: Remove file.
1646 * src/Makefile.in: Remove SET_RELOCATABLE invocation. Instead get
1647 RELOCATABLE_LDFLAGS and INSTALL_PROGRAM_ENV.
1649 2007-02-19 Bruno Haible <bruno@clisp.org>
1651 * gnulib-local/lib/xmalloc.c: Don't include exit.h.
1652 * src/iconv.c: Likewise.
1654 2007-02-16 Juan Manuel Guerrero <juan.guerrero@gmx.de>
1658 2007-02-03 Bruno Haible <bruno@clisp.org>
1660 * tools/Makefile (ksc5601.h): Add one extra character.
1661 * lib/ksc5601.h: Regenerated.
1662 * lib/cp949.h (cp949_mbtowc, cp949_wctomb): Exclude the new character.
1663 * tests/EUC-KR.TXT: Add CIRCLED HANGUL IEUNG U.
1664 * tests/JOHAB.TXT: Likewise.
1665 Reported by Jungshik Shin (신정식, 申政湜) <jungshik@google.com>.
1667 * lib/euc_kr.h: Update comments.
1668 * lib/johab.h: Likewise.
1670 2007-02-03 Bruno Haible <bruno@clisp.org>
1672 * tools/cjk_tab_to_h.c (output_title): Bump copyright year.
1674 2007-01-26 Bruno Haible <bruno@clisp.org>
1676 Moved streq.h to gnulib.
1677 * gnulib-local/lib/streq.h: Remove file.
1678 * gnulib-local/modules/uniwidth (Files): Remove lib/streq.h.
1679 (Depends-on): Add streq.
1680 (lib_SOURCES): Remove streq.h.
1682 2007-01-26 Bruno Haible <bruno@clisp.org>
1684 Moved unitypes.h to gnulib.
1685 * gnulib-local/lib/unitypes.h: Remove file.
1686 * gnulib-local/modules/uniwidth (Files): Remove lib/unitypes.h.
1687 (Depends-on): Add unitypes.
1688 (lib_SOURCES): Remove unitypes.h.
1690 2007-01-26 Bruno Haible <bruno@clisp.org>
1692 Moved canonicalize to gnulib.
1693 * gnulib-local/modules/canonicalize: Remove file.
1694 * gnulib-local/lib/canonicalize.h: Remove file.
1695 * gnulib-local/lib/canonicalize.c: Remove file.
1696 * gnulib-local/m4/canonicalize.m4: Remove file.
1697 * gnulib-local/modules/progreloc (Depends-on): Replace 'canonicalize'
1698 with 'canonicalize-lgpl'.
1700 2006-12-20 Bruno Haible <bruno@clisp.org>
1702 * lib/Makefile.in (install): On AIX, add the contents of
1703 /lib/libiconv.a to libiconv.a.
1705 2006-12-20 Bruno Haible <bruno@clisp.org>
1707 * Makefile.devel (all): Depend on srclib/Makefile.gnulib, not
1709 (aclocal.m4): Likewise. Touch the resulting file, since aclocal not
1711 (srclib/Makefile.gnulib): Renamed from srclib/Makefile.am. Pass
1712 option --makefile-name.
1713 (srclib/Makefile.in): Depend on srclib/Makefile.gnulib too.
1714 * srclib/Makefile.am: New file that includes srclib/Makefile.gnulib.
1716 2006-10-31 Bruno Haible <bruno@clisp.org>
1718 Update from GNU gettext.
1719 2006-10-29 Bruno Haible <bruno@clisp.org>
1720 Make it compile in C++ mode.
1721 * gnulib-local/lib/xalloc.h (xrealloc): Define as template
1722 with appropriate return type.
1723 * gnulib-local/lib/xstrdup.c (xstrdup): Cast xmalloc result.
1724 2006-10-26 Bruno Haible <bruno@clisp.org>
1725 * gnulib-local/modules/canonicalize (Makefile.am): Remove
1726 EXTRA_DIST. Now done by gnulib-tool.
1727 * gnulib-local/modules/relocatable (Makefile.am): Likewise.
1728 * gnulib-local/modules/relocwrapper (Makefile.am): Likewise.
1729 2006-10-25 Bruno Haible <bruno@clisp.org>
1730 * gnulib-local/m4/relocatable.m4 (AC_RELOCATABLE_BODY):
1731 Renamed from AC_RELOCATABLE, without the AC_LIBOBJ invocation.
1732 (AC_RELOCATABLE): New macro. Invoke AC_LIBOBJ here.
1733 * gnulib-local/modules/relocwrapper (configure.ac): Invoke
1734 AC_RELOCATABLE instead of requiring it.
1735 2006-10-12 Bruno Haible <bruno@clisp.org>
1736 * gnulib-local/modules/canonicalize (Makefile.am): Distribute
1737 all files in lib/ through EXTRA_DIST.
1738 * gnulib-local/modules/relocatable (Makefile.am): Likewise.
1739 2006-09-14 Bruno Haible <bruno@clisp.org>
1740 * gnulib-local/lib/canonicalize.c: Include <config.h>
1742 * gnulib-local/lib/relocatable.c: Likewise.
1743 * lib/relocatable.c: Likewise.
1744 * gnulib-local/lib/relocwrapper.c: Likewise.
1745 * gnulib-local/lib/xmalloc.c: Likewise.
1746 * gnulib-local/lib/xreadlink.c: Likewise.
1747 * gnulib-local/lib/xstrdup.c: Likewise.
1748 2006-08-02 Bruno Haible <bruno@clisp.org>
1749 * gnulib-local/modules/canonicalize: Put under LGPL.
1750 * gnulib-local/modules/relocatable: Likewise.
1751 2006-07-18 Bruno Haible <bruno@clisp.org>
1752 * gnulib-local/xalloc.h (xzalloc): New declaration.
1753 * gnulib-local/xmalloc.c (xzalloc): New function.
1755 2006-10-24 Bruno Haible <bruno@clisp.org>
1757 * man/Makefile.in (PACKAGE): New variable. Needed for docdir.
1758 Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
1760 2006-10-14 Bruno Haible <bruno@clisp.org>
1762 * COPYING: New file.
1763 * README: Clarify copyright of the iconv program.
1764 Reported by Charles Wilson <cwilson@fastmail.fm>.
1766 2006-08-08 Bruno Haible <bruno@clisp.org>
1768 * INSTALL.generic: Add a recommendation for Tru64.
1769 Reported by Gary V. Vaughan <gary@gnu.org>.
1771 2006-07-29 Bruno Haible <bruno@clisp.org>
1773 * tests/check-subst: Set CHARSETALIASDIR.
1774 Needed so that "make check" works before "make install" on systems
1777 2006-07-29 Bruno Haible <bruno@clisp.org>
1779 * Makefile.devel (aclocal.m4): Depend on srclib/Makefile.am.
1780 (AUTOCONF_FILES): Add the existing *.m4 files.
1782 2006-07-29 Bruno Haible <bruno@clisp.org>
1784 * gnulib-local/lib/xreadlink.c: Assume <stdlib.h> exists.
1785 * src/iconv.c: Assume <locale.h> exists.
1786 * configure.ac: Remove tests for <locale.h>, <stddef.h>, <stdlib.h>,
1789 2006-07-29 Bruno Haible <bruno@clisp.org>
1791 * configure.ac: Remove obsolete calls AC_PROG_GCC_TRADITIONAL,
1792 AC_ISC_POSIX, AC_HEADER_STDC.
1794 2006-07-29 Bruno Haible <bruno@clisp.org>
1796 * configure.ac: Remove macro invocations that are redundant through
1797 gl_EARLY and gl_INIT.
1799 2006-07-29 Bruno Haible <bruno@clisp.org>
1801 * gnulib-local/m4/alloca.m4 (gl_PREREQ_ALLOCA): Add a dummy statement.
1802 Avoids a sh syntax error.
1804 2006-07-29 Bruno Haible <bruno@clisp.org>
1806 * gnulib-local/m4/relocatable.m4: Add comments.
1808 2006-07-29 Bruno Haible <bruno@clisp.org>
1810 * gnulib-local/modules/libiconv-misc: New file.
1811 * Makefile.devel (GNULIB_MODULES): Add libiconv-misc.
1813 * Makefile.devel (srclib/Makefile.am): Pass --no-libtool.
1815 2006-07-29 Bruno Haible <bruno@clisp.org>
1817 Note: gnulib macros no longer invoke AC_TYPE_SIZE_T nor
1818 AC_CHECK_TYPE([ptrdiff_t], , [AC_DEFINE([ptrdiff_t], [long], ...)])
1819 because we now assume that the system defines size_t and ptrdiff_t.
1821 2006-07-29 Bruno Haible <bruno@clisp.org>
1823 Switch to using gnulib.
1824 * configure.ac (AC_PREREQ): Require autoconf-2.60.
1825 Invoke gl_EARLY and gl_INIT.
1826 * Makefile.devel (all): Depend on srclib/Makefile.am.
1827 (aclocal.m4): Pass -I srcm4 to aclocal. Simplify dependencies, assuming
1829 (GNULIB_MODULES): New variable.
1830 (srclib/Makefile.am): New rule.
1831 * gnulib-local: New directory.
1832 * gnulib-local/m4/alloca.m4: Moved here from m4/alloca.m4.
1833 * gnulib-local/m4/canonicalize.m4: Moved here from m4/canonicalize.m4.
1834 * gnulib-local/m4/relocatable.m4: Moved here from m4/relocatable.m4.
1835 * gnulib-local/m4/xreadlink.m4: Moved here from m4/xreadlink.m4.
1836 * gnulib-local/lib/alloca_.h: Moved here from srclib/alloca_.h.
1837 * gnulib-local/lib/canonicalize.h: Moved here from srclib/canonicalize.h.
1838 * gnulib-local/lib/canonicalize.c: Moved here from srclib/canonicalize.c.
1839 * gnulib-local/lib/cjk.h: Moved here from srclib/cjk.h.
1840 * gnulib-local/lib/error.h.diff: New file.
1841 * gnulib-local/lib/progname.h.diff: New file.
1842 * gnulib-local/lib/relocatable.h: Moved here from srclib/relocatable.h.
1843 * gnulib-local/lib/relocatable.c: Moved here from srclib/relocatable.c.
1844 * gnulib-local/lib/relocwrapper.c: Moved here from srclib/relocwrapper.c.
1845 * gnulib-local/lib/streq.h: Moved here from srclib/streq.h.
1846 * gnulib-local/lib/strerror.c.diff: New file.
1847 * gnulib-local/lib/unitypes.h: Moved here from srclib/unitypes.h.
1848 * gnulib-local/lib/uniwidth.h: Moved here from srclib/uniwidth.h.
1849 * gnulib-local/lib/width.c: Moved here from srclib/width.c.
1850 * gnulib-local/lib/xalloc.h: Moved here from srclib/xalloc.h.
1851 * gnulib-local/lib/xmalloc.c: Moved here from srclib/xmalloc.c.
1852 * gnulib-local/lib/xstrdup.c: Moved here from srclib/xstrdup.c.
1853 * gnulib-local/lib/xreadlink.h: Moved here from srclib/xreadlink.h.
1854 * gnulib-local/lib/xreadlink.c: Moved here from srclib/xreadlink.c.
1855 * gnulib-local/modules/canonicalize: New file.
1856 * gnulib-local/modules/progreloc: New file.
1857 * gnulib-local/modules/relocatable: New file.
1858 * gnulib-local/modules/relocwrapper: New file.
1859 * gnulib-local/modules/uniwidth: New file.
1860 * gnulib-local/modules/xalloc: New file.
1861 * gnulib-local/modules/xreadlink: New file.
1863 * m4/allocsa.m4: Remove file. Now taken from gnulib.
1864 * m4/codeset.m4: Likewise.
1865 * m4/eealloc.m4: Likewise.
1866 * m4/error.m4: Likewise.
1867 * m4/extensions.m4: Likewise.
1868 * m4/full-header-path.m4: Likewise.
1869 * m4/gettext.m4: Likewise.
1870 * m4/glibc21.m4: Likewise.
1871 * m4/iconv.m4: Likewise.
1872 * m4/intmax.m4: Likewise.
1873 * m4/inttypes-h.m4: Likewise.
1874 * m4/inttypes_h.m4: Likewise.
1875 * m4/isc-posix.m4: Likewise.
1876 * m4/lcmessage.m4: Likewise.
1877 * m4/lib-ld.m4: Likewise.
1878 * m4/lib-link.m4: Likewise.
1879 * m4/lib-prefix.m4: Likewise.
1880 * m4/longdouble.m4: Likewise.
1881 * m4/longlong.m4: Likewise.
1882 * m4/mbstate_t.m4: Likewise.
1883 * m4/nls.m4: Likewise.
1884 * m4/onceonly.m4: Likewise.
1885 * m4/pathmax.m4: Likewise.
1886 * m4/po.m4: Likewise.
1887 * m4/printf-posix.m4: Likewise.
1888 * m4/progtest.m4: Likewise.
1889 * m4/readlink.m4: Likewise.
1890 * m4/setenv.m4: Likewise.
1891 * m4/signed.m4: Likewise.
1892 * m4/size_max.m4: Likewise.
1893 * m4/ssize_t.m4: Likewise.
1894 * m4/stdbool.m4: Likewise.
1895 * m4/stdint.m4: Likewise.
1896 * m4/stdint_h.m4: Likewise.
1897 * m4/strerror.m4: Likewise.
1898 * m4/strerror_r.m4: Likewise.
1899 * m4/unistd_h.m4: Likewise.
1900 * m4/unlocked-io.m4: Likewise.
1901 * m4/visibility.m4: Likewise.
1902 * m4/wchar_t.m4: Likewise.
1903 * m4/wint_t.m4: Likewise.
1905 * srclib/allocsa.h: Remove file. Now taken from gnulib.
1906 * srclib/allocsa.c: Likewise.
1907 * srclib/binary-io.h: Likewise.
1908 * srclib/error.h: Likewise.
1909 * srclib/error.c: Likewise.
1910 * srclib/exit.h: Likewise.
1911 * srclib/gettext.h: Likewise.
1912 * srclib/memmove.c: Likewise.
1913 * srclib/pathmax.h: Likewise.
1914 * srclib/progname.h: Likewise.
1915 * srclib/progname.c: Likewise.
1916 * srclib/progreloc.c: Likewise.
1917 * srclib/readlink.c: Likewise.
1918 * srclib/setenv.h: Likewise.
1919 * srclib/setenv.c: Likewise.
1920 * srclib/stdbool_.h: Likewise.
1921 * srclib/stdint_.h: Likewise.
1922 * srclib/strerror.c: Likewise.
1923 * srclib/unlocked-io.h: Likewise.
1924 * srclib/unsetenv.c: Likewise.
1925 * srclib/Makefile.am: Remove file.
1927 2006-07-27 Bruno Haible <bruno@clisp.org>
1929 Remove OS/2 build support that doesn't assume GNU make and GNU bash.
1930 * README.os2: Remove file.
1931 * Makefile.os2: Remove file.
1932 * lib/Makefile.os2: Remove file.
1933 * src/Makefile.os2: Remove file.
1934 * man/Makefile.os2: Remove file.
1935 * tests/Makefile.os2: Remove file.
1936 * tests/check-stateful.cmd: Remove file.
1937 * tests/check-stateless.cmd: Remove file.
1938 * tests/check-translit.cmd: Remove file.
1940 2006-07-25 Bruno Haible <bruno@clisp.org>
1942 Remove MSVC/nmake build support.
1943 * windows: Remove directory.
1944 * Makefile.msvc: Remove file.
1945 * lib/Makefile.msvc: Remove file.
1946 * srclib/Makefile.msvc: Remove file.
1947 * src/Makefile.msvc: Remove file.
1948 * tests/Makefile.msvc: Remove file.
1949 * man/Makefile.msvc: Remove file.
1950 * po/Rules-msvc: Remove file.
1951 * po/Makefile.msvc.sh: Remove file.
1952 * Makefile.devel (config.h.msvc, lib/config.h.msvc): Remove rules.
1953 (include/iconv.h.msvc-static, include/iconv.h.msvc-shared): Remove
1955 (po/Makefile.msvc): Remove rule.
1958 2006-07-25 Bruno Haible <bruno@clisp.org>
1961 * vms: Remove directory.
1962 * Makefile.vms: Remove file.
1963 * lib/Makefile.vms: Remove file.
1964 * srclib/Makefile.vms: Remove file.
1965 * src/Makefile.vms: Remove file.
1966 * tests/Makefile.vms: Remove file.
1967 * man/Makefile.vms: Remove file.
1968 * Makefile.devel (config.h_vms, lib/config.h_vms): Remove rules.
1969 (include/iconv.h_vms): Remove rule.
1972 2006-07-23 Bruno Haible <bruno@clisp.org>
1974 * lib/Makefile.in (libiconv.la): Use the CFLAGS during linking.
1975 * src/Makefile.in (iconv_no_i18n): Likewise.
1976 (install): Likewise.
1977 * tests/Makefile.in (table-from, table-to): Likewise.
1978 Needed because the CFLAGS can e.g. trigger profiling.
1979 Reported by Russell Aspinwall <russell.aspinwall@flomerics.co.uk>.
1981 2006-07-19 Bruno Haible <bruno@clisp.org>
1983 * Version 1.11 released.
1985 2006-07-19 Bruno Haible <bruno@clisp.org>
1987 * srclib/Makefile.am (libicrt_a_SOURCES): Remove error.h, error.c.
1988 (LIBADD_SOURCE): Add them here.
1990 2006-07-19 Bruno Haible <bruno@clisp.org>
1992 * build-aux/config.guess: Update to GNU version 2006-07-02.
1993 * build-aux/config.sub: Likewise.
1995 2006-07-14 Bruno Haible <bruno@clisp.org>
1997 * lib/Makefile.in (clean): Remove also *.stackdump.
1998 * src/Makefile.in (clean): Likewise.
1999 * tests/Makefile.in (clean): Likewise.
2001 2006-07-14 Bruno Haible <bruno@clisp.org>
2003 * src/Makefile.in (clean): Remove also iconv_no_i18n. Needed for
2005 * tests/Makefile.in (clean): Remove also the programs, without
2006 EXEEXT. Needed for cygwin or mingw.
2007 * Makefile.in (mostlyclean, clean, distclean, maintainer-clean):
2008 Remove also bin directory. Needed for cygwin and mingw.
2010 2006-07-03 Bruno Haible <bruno@clisp.org>
2012 * src/iconv.c (check_subst_formatstring): Use ngettext.
2013 (subst_wc_to_mb_fallback, subst_mb_to_mb_fallback): Fix error messages
2014 after 2006-01-22 change.
2015 * configure.ac: Require a gettext version with ngettext.
2017 2006-06-28 Bruno Haible <bruno@clisp.org>
2019 * m4/gettext.m4: Update from GNU gettext.
2020 * m4/po.m4: Update from GNU gettext.
2022 2006-06-27 Bruno Haible <bruno@clisp.org>
2024 * Makefile.devel (AUTOCONF, AUTOHEADER): Use autoconf-2.60.
2025 * Makefile.in (datarootdir): New variable.
2026 (install, installdirs, uninstall): Also pass datarootdir.
2027 * configure.ac (mandir): Remove customization.
2028 * man/Makefile.in (datarootdir): New variable.
2029 (docdir, htmldir): Use autoconf-substituted value.
2030 * src/Makefile.in (datarootdir): New variable.
2031 (localedir): Use autoconf-substituted value.
2033 2006-06-27 Bruno Haible <bruno@clisp.org>
2035 * m4/stdint.m4: Update from gnulib.
2036 * srclib/stdint_.h: Update from gnulib.
2037 * srclib/Makefile.am: Update.
2039 2006-06-17 Bruno Haible <bruno@clisp.org>
2041 * srclib/unsetenv.c: Update from GNU gettext.
2042 * srclib/xreadlink.c: Likewise.
2044 2006-06-16 Bruno Haible <bruno@clisp.org>
2046 * m4/full-header-path.m4: New file, from gnulib.
2047 * m4/size_max.m4: New file, from gnulib.
2048 * m4/stdint.m4: Update from gnulib.
2049 * srclib/stdint_.h: Update from gnulib.
2050 * srclib/Makefile.am (stdint.h): Likewise.
2051 * Makefile.devel (aclocal.m4): Update dependencies.
2053 2006-06-16 Bruno Haible <bruno@clisp.org>
2055 * m4/ssize_t.m4: Update from GNU gettext.
2057 2006-06-12 Bruno Haible <bruno@clisp.org>
2059 * m4/gettext.m4: Update from GNU gettext.
2060 * m4/inttypes-h.m4: New file, from GNU gettext.
2061 * m4/inttypes.m4: Remove file.
2062 * m4/stdint.m4 (gl_STDINT_H): Update.
2063 * Makefile.devel (aclocal.m4): Update dependencies.
2065 2006-06-10 Bruno Haible <bruno@clisp.org>
2067 * src/iconv.c (error) [NO_I18N]: Define here instead of including
2068 error.h. Fixes link failure introduced on 2006-01-22.
2070 2006-03-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2072 * m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [ linux ]: Avoid warning when
2073 "parsing" /etc/ld.so.conf and empty /etc/ld.so.conf.d.
2075 2006-05-20 Bruno Haible <bruno@clisp.org>
2077 * tests/BIG5-HKSCS-1999-snippet: New file.
2078 * tests/BIG5-HKSCS-1999-snippet.UTF-8: New file.
2079 * tests/BIG5-HKSCS-2001-snippet: New file.
2080 * tests/BIG5-HKSCS-2001-snippet.UTF-8: New file.
2081 * tests/BIG5-HKSCS-2004-snippet: New file.
2082 * tests/BIG5-HKSCS-2004-snippet.UTF-8: New file.
2083 * tests/Makefile.in (check): Test also the stateful parts of
2084 BIG5-HKSCS:1999, BIG5-HKSCS:2001, BIG5-HKSCS:2004.
2086 2006-05-17 Bruno Haible <bruno@clisp.org>
2088 Implement newer releases of BIG5-HKSCS.
2089 * tools/Makefile (ALL): Remove hkscs.h, add hkscs1999.h, hkscs2001.h,
2091 (hkscs.h): Remove rule.
2092 (hkscs1999.h, hkscs2001.h, hkscs2004.h): New rules.
2093 * tools/cjk_tab_to_h.c (output_title): Update year.
2094 (main): Recognize hkscs1999, hkscs2001, hkscs2004.
2095 * lib/encodings.def: Rename BIG5-HKSCS to BIG5-HKSCS:1999. Add
2096 BIG5-HKSCS:2001, BIG5-HKSCS:2004. Make all three stateful.
2097 * lib/hkscs.h: Remove file.
2098 * lib/hkscs1999.h: New file.
2099 * lib/hkscs2001.h: New file.
2100 * lib/hkscs2004.h: New file.
2101 * lib/big5hkscs.h: Remove file.
2102 * lib/big5hkscs1999.h: New file.
2103 * lib/big5hkscs2001.h: New file.
2104 * lib/big5hkscs2004.h: New file.
2105 * lib/converters.h: Include the new files.
2106 * README, man/iconv_open.3: Add BIG5-HKSCS:1999, BIG5-HKSCS:2001.
2107 * tests/BIG5-HKSCS.TXT: Remove file.
2108 * tests/BIG5-HKSCS.IRREVERSIBLE.TXT: Remove file.
2109 * tests/BIG5-HKSCS-1999.TXT: New file.
2110 * tests/BIG5-HKSCS-1999.IRREVERSIBLE.TXT: New file.
2111 * tests/BIG5-HKSCS-2001.TXT: New file.
2112 * tests/BIG5-HKSCS-2001.IRREVERSIBLE.TXT: New file.
2113 * tests/BIG5-HKSCS-2004.TXT: New file.
2114 * tests/BIG5-HKSCS-2004.IRREVERSIBLE.TXT: New file.
2115 * tests/check-stateless: Convert colon in the charset name to a dash in
2117 * tests/Makefile.in (check): Check BIG5-HKSCS:1999, BIG5-HKSCS:2001,
2118 BIG5-HKSCS:2004 instead of just BIG5-HKSCS.
2119 * tests/Makefile.msvc (check): Don't check BIG5-HKSCS.
2120 * tests/Makefile.os2 (check): Likewise.
2122 2006-05-17 Bruno Haible <bruno@clisp.org>
2124 * srclib/progreloc.c: Update from GNU gettext.
2126 2006-05-16 Bruno Haible <bruno@clisp.org>
2128 * src/Makefile.in (clean): Use EXEEXT.
2129 * tests/Makefile.in (check, clean): Likewise.
2131 2006-05-15 Bruno Haible <bruno@clisp.org>
2133 * configure.ac: Move some checks before AC_RELOCATABLE.
2135 2006-05-15 Bruno Haible <bruno@clisp.org>
2137 Support for building shared libraries on mingw and Cygwin.
2138 * configure.ac (WOE32DLL, DLL_VARIABLE): New variables.
2139 * include/iconv.h.in (_libiconv_version): Mark as DLL_VARIABLE.
2140 * woe32dll/export.h: New file, from GNU gettext.
2141 * woe32dll/iconv-exports.h: New file.
2142 * Makefile.devel (include/iconv.h_vms, include/iconv.h.msvc-static,
2143 include/iconv.h.msvc-shared): Remove the DLL_VARIABLE annotation.
2144 * lib/Makefile.in (INCLUDES): Add -I for parent directory.
2145 (LDFLAGS): Add WOE32DLL dependent flags.
2146 (LDFLAGS_yes, LDFLAGS_no): New variables.
2147 (OBJECTS): Add WOE32DLL dependent objects.
2148 (OBJECTS_yes, OBJECTS_no): New variables.
2149 (iconv-exports.lo): New rule.
2151 2006-05-15 Bruno Haible <bruno@clisp.org>
2153 * srclib/gettext.h: Update from GNU gettext.
2154 * srclib/pathmax.h: Update from GNU gettext.
2155 * srclib/progreloc.c: Update from GNU gettext.
2156 * srclib/unsetenv.c: Update from GNU gettext.
2157 * srclib/Makefile.am: Add snippet for creation of unistd.h.
2158 * m4/extensions.m4: Update from GNU gettext.
2159 * m4/gettext.m4: Update from GNU gettext.
2160 * m4/lib-ld.m4: Update from GNU gettext.
2161 * m4/lib-link.m4: Update from GNU gettext.
2162 * m4/lib-prefix.m4: Update from GNU gettext.
2163 * m4/longdouble.m4: Update from GNU gettext.
2164 * m4/nls.m4: Update from GNU gettext.
2165 * m4/onceonly.m4: Update from GNU gettext.
2166 * m4/po.m4: Update from GNU gettext.
2167 * m4/relocatable.m4: Update from GNU gettext.
2168 * m4/unistd_h.m4: New file, from GNU gettext.
2169 * Makefile.devel (aclocal.m4): Depend on it.
2170 * configure.ac: Invoke gl_HEADER_UNISTD.
2172 2006-05-14 Bruno Haible <bruno@clisp.org>,
2173 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2175 * m4/libtool.m4 [ linux ] (AC_LIBTOOL_LANG_CXX_CONFIG)
2176 (AC_LIBTOOL_POSTDEP_PREDEP, AC_LIBTOOL_PROG_COMPILER_PIC)
2177 (AC_LIBTOOL_PROG_LD_SHLIBS): Add support for Sun C 5.9,
2178 Sun C++ 5.9, and Sun Fortran 8.3 on Linux.
2180 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
2182 * m4/libtool.m4: On Cygwin, like on mingw, define DLL_EXPORT when
2183 compiling a shared library object.
2185 2006-05-15 Bruno Haible <bruno@clisp.org>
2187 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
2189 2006-03-31 Juan Manuel Guerrero <juan.guerrero@gmx.de>
2193 2006-01-23 Bruno Haible <bruno@clisp.org>
2195 * configure.ac: Invoke gl_ALLOCSA.
2197 * Makefile.devel (aclocal.m4): Depend on $(CONFIGURES_IN).
2199 2006-01-22 Bruno Haible <bruno@clisp.org>
2201 * src/iconv.c (xmalloc, xalloc_die) [NO_I18N]: Define to avoid using
2204 2006-01-22 Bruno Haible <bruno@clisp.org>
2206 * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 6:0:4.
2208 2006-01-22 Bruno Haible <bruno@clisp.org>
2210 * src/iconv.c: Include error.h, exit.h.
2211 (print_version): Use EXIT_SUCCESS.
2212 (check_subst_formatstring, subst_mb_to_uc_fallback,
2213 subst_uc_to_mb_fallback, subst_mb_to_wc_fallback,
2214 subst_wc_to_mb_fallback, subst_mb_to_mb_fallback, convert, main): Use
2215 error() instead of fprintf to stderr.
2217 2006-01-22 Bruno Haible <bruno@clisp.org>
2219 New feature: character-dependent substitutions.
2220 * include/iconv.h.in (iconv_unicode_mb_to_uc_fallback,
2221 iconv_unicode_uc_to_mb_fallback, iconv_wchar_mb_to_wc_fallback,
2222 iconv_wchar_wc_to_mb_fallback): New types.
2223 (struct iconv_fallbacks): New structure type.
2224 (ICONV_SET_FALLBACKS): New macro.
2225 * configure.ac: Invoke gt_TYPE_WCHAR_T and substitute HAVE_WCHAR_T.
2226 * Makefile.os2 (all): Also substitute @HAVE_WCHAR_T@ in build/iconv.h.
2227 * Makefile.devel (include/iconv.h_vms, include/iconv.h.msvc-static,
2228 include/iconv.h.msvc-shared): Also substitute @HAVE_WCHAR_T@.
2229 * lib/converters.h (struct conv_struct): Add field 'fallbacks'.
2230 * lib/loop_unicode.h (struct uc_to_mb_fallback_locals): New type.
2231 (uc_to_mb_write_replacement): New function.
2232 (struct mb_to_uc_fallback_locals): New type.
2233 (mb_to_uc_write_replacement): New function.
2234 (unicode_loop_convert): Call mb_to_uc_fallback and uc_to_mb_fallback.
2235 (unicode_loop_reset): Call uc_to_mb_fallback.
2236 * lib/loop_wchar.h (struct wc_to_mb_fallback_locals): New type.
2237 (wc_to_mb_write_replacement): New function.
2238 (wchar_from_loop_convert): Call wc_to_mb_fallback.
2239 (struct mb_to_wc_fallback_locals): New type.
2240 (mb_to_wc_write_replacement): New function.
2241 (wchar_to_loop_convert): Call mb_to_wc_fallback.
2242 * lib/iconv.c (iconv_open): Initialize the 'fallbacks' field.
2243 (iconvctl): Handle ICONV_SET_FALLBACKS.
2244 * lib/genflags.c (struct iconv_fallbacks): New dummy definition.
2245 * src/iconv.c: Include limits.h.
2246 (isdigit, c_isprint): New macros.
2247 (usage): Document long options and new options.
2248 (check_subst_formatstring): New function.
2249 (ilseq_byte_subst, ilseq_wchar_subst, ilseq_unicode_subst): New
2251 (ilseq_byte_subst_size, ilseq_wchar_subst_size,
2252 ilseq_unicode_subst_size): New variables.
2253 (ilseq_byte_subst_buffer, ilseq_wchar_subst_buffer,
2254 ilseq_unicode_subst_buffer): New variables.
2255 (subst_mb_to_uc_cd, subst_mb_to_uc_temp_buffer): New variables.
2256 (subst_mb_to_uc_fallback): New function.
2257 (subst_uc_to_mb_cd, subst_uc_to_mb_temp_buffer): New variables.
2258 (subst_uc_to_mb_fallback): New function.
2259 (subst_mb_to_wc_cd, subst_mb_to_wc_temp_buffer): New variables.
2260 (subst_mb_to_wc_fallback): New function.
2261 (subst_wc_to_mb_cd, subst_wc_to_mb_temp_buffer): New variables.
2262 (subst_wc_to_mb_fallback): New function.
2263 (subst_mb_to_mb_cd, subst_mb_to_mb_temp_buffer): New variables.
2264 (subst_mb_to_mb_fallback): New function.
2265 (convert): Enlarge the outbuf when the conversion failed with E2BIG.
2266 (main): Handle new options --byte-subst, --widechar-subst,
2268 * man/iconv.1: Document --unicode-subst, --byte-subst, --widechar-subst
2270 * tests/check-subst: New file.
2271 * tests/Makefile.in (check): Also invoke check-subst.
2272 Suggested by James Taylor <james@oakseed.demon.co.uk>.
2274 2006-01-21 Bruno Haible <bruno@clisp.org>
2276 * src/iconv.c (print_version): Bump copyright year.
2277 (main): Accept long options --from-code, --to-code, --list, --silent.
2278 Accept abbreviated long options, like getopt() does.
2279 * man/iconv.1: Document long options.
2281 2005-12-29 Bruno Haible <bruno@clisp.org>
2283 * src/iconv.c (print_version): Update copyright year.
2285 2005-12-29 Bruno Haible <bruno@clisp.org>
2287 * configure.ac: Renamed from configure.in.
2288 * Makefile.devel (CONFIGURES_IN, configure, config.h.in): Update.
2290 2005-12-29 Bruno Haible <bruno@clisp.org>
2292 * configure.in: Bump version number.
2293 * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
2294 * windows/iconv.rc: Likewise.
2295 * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 5:1:3.
2297 2005-12-29 Bruno Haible <bruno@clisp.org>
2299 * build-aux/config.guess: Update to GNU version 2005-12-23.
2300 * build-aux/config.sub: Likewise.
2301 * build-aux/config.libpath: Update from GNU gettext.
2302 * build-aux/install-sh: Upgrade to automake-1.9.5.
2303 * build-aux/missing: Upgrade to automake-1.9.5.
2304 * build-aux/mkinstalldirs: Upgrade to automake-1.9.5.
2306 2005-12-29 Bruno Haible <bruno@clisp.org>
2308 * m4/alloca.m4: Update from GNU gettext.
2309 * m4/allocsa.m4: Update from GNU gettext.
2310 * m4/canonicalize.m4: Update from GNU gettext.
2311 * m4/codeset.m4: Update from GNU gettext.
2312 * m4/eealloc.m4: Update from GNU gettext.
2313 * m4/error.m4: Update from GNU gettext.
2314 * m4/extensions.m4: Update from GNU gettext.
2315 * m4/gettext.m4: Update from GNU gettext.
2316 * m4/glibc21.m4: Update from GNU gettext.
2317 * m4/iconv.m4: Update from GNU gettext.
2318 * m4/intmax.m4: Update from GNU gettext.
2319 * m4/inttypes_h.m4: New file, from GNU gettext.
2320 * m4/isc-posix.m4: Update from GNU gettext.
2321 * m4/lcmessage.m4: Update from GNU gettext.
2322 * m4/longdouble.m4: Update from GNU gettext.
2323 * m4/longlong.m4: Update from GNU gettext.
2324 * m4/mbstate_t.m4: Update from GNU gettext.
2325 * m4/nls.m4: Update from GNU gettext.
2326 * m4/onceonly.m4: Update from GNU gettext.
2327 * m4/pathmax.m4: Update from GNU gettext.
2328 * m4/po.m4: Update from GNU gettext.
2329 * m4/printf-posix.m4: Update from GNU gettext.
2330 * m4/progtest.m4: Update from GNU gettext.
2331 * m4/readlink.m4: Update from GNU gettext.
2332 * m4/relocatable.m4: Update from GNU gettext.
2333 * m4/setenv.m4: Update from GNU gettext.
2334 * m4/signed.m4: Update from GNU gettext.
2335 * m4/ssize_t.m4: Update from GNU gettext.
2336 * m4/stdbool.m4: Update from GNU gettext.
2337 * m4/stdint_h.m4: New file, from GNU gettext.
2338 * m4/strerror.m4: Update from GNU gettext.
2339 * m4/strerror_r.m4: Update from GNU gettext.
2340 * m4/unlocked-io.m4: Update from GNU gettext.
2341 * m4/wchar_t.m4: Update from GNU gettext.
2342 * m4/wint_t.m4: Update from GNU gettext.
2343 * m4/xreadlink.m4: Update from GNU gettext.
2344 * Makefile.devel (aclocal.m4): Depend on m4/inttypes_h.m4 and
2345 m4/stdint_h.m4 as well.
2346 * configure.in: Invoke AC_TYPE_MBSTATE_T instead of AC_MBSTATE_T.
2347 Invoke gl_FUNC_GLIBC_UNLOCKED_IO instead of jm_FUNC_GLIBC_UNLOCKED_IO.
2348 Invoke gl_ERROR instead of gt_FUNC_ERROR_AT_LINE.
2349 Don't invoke AC_AIX and AC_MINIX, done by gl_USE_SYSTEM_EXTENSIONS.
2350 Temporarily redefine AC_LIBOBJ and AC_REPLACE_FUNCS, so as to fill
2351 SRCLIBOBJS instead of LIBOBJS.
2352 * srclib/alloca_.h: Update from GNU gettext.
2353 * srclib/allocsa.h: Update from GNU gettext.
2354 * srclib/canonicalize.c: Update from GNU gettext.
2355 * srclib/error.h: Update from GNU gettext.
2356 * srclib/error.c: Update from GNU gettext.
2357 * srclib/gettext.h: Update from GNU gettext.
2358 * srclib/memmove.c: Update from GNU gettext.
2359 * srclib/progname.h: Update from GNU gettext.
2360 * srclib/progname.c: Update from GNU gettext.
2361 * srclib/progreloc.c: Update from GNU gettext.
2362 * srclib/readlink.c: Update from GNU gettext.
2363 * srclib/relocatable.c: Update from GNU gettext.
2364 * srclib/relocwrapper.c: Update from GNU gettext.
2365 * srclib/setenv.h: Update from GNU gettext.
2366 * srclib/setenv.c: Update from GNU gettext.
2367 * srclib/stdbool_.h: Update from GNU gettext.
2368 * srclib/stdint_.h: Update from gnulib.
2369 * srclib/strerror.c: Update from GNU gettext.
2370 * srclib/unlocked-io.h: Update from GNU gettext.
2371 * srclib/unsetenv.c: Update from GNU gettext.
2372 * srclib/xalloc.h: Update from GNU gettext.
2373 * srclib/xmalloc.c: Update from GNU gettext.
2374 * srclib/xreadlink.c: Update from GNU gettext.
2375 * srclib/xstrdup.c: Update from GNU gettext.
2376 * srclib/Makefile.am (DEFS): Also define EXEEXT.
2377 (libicrt_a_LIBADD): Use SRCLIBOBJS instead of LIBOBJS.
2378 (libicrt_a_DEPENDENCIES): New variable.
2379 * src/Makefile.in (EXEEXT): New variable.
2380 * build-aux/install-reloc: Update from GNU gettext.
2381 * build-aux/reloc-ldflags: Update from GNU gettext.
2382 * build-aux/config.rpath: Update from GNU gettext.
2384 2005-12-29 Bruno Haible <bruno@clisp.org>
2386 * m4/libtool.m4: Update, based on libtool-1.5.22.
2387 * build-aux/ltmain.sh: Update, based on libtool-1.5.22.
2389 2005-12-24 Bruno Haible <bruno@clisp.org>
2391 Check the whole range of GB18030.
2392 * tests/GB18030-BMP.TXT: Renamed from tests/GB18030.TXT.
2393 * tests/gengb18030z.c: New file.
2394 * tests/table-from.c (main): For GB18030, don't stop at U+10000.
2395 * tests/table-to.c (main): Likewise.
2396 * tests/Makefile.in (check): Generate GB18030.TXT on the fly from
2398 (clean): Remove also gengb18030z and GB18030.TXT.
2399 * tests/Makefile.msvc (check): Generate GB18030.TXT on the fly from
2401 (clean): Remove also GB18030Z.TXT, GB18030TMP.TXT, GB18030.TXT.
2402 * tests/Makefile.os2 (check): Depend on gengb18030z.exe. Generate
2403 GB18030.TXT on the fly from GB18030-BMP.TXT.
2404 (clean): Remove also GB18030Z.TXT, GB18030TMP.TXT, GB18030.TXT.
2406 2005-12-20 Bruno Haible <bruno@clisp.org>
2408 * tests/table-to.c (main): Test the mappings up to U+10FFFF, not only
2409 up to U+2FFFF. Tolerate that Unicode language tags are silently mapped
2412 2005-12-22 Bruno Haible <bruno@clisp.org>
2414 Extend GB18030 converter to cover the entire Unicode PUA.
2415 * lib/gb18030.h: Update comments, based on second printing.
2416 (gb18030_mbtowc): Add mapping for range U+E000..U+E765.
2417 (gb18030_pua2charset): New array.
2418 (gb18030_wctomb): Add mapping for range U+E000..U+E765 and the two-byte
2419 part of range U+E766..U+E864.
2420 * lib/gb18030ext.h (gb18030ext_2uni_pagefe): Add mappings to private
2422 (gb18030ext_mbtowc): Add mapping for the two-byte part of range
2424 * lib/gb18030uni.h (gb18030uni_charset2uni_ranges,
2425 gb18030uni_uni2charset_ranges, gb18030uni_ranges): Add 12 more
2427 (gb18030uni_mbtowc, gb18030uni_wctomb): Update.
2428 * tests/GB18030.TXT: Complete mappings to private area.
2430 2005-12-22 Bruno Haible <bruno@clisp.org>
2432 * lib/gbk.h: Update comments.
2434 2005-12-20 Bruno Haible <bruno@clisp.org>
2436 Add private area mappings to CP949.
2437 * lib/cp949.h (cp949_mbtowc, cp949_wctomb): Map U+E000..U+E0BB like
2439 * tests/CP949.TXT: Add mappings for U+E000..U+E0BB.
2441 2005-12-15 Bruno Haible <bruno@clisp.org>
2443 Add private area mappings to CP950.
2444 * lib/cp950.h (cp950_mbtowc, cp950_wctomb): Map U+E000..U+F6B0 like
2446 * tests/CP950.TXT: Add mappings for U+E000..U+F6B0.
2448 2005-12-15 Bruno Haible <bruno@clisp.org>
2450 Make CP936 follow what Microsoft does.
2451 In http://www.microsoft.com/globaldev/reference/dbcs/936.mspx they
2452 added a 0x80 - U+20AC mapping to the code chart, but not to the
2453 tooltips and not to the list of mappings.
2454 * lib/cp936.h: New file.
2455 * lib/gbk.h: Update comments.
2456 * lib/ces_gbk.h: Update comments.
2457 * lib/converters.h: Include cp936.h.
2458 * lib/encodings.def (CP936): New encoding.
2459 (GBK): Remove CP936 aliases.
2460 * README, man/iconv_open.3: Add CP936.
2461 * tests/Makefile.in (check): Check CP936.
2462 * tests/Makefile.msvc (check): Likewise.
2463 * tests/Makefile.os2 (check): Likewise.
2464 * tests/CP936.TXT: New file.
2466 2005-12-14 Bruno Haible <bruno@clisp.org>
2468 * lib/cp932.h (cp932_wctomb): Map U+FF5E, U+2225, U+FF0D, U+FFE0,
2469 U+FFE1 like Microsoft does it.
2470 * lib/CP932.IRREVERSIBLE.TXT: Add these mappings.
2471 Reported by Lei Wang <lwang@qilinsoft.com>.
2473 2005-12-14 Bruno Haible <bruno@clisp.org>
2475 Follow Euro sign addition done in 1999 in
2476 http://www.microsoft.com/globaldev/reference/dbcs/950/950_A3.mspx
2477 * lib/cp950.h (cp950_mbtowc, cp950_wctomb): Add mapping for 0xA3E1.
2478 * tests/CP950.TXT: Add mapping for 0xA3E1.
2480 2005-11-11 Bruno Haible <bruno@clisp.org>
2482 * lib/euc_jp.h (euc_jp_wctomb): When writing a 3-bytes byte sequence
2483 and only two bytes are available in the output buffer, return
2484 RET_TOOSMALL instead of overrunning the output buffer.
2485 * lib/isoir165.h (isoir165_wctomb): When only one byte is available
2486 in the output buffer, don't overrun the output buffer.
2487 Reported by William Bardwell <bardwell@curl.com>.
2489 2005-09-18 Bruno Haible <bruno@clisp.org>
2491 * m4/libtool.m4: Update, based on libtool-1.5.20.
2492 * build-aux/ltmain.sh: Update, based on libtool-1.5.20.
2494 2005-08-12 Bruno Haible <bruno@clisp.org>
2496 * lib/big5_2003.h: Map 0xF9FA..0xF9FD differently.
2497 * tests/BIG5-2003.TXT: Likewise.
2498 * tests/BIG5-2003.IRREVERSIBLE.TXT: New file.
2499 Reported by Ping Yeh <ping@pingyeh.net>.
2501 2005-07-24 Bruno Haible <bruno@clisp.org>
2503 Tidy up exported symbols.
2504 * m4/visibility.m4: New file.
2505 * include/export.h: New file.
2506 * configure.in: Invoke gl_VISIBILITY. Use AC_CONFIG_FILES. Arrange to
2507 create also include/iconv.h.inst.
2508 * Makefile.devel (all): Depend on include/iconv.h.build.in.
2509 (aclocal.m4): Depend on m4/visibility.m4.
2510 (include/iconv.h.build.in): New rule.
2511 * Makefile.in (install-lib, install): Install include/iconv.h.inst,
2512 not the include/iconv.h that was used for building.
2513 (distclean, maintainer-clean): Remove also include/iconv.h.inst.
2514 * lib/Makefile.in (CFLAGS): Add @CFLAG_VISIBILITY@.
2515 (DEFS): Also define BUILDING_LIBICONV and BUILDING_DLL.
2516 * lib/config.h.in (HAVE_VISIBILITY): New macro.
2517 * lib/relocatable.h (RELOCATABLE_DLL_EXPORTED) [HAVE_VISIBILITY]:
2518 Define to the gcc visibility attribute.
2519 * srclib/relocatable.h (RELOCATABLE_DLL_EXPORTED) [HAVE_VISIBILITY]:
2522 2005-07-25 Bruno Haible <bruno@clisp.org>
2524 2003-08-24 Bruno Haible <bruno@clisp.org>
2525 * lib/relocatable.h: Make this file includable in C++ mode: add extern
2528 2005-07-08 Bruno Haible <bruno@clisp.org>
2530 * Version 1.10 released.
2532 2005-07-08 Bruno Haible <bruno@clisp.org>
2534 * m4/libtool.m4 (postinstall_cmds) [cygwin,mingw,pw32]: Make DLL
2535 executable after installing it.
2537 2005-07-08 Bruno Haible <bruno@clisp.org>
2539 * configure.in: Bump version number.
2540 * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
2541 * windows/iconv.rc: Likewise.
2542 * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 5:0:3.
2544 2005-07-05 Bruno Haible <bruno@clisp.org>
2546 * Makefile.devel (ACLOCAL): New variable.
2547 (aclocal.m4): Use it.
2549 2005-07-05 Bruno Haible <bruno@clisp.org>
2551 * m4/relocatable.m4 (AC_RELOCATABLE): On mingw, simply set
2552 SET_RELOCATABLE to a trivial value.
2554 2004-08-08 Bruno Haible <bruno@clisp.org>
2556 * srclib/progreloc.c (xstrdup): Define as strdup if no xmalloc should
2559 2004-04-28 Bruno Haible <bruno@clisp.org>
2561 * srclib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
2562 Treat Cygwin like Windows, since it now accepts Windows pathnames.
2564 2005-06-09 Bruno Haible <bruno@clisp.org>
2566 * Makefile.in (mkinstalldirs): Use build-aux/ instead of autoconf/.
2567 * lib/Makefile.in (mkinstalldirs): Likewise.
2568 * src/Makefile.in (mkinstalldirs): Likewise.
2569 * man/Makefile.in (mkinstalldirs): Likewise.
2571 2005-06-08 Bruno Haible <bruno@clisp.org>
2573 * srclib/canonicalize.c (__realpath): Avoid gcc warnings on platforms
2574 that don't support symbolic links.
2576 2005-06-08 Bruno Haible <bruno@clisp.org>
2578 * srclib/binary-io.h (fileno): Undefine before defining it. Avoids a
2579 gcc warning on mingw.
2581 2005-05-22 Bruno Haible <bruno@clisp.org>
2583 Implement and document BIG5-2003.
2584 * lib/big5_2003.h: New file.
2585 * lib/converters.h: Include it.
2586 * lib/encodings_extra.def (BIG5-2003): New encoding.
2587 * README, man/iconv_open.3: Add BIG5-2003.
2588 * tests/Makefile.in (check-extra-yes): Check BIG5-2003.
2589 * tests/BIG5-2003.TXT: New file.
2591 2005-05-21 Bruno Haible <bruno@clisp.org>
2593 Add EURO SIGN to EUC-TW converter.
2594 * lib/cns11643_1.h (cns11643_1_2uni_page42): Add entry for 0x14242.
2595 (cns11643_1_mbtowc): Update.
2596 * lib/cns11643_inv.h (cns11643_inv_2charset): Add entry for 0x20AC.
2597 (cns11643_inv_uni2indx_page*): Update.
2598 * lib/dec_hanyu.h (dec_hanyu_mbtowc, dec_hanyu_wctomb): Consider only
2600 * tests/EUC-TW.TXT: Add entry for 0x20AC.
2601 * tests/EUC-TW.IRREVERSIBLE.TXT: Likewise.
2603 2005-05-03 Bruno Haible <bruno@clisp.org>
2605 * tools/Makefile (ALL): Add pt154.h.
2606 (pt154.h): New rule.
2607 * lib/encodings.def: Add PT154.
2608 * lib/pt154.h: New file.
2609 * lib/converters.h: Include it.
2610 * README, man/iconv_open.3: Add PT154.
2611 * NOTES: Mention PT154.
2612 * tests/PT154.TXT: New file.
2613 * tests/Makefile.in (check): Also test PT154.
2614 * tests/Makefile.msvc (check): Likewise.
2615 * tests/Makefile.os2 (check): Likewise.
2617 2005-03-29 Bruno Haible <bruno@clisp.org>
2619 Rename libiconv_plug.so to preloadable_libiconv.so.
2620 * configure.in (PLUGLIB): Set to preloadable_libiconv.so instead of
2622 * lib/Makefile.in (preloadable_libiconv.so): Renamed from
2624 (preloadable_libiconv_linux.so): Renamed from libiconv_plug_linux.so.
2625 (preloadable_libiconv_solaris.so): Renamed from
2626 libiconv_plug_solaris.so.
2627 (preloadable_libiconv_osf.so): Renamed from libiconv_plug_osf.so.
2631 2005-03-29 Bruno Haible <bruno@clisp.org>
2633 Implement and document ATARIST.
2634 * tools/Makefile (ALL): Add atarist.h.
2635 (atarist.h): New rule.
2636 * lib/atarist.h: New file.
2637 * lib/converters.h: Include it.
2638 * lib/encodings_extra.def (ATARIST): New encoding.
2639 * README, man/iconv_open.3: Add ATARIST.
2640 * tests/Makefile.in (check-extra-yes): Check ATARIST.
2641 * tests/ATARIST.TXT: New file.
2643 2005-03-22 Bruno Haible <bruno@clisp.org>
2645 * build-aux: New directory, renamed from autoconf.
2646 * configure.in (AC_CONFIG_AUX_DIR): Use build-aux.
2648 2005-03-16 Bruno Haible <bruno@clisp.org>
2650 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
2651 HAVE_LONGLONG_64BIT.
2652 * srclib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
2653 HAVE_LONGLONG_64BIT.
2654 * srclib/Makefile.am (stdint.h): Likewise.
2656 2005-03-14 Bruno Haible <bruno@clisp.org>
2658 * Makefile.devel (aclocal.m4): Depend also on allocsa.m4, eealloc.m4,
2659 extensions.m4, intmax.m4, inttypes.m4, longdouble.m4, longlong.m4,
2660 printf-posix.m4, readlink.m4, signed.m4, ssize_t.m4, stdint.m4,
2661 wchar_t.m4, wint_t.m4.
2663 2005-03-13 Bruno Haible <bruno@clisp.org>
2665 Make stdout error checking reliable, also when writing to a NFS file.
2666 * src/iconv.c (main): Check the return value of fclose(stdout).
2667 * lib/genaliases.c (main): Likewise.
2668 * lib/genaliases2.c (main): Likewise.
2669 * lib/genflags.c (main): Likewise.
2670 * lib/gentranslit.c (main): Likewise.
2671 * tests/genutf8.c (main): Likewise.
2672 * tests/table-from.c (main): Likewise.
2673 * tests/table-to.c (main): Likewise.
2675 2005-03-13 Bruno Haible <bruno@clisp.org>
2677 * src/iconv.c (convert): Before outputting an error message, flush
2678 stdout and output a newline if suitable.
2680 2005-03-13 Bruno Haible <bruno@clisp.org>
2682 Improved error messages.
2683 * srclib/width.c: New file, from GNU clisp.
2684 * srclib/uniwidth.h: New file, from GNU clisp with modifications.
2685 * srclib/unitypes.h: New file, from GNU clisp with modifications.
2686 * srclib/cjk.h: New file, from GNU clisp.
2687 * srclib/streq.h: New file, from GNU clisp.
2688 * srclib/stdint_.h: New file, from gnulib.
2689 * m4/stdint.m4: New file, from gnulib.
2690 * m4/inttypes.m4: New file, from gnulib.
2691 * srclib/Makefile.am: Add gnulib module 'stdint' snippet.
2692 (BUILT_SOURCES): New variable.
2693 (libicrt_a_SOURCES): Add width.c, uniwidth.h, unitypes.h, cjk.h,
2695 * configure.in: Invoke gl_STDINT_H.
2696 * src/iconv.c: Include cjk.h, uniwidth.h.
2697 (line, column, cjkcode): New variables.
2698 (update_line_column): New function.
2699 (convert): Initialize line and column. In all error message, show also
2700 the line and column number.
2701 (main): Initialize cjkcode. Set up hooks to call update_line_column.
2703 2005-03-13 Bruno Haible <bruno@clisp.org>
2705 * include/iconv.h.in (iconv_canonicalize): New declaration.
2706 * lib/genaliases.c (emit_encoding): Take two output streams as
2707 arguments. To the second stream, emit a shell command for extracting
2708 offsets into the gperf generated string pool.
2709 (main): Write the shell commands into file descriptors 3 and 4.
2710 * lib/genaliases2.c (emit_encoding): Take two output streams as
2711 arguments. To the second stream, emit an expression for the offset
2712 into the string pool.
2713 (main): Write the offsets into file descriptor 3.
2714 * Makefile.devel (lib/aliases.gperf): Remove target.
2715 (lib/aliases.h): Generate lib/aliases.gperf temporarily. Generate also
2716 lib/canonical.h and lib/canonical_local.h.
2717 (lib/aliases_aix.h): Generate also lib/canonical_aix.h.
2718 (lib/aliases_osf1.h): Generate also lib/canonical_osf1.h.
2719 (lib/aliases_dos.h): Generate also lib/canonical_dos.h.
2720 (lib/aliases_extra.h): Generate also lib/canonical_extra.h.
2721 * lib/iconv.c (stringpool2): Provide default definition when it doesn't
2723 (all_canonical): New array.
2724 (iconv_canonicalize): New function.
2726 2005-03-13 Bruno Haible <bruno@clisp.org>
2728 * include/iconv.h.in (iconv_unicode_char_hook, iconv_wide_char_hook,
2729 iconv_hooks): New types.
2730 (ICONV_SET_HOOKS): New macro.
2731 * lib/converters.h (struct conv_struct): Add field 'hooks'.
2732 * lib/iconv.c (iconv_open): Initialize hooks to NULL.
2733 (iconvctl): Handle ICONV_SET_HOOKS.
2734 * lib/loop_unicode.h (unicode_loop_convert, unicode_loop_reset): After
2735 conversion of a character, call the uc_hook.
2736 * lib/loop_wchar.h (wchar_id_loop_convert): After every character, call
2738 * lib/genflags.c (iconv_hooks): Provide a dummy definition.
2740 2005-02-05 Bruno Haible <bruno@clisp.org>
2742 * src/iconv.c (main): In case of unsupported encodings, show a hint
2745 2005-01-06 Bruno Haible <bruno@clisp.org>
2747 * lib/Makefile.msvc (CFLAGS): Define also INSTALLPREFIX.
2748 * lib/Makefile.vms (DEFS): Likewise.
2749 Reported by Troels Walsted Hansen <Troels.W.Hansen@fast.no>.
2751 2005-01-05 Bruno Haible <bruno@clisp.org>
2753 * autoconf/config.rpath: Update from GNU gettext.
2755 2005-01-05 Bruno Haible <bruno@clisp.org>
2757 Assume automake-1.9.
2758 * Makefile.devel (AUTOMAKE): Assume automake-1.9.
2760 2005-01-05 Bruno Haible <bruno@clisp.org>
2762 * m4/libtool.m4: Update from GNU gettext, based on libtool-1.5.10.
2763 * autoconf/ltmain.sh: Update from GNU gettext, based on libtool-1.5.10.
2765 2004-11-11 Bruno Haible <bruno@clisp.org>
2767 * lib/iconv.c (iconv_open): Accept the suffixes //TRANSLIT and //IGNORE
2769 Reported by Lukas Gebauer <gebauerl@mlp.cz>.
2771 2004-09-21 Juan Manuel Guerrero <st001906@hrz1.hrz.tu-darmstadt.de>
2773 * djgpp/config.bat: Update.
2774 * djgpp/config.sed: Update.
2775 * djgpp/config.site: Update.
2776 * djgpp/edtest.bat: Update.
2777 * djgpp/fnchange.in: Update.
2778 * djgpp/Makefile.maint: Update.
2779 * djgpp/makefile.sed: Update.
2780 * djgpp/README.in: Update.
2781 * djgpp/sources.sed: Update.
2782 * djgpp/translit-check.sed: Update.
2784 2004-08-25 Bruno Haible <bruno@clisp.org>
2786 * m4/libtool.m4: Update from GNU gettext, based on libtool-1.5.6.
2787 * autoconf/ltmain.sh: Update from GNU gettext, based on libtool-1.5.6.
2789 2004-07-31 Bruno Haible <bruno@clisp.org>
2791 Update to JISX 0213 plane 1 to 2004 version (ISO-IR-233).
2792 * tools/Makefile (jisx0213.h): Bump version number.
2793 * tools/JISX0213.TXT: Change mappings U+2015 -> U+2014,
2794 U+2299 -> U+29BF, and add 10 new characters.
2795 * tools/cjk_tab_to_h.c (output_title): Bump year.
2796 (do_jisx0213): Update comments. Emit a conditional 'inline'.
2797 * lib/jisx0213.h: Regenerated.
2798 * lib/iso2022_jp3.h (iso2022_jp3_mbtowc): Accept escape sequence
2799 ESC $ ( Q as a synonym of ESC $ ( O.
2800 (iso2022_jp3_wctomb): Emit ESC $ ( Q instead of ESC $ ( O.
2801 * tests/EUC-JISX0213.TXT: Change mappings U+2015 -> U+2014,
2802 U+2299 -> U+29BF, and add 10 new characters.
2803 * tests/SHIFT_JISX0213.TXT: Likewise.
2804 * tests/ISO-2022-JP-3-snippet: Update.
2805 * tests/ISO-2022-JP-3-snippet.UTF-8: Update.
2807 2004-07-22 Bruno Haible <bruno@clisp.org>
2809 * lib/encodings.def (ISO-8859-7): Add alias ISO_8859-7:2003.
2810 * tools/Makefile (iso8859_7.h): Use conversion table from 2003.
2811 * lib/iso8859_7.h: Add mappings for 0xa4, 0xa5, 0xaa.
2812 * tests/ISO-8859-7.TXT: Update to ISO_8859-7:2003.
2814 2004-07-22 Bruno Haible <bruno@clisp.org>
2816 * tools/Makefile (ALL): Add iso8859_11.h.
2817 (iso8859_11.h): New rule.
2818 * lib/encodings.def: Add ISO-8859-11.
2819 * lib/iso8859_11.h: New file.
2820 * lib/converters.h: Include it.
2821 * tests/ISO-8859-11.TXT: New file.
2822 * tests/Makefile.in (check): Also test ISO-8859-11.
2823 * tests/Makefile.msvc (check): Likewise.
2824 * tests/Makefile.os2 (check): Likewise.
2826 2004-07-17 Bruno Haible <bruno@clisp.org>
2828 * src/iconv.c (main): Terminate option parsing when option -- is seen.
2829 Reported by Len Lattanzi <zardoz@users.sourceforge.net>.
2831 2004-03-05 Bruno Haible <bruno@clisp.org>
2833 * src/Makefile.in (install): Make DESTDIR work on HP-UX.
2834 Reported by Bob Proulx <box@proulx.com>.
2836 2004-02-19 Bruno Haible <bruno@clisp.org>
2838 * lib/vietcomb.h (viet_comp_table_data): Un-uncomment 0x00D5, 0x00F5,
2839 0x0168, 0x0169. Needed for TCVN-5712 but not for CP1258.
2840 (viet_comp_table0301_len): Increment by 4.
2842 * lib/cp1255.h (cp1255_mbtowc): Don't delay the handling of characters
2843 which are not entries in cp1255_comp_table_data.
2844 * lib/cp1258.h (cp1258_comp_bases): New array.
2845 (cp1258_mbtowc): Don't delay the handling of characters which are not
2846 relevant entries in viet_comp_table_data.
2847 * lib/tcvn.h (tcvn_comp_bases): New array.
2848 (tcvn_mbtowc): Don't delay the handling of characters which are not
2849 relevant entries in viet_comp_table_data.
2850 Reported by Alain Bench <veronatif@free.fr>.
2852 2004-02-02 Perry Rapp <lifelines_3_0_18@hotmail.com>
2853 Bruno Haible <bruno@clisp.org>
2855 * man/iconvctl.3: New file.
2856 * man/iconv.3: Refer to it in "See also".
2857 * man/iconv_open.3: Likewise.
2859 2004-01-24 Bruno Haible <bruno@clisp.org>
2861 * srclib/progreloc.c (xstrdup): Define as strdup if no xmalloc should
2864 2004-01-20 Bruno Haible <bruno@clisp.org>
2866 Upgrade from gettext-0.14.
2868 * configure.in: Call gl_USE_SYSTEM_EXTENSIONS. Call AM_STDBOOL_H
2869 instead of gt_STDBOOL_H. Provide a definition for DLL_VARIABLE.
2870 * srclib/Makefile.am (libicrt_a_SOURCES): Add allocsa.h, allocsa.c,
2871 xalloc.h. Remove xmalloc.h.
2872 (libicrt_a_LIBADD): Remove @ALLOCA@.
2873 * srclib/Makefile.msvc (OBJECTS): Add allocsa.obj.
2874 (allocsa.obj): New rule.
2875 * srclib/Makefile.vms (OBJECTS): Add allocsa.obj.
2876 (allocsa.obj): New rule.
2877 * Makefile.devel (config.h_vms): Set MALLOC_0_IS_NONNULL to 0.
2878 (config.h.msvc): Set MALLOC_0_IS_NONNULL to 1.
2882 2003-10-09 Bruno Haible <bruno@clisp.org>
2883 * lib/relocatable.c: Include xalloc.h instead of xmalloc.h.
2885 2003-08-01 Bruno Haible <bruno@clisp.org>
2886 * lib/relocatable.c (find_shared_library_fullname): Disable the code on
2887 Linux/libc5. Reported by Alain Guibert <derogaton+bgli@oreka.com>.
2889 2003-06-22 Bruno Haible <bruno@clisp.org>
2890 * lib/relocatable.c (compute_curr_prefix): Comment out this function in
2891 the case when it is not used.
2892 Reported by Pavel Roskin <proski@gnu.org>.
2896 * m4/gettext.m4: Upgrade from GNU gettext. Many changes.
2897 * m4/po.m4: Likewise.
2899 * m4/readlink.m4: New file, from GNU gettext.
2901 2003-11-30 Bruno Haible <bruno@clisp.org>
2902 * m4/allocsa.m4: New file.
2903 * m4/eealloc.m4: New file.
2904 * m4/setenv.m4 (gl_PREREQ_SETENV): Require gl_ALLOCSA instead of
2907 2003-10-21 Bruno Haible <bruno@clisp.org>
2908 * m4/canonicalize.m4 (gl_PREREQ_CANONICALIZE): Also test for
2911 2003-08-24 Bruno Haible <bruno@clisp.org>
2912 * m4/relocatable.m4 (AC_RELOCATABLE): Use $(host) instead of @host@,
2913 since the substitution of @host@ may occur before the substitution of
2916 2003-08-23 Bruno Haible <bruno@clisp.org>
2917 * stdbool.m4: Replace with the version from gnulib, without
2920 2003-08-08 Paul Eggert <eggert@twinsun.com>
2921 * m4/extensions.m4: New file.
2922 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
2923 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
2925 2003-07-01 Bruno Haible <bruno@clisp.org>
2926 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
2927 <sys/types.h> should be sufficient.
2928 Reported by Paul Eggert.
2930 2003-07-01 Bruno Haible <bruno@clisp.org>
2931 * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Avoid "duplicated macro" error
2932 from aclocal-1.4-p4.
2933 Reported by Luke Schierer <lschiere@rackspace.com> and
2934 Michael C. Toren <mct@toren.net>.
2936 2003-07-01 Paul Eggert <eggert@twinsun.com>
2937 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
2938 xreadlink.c now includes it unconditionally.
2940 2003-06-17 Paul Eggert <eggert@twinsun.com>
2941 * m4/lib-ld.m4 (AC_LIB_PROG_LD_GNU, AC_LIB_PROG_LD): Don't use egrep,
2942 for portability to POSIX 1003.1-2001. Backported from libtool-1.5.
2944 2003-05-28 Paul Eggert <eggert@twinsun.com>
2945 * m4/pathmax.m4 (gl_PATHMAX): Don't check for limits.h.
2946 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
2948 2002-12-24 Bruno Haible <bruno@clisp.org>
2949 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
2950 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
2952 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
2957 2003-11-30 Bruno Haible <bruno@clisp.org>
2958 * srclib/alloca.c: Remove file.
2960 2003-11-30 Bruno Haible <bruno@clisp.org>
2961 Safer stack allocation.
2962 * srclib/allocsa.h: New file.
2963 * srclib/allocsa.c: New file.
2964 * canonicalize.c: Include allocsa.h.
2965 (__realpath): Use allocsa instead of alloca. Don't clobber errno right
2966 before returning NULL.
2967 * srclib/relocwrapper.c: Indirectly depends on allocsa.
2968 * srclib/setenv.c: Include allocsa.h.
2969 (alloca): Remove fallback definition.
2970 (freea): Remove macro.
2971 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
2974 2003-11-17 Bruno Haible <bruno@clisp.org>
2975 * srclib/canonicalize.c: #undef realpath after <config.h> but before
2976 the system includes, so as to avoid a prototype clash on Solaris 2.5.1.
2977 Reported by Warren L. Dodge <warrend@mdhost.cse.tek.com>.
2979 2003-10-21 Bruno Haible <bruno@clisp.org>
2980 * srclib/canonicalize.c (lstat): Define as an alias to 'stat' on
2981 systems without symbolic links.
2983 2003-10-17 Bruno Haible <bruno@clisp.org>
2984 * srclib/binary-io.h: Avoid warnings on Cygwin.
2986 2003-10-09 Bruno Haible <bruno@clisp.org>
2987 * srclib/xalloc.h: Renamed from xmalloc.h.
2988 * srclib/progreloc.c: Include xalloc.h instead of xmalloc.h.
2989 * srclib/relocatable.c: Likewise.
2990 * srclib/xmalloc.c: Likewise.
2991 * srclib/xreadlink.c: Likewise.
2992 * srclib/xstrdup.c: Likewise.
2994 2003-09-12 Paul Eggert <eggert@twinsun.com>
2995 * srclib/progreloc.c (get_full_program_name): Define via prototype.
2997 2003-09-12 Paul Eggert <eggert@twinsun.com>
2998 * srclib/setenv.c (clearenv): Define via prototype.
3000 2003-09-10 Bruno Haible <bruno@clisp.org>
3001 * srclib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
3002 * srclib/unsetenv.c: Likewise.
3004 2003-08-28 Bruno Haible <bruno@clisp.org>
3005 * srclib/binary-io.h: Undefine O_BINARY before defining it. This avoids
3006 a warning on QNX, which defines O_BINARY to 000000.
3008 2003-08-24 Bruno Haible <bruno@clisp.org>
3009 * srclib/binary-io.h: Include <stdio.h>, to avoid a compilation error
3010 when MSVC7 <stdio.h> is included later.
3012 2003-08-24 Bruno Haible <bruno@clisp.org>
3013 * srclib/error.h: Use ANSI C "..." declarations when compiling with
3014 MSVC, even though it doesn't define __STDC__ by default.
3015 * srclib/error.c: Use <stdarg.h> when compiling with MSVC, even though
3016 it doesn't define __STDC__ by default.
3018 2003-08-24 Bruno Haible <bruno@clisp.org>
3019 Support for building DLLs on Windows.
3020 * srclib/error.h (error_print_progname, error_message_count,
3021 error_one_per_line): Add DLL_VARIABLE attribute.
3022 * srclib/progname.h (program_name): Likewise.
3024 2003-08-24 Bruno Haible <bruno@clisp.org>
3025 * srclib/progname.h: Make this file includable in C++ mode: add extern
3027 * srclib/relocatable.h: Likewise.
3028 * srclib/xmalloc.h: Likewise.
3030 2003-08-22 Bruno Haible <bruno@clisp.org>
3031 * srclib/progname.h (error_with_progname, maybe_print_progname): Remove
3033 * srclib/progname.c (error_with_progname): Remove variable.
3034 (maybe_print_progname): Remove function.
3036 2003-08-01 Bruno Haible <bruno@clisp.org>
3037 * srclib/relocatable.c (find_shared_library_fullname): Disable the code
3038 on Linux/libc5. Reported by Alain Guibert <derogaton+bgli@oreka.com>.
3040 2003-07-01 Paul Eggert <eggert@twinsun.com>
3041 * srclib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
3042 having it depend on HAVE_SYS_TYPES_H.
3044 2003-06-23 Bruno Haible <bruno@clisp.org>
3045 Avoid compilation units that are empty after preprocessing.
3046 * srclib/canonicalize.c: Add dummy declaration.
3047 * srclib/strerror.c: Likewise.
3048 * srclib/error.c: Include <stdio.h> even if there's nothing to be
3051 2003-06-22 Bruno Haible <bruno@clisp.org>
3052 * srclib/relocatable.c (compute_curr_prefix): Comment out this function
3053 in the case when it is not used.
3054 Reported by Pavel Roskin <proski@gnu.org>.
3056 2003-05-28 Paul Eggert <eggert@twinsun.com>
3057 * srclib/pathmax.h: Include <limits.h> without checking for
3059 * srclib/xreadlink.c: Likewise.
3061 2004-01-20 Bruno Haible <bruno@clisp.org>
3063 Assume automake-1.8.
3064 * Makefile.devel (AUTOCONF, AUTOHEADER): Assume autoconf-2.59.
3065 (AUTOMAKE): Assume automake-1.8.
3066 * Makefile.in (am--refresh): New target.
3068 2004-01-23 Bruno Haible <bruno@clisp.org>
3070 * Version 1.9.2 released.
3072 2004-01-23 Bruno Haible <bruno@clisp.org>
3074 * tests/table-from.c: Include binary-io.h.
3075 (main): Switch stdout to binary mode.
3076 * tests/table-to.c: Include binary-io.h.
3077 (main): Switch stdout to binary mode.
3078 * tests/genutf8.c: Include binary-io.h.
3079 (main): Switch stdout to binary mode.
3080 * tests/Makefile.in (INCLUDES): Also look in srclib.
3081 (check): Pass INCLUDES when compiling genutf8.c.
3082 * tests/Makefile.os2 (INCLUDES): Also look in srclib.
3083 (genutf8.exe): Pass INCLUDES when compiling genutf8.c.
3084 * tests/Makefile.msvc (INCLUDES): Also look in srclib.
3085 (check): Pass INCLUDES when compiling genutf8.c.
3087 2004-01-21 Bruno Haible <bruno@clisp.org>
3089 * src/iconv.c (force_binary): Remove variable.
3090 (usage): Don't document --binary any more.
3091 (convert, main): Always switch to binary mode.
3092 * tests/check-stateful.bat: Remove --binary option.
3093 * tests/check-translit.bat: Likewise.
3094 * tests/check-stateful.cmd: Likewise.
3095 * tests/check-translit.cmd: Likewise.
3096 * djgpp/stateful-check.sed: Remove MODE variable.
3097 * djgpp/translit-check.sed: Likewise.
3099 2004-01-21 Bruno Haible <bruno@clisp.org>
3101 * man/iconv.3: Fix description of return value in case of error.
3102 Reported by Jonathan Wakely <redi@users.sf.net>.
3104 2003-09-12 Paul Eggert <eggert@twinsun.com>
3106 * srclib/progreloc.c (get_full_program_name): Define via prototype.
3108 2003-08-15 Bruno Haible <bruno@clisp.org>
3110 * Makefile.devel (lib/translit.h): Add ulimit command so that the
3111 gentranslit program gets the stack it needs. Many Linux distributions
3112 allow only 8 MB of stack by default.
3114 2003-08-01 Bruno Haible <bruno@clisp.org>
3116 * lib/relocatable.c (find_shared_library_fullname): Disable the code on
3118 * srclib/relocatable.c (find_shared_library_fullname): Likewise.
3119 Reported by Alain Guibert <derogaton+bgli@oreka.com>.
3121 2003-07-02 Bruno Haible <bruno@clisp.org>
3123 * m4/lib-ld.m4: Update from GNU gettext.
3124 * m4/lib-prefix.m4: Update from GNU gettext.
3125 * m4/gettext.m4: Update from GNU gettext.
3126 * m4/intmax.m4: New file, from GNU gettext.
3127 * m4/longdouble.m4: New file, from GNU gettext.
3128 * m4/longlong.m4: New file, from GNU gettext.
3129 * m4/printf-posix.m4: New file, from GNU gettext.
3130 * m4/signed.m4: New file, from GNU gettext.
3131 * m4/wchar_t.m4: New file, from GNU gettext.
3132 * m4/wint_t.m4: New file, from GNU gettext.
3133 * m4/pathmax.m4: Update from GNU gettext and gnulib.
3134 * m4/ssize_t.m4: Update from GNU gettext and gnulib.
3135 * m4/xreadlink.m4: Update from GNU gettext and gnulib.
3136 * m4/readlink.m4: New file, from gnulib.
3137 * autoconf/install-reloc: Update from GNU gettext.
3138 * srclib/stdbool_.h: Renamed from srclib/stdbool.h.in.
3139 * srclib/readlink.c: New file, from GNU gettext and gnulib.
3140 * srclib/Makefile.am (LIBADD_SOURCE): Add readlink.c.
3141 (EXTRA_DIST, stdbool.h): Use stdbool_.h instead of stdbool.h.in.
3142 * configure.in: Invoke gl_FUNC_READLINK.
3144 2003-06-22 Bruno Haible <bruno@clisp.org>
3146 * src/Makefile.in (install): Link with the already installed library.
3147 This fixes a link error on Solaris.
3148 Reported by Paul Eggert.
3150 2003-06-08 Bruno Haible <bruno@clisp.org>
3152 * srclib/canonicalize.c (__getcwd) [VMS]: Pass 3 arguments to getcwd.
3154 2003-05-02 Bruno Haible <bruno@clisp.org>
3156 Support for libtool-1.5.
3157 * srclib/progname.c (set_program_name): Remove a leading
3158 "<dirname>/.libs/lt-" or "<dirname>/.libs/", not only "lt-".
3160 2003-06-23 Bruno Haible <bruno@clisp.org>
3162 Avoid compilation units that are empty after preprocessing.
3163 * srclib/canonicalize.c: Add dummy declaration.
3164 * srclib/strerror.c: Likewise.
3165 * srclib/error.c: Include <stdio.h> even if there's nothing to be
3168 2003-06-22 Bruno Haible <bruno@clisp.org>
3170 Portability to mingw32.
3171 * m4/ssize_t.m4: New file, from GNU gettext.
3172 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
3173 Reported by Jeff Bonggren <jbon@cfl.rr.com>.
3175 2003-06-22 Bruno Haible <bruno@clisp.org>
3177 Portability to mingw32.
3178 * lib/relocatable.c [WIN32]: Include <windows.h>.
3179 * srclib/relocatable.c: Likewise.
3180 Reported by Jeff Bonggren <jbon@cfl.rr.com>.
3182 2003-06-22 Bruno Haible <bruno@clisp.org>
3184 * lib/relocatable.c (compute_curr_prefix): Comment out this function in
3185 the case when it is not used.
3186 * srclib/relocatable.c (compute_curr_prefix): Likewise.
3187 Reported by Pavel Roskin <proski@gnu.org>.
3189 2003-06-18 Bruno Haible <bruno@clisp.org>
3191 * config/install-sh: Update from automake-1.7.5.
3193 2003-06-16 Bruno Haible <bruno@clisp.org>
3195 * lib/encodings.def (ISO-8859-15): Add alias LATIN-9.
3196 (ISO-8859-16): Add aliases ISO_8859-16:2001, LATIN10, L10. Remove alias
3198 (GBK): Add aliases MS936, WINDOWS-936.
3199 Reported by Guido Flohr <guido@imperia.net>.
3201 2003-05-09 Bruno Haible <bruno@clisp.org>
3203 * srclib/canonicalize.c: Add #ifdef around versioned_symbol. Avoids an
3204 "extraneous semicolon" warning from Tru64 cc.
3206 2003-06-07 Bruno Haible <bruno@clisp.org>
3208 * Makefile.devel (config.h_vms): Don't define HAVE_ENVIRON_DECL.
3209 * Makefile.vms (config.h): New rule.
3210 (all, install): Depend on it.
3211 (all, install, installdirs, uninstall, check): Fix typo.
3212 (mostlyclean, clean, distclean, maintainer-clean): Likewise. Remove
3214 * lib/Makefile.vms (DEFS): Fix value of INSTALLDIR.
3215 (OBJECTS): Use libiconv.obj instead of iconv.obj.
3216 (libiconv.obj): Renamed from iconv.obj.
3217 * srclib/Makefile.vms (INCLUDES): Add parent directory.
3218 (OBJECTS): Remove strtoul.obj, setenv.obj, unsetenv.obj.
3219 (strtoul.obj, setenv.obj, unsetenv.obj): Remove rules.
3220 (alloca.h): New rule.
3221 (canonicalize.obj): Depend on it.
3222 (clean): Remove alloca.h.
3223 * src/Makefile.vms (datadir, localedir): New variables.
3224 (DEFS): Also define LOCALEDIR.
3225 (iconv.obj): Add flags for relocatability,
3226 (iconv.exe): Link with libicrt. Use link_options.
3227 * vms/link_options.opt: New file.
3228 Reported by Jouk Jansen <joukj@hrem.stm.tudelft.nl>.
3230 2003-06-07 Bruno Haible <bruno@clisp.org>
3232 Support for relocatable data files even on Woe32.
3233 * lib/Makefile.msvc (PICFLAGS): Also define PIC.
3235 2003-05-22 Bruno Haible <bruno@clisp.org>
3237 * Version 1.9.1 released.
3239 2003-05-22 Bruno Haible <bruno@clisp.org>
3241 * lib/genaliases.c (main): Emit %pic instead of %null-strings.
3242 Change type of 'name' field to 'int'.
3243 * lib/genaliases2.c (emit_encoding): Add a 'tag' argument. Emit an
3244 invocation of macro S(), including the tag and a counter.
3245 (main): Use the command-line argument as tag.
3246 * Makefile.devel (lib/aliases_aix.h, lib/aliases_osf1.h,
3247 lib/aliases_dos.h, lib/aliases_extra.h): Pass a tag to the program.
3248 * lib/iconv.c (stringpool2_t): New type.
3249 (stringpool2_contents): New data table.
3250 (stringpool2): New macro.
3251 (sysdep_aliases): Make position-independent. Move #includes out to
3253 (aliases2_lookup): Update.
3255 (compare_by_index): Use 'struct nalias' instead of 'struct alias'.
3256 (iconvlist): Convert 'struct alias' to 'struct nalias' while copying.
3257 * lib/aliases2.h: New file, extracted from lib/iconv.c.
3259 2003-05-20 Bruno Haible <bruno@clisp.org>
3261 * lib/iconv.c (iconvlist): Test p->name against NULL, not against "".
3262 Reported by Muraoka Taro <koron@tka.att.ne.jp>.
3264 2003-05-19 Bruno Haible <bruno@clisp.org>
3266 * windows/iconv.rc: Include <winver.h>.
3267 Reported by Perry Rapp.
3269 2003-05-18 Bruno Haible <bruno@clisp.org>
3271 * Version 1.9 released.
3273 2003-05-18 Bruno Haible <bruno@clisp.org>
3275 * lib/Makefile.in (libiconv_plug_osf.so): Avoid using LIBTOOL_LINK.
3277 2003-05-18 Bruno Haible <bruno@clisp.org>
3279 * lib/Makefile.msvc (DEBUGFLAGS): New variable.
3280 (iconv.lib): Use it.
3281 * src/Makefile.msvc (DEBUGFLAGS): New variable.
3282 * tests/Makefile.msvc (DEBUGFLAGS): New variable.
3284 2003-05-17 Bruno Haible <bruno@clisp.org>
3286 * src/Makefile.msvc (libdir, datadir, localedir): New variables.
3287 (IIlibdir, IIdatadir, IIlocaledir): New variables.
3288 (CFLAGS): Define LOCALEDIR.
3289 (iconv_no_i18n.exe): New rule.
3290 (all): Depend on it.
3291 * tests/check-stateful.bat: Invoke iconv_no_i18n instead of iconv.
3292 * tests/check-translit.bat: Likewise.
3294 2003-05-16 Bruno Haible <bruno@clisp.org>
3296 * lib/genaliases.c (main): Emit declarations for gperf-3.0.
3297 * Makefile.devel (lib/aliases.h): Remove gperf command line options;
3298 add new option "-m 10" for gperf-3.0.
3300 2003-05-12 Bruno Haible <bruno@clisp.org>
3302 * m4/error.m4: Update from gettext.
3304 2003-05-12 Bruno Haible <bruno@clisp.org>
3306 * configure.in: Invoke AC_GNU_SOURCE and jm_FUNC_GLIBC_UNLOCKED_IO.
3308 2003-05-12 Bruno Haible <bruno@clisp.org>
3310 * lib/Makefile.msvc (PICFLAGS, CFLAGS): Move BUILDING_* macros from
3313 2003-05-09 Bruno Haible <bruno@clisp.org>
3315 * srclib/error.c: Update from gnulib with modifications.
3316 * srclib/unlocked-io.h: New file, from gnulib.
3317 * m4/strerror_r.m4: New file, from gnulib.
3318 * m4/unlocked-io.m4: New file, from gnulib.
3319 * Makefile.devel (aclocal.m4): Depend on them.
3321 2003-05-08 Bruno Haible <bruno@clisp.org>
3323 * Makefile.msvc (IIPREFIX): New variable.
3324 * srclib/Makefile.msvc (INCLUDES): Add -I..\windows.
3325 * src/Makefile.msvc (IIPREFIX, IIprefix, IIexec_prefix, IIbindir,
3326 IIincludedir): New variables.
3327 (INCLUDES): Add -I..\windows.
3328 (iconv.exe): Define INSTALLPREFIX and INSTALLDIR. Link with
3330 Patches by Perry Rapp.
3332 2003-05-07 Bruno Haible <bruno@clisp.org>
3334 * README.woe32: Fix instructions for step 1.
3335 * srclib/Makefile.msvc (OBJECTS): Remove strtoul.obj.
3336 (strtoul.obj): Remove rule.
3337 Reported by Perry Rapp.
3339 2003-05-07 Bruno Haible <bruno@clisp.org>
3341 * Makefile.vms: New file.
3342 * lib/Makefile.vms: New file.
3343 * srclib/Makefile.vms: New file.
3344 * src/Makefile.vms: New file.
3345 * man/Makefile.vms: New file.
3346 * tests/Makefile.vms: New file.
3347 * Makefile.devel (config.h_vms, lib/config.h_vms, include/iconv.h_vms):
3349 (all): Depend on them.
3351 2003-05-07 Bruno Haible <bruno@clisp.org>
3353 * srclib/Makefile.msvc (OBJECTS): Remove findprog.obj.
3354 (findprog.obj): Remove rule.
3355 * src/Makefile.msvc (includedir): New variable.
3357 2003-05-06 Bruno Haible <bruno@clisp.org>
3359 * lib/translit.def: Upgrade to Unicode 4.0.
3361 2003-05-06 Bruno Haible <bruno@clisp.org>
3363 * srclib/Makefile.am (DEFS): Fix spelling of DEPENDS_ON_LIBICONV.
3364 * srclib/Makefile.msvc (CFLAGS): Likewise.
3366 * srclib/Makefile.msvc (INCLUDES): Add -I.. .
3367 Reported by Perry Rapp.
3369 * Makefile.msvc (config.h): New rule.
3370 (all): Depend on it.
3371 (mostlyclean, clean, distclean, maintainer-clean): Erase config.h.
3372 Reported by Perry Rapp.
3374 2003-05-06 Bruno Haible <bruno@clisp.org>
3376 * autoconf/config.guess: Update to GNU version 2003-02-22.
3377 * autoconf/config.sub: Likewise.
3379 2003-05-06 Bruno Haible <bruno@clisp.org>
3381 * m4/lib-link.m4: Update from GNU gettext.
3382 * autoconf/config.rpath: Update from GNU gettext.
3384 * m4/libtool.m4: Update from GNU gettext, based on libtool-1.5.
3385 * autoconf/ltmain.sh: Update from GNU gettext, based on libtool-1.5.
3387 * m4/gettext.m4: Update from GNU gettext.
3388 * m4/nls.m4: Update from GNU gettext.
3389 * m4/po.m4: Update from GNU gettext.
3390 * Makefile.devel (aclocal.m4): Depend on m4/nls.m4 and m4/po.m4.
3392 2003-04-12 Bruno Haible <bruno@clisp.org>
3394 Support for OpenVMS 7.3.
3395 * lib/iconv.c (USE_OSF1): Define also on VMS.
3397 2003-04-12 Bruno Haible <bruno@clisp.org>
3399 Better support for FreeBSD.
3400 * lib/encodings.def (ISO8859-{1,2,3,4,5,6,7,8,9,10,13,14,15,16): New
3401 aliases, for compatibility with earlier FreeBSD iconv implementation
3402 by Konstantin Chuguev.
3403 * lib/iconv.c (iconv_open, iconv, iconv_close) [FreeBSD]: Define as
3405 * src/Makefile.in (install) [FreeBSD]: Avoid installation problem.
3407 2003-04-12 Bruno Haible <bruno@clisp.org>
3409 * configure.in (mandir): Change default value.
3410 * Makefile.in (datadir): New variable.
3411 (install, installdirs, uninstall): Pass datadir to po and man
3413 * Makefile.os2 (datadir): New variable.
3414 (mandir): Use it instead of prefix.
3415 (install, uninstall): Pass datadir to man directory.
3416 * Makefile.msvc (mandir, docdir): Use datadir instead of prefix.
3417 * man/Makefile.in (datadir): New variable.
3418 (docdir): Use it instead of prefix.
3419 (install, installdirs): Update.
3420 * man/Makefile.os2 (datadir): New variable.
3421 (mandir): Use it instead of prefix.
3422 * man/Makefile.msvc (datadir): New variable.
3423 (mandir, docdir): Use it instead of prefix.
3424 (install, installdirs): Update.
3426 2003-04-06 Bruno Haible <bruno@clisp.org>
3428 Make it possible to build with or without libintl support on Woe32.
3429 * Makefile.devel (config.h.msvc): Remove ENABLE_NLS.
3430 * Makefile.msvc (NO_NLS): New variable.
3431 * srclib/Makefile.msvc (NO_NLS): New variable.
3432 (CFLAGS, INCLUDES): Use them.
3433 * src/Makefile.msvc (NO_NLS): New variable.
3434 (NLSFLAGS, INCINTL, LIBINTL): New variables.
3435 (CFLAGS, INCLUDES, iconv.exe): Use them.
3437 2003-04-12 Bruno Haible <bruno@clisp.org>
3439 * lib/loop_unicode.h (unicode_transliterate): When the Hangul or
3440 variants transliteration failed with RET_ILUNI, don't return
3442 Reported by the FreeBSD porters.
3444 2003-04-06 Bruno Haible <bruno@clisp.org>
3446 * srclib/binary-io.h: New file, from GNU gettext.
3447 * src/iconv.c: Include it.
3448 (O_BINARY, O_TEXT, SET_BINARY): Remove definitions.
3450 2003-04-05 Bruno Haible <bruno@clisp.org>
3452 Support for relocatable installation.
3453 * m4/alloca.m4: New file, from GNU gettext.
3454 * m4/canonicalize.m4: New file, from GNU gettext.
3455 * m4/error.m4: New file, from GNU gettext.
3456 * m4/onceonly.m4: New file, from GNU gettext.
3457 * m4/pathmax.m4: New file, from GNU gettext.
3458 * m4/relocatable.m4: New file, from GNU gettext.
3459 * m4/setenv.m4: New file, from GNU gettext.
3460 * m4/stdbool.m4: New file, from GNU gettext.
3461 * m4/strerror.m4: New file, from GNU gettext.
3462 * m4/xreadlink.m4: New file, from GNU gettext.
3463 * autoconf/config.libpath: New file, from GNU gettext.
3464 * autoconf/install-reloc: New file, from GNU gettext.
3465 * autoconf/reloc-ldflags: New file, from GNU gettext.
3466 * autoconf/missing: New file, from GNU automake 1.7.3.
3467 * lib/relocatable.h: New file, from GNU gettext.
3468 * lib/relocatable.c: New file, from GNU gettext.
3469 * srclib/alloca.c: New file, from GNU gettext.
3470 * srclib/alloca_.h: New file, from GNU gettext.
3471 * srclib/canonicalize.c: New file, from GNU gettext.
3472 * srclib/canonicalize.h: New file, from GNU gettext.
3473 * srclib/error.c: New file, from GNU gettext.
3474 * srclib/error.h: New file, from GNU gettext.
3475 * srclib/exit.h: New file, from GNU gettext.
3476 * srclib/gettext.h: New file, from GNU gettext.
3477 * srclib/memmove.c: New file, from GNU gettext.
3478 * srclib/pathmax.h: New file, from GNU gettext.
3479 * srclib/progname.c: New file, from GNU gettext.
3480 * srclib/progname.h: New file, from GNU gettext.
3481 * srclib/progreloc.c: New file, from GNU gettext.
3482 * srclib/relocatable.c: New file, from GNU gettext.
3483 * srclib/relocatable.h: New file, from GNU gettext.
3484 * srclib/relocwrapper.c: New file, from GNU gettext.
3485 * srclib/setenv.c: New file, from GNU gettext.
3486 * srclib/setenv.h: New file, from GNU gettext.
3487 * srclib/stdbool.h.in: New file, from GNU gettext.
3488 * srclib/strerror.c: New file, from GNU gettext.
3489 * srclib/unsetenv.c: New file, from GNU gettext.
3490 * srclib/xmalloc.c: New file, from GNU gettext.
3491 * srclib/xmalloc.h: New file, from GNU gettext.
3492 * srclib/xreadlink.c: New file, from GNU gettext.
3493 * srclib/xreadlink.h: New file, from GNU gettext.
3494 * srclib/xstrdup.c: New file, from GNU gettext.
3495 * srclib/Makefile.am: New file.
3496 * srclib/Makefile.msvc: New file.
3497 * windows/alloca.h: New file, from GNU gettext.
3498 * windows/stdbool.h: New file, from GNU gettext.
3499 * configure.in (AC_CONFIG_HEADERS): Replace src/config.h with config.h.
3500 Add AC_RELOCATABLE, AC_HEADER_STDC, AC_CHECK_HEADERS(stddef.h stdlib.h
3501 string.h), AC_CHECK_FUNCS(getc_unlocked), AC_REPLACE_FUNCS(memmove),
3502 AM_LANGINFO_CODESET, gl_FUNC_ALLOCA, gl_CANONICALIZE,
3503 gt_FUNC_ERROR_AT_LINE, gl_PATHMAX, gt_FUNC_SETENV, gt_STDBOOL_H,
3504 gl_FUNC_STRERROR, gl_XREADLINK, AC_OUTPUT(srclib/Makefile).
3505 * lib/config.h.in: Add HAVE_GETC_UNLOCKED, HAVE_LANGINFO_CODESET,
3506 HAVE_SETLOCALE, HAVE_STDDEF_H, HAVE_STDLIB_H, HAVE_STRING_H, for
3507 localcharset.c. Add ENABLE_RELOCATABLE, INSTALLPREFIX, for
3509 * lib/Makefile.in (DEFS): New variable.
3510 (SOURCES): Add localcharset.c and relocatable.c.
3511 (OBJECTS): Add localcharset.lo and relocatable.lo.
3512 (LIBCHARSET_OBJECTS): Remove variable.
3513 (libiconv_plug_linux.so, libiconv_plug_solaris.so,
3514 libiconv_plug_osf.so): Use $(DEFS). Don't use $(LIBCHARSET_OBJECTS).
3515 (iconv.lo): Use $(DEFS).
3516 (localcharset.lo, relocatable.lo): New rules.
3517 * lib/Makefile.msvc (CFLAGS): Define HAVE_CONFIG_H, BUILDING_DLL,
3518 ENABLE_RELOCATABLE, IN_LIBRARY, INSTALLDIR, NO_XMALLOC,
3519 set_relocation_prefix, relocate. Remove $(PICFLAGS).
3520 (INCLUDES): Simplify.
3521 (SOURCES): Remove variable.
3522 (OBJECTS): Add localcharset.obj and relocatable.obj.
3523 (LIBCHARSET_OBJECTS): Remove variable.
3524 (iconv.obj): Add $(PICFLAGS).
3525 (localcharset.obj, relocatable.obj): New rules.
3526 (iconv.lib): Drop $(LIBCHARSET_OBJECTS).
3527 * include/iconv.h.in (libiconv_set_relocation_prefix): New declaration.
3528 * src/gettext.h: Remove file.
3529 * src/iconv.c: Include progname.h and relocatable.h.
3530 (ICONV_CONST): Define to const if the system has no iconv.
3531 (main): Invoke set_program_name. Relocate LOCALEDIR.
3532 * src/Makefile.in (top_srcdir): New variable.
3533 (INCLUDES): Add .. and ../srclib.
3534 (iconv_no_i18n, iconv): Link with ../srclib/libicrt.a.
3535 (iconv_no_i18n.@OBJEXT@, iconv.@OBJEXT@): Define INSTALLDIR.
3536 (RELOCATABLE_LIBRARY_PATH, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR,
3537 RELOCATABLE_CONFIG_H_DIR, @SET_RELOCATABLE@, iconv_LDFLAGS): New
3539 (iconv): Use $(iconv_LDFLAGS).
3540 (install): Use $(INSTALL_PROGRAM_ENV).
3541 (distclean): Drop removing config.h.
3542 * src/Makefile.msvc (INCLUDES): Add .., simplify.
3543 * tests/Makefile.msvc (INCLUDES): Simplify.
3544 * Makefile.devel (AUTOHEADER, AUTOMAKE): New variables.
3545 (config.h.in, srclib/Makefile.in, config.h.msvc): New rules.
3546 (all): Depend on them.
3547 (aclocal.m4) Depend also on m4/alloca.m4, m4/canonicalize.m4,
3548 m4/error.m4, m4/onceonly.m4, m4/pathmax.m4, m4/relocatable.m4,
3549 m4/setenv.m4, m4/stdbool.m4, m4/strerror.m4, m4/xreadlink.m4.
3550 (lib/config.h.msvc): Additional processing.
3551 * Makefile.in (all, install, installdirs, uninstall, check): Recurse
3553 (mostlyclean, clean, distclean, maintainerclean): Likewise. Remove
3555 (distclean, maintainerclean): Remove also config.h and some stamps.
3556 * Makefile.msvc (all, install, installdirs, uninstall, check,
3557 mostlyclean, clean, distclean, maintainerclean): Recurse into srclib.
3558 * INSTALL.generic: Document --enable-relocatable and
3559 --with-libintl-prefix. Remove the recommendation to set CPPFLAGS and
3560 LDFLAGS. The lib-link.m4 macros make this unnecessary.
3562 2003-04-05 Bruno Haible <bruno@clisp.org>
3564 * configure.in: Bump version number to 1.9.
3565 * include/iconv.h.in (_LIBICONV_VERSION): Bump.
3566 * windows/iconv.rc: Bump version number.
3567 * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 4:0:2.
3569 2003-04-05 Bruno Haible <bruno@clisp.org>
3571 * Makefile.msvc (PREFIX): New variable.
3573 (distclean, maintainer-clean): Drop Unix specific removals.
3574 * lib/Makefile.msvc (PREFIX, IIPREFIX): New variables.
3576 (IIprefix, IIexec_prefix, IIbindir, IIlibdir): New variables.
3577 (clean): Drop Unix specific removal.
3578 * src/Makefile.msvc (PREFIX): New variable.
3580 (clean): Drop Unix specific removal.
3581 (distclean): Likewise.
3582 * tests/Makefile.msvc (clean): Drop Unix specific removal.
3583 (distclean): Likewise.
3585 2003-04-05 Bruno Haible <bruno@clisp.org>
3587 * m4/endian.m4 (CL_WORDS_LITTLEENDIAN): Use 3-argument AC_DEFINE.
3589 2003-04-05 Bruno Haible <bruno@clisp.org>
3591 * m4/general.m4 (CL_CONFIG_SUBDIRS, CL_CANONICAL_HOST,
3592 CL_CANONICAL_HOST_CPU, CL_CANONICAL_HOST_CPU_FOR_FFCALL): Remove
3594 * m4/gettext.m4: Update from GNU gettext.
3595 * m4/iconv.m4: Update from GNU gettext.
3596 * m4/lcmessage.m4: Update from GNU gettext.
3597 * m4/progtest.m4: Update from GNU gettext.
3598 * m4/libtool.m4: Update from GNU gettext.
3599 2003-02-16 Bruno Haible <bruno@clisp.org>
3600 Workaround autoconf >= 2.52 breakage.
3601 * libtool.m4 (AC_LIBTOOL_ARG_WITH): New macro.
3602 (_LT_AC_LTCONFIG_HACK, AC_PROG_LD): Use it.
3603 * autoconf/ltmain.sh: Update from GNU gettext.
3604 2003-02-18 Bruno Haible <bruno@clisp.org>
3605 Fix the 2002-09-16 fix.
3606 * ltmain.sh (install): If "ln -s -f" fails (this is the case
3607 with /usr/bin/ln on Solaris 2.7), fall back to "rm && ln -s".
3609 2003-04-05 Bruno Haible <bruno@clisp.org>
3611 Start using automake.
3612 * configure.in: Add AM_INIT_AUTOMAKE invocation.
3613 (PACKAGE, VERSION): Remove.
3614 Use AC_CANONICAL_HOST instead of CL_CANONICAL_HOST.
3615 Use AC_PROG_LN_S instead of CL_PROG_LN_S.
3616 Use AC_PROG_RANLIB instead of CL_PROG_RANLIB.
3617 Reorder so that AC_CANONICAL_HOST comes early but still after
3619 * m4/ranlib.m4: Remove file.
3620 * m4/libtool.m4: Undo AC_ -> CL_ substitutions.
3621 * Makefile.devel (CLISP_DIR): Comment out.
3622 (AUTOCONF_FILES): Change to aclocal.m4.
3623 (aclocal.m4): Renamed from autoconf/aclocal.m4. Update dependencies.
3624 (configure.in): Drop --include option.
3626 2003-03-17 Bruno Haible <bruno@clisp.org>
3628 Improved MSVC support.
3629 * Makefile.msvc (prefix): Use less Unixy value.
3630 (local_prefix): Remove variable.
3631 (libdir, includedir, mandir): Use backslashes.
3632 (bindir, datadir, localedir, docdir): New variables.
3633 (INSTALL, INSTALL_PROGRAM, INSTALL_DATA): New variables.
3634 (all): Recurse into po/ and man/.
3635 (install, installdirs, uninstall): Rewritten.
3636 (check, mostlyclean, clean, distclean, maintainer-clean): Recurse
3638 * lib/Makefile.msvc (prefix): Use less Unixy value.
3639 (local_prefix): Remove variable.
3640 (libdir): Use backslashes.
3641 (bindir): New variable.
3642 (INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Set to real values.
3643 (RESOURCES): Enable iconv.res.
3644 (install, installdirs, uninstall): New rules.
3645 (clean): Remove config.h.
3646 (distclean): Don't remove config.h here.
3647 * src/Makefile.msvc (prefix, exec_prefix, bindir): New variables.
3648 (INSTALL, INSTALL_PROGRAM, INSTALL_DATA): New variables.
3649 (install, installdirs, uninstall): New rules.
3650 * man/Makefile.msvc: New file.
3651 * tests/Makefile.msvc (install, installdirs, uninstall): New rules.
3652 * Makefile.devel (all): Depend on po/Makefile.msvc.
3653 (po/Makefile.msvc): New rule.
3654 * windows/iconv.rc: Update.
3655 * README.woe32: Mention automatic installation command.
3657 Rename libcharset.h to localcharset.h.
3658 * lib/iconv.c: Include localcharset.h, not libcharset.h.
3659 * Makefile.in (lib/localcharset.h): Renamed from lib/libcharset.h.
3660 (all, install): Update dependencies.
3661 (all): Create lib/localcharset.h, not lib/libcharset.h.
3662 (mostlyclean, clean, distclean, maintainer-clean): Remove
3663 lib/localcharset.h, not lib/libcharset.h.
3664 * djgpp/README.in, djgpp/README: Update.
3665 * djgpp/config.bat: Update.
3666 * djgpp/config.sed: Update.
3667 * djgpp/fnchange.in, djgpp/fnchange.lst: Update.
3669 2003-01-31 Bruno Haible <bruno@clisp.org>
3671 * src/Makefile.in (all): Don't do the chmod if it has already been
3674 2003-01-31 Bruno Haible <bruno@clisp.org>
3676 * lib/loop_unicode.h (unicode_transliterate): Enable recursive
3677 transliteration. Idea from Perry Rapp.
3678 * lib/gentranslit.c (main): Change bound from 0x10000 to 0x110000.
3679 Change element type of translit_data to 'unsigned int'.
3680 * lib/translit.def: Many new transliterations, mostly taken from glibc.
3681 * lib/translit.h: Regenerated.
3682 * tests/Translit1.ISO-8859-1, tests/Translit1.ASCII: New files.
3683 * tests/Makefile.in (check): Add Translit1 check.
3684 * tests/Makefile.msvc (check): Likewise.
3685 * tests/Makefile.os2 (check): Likewise.
3686 * tests/TranslitFail1.ISO-8859-1: Choose a sentence which the new
3687 improved transliteration cannot do.
3689 2003-02-14 Bruno Haible <bruno@clisp.org>
3691 * Makefile.devel (AUTOCONF): Switch to autoconf-2.57.
3692 (configure): Update rule.
3694 2003-01-03 Albert Chin <libtool@thewrittenword.com>
3696 * autoconf/ltmain.sh: Don't pass -R flags found in a .la's
3697 dependency_libs variable directly down to the linker.
3698 Reported by Tim Mooney <mooney@dogbert.cc.ndsu.nodak.edu>.
3700 2003-01-01 Bruno Haible <bruno@clisp.org>
3702 * src/Makefile.in (install): Use libiconv.la in ../lib, not in
3703 $(libdir), so that installing with DESTDIR works.
3704 Reported by Michael Adams <michael@michaeladams.org>.
3706 2003-01-01 Bruno Haible <bruno@clisp.org>
3708 * Makefile.in (mkinstalldirs): New variable.
3709 (install-lib, install, installdirs): Use it instead of mkdir.
3710 * lib/Makefile.in (mkinstalldirs): New variable.
3711 (install-lib, install, installdirs): Use it instead of mkdir.
3712 * man/Makefile.in (mkinstalldirs): New variable.
3713 (install, installdirs): Use it instead of mkdir.
3714 * src/Makefile.in (mkinstalldirs): New variable.
3715 (install, installdirs): Use it instead of mkdir.
3717 2002-09-27 Bruno Haible <bruno@clisp.org>
3719 * autoconf/mkinstalldirs: Upgrade to automake-1.7.2 version.
3721 2002-11-07 Bruno Haible <bruno@clisp.org>
3723 * m4/libtool.m4: Upgrade to libtool-1.4.3.
3724 * autoconf/ltmain.sh: Upgrade to libtool-1.4.3.
3726 2002-07-14 Bruno Haible <bruno@clisp.org>
3728 * m4/libtool.m4 (_LT_AC_LTCONFIG_HACK): Add support for GNU/FreeBSD.
3730 2002-06-12 Bruno Haible <bruno@clisp.org>
3732 * configure.in: Use new AC_* names of libtool macros. Invoke
3733 AC_LIBTOOL_WIN32_DLL.
3735 2002-12-19 Bruno Haible <bruno@clisp.org>
3737 * lib/Makefile.in (libiconv_plug_solaris.so): Change rule if using gcc.
3738 Reported by Henry Nelson <henry@irm.nara.kindai.ac.jp>.
3740 2002-11-07 Bruno Haible <bruno@clisp.org>
3742 Make "make install" without prior "make" work.
3743 * Makefile.in (lib/libcharset.h): New rule.
3744 (all, install): Depend on it.
3745 Reported by Martin Mokrejš <mmokrejs@natur.cuni.cz>.
3747 2002-10-28 Bruno Haible <bruno@clisp.org>
3749 * man/Makefile.in (install): Change directory back to the working
3750 directory, so that install-sh (which may be a relative pathname) is
3751 found in the right place.
3753 2002-09-16 Bruno Haible <bruno@clisp.org>
3755 * autoconf/ltmain.sh (install): Use "ln -s -f" instead of
3756 "rm -f && ln -s" to make a symlink for a shared library.
3757 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
3759 2002-09-02 Bruno Haible <bruno@clisp.org>
3761 * src/iconv.c (main): Don't call bindtextdomain if !ENABLE_NLS.
3763 2002-08-16 Bruno Haible <bruno@clisp.org>
3765 * src/iconv.c (main): Perform fflush before testing ferror(stdout).
3767 2002-05-29 Bruno Haible <bruno@clisp.org>
3769 * Version 1.8 released.
3771 2002-05-26 Bruno Haible <bruno@clisp.org>
3773 * lib/c99.h: New file.
3774 * lib/converters.h: Include it.
3775 * lib/encodings.def (C99): New encoding.
3776 * README, man/iconv_open.3: Document C99 encoding.
3778 2002-05-26 Bruno Haible <bruno@clisp.org>
3780 * lib/java.h (java_mbtowc): Accept 12-byte sequences for non-BMP
3782 (java_wctomb): Produce 12-byte sequences for non-BMP characters.
3784 2002-05-29 Bruno Haible <bruno@clisp.org>
3786 Fix installation of iconv program when linked with a libintl that was
3787 built against an earlier libiconv.
3788 * src/iconv.c: Conditionally disable NLS.
3789 * src/iconv_no_i18n.c: New file.
3790 * src/Makefile.in (libdir): New variable.
3791 (all): Depend on iconv_no_i18n, iconv.@OBJEXT@ but not iconv. Make
3792 directory writable, so iconv executable can be created during "make
3794 (iconv): Remove rule.
3795 (iconv_no_i18n, iconv_no_i18n.@OBJEXT@): New rules.
3796 (install): Link iconv now, after the new libiconv.so is installed.
3797 (clean): Also remove iconv_no_i18n.
3798 * tests/Makefile.in: (check, check-extra-yes): Depend on iconv_no_i18n,
3800 * tests/check-stateful: Use iconv_no_i18n, not iconv.
3801 * tests/check-translit: LIkewise.
3802 * tests/check-translitfailure: Likewise.
3804 2002-05-29 Bruno Haible <bruno@clisp.org>
3806 * configure.in: Call AC_PROG_INSTALL instead of CL_PROG_INSTALL.
3807 * m4/install.m4: Remove file.
3808 * Makefile.devel (autoconf/aclocal.m4): Don't depend on m4/install.m4.
3810 2002-05-24 Bruno Haible <bruno@clisp.org>
3812 * lib/jisx0213.h: Use 'inline' only conditionally.
3814 2002-05-18 Bruno Haible <bruno@clisp.org>
3816 * configure.in (AC_INIT), include/iconv.h.in (_LIBICONV_VERSION),
3817 README, windows/iconv.rc, djgpp/README, djgpp/fnchange.lst:
3818 Bump version number.
3819 * lib/Makefile.in (LIBICONV_VERSION_INFO): Define to 3:0:1.
3821 2002-02-06 Bruno Haible <bruno@clisp.org>
3823 * autoconf/ltmain.sh: Upgrade from libtool-1.4 to libtool-1.4.2.
3825 2002-02-02 Bruno Haible <bruno@clisp.org>
3827 * autoconf/ltmain.sh: Add DESTDIR support on ELF systems.
3829 2001-11-03 Bruno Haible <haible@clisp.cons.org>
3831 * autoconf/ltmain.sh: chmod 777 the .libs directory, so that
3832 "make install" succeeds.
3834 2002-05-18 Bruno Haible <bruno@clisp.org>
3836 * src/Makefile.in (iconv): Remove the -liconv dependency of -lintl
3837 from the command line. Needed to ensure that the new libiconv version
3840 2002-05-14 Bruno Haible <bruno@clisp.org>
3842 Implement and document CP853, TDS565, RISCOS-LATIN1.
3843 * tools/Makefile (ALL): Add cp853.h, tds565.h, riscos1.h.
3844 (cp853.h, tds565.h, riscos1.h): New rules.
3845 * lib/cp853.h: New file.
3846 * lib/tds565.h: New file.
3847 * lib/riscos1.h: New file.
3848 * lib/converters.h: Include them.
3849 * lib/encodings_dos.def (CP853): New encoding.
3850 * lib/encodings_extra.def (TDS565, RISCOS-LATIN1): New encodings.
3851 * README, man/iconv_open.3: Add CP853, TDS565, RISCOS-LATIN1.
3852 * tests/Makefile.in (check-extra-yes): Check CP853, TDS565,
3854 * tests/Makefile.msvc (check): Check CP853.
3855 * tests/CP853.TXT: New file.
3856 * tests/TDS565.TXT: New file.
3857 * tests/RISCOS-LATIN1.TXT: New file.
3859 * lib/cp860.h (cp860_wctomb): Optimize.
3861 2002-05-12 Bruno Haible <bruno@clisp.org>
3863 * tools/Makefile (ksc5601.h): Add two extra characters.
3864 * lib/ksc5601.h: Regenerated.
3865 * tests/EUC-KR.TXT: Add EURO SIGN and REGISTERED SIGN.
3866 * tests/CP949.TXT: Likewise.
3867 * tests/JOHAB.TXT: Likewise.
3869 2002-05-12 Bruno Haible <bruno@clisp.org>
3871 * README: Mention extra encodings.
3872 * man/iconv_open.3: Likewise. Improve formatting in text and html
3875 2002-05-12 Bruno Haible <bruno@clisp.org>
3877 * tests/SHIFT_JIS.TXT: Renamed from tests/SHIFT-JIS.TXT.
3879 2002-05-12 Bruno Haible <bruno@clisp.org>
3881 * Makefile.devel (AUTOCONF): New variable.
3882 (AUTOCONF_FILES): Remove autoconf/autoconf.m4f.
3883 (configure): Use the AUTOCONF variable.
3884 * autoconf/autoconf: Remove file.
3885 * autoconf/autoconf.m4: Remove file.
3886 * autoconf/autoconf.m4f: Remove file.
3888 2002-05-12 Bruno Haible <bruno@clisp.org>
3890 * tools/JISX0213.TXT: New file.
3891 * tools/cjk_tab_to_h.c (do_jisx0213): New function.
3892 (main): Accept "jisx0213".
3893 * tools/Makefile (all): Add jisx0213.h.
3894 (jisx0213.h): New rule.
3895 * lib/jisx0213.h: New file, generated by cjk_tab_to_h.
3896 * lib/euc_jisx0213.h: New file.
3897 * lib/shift_jisx0213.h: New file.
3898 * lib/iso2022_jp3.h: New file.
3899 * lib/converters.h: Include them.
3900 * lib/encodings_extra.def (EUC-JISX0213, SHIFT_JISX0213,
3901 ISO-2022-JP-3): New encodings.
3902 * tests/EUC-JISX0213.TXT: New file.
3903 * tests/SHIFT_JISX0213.TXT: New file.
3904 * tests/ISO-2022-JP-3-snippet: New file.
3905 * tests/ISO-2022-JP-3-snippet.UTF-8: New file.
3906 * tests/Makefile.in (check-extra): Also check EUC-JISX0213,
3907 SHIFT_JISX0213, ISO-2022-JP-3.
3908 * tests/check-stateless: Add support for encodings which contain
3909 precomposed Unicode characters, by eliminating precomposed characters
3910 before the comparison.
3911 * tests/table-from.c (main): Fix usage message.
3912 * tests/table-to.c (main): Make it work for encodings for which the
3913 "to" direction is stateful.
3915 2002-05-09 Bruno Haible <bruno@clisp.org>
3917 New configure option --enable-extra-encodings.
3918 * lib/encodings_extra.def: New file.
3919 * lib/converters.h: Handle USE_EXTRA.
3920 * lib/genaliases2.c (main): Handle USE_EXTRA.
3921 * lib/genflags.c: Define USE_EXTRA.
3922 (main): Include encodings_extra.def.
3923 * lib/iconv.c: Handle ENABLE_EXTRA, conditionally set USE_EXTRA.
3925 * lib/config.h.in (ENABLE_EXTRA): New macro.
3926 * configure.in: Accept option --enable-extra-encodings.
3927 * Makefile.devel (all): Depend on lib/aliases_extra.h.
3928 (lib/aliases_extra.h): New rule.
3929 (lib/flags.h): Depend on lib/encodings_extra.def.
3930 * tests/Makefile.in (check-extra, check-extra-no, check-extra-yes):
3932 (check): Invoke check-extra.
3933 * tests/Makefile.msvc (check): Also check the DOS encodings.
3935 Support for testing the AIX encodings.
3936 * tests/CP856.TXT: New file.
3937 * tests/CP922.TXT: New file.
3938 * tests/CP1046.TXT: New file.
3939 * tests/CP1124.TXT: New file.
3940 * tests/CP1129.TXT: New file.
3941 * tests/CP1161.TXT, tests/CP1161.IRREVERSIBLE.TXT: New files.
3942 * tests/CP1162.TXT: New file.
3943 * tests/CP1163.TXT, tests/CP1163.IRREVERSIBLE.TXT: New files.
3945 Support for testing the OSF/1 encodings.
3946 * tests/DEC-KANJI.TXT: New file.
3947 * tests/DEC-HANYU.TXT, tests/DEC-HANYU.IRREVERSIBLE.TXT: New files.
3949 Support for testing the DOS encodings.
3950 * tests/CP437.TXT: New file.
3951 * tests/CP737.TXT: New file.
3952 * tests/CP775.TXT: New file.
3953 * tests/CP852.TXT: New file.
3954 * tests/CP855.TXT: New file.
3955 * tests/CP857.TXT: New file.
3956 * tests/CP858.TXT: New file.
3957 * tests/CP860.TXT: New file.
3958 * tests/CP861.TXT: New file.
3959 * tests/CP863.TXT: New file.
3960 * tests/CP864.TXT: New file.
3961 * tests/CP865.TXT: New file.
3962 * tests/CP869.TXT: New file.
3963 * tests/CP1125.TXT: New file.
3965 2002-05-09 Bruno Haible <bruno@clisp.org>
3967 Implement more ASCII compatible DOS encodings.
3968 * tools/Makefile (ALL): Add cp737.h, cp858.h, cp860.h, cp863.h.
3969 (cp737.h, cp858.h, cp860.h, cp863.h): New rules.
3970 * lib/cp737.h: New file.
3971 * lib/cp858.h: New file.
3972 * lib/cp860.h: New file.
3973 * lib/cp863.h: New file.
3974 * lib/converters.h: Include them.
3975 * lib/encodings_dos.def (CP737, CP858, CP860, CP863): New encodings.
3977 2002-05-09 Bruno Haible <bruno@clisp.org>
3979 Implement new ASCII compatible encodings from IBM.
3980 * tools/Makefile (ALL): Add cp1161.h, cp1162.h, cp1163.h.
3981 (cp1161.h, cp1162.h, cp1163.h): New rules.
3982 * lib/cp1161.h: New file.
3983 * lib/cp1162.h: New file.
3984 * lib/cp1163.h: New file.
3985 * lib/converters.h: Include them.
3986 * lib/encodings_aix.def (CP1161, CP1162, CP1163): New encodings.
3988 2002-05-09 Bruno Haible <bruno@clisp.org>
3990 Implement and document KOI8-T.
3991 * tools/Makefile (ALL): Add koi8_t.h.
3992 (koi8_t.h): New rule.
3993 * lib/koi8_t.h: New file.
3994 * lib/converters.h: Include it.
3995 * lib/encodings.def (KOI8-T): New encoding.
3996 * README, man/iconv_open.3: Add KOI8-T.
3997 * tests/Makefile.in (tests): Check KOI8-T.
3998 * tests/Makefile.os2 (tests): Likewise.
3999 * tests/Makefile.msvc (tests): Likewise.
4000 * tests/KOI8-T.TXT: New file.
4002 2002-05-09 Bruno Haible <bruno@clisp.org>
4004 * tools/8bit_tab_to_h.c (main): Update copyright year.
4005 * tools/cjk_variants.c (main): Likewise.
4007 2002-05-08 Bruno Haible <bruno@clisp.org>
4009 * README.woe32: Renamed from README.win32.
4011 2002-05-08 Bruno Haible <bruno@clisp.org>
4013 * lib/iconv.c: Enable DOS encodings also when compiling for Woe32,
4014 because the Woe32 consoles use them.
4016 2002-05-04 Bruno Haible <bruno@clisp.org>
4018 * lib/loop_unicode.h (unicode_loop_convert): When quitting the loop
4019 without writing an output character, restore cd->istate to its value
4020 before the xxx_mbtowc call. Otherwise we lose some characters during
4021 CP1255/CP1258/TCVN to Unicode conversion.
4022 (unicode_loop_reset): Likewise for the xxx_flushwc call.
4023 * tests/CP1255-snippet, tests/CP1255-snippet.UTF-8: Make the test
4024 files large enough to test against the bug.
4025 * tests/CP1258-snippet, tests/CP1258-snippet.UTF-8: Likewise.
4026 * tests/TCVN-snippet, tests/TCVN-snippet.UTF-8: Likewise.
4028 2002-04-28 Bruno Haible <bruno@clisp.org>
4030 * tools/Makefile (armscii_8.h): Use table from glibc-2.2.90.
4031 * tests/ARMSCII-8.TXT: Update to glibc-2.2.90 version.
4032 * tests/ARMSCII-8.IRREVERSIBLE.TXT: Remove 0x0027.
4033 * lib/armscii_8.h: Regenerated.
4035 2002-04-28 Bruno Haible <bruno@clisp.org>
4037 * src/iconv.c: Include gettext.h.
4039 (usage, print_version, convert, main): Internationalize.
4040 (main): Call setlocale, bindtextdomain, textdomain.
4041 * src/gettext.h: New file, from GNU gettext 0.11.2.
4042 * src/config.h.in: New file, needed for ENABLE_NLS.
4043 * src/Makefile.in (datadir, localedir): New variables.
4044 (iconv): Link with @LTLIBINTL@.
4045 (iconv.@OBJEXT@): Define LOCALEDIR.
4046 (distclean): Remove config.h.
4047 * po: New directory.
4048 * Makefile.in (all, install, installdirs, uninstall, check,
4049 mostlyclean, clean, distclean, maintainer-clean): Recurse into the po
4051 * autoconf/mkinstalldirs: New file, from automake-1.5.
4052 * ABOUT-NLS: New file, from GNU gettext 0.11.2.
4053 * m4/codeset.m4: New file, from GNU gettext 0.11.2.
4054 * m4/gettext.m4: New file, from GNU gettext 0.11.2.
4055 * m4/glibc21.m4: New file, from GNU gettext 0.11.2.
4056 * m4/isc-posix.m4: New file, from GNU gettext 0.11.2.
4057 * m4/lcmessage.m4: New file, from GNU gettext 0.11.2.
4058 * m4/progtest.m4: New file, from GNU gettext 0.11.2.
4059 * configure.in: Require autoconf-2.52, needed for multiple config.h.in
4060 files. Use new form of AC_INIT. Invoke AM_GNU_GETTEXT.
4061 (PACKAGE, VERSION): Define, needed for po/Makefile.in.in.
4062 * lib/config.h.in (HAVE_LOCALE_H, HAVE_SETLOCALE): Remove.
4064 2002-04-28 gettextize <bug-gnu-gettext@gnu.org>
4066 * configure.in (AC_OUTPUT): Add po/Makefile.in.
4068 2002-04-28 Bruno Haible <bruno@clisp.org>
4070 * m4/eilseq.m4: Renamed from autoconf/eilseq.m4.
4071 * m4/mbstate_t.m4: Renamed from autoconf/mbstate_t.m4.
4072 * m4/general.m4: New file, from GNU clisp.
4073 * m4/proto.m4: New file, from GNU clisp.
4074 * m4/ranlib.m4: New file, from GNU clisp.
4075 * m4/install.m4: New file, from GNU clisp.
4076 * m4/cp.m4: New file, from GNU clisp.
4077 * m4/ln.m4: New file, from GNU clisp.
4078 * m4/endian.m4: New file, from GNU clisp.
4079 * m4/iconv.m4: New file, from GNU gettext 0.11.2.
4080 * m4/lib-ld.m4: New file, from GNU gettext 0.11.2.
4081 * m4/lib-link.m4: New file, from GNU gettext 0.11.2.
4082 * m4/lib-prefix.m4: New file, from GNU gettext 0.11.2.
4083 * autoconf/config.rpath: New file, from GNU gettext 0.11.2.
4084 * m4/libtool.m4: New file, based on libtool-1.4.2.
4085 * Makefile.devel (ACLOCAL): Remove variable.
4086 (ACSELECT): Remove variable.
4087 (OTHERMACROS): Remove variable.
4088 (m4/*.m4): New rules.
4089 (autoconf/aclocal.m4): Construct using aclocal instead of acselect.
4090 * configure.in: Invoke AM_ICONV instead of CL_ICONV.
4092 2002-04-06 Bruno Haible <bruno@clisp.org>
4094 Upgrade to Unicode 3.2.
4095 * tools/cjk_tab_to_h.c (output_title): Bump copyright year.
4096 (compact_large_charset2uni): Add an argument. Determine optimal shift.
4097 Copy modified enc->charset2uni table.
4098 (output_charset2uni): Deal with shift other than 8. Copy encoding, so
4099 as to not disturb subsequent output_uni2charset[_sparse] call.
4100 * lib/hkscs.h: Regenerated.
4101 * tests/BIG5-HKSCS.TXT: Update.
4102 * tests/BIG5-HKSCS.IRREVERSIBLE.TXT: Update.
4104 2002-04-06 Bruno Haible <bruno@clisp.org>
4106 Upgrade to Unicode 3.2.
4107 * tools/Makefile (cns11643_1.h, cns11643_2.h, cns11643_3.h,
4108 cns11643_4a.h, cns11643_4b.h, cns11643_5.h, cns11643_6.h,
4109 cns11643_7.h, cns11643_15.h, cns11643_inv.h): Use
4110 CNS11643-Unicode32.TXT instead of CNS11643-Unicode31.TXT.
4111 * lib/cns11643_3.h: Regenerated.
4112 * lib/cns11643_4a.h: Regenerated.
4113 * lib/cns11643_4b.h: Regenerated.
4114 * lib/cns11643_5.h: Regenerated.
4115 * lib/cns11643_6.h: Regenerated.
4116 * lib/cns11643_7.h: Regenerated.
4117 * lib/cns11643_15.h: Regenerated.
4118 * lib/cns11643_inv.h: Regenerated.
4119 * tests/EUC-TW.TXT: Update.
4121 2002-01-17 Bruno Haible <bruno@clisp.org>
4123 * lib/tcvn.h (tcvn_2uni_1): Make it smaller.
4124 (tcvn_mbtowc): Small optimization.
4126 2002-01-13 Bruno Haible <bruno@clisp.org>
4128 New options -l, -c, -s.
4129 * src/iconv.c (discard_unconvertible, silent): New variables.
4130 (usage): Document options -l, -c, -s.
4131 (print_one): New function.
4132 (convert): If silent is true, don't print error messages about the
4133 conversion to stderr. If discard_unconvertible is true, set the
4134 iconv descriptor to DISCARD_ILSEQ the first time, but make sure to
4135 return the same return code as when discard_unconvertible is false.
4136 (main): Accept options -l, -c, -s. Implement option -l.
4137 * man/iconv.1: Document options -l, -c, -s.
4139 2002-01-13 Bruno Haible <bruno@clisp.org>
4141 Support for "iconv -c".
4142 * include/iconv.h.in (ICONV_GET_DISCARD_ILSEQ): New macro.
4143 (ICONV_SET_DISCARD_ILSEQ): Likewise.
4144 * lib/converters.h (struct conv_struct): New field discard_ilseq.
4145 * lib/iconv.c (iconv_open): Set discard_ilseq to true if tocode
4146 has an "//IGNORE" suffix, and to false otherwise.
4147 (iconvctl): Implement ICONV_GET_DISCARD_ILSEQ, ICONV_SET_DISCARD_ILSEQ.
4148 * lib/loop_unicode.h (unicode_loop_convert): If discard_ilseq is
4149 true, skip one input character instead of returning EILSEQ.
4150 (unicode_loop_reset): Likewise.
4151 * lib/loop_wchar.h (wchar_from_loop_convert): Likewise.
4152 (wchar_to_loop_convert): Likewise.
4154 2002-01-13 Bruno Haible <bruno@clisp.org>
4156 Support for "iconv -l".
4157 * include/iconv.h.in (iconvlist): New declaration.
4158 * Makefile.devel (lib/aliases.h): Change gperf options.
4159 * lib/iconv.c (compare_by_index, compare_by_name, iconvlist): New
4162 2002-01-06 Bruno Haible <bruno@clisp.org>
4164 * lib/loop_unicode.h (unicode_transliterate): If the transliteration
4165 fails due to limited output encoding, return RET_ILUNI, not
4166 RET_TOOSMALL. Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4167 * tests/check-translitfailure: New file.
4168 * tests/TranslitFail1.ISO-8859-1: New file.
4169 * tests/Makefile.in (check): Call check-translitfailure.
4171 2001-12-15 Bruno Haible <bruno@clisp.org>
4173 * lib/euc_jp.h (euc_jp_wctomb): Add irreversible mappings for
4174 Shift_JIS characters 0x5C and 0x7E.
4175 * tests/EUC-JP.IRREVERSIBLE.TXT: New file.
4177 2001-12-05 Bruno Haible <bruno@clisp.org>
4179 * lib/iconv.c (iconv_open): Recognize the empty encoding name. Avoid
4180 endless loop if locale_charset() returns the empty string.
4181 * README, man/iconv_open.3: Add the empty encoding name.
4183 2001-11-10 Bruno Haible <haible@clisp.cons.org>
4185 * lib/Makefile.in (libiconv_plug_linux.so): Allow building it with a
4188 2001-10-23 Bruno Haible <haible@clisp.cons.org>
4190 * tools/Makefile (cp1125.h): New target.
4192 * lib/cp1125.h: New file.
4193 * lib/converters.h: Include it.
4194 * lib/encodings_dos.def (CP1125): New encoding.
4196 2001-09-08 Bruno Haible <haible@clisp.cons.org>
4198 * autoconf/eilseq.m4: New file.
4199 * Makefile.devel (OTHERMACROS): Add it.
4200 * configure.in: Call AC_EILSEQ.
4201 * include/iconv.h.in (EILSEQ): Define to the autoconf determined value.
4203 2001-08-25 Bruno Haible <haible@clisp.cons.org>
4205 Upgrade to autoconf-2.52.
4206 * autoconf/autoconf: Upgrade to autoconf-2.52.
4207 * autoconf/acgeneral.m4: Remove file.
4208 * autoconf/acspecific.m4: Remove file.
4209 * autoconf/autoconf.m4f: New file, from autoconf-2.52.
4210 * autoconf/aclocal.m4: Require autoconf-2.52.
4211 (CL_CANONICAL_HOST): Call AC_CANONICAL_HOST. Don't cache the result,
4212 AC_CANONICAL_HOST does it itself. Add $SHELL in front of
4213 $ac_config_guess and $ac_config_sub.
4214 * Makefile.devel (AUTOCONF_FILES): Remove acgeneral.m4, acspecific.m4.
4216 (configure): Use autoconf options -A, -l instead of -m.
4217 * configure.in: Use AC_CONFIG_SUBDIRS, not AC_OUTPUT_SUBDIRS.
4219 2001-08-05 Bruno Haible <haible@clisp.cons.org>
4221 * autoconf/acgeneral.m4 (AC_MSG_RESULTPROTO): Remove macro.
4222 (AC_LANG_EXTERN): Move to aclocal.m4.
4223 * autoconf/aclocal.m4 (AC_LANG_EXTERN): Moved here from acgeneral.m4.
4224 (CL_PROTO): Use AC_MSG_RESULT directly, instead of AC_MSG_RESULTPROTO.
4225 (CL_SILENT): No need to pushdef AC_MSG_RESULTPROTO.
4227 2001-08-05 Bruno Haible <haible@clisp.cons.org>
4229 Make it possible to build libiconv with CC=gcc CFLAGS="-x c++".
4230 * lib/loop_wchar.h (wchar_to_loop_convert): Rename local variable
4232 * lib/Makefile.in (libiconv_plug_linux.so): Add "-x none" option
4233 between sources and libs.
4234 (libiconv_plug_solaris.so) [GCC]: Likewise.
4235 (libiconv_plug_osf.so) [GCC]: Likewise.
4236 * src/Makefile.in (iconv.@OBJEXT@): New rule.
4237 (iconv): Depend on it.
4238 (clean): Erase *.@OBJEXT@, not *.o.
4239 * tests/Makefile.in (table-from.@OBJEXT@): New rule.
4240 (table-from): Depend on it.
4241 (table-to.@OBJEXT@): New rule.
4242 (table-to): Depend on it.
4243 (clean): Erase *.@OBJEXT@, not *.o.
4245 2001-07-28 Bruno Haible <haible@clisp.cons.org>
4247 * tools/Makefile (iso8859_16.h): Generate from the unicode.org table.
4248 * lib/iso8859_16.h: Regenerated.
4249 * tests/ISO-8859-16.TXT: Swap the values of 0xA5 and 0xAB.
4251 2001-07-17 Bruno Haible <haible@clisp.cons.org>
4253 * configure.in (VERSION): Define. Needed by djgpp/Makefile.maint.
4255 2001-07-03 Bruno Haible <haible@clisp.cons.org>
4257 * configure.in: Also check for mbsinit.
4258 * lib/loop_wchar.h (mbsinit): Define to 1 if not defined.
4259 Needed for SCO 3.2v5.0.2.
4261 2001-06-27 Bruno Haible <haible@clisp.cons.org>
4263 * Version 1.7 released.
4265 2001-06-27 Bruno Haible <haible@clisp.cons.org>
4267 * INSTALL.generic (Particular Systems): Generalize section about
4268 /usr/local to "most systems".
4270 * lib/Makefile.in (all): Build @PLUGLIB@ before libiconv.la, because
4271 Solaris cc destroys iconv.o and iconv.lo while building
4272 libiconv_plug_solaris.so.
4273 (clean): Remove so_locations, left there by the OSF/1 linker.
4275 * lib/cp1255.h (cp1255_decomp): Use 'signed int' instead of 'int'.
4277 * lib/vietcomb.h (viet_decomp): Use 'unsigned int' instead of
4280 * tests/table-from.c: Include string.h.
4281 * tests/table-to.c: Likewise.
4283 2001-06-26 Bruno Haible <haible@clisp.cons.org>
4285 * tools/Makefile (jisx0208.h): Replace U+005C with U+FF3C.
4286 (jisx0212.h): Replace U+007E with U+FF5E.
4287 * lib/jisx0208.h: Regenerated.
4288 * lib/jisx0212.h: Regenerated.
4289 * tests/EUC-JP.TXT: Map 0xA1C0 to U+FF3C. Map 0x8FA2B7 to U+FF5E.
4290 * tests/EUC-JP.IRREVERSIBLE.TXT: Remove file.
4291 * tests/SHIFT-JIS.TXT: Map 0x815F to U+FF3C.
4292 * tests/CP932.TXT: Likewise.
4293 * tests/CP932.IRREVERSIBLE.TXT: 0x815F mapping is now reversible.
4295 2001-06-25 Bruno Haible <haible@clisp.cons.org>
4297 * src/Makefile.in (iconv): Mention $(INCLUDES) before $(CFLAGS) and
4299 * src/Makefile.msvc (iconv.exe): Likewise.
4300 * src/Makefile.os2 (iconv.exe): Likewise.
4301 * lib/Makefile.in (libiconv_plug_linux.so): Likewise.
4302 (libiconv_plug_solaris.so): Likewise.
4303 (libiconv_plug_osf.so): Likewise.
4304 (iconv.lo): Likewise.
4305 * lib/Makefile.msvc (iconv.obj): Likewise.
4306 * lib/Makefile.os2 (iconv.obj): Likewise.
4307 * tests/Makefile.in (table-from, table-to): Likewise.
4308 * tests/Makefile.msvc (table-from.exe, table-to.exe): Likewise.
4309 * tests/Makefile.os2 (table-from.exe, table-to.exe): Likewise.
4310 (genutf8.exe): Don't use $(INCLUDES).
4312 2001-06-25 Bruno Haible <haible@clisp.cons.org>
4314 * include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
4315 Bump version number.
4316 * lib/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:4:0.
4318 2001-06-25 Bruno Haible <haible@clisp.cons.org>
4320 * Makefile.devel (OTHERMACROS): Use libtool.m4 in libcharset subdir.
4322 2001-06-25 Bruno Haible <haible@clisp.cons.org>
4324 * lib/encodings.def: Make SHIFT_JIS the primary name of SJIS.
4326 2001-06-08 Bruno Haible <haible@clisp.cons.org>
4328 * autoconf/ltmain.sh: Upgrade to libtool-1.4.
4329 * autoconf/ltconfig: Remove file.
4331 2001-06-08 Bruno Haible <haible@clisp.cons.org>
4333 * autoconf/config.guess: Update to GNU version 2001-05-11.
4334 * autoconf/config.sub: Likewise.
4336 2001-06-03 Bruno Haible <haible@clisp.cons.org>
4338 * lib/loop_unicode.h (unicode_loop_convert): Ignore Unicode 3.1 tag
4339 characters if they cannot be converted.
4340 (unicode_loop_reset): Likewise.
4341 * lib/iso2022_jp2.h (STATE_TAG_NONE, STATE_TAG_LANGUAGE,
4342 STATE_TAG_LANGUAGE_j, STATE_TAG_LANGUAGE_ja, STATE_TAG_LANGUAGE_k,
4343 STATE_TAG_LANGUAGE_ko, STATE_TAG_LANGUAGE_z, STATE_TAG_LANGUAGE_zh):
4345 (SPLIT_STATE, COMBINE_STATE): Different differently for wctomb
4347 (iso2022_jp2_wctomb): Keep track of Unicode 3.1 language tag.
4348 If "ja", prefer conversion to Japanese character sets. If "zh",
4349 prefer conversion to GB2312. If "ko", prefer conversion to KSC5601.
4351 * lib/converters.h (RET_ILUNI): Change value from 0 to -1.
4352 (RET_TOOSMALL): Change value from -1 to -2.
4353 * lib/loop_unicode.h (unicode_transliterate): Allow xxx_wctomb to
4354 return 0 written bytes.
4356 2001-06-06 Bruno Haible <haible@clisp.cons.org>
4358 * lib/encodings.def: Align with IANA character-set registry.
4359 (US-ASCII): Add alias "ANSI_X3.4-1986".
4360 (ISO-8859-14): Add alias "ISO-CELTIC".
4361 (JIS_X0208): Add alias "JIS_C6226-1983".
4362 (BIG5HKSCS): Add alias "BIG5-HKSCS".
4363 * README, man/iconv_open.3: Rename BIG5HKSCS to BIG5-HKSCS.
4364 * tests/Makefile.in (check): Likewise.
4365 * tests/Makefile.os2 (check): Likewise.
4366 * tests/Makefile.msvc (check): Likewise.
4367 * tests/BIG5-HKSCS.TXT: Renamed from BIG5HKSCS.TXT.
4368 * tests/BIG5-HKSCS.IRREVERSIBLE.TXT: Renamed from
4369 BIG5HKSCS.IRREVERSIBLE.TXT.
4371 2001-06-02 Bruno Haible <haible@clisp.cons.org>
4373 * tools/cjk_tab_to_h.c (Encoding): Add fffd field.
4374 (is_charset2uni_large, compact_large_charset2uni): New functions.
4375 (find_charset2uni_pages): Use enc->fffd instead of 0xfffd.
4376 (output_charset2uni): If mapping to more than the Unicode BMP,
4377 use an extra indirection to keep each value in 16 bits.
4378 (invert): Bump limit from U+10000 to U+30000.
4379 (output_uni2charset_dense): Likewise.
4380 (output_uni2charset_sparse): Likewise. If mapping to more than one
4381 CJK plane, use three bytes per value instead of two bytes.
4382 (byte_row_cns11643): Allow more than 3 CJK planes.
4383 (do_cns11643_only_uni2charset): Increase number of rows, to include
4384 plane 15. Remove plane bits hack.
4385 (main): Accept names cns11643_4a,4b,5,6,7,15 as well.
4386 * tools/Makefile (ALL): Add cns11643_4a.h, cns11643_4b.h, cns11643_5.h,
4387 cns11643_6.h, cns11643_7.h, cns11643_15.h.
4388 (cns11643_1.h, cns11643_2.h, cns11643_3.h): Use new Unicode 3.1
4390 (cns11643_4a.h, cns11643_4b.h, cns11643_5.h, cns11643_6.h,
4391 cns11643_7.h, cns11643_15.h): New rules.
4392 (cns11643_inv.h): Change title.
4393 * lib/cns11643_1.h: Regenerated from Unicode 3.1 derived table.
4394 * lib/cns11643_3.h: Likewise.
4395 * lib/cns11643_4a.h: New file.
4396 * lib/cns11643_4b.h: New file.
4397 * lib/cns11643_4.h: New file.
4398 * lib/cns11643_5.h: New file.
4399 * lib/cns11643_6.h: New file.
4400 * lib/cns11643_7.h: New file.
4401 * lib/cns11643_15.h: New file.
4402 * lib/cns11643_inv.h: Regenerated from Unicode 3.1 derived table.
4403 (cns11643_inv_wctomb): Return 3 bytes now.
4404 * lib/cns11643.h: Include cns11643_4.h, cns11643_5.h, cns11643_6.h,
4405 cns11643_7.h, cns11643_15.h.
4406 (cns11643_wctomb): Now a simple alias to cns11643_inv_wctomb. Return
4407 plane number starting at 1, not 0.
4408 * lib/dec_hanyu.h (dec_hanyu_wctomb): Update for cns11643_wctomb
4410 * lib/euc_tw.h (euc_tw_mbtowc): Accept CNS11643 planes 4,5,6,7,15 as
4412 (euc_tw_wctomb): Update for cns11643_wctomb change.
4413 * lib/iso2022_cn.h (iso2022_cn_wctomb): Likewise.
4414 * lib/iso2022_cnext.h (iso2022_cn_ext_mbtowc): Accept CNS11643 planes
4416 (iso2022_cn_ext_wctomb): Update for cns11643_wctomb change.
4417 Try CNS11643 planes 4,5,6,7 as well.
4418 * tests/EUC-TW.TXT: Many additions, mostly in planes 3,4,5,6,7,15.
4419 * tests/EUC-TW.IRREVERSIBLE.TXT: Reflect additions to CNS11643 plane 1.
4422 2001-06-01 Bruno Haible <haible@clisp.cons.org>
4424 * tests/table-from.c (bmp_only): New variable.
4425 (ucs4_decode): If bmp_only, don't return characters outside Unicode
4427 (main): When testing UTF-8 or GB18030, set bmp_only to 1. Don't print
4428 a conversion line if ucs4_decode returns NULL.
4429 * tests/table-to.c (main): When testing encodings other than UTF-8 and
4430 GB18030, loop upto U+30000 instead of U+10000.
4432 2001-05-24 Bruno Haible <haible@clisp.cons.org>
4434 * lib/converters.h (mbtowc_funcs): Add flushwc member function.
4435 * lib/flushwc.h: New file.
4436 * lib/cp1255.h: Include flushwc.h.
4437 (cp1255_comp_table_data, cp1255_comp_table): New arrays.
4438 (cp1255_mbtowc): Compose base and combining characters.
4439 (cp1255_flushwc): New macro.
4440 * lib/vietcomb.h (viet_comp_table_data, viet_comp_table): New arrays.
4441 * lib/cp1258.h: Include flushwc.h.
4442 (cp1258_mbtowc): Compose base and combining characters.
4443 (cp1258_flushwc): New macro.
4444 * lib/tcvn.h: Include flushwc.h.
4445 (tcvn_mbtowc): Compose base and combining characters.
4446 (tcvn_flushwc): New macro.
4447 * lib/loop_unicode.h: (unicode_transliterate): New function, extracted
4448 from unicode_loop_convert.
4449 (unicode_loop_convert): Use unicode_transliterate.
4450 (unicode_loop_reset): Call xxx_flushwc and output the resulting
4452 * lib/encodings.def: Add xxx_flushwc member.
4453 * lib/encodings_aix.def: Likewise.
4454 * lib/encodings_dos.def: Likewise.
4455 * lib/encodings_local.def: Likewise.
4456 * lib/encodings_osf1.def: Likewise.
4457 * lib/genaliases.c: Add an argument to the DEFENCODING macro.
4458 * lib/genaliases2.c: Likewise.
4459 * lib/genflags.c: Likewise.
4460 * lib/iconv.c: Likewise.
4461 * tests/table-from.c (try): Reset the iconv descriptor before the main
4462 call, and flush it afterwards.
4463 (ucs4_decode): New function.
4464 (main): Allow up to 3 Unicode characters output. Call ucs4_decode.
4465 * tests/CP1255-snippet: New file.
4466 * tests/CP1255-snippet.UTF-8: New file.
4467 * tests/CP1258-snippet: New file.
4468 * tests/CP1258-snippet.UTF-8: New file.
4469 * tests/TCVN-snippet: New file.
4470 * tests/TCVN-snippet.UTF-8: New file.
4471 * tests/Makefile.in (check): Check combining behaviour of CP1255,
4473 * tests/Makefile.msvc (check): Likewise.
4474 * tests/Makefile.os2 (check): Likewise.
4476 2001-05-22 Bruno Haible <haible@clisp.cons.org>
4478 * lib/converters.h (RET_ILUNI): New macro.
4479 (RET_ILSEQ): Change value to -1.
4480 (RET_TOOFEW): Change value.
4481 * lib/loop_unicode.h (unicode_loop_convert): Write RET_ILUNI instead
4482 of 0. Update handling of xxx_mbtowc return value.
4483 * lib/genflags.c (emit_encoding): Likewise.
4484 * lib/ascii.h (ascii_wctomb): Use RET_ILUNI instead of RET_ILSEQ.
4485 * lib/armscii_8.h (armscii_8_wctomb): Likewise.
4486 * lib/big5.h (big5_wctomb): Likewise.
4487 * lib/big5hkscs.h (big5hkscs_wctomb): Likewise.
4488 * lib/ces_big5.h (ces_big5_wctomb): Likewise.
4489 * lib/ces_gbk.h (ces_gbk_wctomb): Likewise.
4490 * lib/cns11643.h (cns11643_wctomb): Likewise.
4491 * lib/cns11643_inv.h (cns11643_inv_wctomb): Likewise.
4492 * lib/cp437.h (cp437_wctomb): Likewise.
4493 * lib/cp775.h (cp775_wctomb): Likewise.
4494 * lib/cp850.h (cp850_wctomb): Likewise.
4495 * lib/cp852.h (cp852_wctomb): Likewise.
4496 * lib/cp855.h (cp855_wctomb): Likewise.
4497 * lib/cp856.h (cp856_wctomb): Likewise.
4498 * lib/cp857.h (cp857_wctomb): Likewise.
4499 * lib/cp861.h (cp861_wctomb): Likewise.
4500 * lib/cp862.h (cp862_wctomb): Likewise.
4501 * lib/cp864.h (cp864_wctomb): Likewise.
4502 * lib/cp865.h (cp865_wctomb): Likewise.
4503 * lib/cp866.h (cp866_wctomb): Likewise.
4504 * lib/cp869.h (cp869_wctomb): Likewise.
4505 * lib/cp874.h (cp874_wctomb): Likewise.
4506 * lib/cp922.h (cp922_wctomb): Likewise.
4507 * lib/cp932ext.h (cp932ext_wctomb): Likewise.
4508 * lib/cp932.h (cp932_wctomb): Likewise.
4509 * lib/cp936ext.h (cp936ext_wctomb): Likewise.
4510 * lib/cp949.h (cp949_wctomb): Likewise.
4511 * lib/cp950ext.h (cp950ext_wctomb): Likewise.
4512 * lib/cp950.h (cp950_wctomb): Likewise.
4513 * lib/cp1046.h (cp1046_wctomb): Likewise.
4514 * lib/cp1124.h (cp1124_wctomb): Likewise.
4515 * lib/cp1129.h (cp1129_wctomb): Likewise.
4516 * lib/cp1133.h (cp1133_wctomb): Likewise.
4517 * lib/cp1250.h (cp1250_wctomb): Likewise.
4518 * lib/cp1251.h (cp1251_wctomb): Likewise.
4519 * lib/cp1252.h (cp1252_wctomb): Likewise.
4520 * lib/cp1253.h (cp1253_wctomb): Likewise.
4521 * lib/cp1254.h (cp1254_wctomb): Likewise.
4522 * lib/cp1255.h (cp1255_wctomb): Likewise.
4523 * lib/cp1256.h (cp1256_wctomb): Likewise.
4524 * lib/cp1257.h (cp1257_wctomb): Likewise.
4525 * lib/cp1258.h (cp1258_wctomb): Likewise.
4526 * lib/dec_hanyu.h (dec_hanyu_wctomb): Likewise.
4527 * lib/dec_kanji.h (dec_kanji_wctomb): Likewise.
4528 * lib/euc_cn.h (euc_cn_wctomb): Likewise.
4529 * lib/euc_jp.h (euc_jp_wctomb): Likewise.
4530 * lib/euc_kr.h (euc_kr_wctomb): Likewise.
4531 * lib/euc_tw.h (euc_tw_wctomb): Likewise.
4532 * lib/gb12345ext.h (gb12345ext_wctomb): Likewise.
4533 * lib/gb12345.h (gb12345_wctomb): Likewise.
4534 * lib/gb18030ext.h (gb18030ext_wctomb): Likewise.
4535 * lib/gb18030.h (gb18030_wctomb): Likewise.
4536 * lib/gb18030uni.h (gb18030uni_wctomb): Likewise.
4537 * lib/gb2312.h (gb2312_wctomb): Likewise.
4538 * lib/gbkext_inv.h (gbkext_inv_wctomb): Likewise.
4539 * lib/gbk.h (gbk_wctomb): Likewise.
4540 * lib/georgian_academy.h (georgian_academy_wctomb): Likewise.
4541 * lib/georgian_ps.h (georgian_ps_wctomb): Likewise.
4542 * lib/hkscs.h (hkscs_wctomb): Likewise.
4543 * lib/hp_roman8.h (hp_roman8_wctomb): Likewise.
4544 * lib/hz.h (hz_wctomb): Likewise.
4545 * lib/iso2022_cnext.h (iso2022_cn_ext_wctomb): Likewise.
4546 * lib/iso2022_cn.h (iso2022_cn_wctomb): Likewise.
4547 * lib/iso2022_jp1.h (iso2022_jp1_wctomb): Likewise.
4548 * lib/iso2022_jp2.h (iso2022_jp2_wctomb): Likewise.
4549 * lib/iso2022_jp.h (iso2022_jp_wctomb): Likewise.
4550 * lib/iso2022_kr.h (iso2022_kr_wctomb): Likewise.
4551 * lib/iso646_cn.h (iso646_cn_wctomb): Likewise.
4552 * lib/iso646_jp.h (iso646_jp_wctomb): Likewise.
4553 * lib/iso8859_1.h (iso8859_1_wctomb): Likewise.
4554 * lib/iso8859_2.h (iso8859_2_wctomb): Likewise.
4555 * lib/iso8859_3.h (iso8859_3_wctomb): Likewise.
4556 * lib/iso8859_4.h (iso8859_4_wctomb): Likewise.
4557 * lib/iso8859_5.h (iso8859_5_wctomb): Likewise.
4558 * lib/iso8859_6.h (iso8859_6_wctomb): Likewise.
4559 * lib/iso8859_7.h (iso8859_7_wctomb): Likewise.
4560 * lib/iso8859_8.h (iso8859_8_wctomb): Likewise.
4561 * lib/iso8859_9.h (iso8859_9_wctomb): Likewise.
4562 * lib/iso8859_10.h (iso8859_10_wctomb): Likewise.
4563 * lib/iso8859_13.h (iso8859_13_wctomb): Likewise.
4564 * lib/iso8859_14.h (iso8859_14_wctomb): Likewise.
4565 * lib/iso8859_15.h (iso8859_15_wctomb): Likewise.
4566 * lib/iso8859_16.h (iso8859_16_wctomb): Likewise.
4567 * lib/isoir165ext.h (isoir165ext_wctomb): Likewise.
4568 * lib/isoir165.h (isoir165_wctomb): Likewise.
4569 * lib/jisx0201.h (jisx0201_wctomb): Likewise.
4570 * lib/jisx0208.h (jisx0208_wctomb): Likewise.
4571 * lib/jisx0212.h (jisx0212_wctomb): Likewise.
4572 * lib/johab.h (johab_wctomb): Likewise.
4573 * lib/johab_hangul.h (johab_hangul_wctomb, johab_hangul_decompose):
4575 * lib/koi8_r.h (koi8_r_wctomb): Likewise.
4576 * lib/koi8_ru.h (koi8_ru_wctomb): Likewise.
4577 * lib/koi8_u.h (koi8_u_wctomb): Likewise.
4578 * lib/ksc5601.h (ksc5601_wctomb): Likewise.
4579 * lib/mac_arabic.h (mac_arabic_wctomb): Likewise.
4580 * lib/mac_centraleurope.h (mac_centraleurope_wctomb): Likewise.
4581 * lib/mac_croatian.h (mac_croatian_wctomb): Likewise.
4582 * lib/mac_cyrillic.h (mac_cyrillic_wctomb): Likewise.
4583 * lib/mac_greek.h (mac_greek_wctomb): Likewise.
4584 * lib/mac_hebrew.h (mac_hebrew_wctomb): Likewise.
4585 * lib/mac_iceland.h (mac_iceland_wctomb): Likewise.
4586 * lib/mac_roman.h (mac_roman_wctomb): Likewise.
4587 * lib/mac_romania.h (mac_romania_wctomb): Likewise.
4588 * lib/mac_thai.h (mac_thai_wctomb): Likewise.
4589 * lib/mac_turkish.h (mac_turkish_wctomb): Likewise.
4590 * lib/mac_ukraine.h (mac_ukraine_wctomb): Likewise.
4591 * lib/mulelao.h (mulelao_wctomb): Likewise.
4592 * lib/nextstep.h (nextstep_wctomb): Likewise.
4593 * lib/sjis.h (sjis_wctomb): Likewise.
4594 * lib/tcvn.h (tcvn_wctomb): Likewise.
4595 * lib/tis620.h (tis620_wctomb): Likewise.
4596 * lib/ucs2be.h (ucs2be_wctomb): Likewise.
4597 * lib/ucs2.h (ucs2_wctomb): Likewise.
4598 * lib/ucs2internal.h (ucs2internal_wctomb): Likewise.
4599 * lib/ucs2le.h (ucs2le_wctomb): Likewise.
4600 * lib/ucs2swapped.h (ucs2swapped_wctomb): Likewise.
4601 * lib/ucs4.h (ucs4_wctomb): Likewise.
4602 * lib/uhc_1.h (uhc_1_wctomb): Likewise.
4603 * lib/uhc_2.h (uhc_2_wctomb): Likewise.
4604 * lib/utf16be.h (utf16be_wctomb): Likewise.
4605 * lib/utf16.h (utf16_wctomb): Likewise.
4606 * lib/utf16le.h (utf16le_wctomb): Likewise.
4607 * lib/utf32be.h (utf32be_wctomb): Likewise.
4608 * lib/utf32.h (utf32_wctomb): Likewise.
4609 * lib/utf32le.h (utf32le_wctomb): Likewise.
4610 * lib/utf7.h (utf7_wctomb): Likewise.
4611 * lib/utf8.h (utf8_wctomb): Likewise.
4612 * lib/viscii.h (viscii_wctomb): Likewise.
4613 * tools/8bit_tab_to_h.c (main): Likewise.
4614 * tools/cjk_tab_to_h.c (output_uni2charset_dense,
4615 output_uni2charset_sparse, do_gb18030uni): Likewise.
4617 2001-05-19 Bruno Haible <haible@clisp.cons.org>
4619 * Makefile.devel (all): Add man/{iconv.1,iconv*.3}.html.
4620 (man/%.html): New rule.
4621 * man/Makefile.in (docdir, htmldir): New variables.
4622 (install, installdirs): Install the HTML formatted man pages in
4624 (uninstall): Uninstall them.
4626 2001-05-20 Bruno Haible <haible@clisp.cons.org>
4628 * lib/cp1255.h (cp1255_decomp_table): New array.
4629 (cp1255_comb_table): New array.
4630 (cp1255_wctomb): Decompose Unicode characters.
4631 * tests/CP1255.IRREVERSIBLE.TXT: New file.
4633 2001-05-13 Bruno Haible <haible@clisp.cons.org>
4635 * lib/vietcomb.h: New file.
4636 * lib/cp1258.h: Include it.
4637 (cp1258_comb_table): New array.
4638 (cp1258_wctomb): Decompose Unicode characters.
4639 * lib/tcvn.h: Include it.
4640 (tcvn_comb_table): New array.
4641 (tcvn_wctomb): Decompose Unicode characters.
4642 * tests/CP1258.IRREVERSIBLE.TXT: New file.
4643 * tests/TCVN.IRREVERSIBLE.TXT: New file.
4645 2001-05-06 Bruno Haible <haible@clisp.cons.org>
4647 * lib/Makefile.msvc (config.h): Allow the 'del' command to fail.
4648 (iconv.lib): Likewise.
4650 2001-05-06 Bruno Haible <haible@clisp.cons.org>
4652 * lib/Makefile.in (CPPFLAGS, LDFLAGS): New variables.
4653 (CPP): Remove variable.
4654 (libiconv.la, libiconv_plug_linux.so, libiconv_plug_solaris.so,
4655 libiconv_plug_osf.so): Use LDFLAGS.
4656 (libiconv_plug_linux.so, libiconv_plug_solaris.so,
4657 libiconv_plug_osf.so, iconv.lo): Use CPPFLAGS.
4658 * lib/Makefile.msvc (CPP): Remove variable.
4659 * src/Makefile.in (CPPFLAGS, LDFLAGS): New variables.
4660 (CPP): Remove variable.
4661 (iconv): Use CPPFLAGS and LDFLAGS.
4662 * src/Makefile.msvc (CPP): Remove variable.
4663 * tests/Makefile.in (CPPFLAGS, LDFLAGS): New variables.
4664 (check, table-from, table-to): Use CPPFLAGS and LDFLAGS.
4665 * tests/Makefile.msvc (CPP): Remove variable.
4667 2001-05-06 Bruno Haible <haible@clisp.cons.org>
4669 * lib/Makefile.in (libiconv_plug_solaris.so): Change rule if not using
4670 gcc. Reported by Paananen Mikko <mikkopa@cs.tut.fi>.
4672 2001-04-11 Bruno Haible <haible@clisp.cons.org>
4674 Implement and document UTF-32, UTF-32BE, UTF-32LE.
4675 * src/utf32.h, src/utf32be.h, src/utf32le.h: New files.
4676 * src/converters.h: Include them.
4677 * src/encodings.def (UTF-32, UTF-32BE, UTF32LE): New encodings.
4678 * README, man/iconv_open.3: Add UTF-32, UTF-32BE, UTF32LE.
4679 * tests/Makefile.in (check): Check UTF-32, UTF-32BE, UTF32LE.
4680 * tests/Makefile.os2 (check): Likewise.
4681 * tests/Makefile.msvc (check): Likewise.
4682 * tests/UTF-32*snippet*: New files.
4684 * lib/ucs4.h (ucs4_mbtowc): Fix value of other-endian byte order.
4685 (ucs4_wctomb): Allow any 31-bit codepoint.
4687 2001-04-11 Bruno Haible <haible@clisp.cons.org>
4689 * tests/GB18030.TXT: Add mappings for all of U+0000..U+FFFF, including
4690 unassigned code points.
4691 * tests/table-from.c (main); When dumping GB18030, don't print code
4692 points larger than U+FFFF.
4694 2001-03-30 Bruno Haible <haible@clisp.cons.org>
4696 * tools/Makefile (GB18030uni.TXT): Use a table source which includes
4697 the unassigned Unicode code points.
4698 * lib/gb18030uni.h: Update.
4699 (gb18030uni_ranges): Remove bitmap_offset field.
4700 (gb18030uni_bitmap): Remove array.
4701 (gb18030uni_mbtowc): Omit gb18030uni_bitmap access.
4702 (gb18030uni_wctomb): Likewise.
4703 * lib/gb18030.h (gb18030_mbtowc): Handle Unicode characters >= 0x10000.
4704 (gb18030_wctomb): Likewise.
4706 2001-03-21 Bruno Haible <haible@clisp.cons.org>
4708 * INSTALL.generic (Particular Systems): Add recommendations for AIX 3.
4710 2001-03-21 Bruno Haible <haible@clisp.cons.org>
4712 * src/iconv.c (print_version): Now called GNU libiconv.
4714 2001-03-20 Bruno Haible <haible@clisp.cons.org>
4716 * README: This package is now called GNU libiconv.
4718 * tools/8bit_tab_to_h.c (main): Emit copyright notice to the output
4720 * tools/cjk_tab_to_h.c (output_title): Likewise.
4721 * tools/cjk_variants.c (main): Likewise.
4722 * lib/gentranslit.c (main): Likewise.
4724 2001-03-19 Bruno Haible <haible@clisp.cons.org>
4726 * autoconf/aclocal.m4 (CL_CANONICAL_HOST): Always define
4727 ac_config_guess and ac_config_sub. Then ignore requests for
4728 AC_CONFIG_AUX_DIR_DEFAULT or AC_CANONICAL_HOST.
4730 2001-03-10 Bruno Haible <haible@clisp.cons.org>
4732 * INSTALL.generic: New section "Particular Systems".
4734 2001-03-10 Bruno Haible <haible@clisp.cons.org>
4736 * lib/Makefile.in (libiconv.la): Pass flag -no-undefined. Needed on
4737 platforms like BeOS.
4739 * lib/loop_wchar.h (mbstate_t): Don't typedef if already #defined in
4742 2001-03-06 Bruno Haible <haible@clisp.cons.org>
4744 * Version 1.6 released.
4745 * include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
4746 Bump version number.
4747 * lib/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:3:0.
4749 2001-03-05 Bruno Haible <haible@clisp.cons.org>
4751 Provide all encodings used by OSF/1 5.1 locales.
4752 * lib/dec_kanji.h: New file.
4753 * lib/dec_hanyu.h: New file.
4754 * lib/converters.h: Include them if USE_OSF1 is defined.
4755 * lib/encodings_osf1.def: New file.
4756 * lib/genflags.c (main): Include it. Define USE_OSF1.
4757 * lib/genaliases2.c (main): Include it conditionally.
4758 * lib/iconv.c: Define USE_OSF1 on OSF/1.
4759 Include encodings_osf1.def and aliases_osf1.h.
4760 * lib/Makefile.in (iconv.lo): Depend on encodings_osf1.def and
4762 * Makefile.devel (lib/aliases_osf1.h): New target.
4763 (all): Depend on lib/aliases_osf1.h.
4764 (lib/flags.h): Depend on lib/encodings_osf1.def.
4766 2001-03-01 Bruno Haible <haible@clisp.cons.org>
4768 * tools/Makefile (cp775.h): New target.
4770 * lib/cp775.h: New file.
4771 * lib/converters.h: Include it.
4772 * lib/encodings_dos.def (CP775): New encoding.
4774 2001-02-25 Bruno Haible <haible@clisp.cons.org>
4776 * lib/iconv.c (iconv_open): locale_charset() doesn't return NULL any
4779 2001-02-24 Bruno Haible <haible@clisp.cons.org>
4781 * src/iconv.c (convert): Use ICONV_CONST.
4782 * tests/table-from.c: Include config.h.
4783 (try): Use ICONV_CONST.
4784 * tests/table-to.c: Include config.h.
4785 (main): Use ICONV_CONST.
4786 * tests/Makefile.in (INCLUDES): Add -I../lib.
4787 * tests/Makefile.os2 (INCLUDES): Likewise.
4788 * tests/Makefile.msvc (INCLUDES): Add -I..\lib.
4790 2001-02-24 Bruno Haible <haible@clisp.cons.org>
4792 Provide all encodings used by DOS locales.
4793 * tools/Makefile (cp437.h, cp852.h, cp855.h, cp857.h, cp861.h,
4794 cp864.h, cp865.h, cp869.h): New targets.
4796 * lib/cp437.h: New file.
4797 * lib/cp852.h: New file.
4798 * lib/cp855.h: New file.
4799 * lib/cp857.h: New file.
4800 * lib/cp861.h: New file.
4801 * lib/cp864.h: New file.
4802 * lib/cp865.h: New file.
4803 * lib/cp869.h: New file.
4804 * lib/converters.h: Include them if USE_DOS is defined.
4805 * lib/encodings_dos.def: New file.
4806 * lib/genflags.c (main): Include it. Define USE_DOS.
4807 * lib/genaliases2.c (main): Include it conditionally.
4808 * lib/iconv.c: Define USE_DOS on DJGPP.
4809 Include encodings_dos.def and aliases_dos.h.
4810 * lib/Makefile.in (iconv.lo): Depend on encodings_dos.def and
4812 * Makefile.devel (lib/aliases_dos.h): New target.
4813 (all): Depend on lib/aliases_dos.h.
4814 (lib/flags.h): Depend on lib/encodings_dos.def.
4816 2001-02-23 Bruno Haible <haible@clisp.cons.org>
4818 * src/iconv.c [DJGPP]: Include <io.h> and <unistd.h>.
4819 (SET_BINARY) [O_BINARY]: New macro.
4820 (usage): Mention --binary if available.
4821 (convert): Use SET_BINARY instead of setmode.
4823 Reported by Juan Manuel Guerrero <st001906@hrz1.hrz.tu-darmstadt.de>.
4825 2001-02-25 Bruno Haible <haible@clisp.cons.org>
4827 * autoconf/ltconfig:
4828 sed -e 's/reload object files/produce relocatable object files/'.
4830 2001-02-20 Bruno Haible <haible@clisp.cons.org>
4832 * src/iconv.c (usage, main): Make -f and -t options optional.
4833 * man/iconv.1: Mark them as optional.
4835 2001-02-20 Bruno Haible <haible@clisp.cons.org>
4837 * tools/Makefile (GB18030ext.TXT, GB18030uni.TXT): Generate from
4839 * lib/gb18030uni.h, lib/gb18030ext.h: Add mapping 0xA989 -> U+303E,
4840 0xFE5E -> U+2E97. Shift the entire four-byte range.
4841 * tests/GB18030.TXT: Regenerated.
4843 2001-02-20 Bruno Haible <haible@clisp.cons.org>
4845 Better support for DOS/Windows platforms.
4846 * autoconf/ltconfig: Upgrade to libtool-1.3.5.
4847 * autoconf/ltmain.sh: Likewise.
4848 * autoconf/aclocal.m4: Likewise.
4849 * autoconf/install-sh: New file.
4850 * configure.in: Call AC_OBJEXT and AC_EXEEXT. Call AC_CONFIG_AUX_DIR.
4852 2001-02-20 Bruno Haible <haible@clisp.cons.org>
4854 * Makefile.in (libdir, includedir, mandir): Use the autoconf
4855 determined value, in order to respect the configure arguments.
4856 * lib/Makefile.in (libdir): Likewise.
4857 * src/Makefile.in (bindir): Likewise.
4858 * man/Makefile.in (mandir): Likewise.
4860 2001-02-04 Bruno Haible <haible@clisp.cons.org>
4862 * lib/translit.def: Add all the neutral transliterations from glibc.
4863 * lib/gentranslit.c (main): Allow UTF-8 replacements which are in
4864 UCS-2 but not in ISO-8859-1. Generate a table of 'unsigned short'.
4865 Avoid accessing data[-1].
4866 * lib/loop_unicode.h (unicode_loop_convert): Change type of pointer
4869 2001-01-05 Bruno Haible <haible@clisp.cons.org>
4871 Implement and document CP862.
4872 * tools/Makefile (ALL): Add cp862.h.
4873 (cp862.h): New target.
4874 * lib/cp862.h: New file.
4875 * lib/converters.h: Include it.
4876 * lib/encodings.def (CP862): New encoding.
4877 * README, man/iconv_open.3: Add CP862.
4878 * tests/Makefile.in (check): Check CP862.
4879 * tests/Makefile.msvc (check): Likewise.
4880 * tests/Makefile.os2 (check): Likewise.
4881 * tests/CP862.TXT: New file.
4883 2000-12-18 Bruno Haible <haible@clisp.cons.org>
4885 * autoconf/mbstate_t.m4: New file, from textutils-2.0.10.
4886 * Makefile.devel (OTHERMACROS): Add it.
4887 * configure.in: Call AC_MBSTATE_T.
4888 * lib/config.h.in (mbstate_t): New definition.
4889 * lib/loop_wchar.h (mbrtowc): For BeOS, declare and define fallback.
4891 2000-12-12 Bruno Haible <haible@clisp.cons.org>
4893 * Makefile.in: Use $(MAKE) instead of $(MAKE) -r. Needed with Solaris
4894 "make", which doesn't set MAKE as expected by @SET_MAKE@ if -r is
4895 given. Reported by Toshimitsu Fujiwara.
4897 2000-12-08 Bruno Haible <haible@clisp.cons.org>
4899 * Makefile.in (exec_prefix): Use configure's --exec-prefix argument.
4900 * lib/Makefile.in (exec_prefix): Likewise.
4901 * src/Makefile.in (exec_prefix): Likewise.
4902 * man/Makefile.in (exec_prefix): Likewise.
4904 2000-12-02 Bruno Haible <haible@clisp.cons.org>
4906 * Version 1.5 released.
4907 * include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
4908 Bump version number.
4909 * lib/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:2:0.
4911 2000-12-02 Bruno Haible <haible@clisp.cons.org>
4913 * Makefile.in (mostlyclean, clean, distclean, maintainer-clean):
4914 Remove files installed in lib by libcharset.
4915 * Makefile.msvc (mostlyclean): Likewise.
4917 * Makefile.in (check): Depend on target 'all'.
4918 * Makefile.os2 (check): Likewise.
4919 * Makefile.msvc (check): Depend on target 'force' as well.
4921 * src/iconv.c (usage): Take an exitcode argument.
4922 (print_version): New function.
4923 (main): Recognize --help and --version command line options.
4925 2000-12-02 Bruno Haible <haible@clisp.cons.org>
4927 * Makefile.msvc: Replace STATIC with its opposite flag, DLL.
4928 * lib/Makefile.msvc: Likewise.
4929 * src/Makefile.msvc: Likewise.
4930 * tests/Makefile.msvc: Likewise.
4932 2000-12-01 Bruno Haible <haible@clisp.cons.org>
4934 * src/iconv.c: Include <fcntl.h>. Define fallbacks for setmode, fileno.
4935 (force_binary): New variable.
4936 (convert): If requested, set the input O_BINARY.
4937 (main): Accept --binary option. If requested, set the output O_BINARY.
4938 * tests/check-stateful.bat: Pass --binary to iconv.
4939 * tests/check-stateful.cmd: Likewise.
4940 * tests/check-translit.bat: Likewise.
4941 * tests/check-translit.cmd: Likewise.
4943 2000-12-01 Bruno Haible <haible@clisp.cons.org>
4945 * include/iconv.h.in (_libiconv_version): New declaration.
4946 * lib/iconv.c (_libiconv_version): New variable.
4948 2000-11-30 Bruno Haible <haible@clisp.cons.org>
4950 * Makefile.msvc (all): File now named lib/libcharset.h.
4951 (clean, distclean, maintainer-clean): Likewise.
4953 2000-11-23 Bruno Haible <haible@clisp.cons.org>
4955 * lib/*: Move here all files from src/*.
4956 * src/*: Move all files to lib.
4957 * lib/Makefile.in (distclean): No need to remove config.status,
4958 config.log, config.cache.
4959 * configure.in: Require lib/iconv.c, not src/iconv.c. Create
4960 lib/config.h, not src/config.h. Also create lib/Makefile.
4961 * Makefile.in (all): Install libcharset into lib, not src. Recurse
4963 (install-lib): Recurse into lib, not src.
4964 (install): Recurse into libcharset, lib and src.
4965 (installdirs, uninstall): Likewise.
4966 (check, mostlyclean, clean, distclean, maintainer-clean): Likewise.
4967 * Makefile.msvc (all): Recurse into lib and src.
4968 (install): Recurse into libcharset, lib and src.
4969 (installdirs, uninstall): Likewise.
4970 (check, mostlyclean, clean, distclean, maintainer-clean): Likewise.
4971 * Makefile.os2 (all): Recurse into lib and src.
4972 (install-lib): Recurse into lib, not src.
4973 (install, uninstall): Recurse into lib and src.
4974 (check, mostlyclean, clean, distclean, maintainer-clean): Likewise.
4975 * Makefile.devel (lib/config.h.msvc): Renamed from src/config.h.msvc.
4976 (lib/aliases.h): Renamed from src/aliases.h.
4977 (lib/aliases.gperf): Renamed from src/aliases.gperf.
4978 (lib/aliases_aix.h): Renamed from src/aliases_aix.h.
4979 (lib/flags.h): Renamed from src/flags.h.
4980 (lib/translit.h): Renamed from src/translit.h.
4981 * src/iconv.c: Moved here from tests/iconv.c.
4982 * src/Makefile.in: New file.
4983 * src/Makefile.msvc: New file.
4984 * src/Makefile.os2: New file.
4985 * tests/Makefile.in (iconv): Remove target.
4986 (../lib/libiconv.la): Renamed from ../src/libiconv.la.
4987 (clean): No need to remove iconv.
4988 * tests/Makefile.msvc (iconv.exe): Remove target.
4989 * tests/Makefile.os2 (iconv.exe): Likewise.
4990 * tests/check-stateful: iconv is in ../src.
4991 * tests/check-stateful.bat: Likewise.
4992 * tests/check-stateful.cmd: Likewise.
4993 * tests/check-translit: iconv is in ../src.
4994 * tests/check-translit.bat: Likewise.
4995 * tests/check-translit.cmd: Likewise.
4996 * man/iconv.1: New file.
4997 * man/Makefile.in (install, installdirs, uninstall): Also install *.1
4999 * man/Makefile.os2 (MAN3): Renamed from MAN.
5000 (MAN1): New variable.
5001 (install, uninstall): Also install *.1 man pages.
5003 2000-11-21 Bruno Haible <haible@clisp.cons.org>
5005 * Makefile.msvc (all, check, mostlyclean, clean, distclean,
5006 maintainer-clean): Recurse into libcharset.
5007 (clean, distclean, maintainer-clean): Remove src\libcharset.h.
5008 * src/Makefile.msvc (LIBCHARSET_OBJECTS): New variable.
5009 (iconv.lib): Link with $(LIBCHARSET_OBJECTS).
5011 2000-11-18 Bruno Haible <haible@clisp.cons.org>
5013 * src/cp950.h (cp950_mbtowc, cp950_wctomb): Change implementation
5014 so that it agrees with Microsoft's definition of CP950.
5015 * tests/CP950.TXT: Likewise.
5016 * tests/CP950.IRREVERSIBLE.TXT: Add 0xA244, 0xA2CC, 0xA2CE.
5018 2000-11-18 Bruno Haible <haible@clisp.cons.org>
5020 Add support for locale dependent "char" and "wchar_t" encodings.
5021 * libcharset: New subdirectory.
5022 * src/loop_unicode.h: New file, extracted from src/iconv.c.
5023 * src/loop_wchar.h: New file.
5024 * src/loops.h: New file. Include loop_unicode.h and loop_wchar.h.
5025 * src/encodings_local.def: New file.
5026 * src/genaliases.c: Also create aliases for encodings_local.def.
5027 * src/converters.h (conv_struct): Add lfuncs field.
5028 * src/genflags.c: Add dummy definitions of struct loop_funcs.
5029 * src/iconv.c: Include libcharset.h.
5030 (loop_funcs): New structure.
5031 Treat encodings_local.def like encodings.def.
5033 (iconv_open): Move the bulk of the code to loop_unicode.h.
5035 (iconvctl): Extend determination of TRIVIALP to wchar_t conversion
5037 * src/Makefile.in (PLUG_SOURCES): Remove variable.
5038 (LIBCHARSET_OBJECTS): New variable.
5039 (libiconv.la): Link in the LIBCHARSET_OBJECTS.
5040 (libiconv_plug_linux.so, libiconv_plug_solaris.so,
5041 libiconv_plug_osf.so): Link in the LIBCHARSET_OBJECTS, using
5043 (iconv.lo): Depend on encodings_local.def.
5044 * src/Makefile.msvc (iconv.obj): Depend on encodings_local.def.
5045 * src/Makefile.os2 (iconv.obj): Likewise.
5046 * configure.in: Add tests for locale.h, mbrtowc, wcrtomb, setlocale.
5047 Recurse into libcharset.
5048 * src/config.h.in (HAVE_LOCALE_H, HAVE_MBRTOWC, HAVE_WCRTOMB,
5049 HAVE_SETLOCALE): New macros.
5050 * tests/iconv.c: Include config.h and locale.h.
5051 (main): Call setlocale.
5052 * tests/Makefile.in (iconv): Search for config.h in ../src.
5053 * tests/Makefile.os2 (iconv.exe): Likewise.
5054 * tests/Makefile.msvc (iconv.exe): Likewise.
5055 * README, man/iconv_open.3: Document "char" and "wchar_t" encodings.
5056 * Makefile.in: After "cd", use "&&" not ";".
5057 (all, check, mostlyclean, clean, distclean, maintainer-clean):
5058 Recurse into libcharset.
5059 * Makefile.devel (all): Recurse into libcharset.
5060 (src/aliases.gperf): Depend on src/encodings_local.def.
5062 2000-11-18 Bruno Haible <haible@clisp.cons.org>
5064 * src/converters.h (ucs4_t): New type.
5065 (wchar_t): Remove locally defined override.
5066 (mbtowc_funcs, wctomb_funcs): Use ucs4_t instead of wchar_t.
5067 * src/iconv.c (iconv): Likewise.
5068 * src/genflags.c (emit_encoding): Use ucs4_t instead of wchar_t.
5069 * tools/8bit_tab_to_h.c: Use "ucs4_t" instead of "wchar_t".
5070 * tools/cjk_tab_to_h.c: Likewise.
5071 * src/armscii_8.h: Use ucs4_t instead of wchar_t.
5072 * src/ascii.h: Likewise.
5073 * src/big5.h: Likewise.
5074 * src/big5hkscs.h: Likewise.
5075 * src/ces_big5.h: Likewise.
5076 * src/ces_gbk.h: Likewise.
5077 * src/cns11643.h: Likewise.
5078 * src/cns11643_1.h: Likewise.
5079 * src/cns11643_2.h: Likewise.
5080 * src/cns11643_3.h: Likewise.
5081 * src/cns11643_inv.h: Likewise.
5082 * src/cp1046.h: Likewise.
5083 * src/cp1124.h: Likewise.
5084 * src/cp1129.h: Likewise.
5085 * src/cp1133.h: Likewise.
5086 * src/cp1250.h: Likewise.
5087 * src/cp1251.h: Likewise.
5088 * src/cp1252.h: Likewise.
5089 * src/cp1253.h: Likewise.
5090 * src/cp1254.h: Likewise.
5091 * src/cp1255.h: Likewise.
5092 * src/cp1256.h: Likewise.
5093 * src/cp1257.h: Likewise.
5094 * src/cp1258.h: Likewise.
5095 * src/cp850.h: Likewise.
5096 * src/cp856.h: Likewise.
5097 * src/cp866.h: Likewise.
5098 * src/cp874.h: Likewise.
5099 * src/cp922.h: Likewise.
5100 * src/cp932.h: Likewise.
5101 * src/cp932ext.h: Likewise.
5102 * src/cp936ext.h: Likewise.
5103 * src/cp949.h: Likewise.
5104 * src/cp950.h: Likewise.
5105 * src/cp950ext.h: Likewise.
5106 * src/euc_cn.h: Likewise.
5107 * src/euc_jp.h: Likewise.
5108 * src/euc_kr.h: Likewise.
5109 * src/euc_tw.h: Likewise.
5110 * src/gb12345.h: Likewise.
5111 * src/gb12345ext.h: Likewise.
5112 * src/gb18030.h: Likewise.
5113 * src/gb18030ext.h: Likewise.
5114 * src/gb18030uni.h: Likewise.
5115 * src/gb2312.h: Likewise.
5116 * src/gbk.h: Likewise.
5117 * src/gbkext1.h: Likewise.
5118 * src/gbkext2.h: Likewise.
5119 * src/gbkext_inv.h: Likewise.
5120 * src/georgian_academy.h: Likewise.
5121 * src/georgian_ps.h: Likewise.
5122 * src/hkscs.h: Likewise.
5123 * src/hp_roman8.h: Likewise.
5124 * src/hz.h: Likewise.
5125 * src/iso2022_cn.h: Likewise.
5126 * src/iso2022_cnext.h: Likewise.
5127 * src/iso2022_jp.h: Likewise.
5128 * src/iso2022_jp1.h: Likewise.
5129 * src/iso2022_jp2.h: Likewise.
5130 * src/iso2022_kr.h: Likewise.
5131 * src/iso646_cn.h: Likewise.
5132 * src/iso646_jp.h: Likewise.
5133 * src/iso8859_1.h: Likewise.
5134 * src/iso8859_10.h: Likewise.
5135 * src/iso8859_13.h: Likewise.
5136 * src/iso8859_14.h: Likewise.
5137 * src/iso8859_15.h: Likewise.
5138 * src/iso8859_16.h: Likewise.
5139 * src/iso8859_2.h: Likewise.
5140 * src/iso8859_3.h: Likewise.
5141 * src/iso8859_4.h: Likewise.
5142 * src/iso8859_5.h: Likewise.
5143 * src/iso8859_6.h: Likewise.
5144 * src/iso8859_7.h: Likewise.
5145 * src/iso8859_8.h: Likewise.
5146 * src/iso8859_9.h: Likewise.
5147 * src/isoir165.h: Likewise.
5148 * src/isoir165ext.h: Likewise.
5149 * src/java.h: Likewise.
5150 * src/jisx0201.h: Likewise.
5151 * src/jisx0208.h: Likewise.
5152 * src/jisx0212.h: Likewise.
5153 * src/johab.h: Likewise.
5154 * src/johab_hangul.h: Likewise.
5155 * src/koi8_r.h: Likewise.
5156 * src/koi8_ru.h: Likewise.
5157 * src/koi8_u.h: Likewise.
5158 * src/ksc5601.h: Likewise.
5159 * src/mac_arabic.h: Likewise.
5160 * src/mac_centraleurope.h: Likewise.
5161 * src/mac_croatian.h: Likewise.
5162 * src/mac_cyrillic.h: Likewise.
5163 * src/mac_greek.h: Likewise.
5164 * src/mac_hebrew.h: Likewise.
5165 * src/mac_iceland.h: Likewise.
5166 * src/mac_roman.h: Likewise.
5167 * src/mac_romania.h: Likewise.
5168 * src/mac_thai.h: Likewise.
5169 * src/mac_turkish.h: Likewise.
5170 * src/mac_ukraine.h: Likewise.
5171 * src/mulelao.h: Likewise.
5172 * src/nextstep.h: Likewise.
5173 * src/sjis.h: Likewise.
5174 * src/tcvn.h: Likewise.
5175 * src/tis620.h: Likewise.
5176 * src/ucs2.h: Likewise.
5177 * src/ucs2be.h: Likewise.
5178 * src/ucs2internal.h: Likewise.
5179 * src/ucs2le.h: Likewise.
5180 * src/ucs2swapped.h: Likewise.
5181 * src/ucs4.h: Likewise.
5182 * src/ucs4be.h: Likewise.
5183 * src/ucs4internal.h: Likewise.
5184 * src/ucs4le.h: Likewise.
5185 * src/ucs4swapped.h: Likewise.
5186 * src/uhc_1.h: Likewise.
5187 * src/uhc_2.h: Likewise.
5188 * src/utf16.h: Likewise.
5189 * src/utf16be.h: Likewise.
5190 * src/utf16le.h: Likewise.
5191 * src/utf7.h: Likewise.
5192 * src/utf8.h: Likewise.
5193 * src/viscii.h: Likewise.
5195 2000-11-18 Bruno Haible <haible@clisp.cons.org>
5197 Make transliteration optional.
5198 * src/iconv.c (iconv_open): Strip off //TRANSLIT suffix from names.
5199 Set transliteration on if and only if tocode ends in //TRANSLIT.
5200 * README, man/iconv_open.3: Document how to enable transliteration.
5201 * tests/check-translit: Add //TRANSLIT to iconv's 't' argument.
5202 * tests/check-translit.bat: Likewise.
5203 * tests/check-translit.cmd: Likewise.
5205 2000-11-18 Bruno Haible <haible@clisp.cons.org>
5207 * man/iconv.3: Fix typo.
5209 2000-10-31 Bruno Haible <haible@clisp.cons.org>
5211 * README, man/iconv_open.3: Document JOHAB again.
5213 2000-11-15 Bruno Haible <haible@clisp.cons.org>
5215 * Makefile.msvc: Add support for MFLAGS and DEBUG parameters.
5216 (STATIC): Change default from 0 to 1.
5217 * src/Makefile.msvc: Likewise.
5218 * tests/Makefile.msvc: Likewise.
5219 * tests/check-stateless.bat: Call 'sort' with no arguments.
5221 2000-11-12 Bruno Haible <haible@clisp.cons.org>
5223 * autoconf/config.guess, autoconf/config.sub: Upgrade to newest
5224 version from GNU CVS.
5226 2000-10-24 Bruno Haible <haible@clisp.cons.org>
5228 * Version 1.4 released.
5229 * include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
5230 Bump version number.
5231 * src/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:1:0.
5233 2000-10-23 Bruno Haible <haible@clisp.cons.org>
5235 Implement and document GB18030 and BIG5HKSCS.
5236 * tools/cjk_tab_to_h.c (row_byte_hkscs, byte_row_hkscs, do_hkscs): New
5238 (do_gb18030uni): New function.
5239 (main): Accept gb18030ext, gb18030uni, hkscs.
5240 * tools/Makefile (ALL): Add gb18030ext.h, gb18030uni.h, hkscs.h.
5241 (gb18030ext.h, GB18030ext.TXT, gb18030uni.h, GB18030uni.TXT,
5242 hkscs.h): New targets.
5243 * src/gb18030ext.h, src/gb18030uni.h, src/gb18030.h: New files.
5244 * src/hkscs.h, src/big5hkscs.h: New files.
5245 * src/converters.h: Include gb18030.h and big5hkscs.h.
5246 * src/encodings.def (GB18030, BIG5HKSCS): New encodings.
5247 * README, man/iconv_open.3: Add GB18030, BIG5HKSCS.
5248 * tests/Makefile.in (check): Check GB18030, BIG5HKSCS.
5249 * tests/Makefile.msvc (check): Likewise.
5250 * tests/Makefile.os2 (check): Likewise.
5251 * tests/GB18030.TXT: New file.
5252 * tests/BIG5HKSCS.TXT, tests/BIG5HKSCS.IRREVERSIBLE.TXT: New files.
5254 2000-10-23 Bruno Haible <haible@clisp.cons.org>
5256 * tests/table-from.c (try, main): Use UCS-4-INTERNAL instead of
5257 UCS-2-INTERNAL, to avoid problems with UCS-2 surrogate handling.
5258 * tests/table-to.c (main): Likewise.
5260 2000-10-22 Bruno Haible <haible@clisp.cons.org>
5262 * src/gentranslit.c (main): Read the input in UTF-8 encoding.
5264 2000-10-09 Bruno Haible <haible@clisp.cons.org>
5266 CPU recognition on OpenBSD.
5267 * autoconf/aclocal.m4 (CL_WORDS_LITTLEENDIAN): Recognize __m68k__,
5268 __mc68020__, __MIPSEB__, __MIPSEL__, __m88k__ as CPU indicators.
5270 2000-10-03 Bruno Haible <haible@clisp.cons.org>
5272 * src/gentranslit.c (main): Don't output non-ASCII ISO-8859-1
5273 character literals, use the numeric value instead.
5274 Reported by Shin-Hsien Yeh <shyeh@alcatel.com.tw>.
5276 2000-09-29 Bruno Haible <haible@clisp.cons.org>
5278 * autoconf/aclocal.m4 (CL_CANONICAL_HOST): Fix bug in 2000-05-23
5281 2000-09-25 Bruno Haible <haible@clisp.cons.org>
5283 * autoconf/aclocal.m4 (CL_WORDS_LITTLEENDIAN): Recognize __i386__
5284 as equivalent to __i386. For OpenBSD.
5286 2000-09-21 Bruno Haible <haible@clisp.cons.org>
5288 * src/utf16.h (utf16_wctomb): Reject single surrogates.
5289 * src/utf16be.h (utf16be_wctomb): Likewise.
5290 * src/utf16le.h (utf16le_wctomb): Likewise.
5291 * src/ucs2.h (ucs2_mbtowc, ucs2_wctomb): Likewise.
5292 * src/ucs2be.h (ucs2be_mbtowc, ucs2be_wctomb): Likewise.
5293 * src/ucs2le.h (ucs2le_mbtowc, ucs2le_wctomb): Likewise.
5294 * src/ucs2internal.h (ucs2internal_mbtowc, ucs2internal_wctomb):
5296 * src/ucs2swapped.h (ucs2swapped_mbtowc, ucs2swapped_wctomb):
5299 2000-09-15 Bruno Haible <haible@clisp.cons.org>
5301 * Makefile.in (install, installdirs, uninstall): Support DESTDIR.
5302 * src/Makefile.in (install, installdirs, uninstall): Likewise.
5303 * man/Makefile.in (install, installdirs, uninstall): Likewise.
5305 2000-09-11 Bruno Haible <haible@clisp.cons.org>
5307 * src/utf7.h (utf7_mbtowc): Fix combining of UTF-16 surrogates.
5309 2000-08-26 Bruno Haible <haible@clisp.cons.org>
5311 * autoconf/acgeneral.m4 (AC_OUTPUT): Use braces in exec_prefix default
5314 2000-07-04 Akira Hatakeyama <akira@sra.co.jp>
5315 Bruno Haible <haible@clisp.cons.org>
5317 * os2/iconv.def, README.os2, Makefile.os2, src/Makefile.os2,
5318 tests/Makefile.os2, man/Makefile.os2, tests/check-stateful.cmd,
5319 tests/check-stateless.cmd, tests/check-translit.cmd: New files.
5321 2000-06-28 Bruno Haible <haible@clisp.cons.org>
5323 * src/ucs2internal.h (ucs2internal_mbtowc): Avoid gcc warning about
5325 * src/ucs4internal.h (ucs4internal_mbtowc): Likewise.
5326 * src/ucs2swapped.h (ucs2swapped_mbtowc, ucs2swapped_wctomb): Verify
5327 sizeof(unsigned short).
5328 * src/ucs4swapped.h (ucs4swapped_mbtowc, ucs4swapped_mbtowc): Verify
5329 sizeof(unsigned int).
5330 Reported by François Pinard <pinard@iro.umontreal.ca>.
5332 2000-05-29 Bruno Haible <haible@clisp.cons.org>
5334 * autoconf/aclocal.m4 (CL_PROG_INSTALL): Fix typo.
5335 Reported by Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>.
5337 2000-05-23 Bruno Haible <haible@clisp.cons.org>
5339 * autoconf/aclocal.m4 (CL_CANONICAL_HOST): Determine host_cpu,
5340 host_vendor, host_os correctly if $host has more than two hyphens.
5342 2000-04-15 Bruno Haible <haible@clisp.cons.org>
5344 * Version 1.3 released.
5345 * include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
5346 Bump version number.
5347 * src/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:0:0.
5349 2000-04-15 Bruno Haible <haible@clisp.cons.org>
5352 * INSTALL.generic: New file.
5354 Implement and document UCS-2BE, UCS-2LE, UCS-4BE, UCS-4LE.
5355 * src/ucs2be.h, src/ucs2le.h, src/ucs4be.h, src/ucs4le.h: New files.
5356 * src/converters.h: Include them.
5357 * src/ucs2swapped.h: Remove #defines for UCS-2-BE, UCS-2-LE.
5358 * src/ucs4swapped.h: Remove #defines for UCS-4-BE, UCS-4-LE.
5359 * src/encodings.def (UCS-2BE): Renamed from UCS-2-BE.
5360 (UCS-2LE): Renamed from UCS-2-LE.
5361 (UCS-4BE): Renamed from UCS-4-BE.
5362 (UCS-4LE): Renamed from UCS-4-LE.
5363 * Makefile.devel (src/aliases.h): Pass option "-i 1" to gperf.
5364 * README, man/iconv_open.3: Add UCS-2BE, UCS-2LE, UCS-4BE, UCS-4LE.
5365 * tests/Makefile.in (check): Check UCS-2BE, UCS-2LE, UCS-4BE, UCS-4LE.
5366 * tests/Makefile.msvc (check): Likewise.
5367 * tests/UCS-*snippet*: New files.
5369 Allow building as a shared library on Windows.
5370 Allow running the tests on Windows.
5371 * Makefile.devel (include/iconv.h.msvc): Remove rule.
5372 (include/iconv.h.msvc-static, include/iconv.h.msvc-shared): New
5375 * windows/dllexport.h: New file.
5376 * include/iconv.h.msvc: Remove file.
5377 * include/iconv.h.msvc-static, include/iconv.h.msvc-shared: New
5378 autogenerated files.
5379 * Makefile.msvc (STATIC, DEBUG): Default to 0.
5380 (all): Choose either include\iconv.h.msvc-static or
5381 include\iconv.h.msvc-shared.
5382 (check): Depend on all.
5383 (all, check, mostlyclean, clean, distclean, maintainer-clean):
5384 Recurse into tests directory.
5385 * src/Makefile.msvc (STATIC, DEBUG): Default to 0.
5386 (WARN_CFLAGS, PICFLAGS, OPTIMFLAGS): New variables.
5387 (CFLAGS): Use them. Add -MD and -DBUILDING_LIBICONV.
5388 (RESOURCES): New variable.
5389 (iconv.lib): Change rule when building DLL.
5390 (clean, distclean): One filename per line.
5391 * tests/Makefile.msvc: New file.
5392 * tests/check-stateful.bat, tests/check-stateless.bat,
5393 tests/check-translit.bat: New files.
5394 * tests/uniq-u.c: New file, taken from GNU textutils.
5395 * README.win32: Update.
5396 Based on patches by Taro Muraoka <koron@tka.att.ne.jp>.
5398 2000-04-14 Bruno Haible <haible@clisp.cons.org>
5400 Fix an OSF/1 problem.
5401 * configure.in: Define GCC variable for substitution.
5402 * src/Makefile.in (libiconv_plug_osf.so): Change rule if not using
5405 2000-04-13 Bruno Haible <haible@clisp.cons.org>
5407 Fix a SunOS 4 problem.
5408 * include/iconv.h.in: If EILSEQ is not defined by the system, define
5409 it to ENOENT, not EINVAL.
5411 2000-04-02 Bruno Haible <haible@clisp.cons.org>
5413 Allow building on filesystems lacking symlinks and hard links.
5414 * Makefile.devel (autoconf/aclocal.m4): Replace AC_PROG_LN_S with
5416 * configure.in: Add CL_PROG_LN, CL_PROG_LN_S.
5417 * src/Makefile.in (LN): Use autoconfigured value @LN@.
5418 (LN_S): Use autoconfigured value @LN_S@.
5420 2000-03-15 Bruno Haible <haible@clisp.cons.org>
5422 * Version 1.2 released.
5423 * include/iconv.h.in (_LIBICONV_VERSION): Bump version number.
5424 * src/Makefile.in (LIBICONV_VERSION_INFO): Define to 1:1:1.
5426 2000-03-14 Bruno Haible <haible@clisp.cons.org>
5428 Implement and document UTF-16BE and UTF16LE.
5429 * src/utf16be.h, src/utf16le.h: New files.
5430 * src/converters.h: Include them.
5431 * src/encodings.def (UTF-16BE, UTF16LE): New encodings.
5432 * README, man/iconv_open.3: Add UTF-16BE, UTF16LE.
5433 * tests/Makefile.in (check): Check UTF-16, UTF-16BE, UTF16LE.
5434 * tests/UTF-16*snippet*: New files.
5436 * src/utf16.h (utf16_wctomb): Output a byte order mark.
5438 2000-03-13 Bruno Haible <haible@clisp.cons.org>
5440 Provide all encodings used by AIX locales.
5441 * tools/Makefile (all): Add cp856.h, cp922.h, cp1046.h, cp1124.h,
5443 (cp856.h, cp922.h, cp1046.h, cp1124.h, cp1129.h): New targets.
5444 * src/cp856.h, src/cp922.h, src/cp943.h, src/cp1046.h, src/cp1124.h,
5445 src/cp1129.h: New files.
5446 * src/converters.h: Include them if USE_AIX is defined.
5447 * src/encodings_aix.def: New file, with CP856, CP922, CP943, CP1046,
5449 * src/genflags.c: Define USE_AIX. Include encodings_aix.def.
5450 * src/genaliases2.c: New file.
5451 * src/iconv.c: Define USE_AIX on AIX.
5452 Include encodings_aix.def and aliases_aix.h.
5453 (aliases2_lookup): New function.
5454 (iconv_open): Call aliases2_lookup.
5455 * src/Makefile.in (iconv.lo): Depend on encodings_aix.def and
5457 * Makefile.devel (all): Add src/aliases_aix.h.
5458 (src/aliases_aix.h): New rule.
5459 (src/flags.h): Depend on src/encodings_aix.def.
5461 2000-02-24 Bruno Haible <haible@clisp.cons.org>
5463 * src/iconv.c (iconv): Don't write beyond the end of the output buffer.
5464 Reported by Edmund Grimley Evans <edmundo@rano.org>.
5466 2000-02-22 Bruno Haible <haible@clisp.cons.org>
5468 * src/utf7.h (direct_tab, xdirect_tab): Treat tab like space.
5470 2000-02-15 Bruno Haible <haible@clisp.cons.org>
5472 * src/iconv.c (iconv): Add cast in xxx_reset call.
5474 2000-02-05 Bruno Haible <haible@clisp.cons.org>
5476 * src/tis620.h: Simplify.
5478 2000-01-27 Bruno Haible <haible@clisp.cons.org>
5480 * Makefile.devel (CLISP_DIR): Change to "..".
5482 2000-01-24 Bruno Haible <haible@clisp.cons.org>
5484 * Version 1.1 released.
5485 * include/iconv.h.in (_LIBICONV_VERSION): Bump version number.
5486 * src/Makefile.in (LIBICONV_VERSION_INFO): Define to 1:0:1.
5488 2000-01-23 Bruno Haible <haible@clisp.cons.org>
5490 * src/utf7.h (utf7_wctomb): If base64 encoding is not active, encode
5493 2000-01-22 Bruno Haible <haible@clisp.cons.org>
5495 * include/iconv.h.in (iconvctl): New declaration.
5496 (ICONV_TRIVIALP, ICONV_GET_TRANSLITERATE, ICONV_SET_TRANSLITERATE):
5498 * src/iconv.c (iconvctl): New function.
5500 * tests/Makefile.in: Add a rule for ../src/libiconv.la. Define $(MAKE).
5502 Solve a build problem.
5503 * include/iconv.h.in: Renamed from include/libiconv.h.in.
5504 * Makefile.devel: libiconv.h -> iconv.h.
5505 * Makefile.in: Likewise.
5506 * configure.in: Likewise. Remove check for <iconv.h>.
5507 * src/iconv.c: Include iconv.h instead of libiconv.h.
5508 * tests/iconv.c, tests/table-from.c, tests/table-to.c: Likewise.
5510 * README, man/iconv_open.3: Don't document JOHAB any more.
5512 * man/iconv.3: Clarify return value again.
5514 2000-01-16 Bruno Haible <haible@clisp.cons.org>
5517 * src/encodings.def (ISO-8859-14): Add alias ISO-IR-199.
5518 (ISO-8859-15): Add alias ISO-IR-203.
5519 (EUC-CN): Add alias CN-GB, from RFC 1922.
5520 (BIG5): Add alias CN-BIG5, from RFC 1922.
5521 * Makefile.devel (src/aliases.h): Add 8th character to key set.
5524 * src/encodings.def (JIS_X0201): Drop JISX0201.1976-0 alias.
5525 (JIS_X0208): Drop JIS_X0208.1983-0, JIS_X0208.1983-1 aliases.
5526 (KSC_5601): Drop KSC5601.1987-0 alias.
5528 Improve GB/T 12345 (not used yet).
5529 * tools/Makefile (gb12345ext.h): Use GB12345-more.TXT.
5530 * src/gb12345ext.h: Regenerated.
5532 Improve and document CP949.
5533 * tools/Makefile (all): Add uhc_1.h and uhc_2.h.
5534 (uhc_1.h, uhc_2.h): New rules.
5535 * tools/cjk_tab_to_h.c (output_charset2uni_noholes_monotonic): New
5537 (output_uni2charset_sparse): Take an additional boolean argument.
5538 All callers changed.
5539 (*_uhc_1, *_uhc_2): New functions.
5540 (main): Treat uhc_1 and uhc_2.
5541 * src/uhc_1.h, src/uhc_2.h: New files.
5542 * src/cp949.h: New file, include them.
5543 * src/converters.h: Include it.
5544 * src/encodings.def (KSC_5601): Remove alias CP949.
5545 (CP949): New encoding.
5546 * README, man/iconv_open.3: Add CP949.
5547 * tests/Makefile.in (check): Check CP949.
5548 * tests/CP949.TXT: New file.
5551 * README, man/iconv_open.3: Add CP932.
5552 * tests/Makefile.in (check): Check CP932.
5553 * tests/CP932.TXT, tests/CP932.IRREVERSIBLE.TXT: New files.
5555 * Makefile.devel (src/flags.h): Depend on src/converters.h.
5557 * tests/Makefile.in (check): Check JIS_X0201.
5558 * tests/JIS_X0201.TXT: New file.
5560 * src/euc_kr.h (euc_kr_wctomb): Shrink size of buf.
5561 * src/iso2022_kr.h (iso2022_kr_wctomb): Likewise.
5563 * src/iso2022_cnext.h (iso2022_cn_ext_mbtowc): Use isoir165_mbtowc.
5564 (iso2022_cn_ext_wctomb): Use isoir165_wctomb.
5566 Add ISO-IR-165 (undocumented).
5567 * tools/Makefile (all): Add isoir165ext.h.
5568 (isoir165ext.h): New rule.
5569 * tools/cjk_tab_to_h.c (main): Treat isoir165ext like gb2312.
5570 * src/isoir165.h, src/isoir165ext.h: New files.
5571 * src/converters.h: Include it.
5572 * src/encodings.def: Add ISO-IR-165.
5573 * tests/Makefile.in (check): Check ISO-IR-165.
5574 * tests/ISO-IR-165.TXT, tests/ISO-IR-165.IRREVERSIBLE.TXT: New files.
5576 Add ISO646-CN (undocumented).
5577 * src/iso646_cn.h: New file.
5578 * src/converters.h: Include it.
5579 * src/encodings.def: Add ISO646-CN.
5580 * tests/Makefile.in (check): Check ISO646-CN.
5581 * tests/ISO646-CN.TXT: New file.
5583 Add ISO646-JP (undocumented).
5584 * src/iso646_jp.h: New file.
5585 * src/converters.h: Include it.
5586 * src/encodings.def: Add ISO646-JP.
5587 * tests/Makefile.in (check): Check ISO646-JP.
5588 * tests/ISO646-JP.TXT: New file.
5590 2000-01-05 Bruno Haible <haible@clisp.cons.org>
5593 * tools/Makefile (all): Add iso8859_16.h.
5594 (iso8859_16.h): New rule.
5595 * src/iso8859_16.h: New file.
5596 * src/converters.h: Include it.
5597 * src/encodings.def: Add ISO-8859-16.
5598 * README, man/iconv_open.3: Add ISO-8859-16.
5599 * tests/Makefile.in (check): Check ISO-8859-16.
5600 * tests/ISO-8859-16.TXT: New file.
5602 * man/iconv.3: Clarify what happens *inbuf in case 3.
5604 * src/iso8859_8.h: Update using newest table from ftp.unicode.org.
5605 * tests/ISO-8859-8.TXT: Likewise.
5607 2000-01-04 Bruno Haible <haible@clisp.cons.org>
5609 * Version 1.0 released.
5610 * include/libiconv.h.in (_LIBICONV_VERSION): Bump version number.
5611 * src/Makefile.in (LIBICONV_VERSION_INFO): Define to 0:1:0.
5612 (libiconv.la): Use LIBICONV_VERSION_INFO.
5614 2000-01-03 Bruno Haible <haible@clisp.cons.org>
5616 * tests/Makefile.in: New file.
5617 tests/check-stateless, tests/table-from.c, tests/table-to.c,
5618 tests/*.TXT, tests/genutf8.c: New files, checks for stateless
5620 tests/check-stateful, tests/iconv.c, tests/*-snippet*: New files,
5621 checks for stateful encodings.
5622 * Makefile.in (all, check, mostlyclean, clean, distclean,
5623 maintainer-clean): Descend into tests directory.
5624 * configure.in: Add tests/Makefile to AC_OUTPUT duties.
5626 * src/gentranslit.c: New file.
5627 * Makefile.devel (src/translit.h): New rule.
5628 * src/translit.def, src/translit.h: New files.
5629 * src/iconv.c: Include it.
5630 (iconv): Transliterate using translit.h table.
5632 * src/genflags.c: New file.
5633 * Makefile.devel (src/flags.h): New rule.
5634 * src/flags.h: New file.
5635 * src/iconv.c: Include it.
5636 (encoding): Add field 'oflags'.
5637 (all_encodings): Initialize the field 'oflags'.
5638 (iconv_open): Copy field 'oflags'.
5639 (iconv): Transliterate quotation marks U+2018, U+2019, U+201A.
5640 * src/Makefile.in (iconv.lo): Update dependencies.
5642 * src/converters.h: New file, extracted from src/iconv.c.
5643 * src/iconv.c: Include it.
5644 * src/Makefile.in (iconv.lo): Update dependencies.
5646 * tools/cjk_variants.c: New file.
5647 * tools/Makefile (ALL): Add cjk_variants.h.
5648 (cjk_variants.h, cjk_variants): New rules.
5649 * src/cjk_variants.h: New file.
5650 * src/iconv.c: Include it.
5651 (iconv): Use cjk_variants for transliteration.
5653 * man/iconv.3: Fix description of return value.
5654 * euc_kr.h (euc_kr_wctomb): Remove Hangul transliteration.
5655 * iso2022_kr.h (iso2022kr_wctomb): Likewise.
5656 * src/iconv.c (iconv): Do Hangul transliteration here and increment
5657 result once for every transliterated character.
5658 * src/johab_hangul.h (johab_hangul_decompose): Change result array
5659 from 'unsigned char*' to 'wchar_t*'.
5661 * src/cp1258.h (cp1258_mbtowc): Return RET_ILSEQ instead of storing
5664 * src/georgian_ps.h (georgian_ps_wctomb): Accept 0x00e6.
5666 * src/euc_jp.h (euc_jp_wctomb): Don't treat U+005C and U+007E like
5669 * src/euc_tw.h (euc_tw_mbtowc): Fix typo.
5671 * src/cp950.h (cp950_mbtowc, cp950_wctomb): Exclude the range
5674 * tools/cjk_tab_to_h.c (read_table_ksc5601): Some Hangul range was
5675 not being excluded. Fix that.
5676 * src/ksc5601.h: Regenerated.
5677 * src/johab.h (johab_mbtowc): Don't accept 0xDA{A1..D3} - this is
5678 valid in KSC5601/KSX1001 but not in JOHAB.
5680 * src/iconv.c (conv_struct): Add fields iindex, oindex.
5681 (iconv_open): Fill in iindex, oindex.
5683 * src/encodings.def (UCS-2-BE): Add aliases "UNICODE-1-1" and
5684 "csUnicode11", from IANA charset list.
5685 (MacRoman): Add aliases "MAC" and "csMacintosh" for "MACINTOSH",
5686 from IANA charset list.
5687 (JIS_X0208): Add aliases "X0208", "ISO-IR-87", "csISO87JISX0208",
5688 from IANA charset list.
5689 (GB_2312-80): New encoding, from IANA charset list.
5691 * README, man/iconv_open.3: Add MacIceland and MacUkraine.
5693 * Makefile.devel: Add rules for src/aliases.h and src/aliases.gperf.
5694 (all): Depend on src/aliases.h.
5695 * src/Makefile.in: Remove rules for $(srcdir)/aliases.h and
5696 $(srcdir)/aliases.gperf.
5699 * src/Makefile.in (libiconv_plug_linux.so): Remove unneeded "-ldl".
5701 1999-12-31 Bruno Haible <haible@clisp.cons.org>
5703 * Version 0.3 released.