1 2019-04-26 Bruno Haible <bruno@clisp.org>
4 $ cd po; make update-po
6 2019-04-26 Bruno Haible <bruno@clisp.org>
8 Prepare for version 1.16.
9 * configure.ac: Bump version number to 1.15.
10 * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
11 * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 8:1:6.
12 * src/iconv.c (print_version): Update copyright year.
13 * windows/iconv.rc: Likewise.
14 * windows/libiconv.rc: Likewise.
15 * README: Update download link.
17 2019-04-26 Bruno Haible <bruno@clisp.org>
19 Tweak exported symbols when --enable-relocatable is used.
20 * lib/Makefile.in (DEFS): Map 'relocate2' to a different symbol.
22 2019-04-01 Bruno Haible <bruno@clisp.org>
24 build: Separate git operations from build operations.
25 * gitsub.sh: New file, from gnulib.
26 * .gitmodules: New file.
27 * autogen.sh: Remove all git operations. Look at GNULIB_SRCDIR
28 environment variable. Ignore the GNULIB_TOOL environment variable.
29 * HACKING: Explain when to use gitsub.sh.
31 2019-03-07 Bruno Haible <bruno@clisp.org>
33 Avoid signed integer overflow during shifts.
34 Reported by Jeffrey Walton <noloader@gmail.com>.
35 * lib/tcvn.h (tcvn_wctomb): Use unsigned integer type for bit mask
37 * lib/viscii.h (viscii_wctomb): Likewise.
39 2019-03-04 Bruno Haible <bruno@clisp.org>
41 Add support for --enable-relocatable to libcharset.
42 * autogen.sh: Copy some more files to libcharset/build-aux/ and
45 2019-03-04 Bruno Haible <bruno@clisp.org>
47 Update --enable-relocatable support after gnulib changed.
48 * configure.ac: Move the LT_INIT invocation before the gl_RELOCATABLE
49 invocation. Remove unused argument to gl_RELOCATABLE.
51 2019-01-27 Bruno Haible <bruno@clisp.org>
53 Accommodate a shell that is not in /bin/sh.
54 * Makefile.in (SHELL): Use the value found by configure.
55 * lib/Makefile.in (SHELL): Likewise.
56 * man/Makefile.in (SHELL): Likewise.
57 * src/Makefile.in (SHELL): Likewise.
58 * tests/Makefile.in (SHELL): Likewise.
59 (check, check-extra-yes): Use SHELL to run the check-* scripts.
61 2019-01-27 Bruno Haible <bruno@clisp.org>
63 Update after gnulib changed.
64 * Makefile.in (GNULIB_IMPORTED_FILES): Remove build-aux/snippet/*.
66 2019-01-27 Bruno Haible <bruno@clisp.org>
68 Update support for building with MSVC. Automake does not install ar-lib.
69 * autogen.sh: Fetch build-aux/ar-lib here.
70 * Makefile.devel (srclib/Makefile.in): Don't fetch build-aux/ar-lib
72 * Makefile.in (AUTOMAKE_IMPORTED_FILES): Remove build-aux/ar-lib.
73 (IMPORTED_FILES): Add build-aux/ar-lib.
75 2019-01-06 Bruno Haible <bruno@clisp.org>
77 Revisit handling of file descriptors closed by the parent process.
78 * src/iconv.c (main): Add comment.
80 2018-10-23 Bruno Haible <bruno@clisp.org>
82 Remove outdated DJGPP build infrastructure.
83 Approved by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
84 * djgpp: Remove directory.
85 * INSTALL.djgpp: Remove file.
86 * Makefile.in (SOURCE_FILES): Remove them.
88 2018-10-23 Bruno Haible <bruno@clisp.org>
90 Update after gnulib changed.
91 * configure.ac (AC_PREREQ): Bump minimum Autoconf version to 2.63.
93 2018-09-22 Bruno Haible <bruno@clisp.org>
95 Avoid some warnings in MSVC build.
96 * include/export.h: Handle MSVC compiler as well.
98 2018-09-22 Bruno Haible <bruno@clisp.org>
100 Update from gnulib. Move mapping tables into the code.
101 * autogen.sh: Don't create libcharset/m4/relocatable-lib.m4.
102 * Makefile.in (mostlyclean, clean, distclean, maintainer-clean): Don't
103 remove lib/charset.alias.
104 * tests/check-subst: Don't set CHARSETALIASDIR.
106 2018-05-04 Bruno Haible <bruno@clisp.org>
108 Drop special instructions for OSF/1.
109 * INSTALL.generic: Remove the recommendation for OSF/1.
111 2018-05-04 Bruno Haible <bruno@clisp.org>
113 Simplify: Remove the ability to install a preloadable library.
114 * preload/*: Remove directory.
115 * Makefile.devel: Don't recurse into 'preload'.
116 * Makefile.in: Likewise.
117 * configure.ac: Don't declare 'preload' as a subdirectory.
118 * README, NEWS: Update.
120 2018-05-04 Bruno Haible <bruno@clisp.org>
122 Simplify code. Drop support for Borland C++ on Windows.
123 * lib/iconv.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
125 * lib/iconv_open1.h: Likewise.
127 2018-05-04 Bruno Haible <bruno@clisp.org>
129 * lib/relocatable.c: Update from gnulib.
131 2018-05-04 Bruno Haible <bruno@clisp.org>
133 Switch to automake 1.16.
134 * autogen.sh: Update comment.
135 * Makefile.devel (AUTOMAKE, ACLOCAL): Switch to version 1.16.
136 * libcharset/Makefile.devel (ACLOCAL): Likewise.
137 * preload/Makefile.devel (ACLOCAL): Likewise.
139 2018-03-27 Bruno Haible <bruno@clisp.org>
142 * README: Don't recommend to use --prefix=/usr/local, as it produces
143 problems with GCC (since GCC's treatment of /usr/local/include and
144 /usr/local/lib is inconsistent by default). Don't recommend to use
145 the iconv.m4 installed by GNU gettext, because it won't work when
146 GNU automake and GNU gettext are installed with different --prefix
147 options; instead recommend the 'iconv' module from gnulib.
149 2018-01-27 Bruno Haible <bruno@clisp.org>
152 * INSTALL.windows: Renamed from README.windows.
153 * INSTALL.djgpp: Renamed from README.djgpp.
154 * Makefile.in (SOURCE_FILES): Update.
156 2018-01-03 Bruno Haible <bruno@clisp.org>
158 Fix installation in 64-bit mode on AIX.
159 * lib/Makefile.in (AR): New variable.
160 (install): Use it instead of hardcoding 'ar'.
162 2017-11-26 Bruno Haible <bruno@clisp.org>
164 Avoid end-of-lines problem in generated shell scripts on Cygwin.
165 Patch by Feiyun Wang <feiyunw@yahoo.com>.
166 * lib/genaliases.c (main): Create canonical.sh and canonical_local.sh
167 with Unix end-of-line characters, regardless of Cygwin choice of
168 text mode vs. binary mode.
170 2017-07-15 Bruno Haible <bruno@clisp.org>
172 Allow building statically linked binaries, through LDFLAGS="-static".
174 <https://lists.gnu.org/archive/html/bug-libtool/2017-07/msg00000.html>.
175 * build-aux/ltmain.sh (func_mode_help, func_mode_link): In the link
176 mode, accept option '-static-uninstalled-libs' in place of '-static',
177 and make '-static' an equivalent of '-all-static'.
179 2017-07-15 Bruno Haible <bruno@clisp.org>
181 Don't attempt to build preloadable_libiconv.so when linking statically.
182 * preload/configure.ac (enable_shared, enable_static): Don't force
183 shared libraries when LDFLAGS indicates static linking.
184 (PLUGLIB): Set to empty when is not configured for building shared
187 2017-07-15 Bruno Haible <bruno@clisp.org>
189 Get rid of autom4te.cache directories, as far as possible.
190 * Makefile.devel (srclib/Makefile.in, aclocal.m4, configure,
191 config.h.in): Remove autom4te.cache after invoking aclocal, autoconf,
192 autoheader, automake.
193 * preload/Makefile.devel (aclocal, configure): Likewise.
195 2017-05-18 Bruno Haible <bruno@clisp.org>
197 * lib/relocatable.h: Update from gnulib.
198 * lib/relocatable.c: Update from gnulib.
200 2017-01-30 Bruno Haible <bruno@clisp.org>
202 Prepare for version 1.15.
203 * src/iconv.c (print_version): Update copyright year.
204 * windows/iconv.rc: Likewise.
205 * windows/libiconv.rc: Likewise.
207 2016-12-29 Bruno Haible <bruno@clisp.org>
209 Make Makefile.devel consistent with .gitignore.
210 * Makefile.devel (srclib/Makefile.in): Depend on aclocal.m4.
211 (totally-clean): Remove also aclocal.m4.
213 2016-12-25 Bruno Haible <bruno@clisp.org>
216 * autogen.sh: Emit a "done" diagnostic when autogen.sh completed
219 2016-12-25 Bruno Haible <bruno@clisp.org>
221 Reorder Makefile.devel.
222 * Makefile.devel: Reorder: put gnulib targets before autotools targets.
224 2016-12-14 Bruno Haible <bruno@clisp.org>
226 Cleanup useless removals.
227 * lib/Makefile.in (distclean): No need to remove 'libtool'.
229 2016-12-04 Bruno Haible <bruno@clisp.org>
232 * Makefile.devel: Update comments about release process.
234 2016-12-04 Bruno Haible <bruno@clisp.org>
236 Create tarballs through an Automake-like "make dist" command.
237 * Makefile.in (SOURCE_FILES, LIBTOOL_IMPORTED_FILES,
238 AUTOMAKE_OLD_IMPORTED_FILES, AUTOMAKE_IMPORTED_FILES, IMPORTED_FILES,
239 GENERATED_FILES, DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
240 (distdir): New target.
241 (PACKAGE, VERSION, TAR, GZIP): New macros.
243 * lib/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
244 DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
245 (distdir): New target.
246 * man/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
247 DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
248 (distdir): New target.
249 * preload/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
250 DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
251 (distdir): New target.
252 * src/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
253 DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
254 (distdir): New target.
255 * tests/Makefile.in (SOURCE_FILES, IMPORTED_FILES, GENERATED_FILES,
256 DISTRIBUTED_BUILT_FILES, DISTFILES): New macros.
257 (distdir): New target.
259 2016-12-04 Bruno Haible <bruno@clisp.org>
261 Remove duplicates of imported files from version control.
262 * autogen.sh: Copy imported files to libcharset.
264 2016-12-04 Bruno Haible <bruno@clisp.org>
266 Always use the newest released copies of files brought in from Automake.
267 * Makefile.devel (srclib/Makefile.in): Make sure to get new versions of
268 files brought in by automake.
269 * build-aux/install-sh: Remove from version control.
270 * build-aux/missing: Likewise.
272 2016-12-04 Bruno Haible <bruno@clisp.org>
274 Always use the newest copies of config.guess, config.sub.
275 * Makefile.devel (gnulib-imported-files): New target.
276 * autogen.sh: Invoke it.
277 * build-aux/config.guess: Remove from version control.
278 * build-aux/config.sub: Likewise.
280 2016-12-04 Bruno Haible <bruno@clisp.org>
282 Always use the newest copy of fcntl-o.m4.
283 * m4/fcntl-o.m4: Remove file. Rely on srcm4/fcntl-o.m4 instead.
285 2016-12-04 Bruno Haible <bruno@clisp.org>
287 Remove obsolete documentation.
288 * PORTS: Remove file.
290 2016-12-03 Bruno Haible <bruno@clisp.org>
292 Make Makefile.devel more useful for the users of the released tarball.
293 * Makefile.devel (srclib/Makefile.gnulib): Don't force this target.
294 (gnulib-clean): New target.
295 (totally-clean): New target. Do the removals from autogen.sh. Also,
296 remove lib/aliases*.gperf, lib/canonical*.h, man/iconvctl.3.html,
297 man/iconv_open_into.3.html.
298 * autogen.sh: Invoke target gnulib-clean before srclib/Makefile.gnulib.
299 Invoke target totally-clean before all.
300 * preload/Makefile.devel (totally-clean): New target.
302 2016-12-03 Bruno Haible <bruno@clisp.org>
304 Modernize configure.ac.
305 * configure.ac: Use 2-argument AC_INIT. Avoid an AM_INIT_AUTOMAKE
307 * preload/configure.ac: Use 2-argument AC_INIT. Use AC_CONFIG_SRCDIR.
309 2016-12-03 Bruno Haible <bruno@clisp.org>
311 Towards reproducible builds.
312 * Makefile.devel (man/%.html): Remove the CreationDate comment line
315 2016-12-04 Bruno Haible <bruno@clisp.org>
317 Update to gettext-0.19.8.1.
318 * ABOUT-NLS: Update through 'gettextize'.
320 2016-12-03 Bruno Haible <bruno@clisp.org>
322 Update documentation.
323 * HACKING: Refer to the Git repository.
325 2016-12-03 Bruno Haible <bruno@clisp.org>
327 Avoid compilation warnings in 'genflags' program.
328 * lib/genflags.c: Avoid warnings from GCC's -Wunused-function option.
330 2016-12-02 Bruno Haible <bruno@clisp.org>
332 * relocatable.c: Update from gnulib.
334 2016-11-25 Bruno Haible <bruno@clisp.org>
336 Prepare for version 1.15.
337 * configure.ac: Bump version number to 1.15.
339 * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
340 * windows/iconv.rc: Update.
341 * windows/libiconv.rc: Update.
342 * Makefile.devel: Update comments.
343 * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 8:0:6.
344 * src/iconv.c (print_version): Update copyright year.
346 2016-11-23 Bruno Haible <bruno@clisp.org>
348 Update installation instructions for Windows.
349 * README.windows: Assume a 64-bit Windows. Explain both 32-bit and
350 64-bit builds. Add instructions for the MS Visual C/C++ tool chain.
351 Revamp instructions for Cygwin.
353 2016-11-23 Bruno Haible <bruno@clisp.org>
355 Drop the nickname "woe32".
356 * README.windows: Renamed from README.woe32.
358 2016-11-22 Bruno Haible <bruno@clisp.org>
360 Update support for building with MSVC.
361 * Makefile.devel (srclib/Makefile.in): Import 'ar-lib' and 'compile'
363 * lib/Makefile.in (install-lib, install): Install the .la file with
364 $(INSTALL), not $(INSTALL_DATA). Otherwise the native Windows DLL gets
365 installed without execution permissions, and programs linked to it fail:
366 in a Cygwin shell with exit code 127, or from a cmd.exe window with a
367 dialog "The application was unable to start correctly (0xc0000022)."
369 2016-11-19 Bruno Haible <bruno@clisp.org>
371 Fix link error when compiling with gcc -O0.
372 * lib/iconv.c (aliases2_lookup): Make static.
373 Reported by Chung-Lin Tang <chunglin.tang@gmail.com>
374 at https://savannah.gnu.org/bugs/?47953 .
376 2016-11-17 Bruno Haible <bruno@clisp.org>
378 UTF-8: Reject surrogates and out-of-range code points.
379 * lib/utf8.h (utf8_mbtowc, utf8_wctomb): Reject code points in the
380 range 0xD800..0xDFFF and >= 0x110000.
381 * tests/genutf8.c (main): Don't emit mappings for 0xD800..0xDFFF.
383 2016-10-22 Bruno Haible <bruno@clisp.org>
385 Switch to libtool 2.4.6.
386 * m4/libtool.m4: Update from libtool-2.4.6, with modifications:
387 2008-04-06 Bruno Haible <bruno@clisp.org>
388 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
389 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
391 * m4/ltoptions.m4: Likewise.
392 * m4/ltversion.m4: Likewise.
393 * build-aux/ltmain.sh: Likewise.
395 2016-10-14 Bruno Haible <bruno@clisp.org>
397 Use 'size_t', not 'int', for the length of a string.
398 * lib/iconv.c: Include <limits.h>.
399 * lib/genflags.c: Likewise.
400 * lib/converters.h (struct mbtowc_funcs, struct wctomb_funcs): Change
401 'int n' parameter to 'size_t n'.
402 (RET_COUNT_MAX): New macro.
403 * lib/*.h: Use 'size_t n' instead of 'int n'.
404 * lib/ucs2.h (ucs2_mbtowc): Make sure 'count' does not cause an 'int'
406 * lib/ucs4.h (ucs4_mbtowc): Likewise.
407 * lib/utf16.h (utf16_mbtowc): Likewise.
408 * lib/utf32.h (utf32_mbtowc): Likewise.
409 * tools/8bit_tab_to_h.c: Generate function signatures with 'size_t n'.
410 * tools/cjk_tab_to_h.c: Likewise.
411 * NEWS: Mention the change.
413 2016-10-04 Bruno Haible <bruno@clisp.org>
415 Extend CP1255 mapping.
416 * lib/cp1255.h (cp1255_2uni, cp1255_page05): Map 0xCA to U+05BA.
417 * tests/CP1255.TXT: Likewise.
418 This matches https://www.unicode.org/Public/MAPPINGS/VENDORS/MICSFT/WindowsBestFit/bestfit1255.txt
419 and what the native Windows converter does since at least Windows XP.
421 2016-10-01 Ben Noordhuis <info@bnoordhuis.nl> (tiny change)
422 Bruno Haible <bruno@clisp.org>
424 Remove large stack requirement from gentranslit.
425 * lib/gentranslit.c (main): Heap-allocate large arrays.
426 * Makefile.devel (lib/translit.h): Remove 'ulimit -s unlimited' command.
428 2015-12-10 Ben Noordhuis <info@bnoordhuis.nl> (tiny change)
430 Remove unused array from gentranslit.
431 * lib/gentranslit.c (main): Remove unused array.
432 * Makefile.devel (CC): Add -Wall option.
433 Reported in https://savannah.gnu.org/bugs/?46663 .
435 2016-10-01 Bruno Haible <bruno@clisp.org>
438 * src/iconv.c (main): Increment i after parsing the --silent option.
439 Reported in https://savannah.gnu.org/bugs/?41187 .
441 2016-10-01 Bruno Haible <bruno@clisp.org>
443 Update to current gnulib.
444 * Makefile.devel (GNULIB_MODULES): Remove memmove.
445 * tests/Makefile.in (INCLUDES): Make sure to include the top-level
446 "config.h". Needed for the 'binary-io' module.
448 2016-10-01 Bruno Haible <bruno@clisp.org>
450 Switch to automake 1.15.
451 * autogen.sh: Update comment.
452 * Makefile.devel (AUTOMAKE, ACLOCAL): Switch to version 1.15.
453 (srclib/Makefile.in): Don't remove auxiliary files brought in by
455 * preload/Makefile.devel (ACLOCAL): Switch to version 1.15.
456 * srclib/Makefile.am (AUTOMAKE_OPTIONS): Add subdir-objects.
457 * build-aux/missing: Update from automake-1.15.
459 2016-10-01 Bruno Haible <bruno@clisp.org>
461 Remove autogenerated doc files from version control.
462 * man/iconvctl.3.html: Remove file.
463 * man/iconv_open_into.3.html: Remove file.
465 2012-12-06 Bruno Haible <bruno@clisp.org>
467 Change copyright holder of man pages.
468 * man/*.[13]: Replace myself with FSF.
470 2012-06-30 Bruno Haible <bruno@clisp.org>
472 Make it possible to run 'genaliases2' on native Windows.
473 * lib/genaliases2.c (main): Expect 3 arguments. Open the output files
474 explicitly. Complain if they don't exist.
475 * Makefile.devel (lib/aliases_*.h): Pass the output filenames as
476 arguments to genaliases.
477 Reported at <https://savannah.gnu.org/bugs/?36748>.
479 Make it possible to run 'genaliases' on native Windows.
480 * lib/genaliases.c (main): Expect 3 arguments. Open the output files
481 explicitly. Complain if they don't exist. Improve error checking.
482 * Makefile.devel (lib/aliases*.h): Pass the output filenames as
483 arguments to genaliases.
484 Reported at <https://savannah.gnu.org/bugs/?36748>.
486 2012-05-13 Bruno Haible <bruno@clisp.org>
488 Tweak the GB18030 converter to map 0x8135F437 to U+E7C7.
489 * lib/gb18030.h (gb18030_pua2charset, gb18030_wctomb): Remove mapping
490 from U+E7C7 to 0xA8BC.
491 * lib/gb18030uni.h (gb18030uni_mbtowc): Treat 0x8135F437 as a special
493 (gb18030uni_wctomb): Treat U+E7C7 as a special case.
494 * tests/GB18030-BMP.TXT: Map 0x8135F437 to U+E7C7, not U+1E3F.
495 * tests/GB18030.IRREVERSIBLE.TXT: Remove irreversible mappings for
496 0x8135F437 and U+E7C7.
498 2012-04-28 Bruno Haible <bruno@clisp.org>
500 Switch to autoconf 2.69 and automake 1.12.
501 * autogen.sh: Update comment.
502 * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.69.
503 (AUTOMAKE, ACLOCAL): Switch to version 1.12.
504 * preload/Makefile.devel (AUTOCONF): Switch to version 2.69.
505 (ACLOCAL): Switch to version 1.12.
507 2012-03-24 Bruno Haible <bruno@clisp.org>
510 * lib/isoir165.h (isoir165_mbtowc): Don't shadow the 'ret' variable.
512 2012-01-26 Bruno Haible <bruno@clisp.org>
515 * README: Quote 'like this', not `like this', as per the recent change
516 to the GNU coding standards.
518 * gnulib-local/lib/xmalloc.c: Likewise.
519 * lib/config.h.in: Likewise.
520 * src/iconv.c (usage): Likewise.
521 * tests/uniq-u.c: Likewise.
522 * tools/cjk_tab_to_h.c (output_uni2charset_sparse, do_jisx0213):
524 * lib/big5.h: Update accordingly.
525 * lib/cns11643_inv.h: Likewise.
526 * lib/cp932ext.h: Likewise.
527 * lib/cp950ext.h: Likewise.
528 * lib/gb12345ext.h: Likewise.
529 * lib/gb2312.h: Likewise.
530 * lib/gbkext_inv.h: Likewise.
531 * lib/hkscs1999.h: Likewise.
532 * lib/hkscs2001.h: Likewise.
533 * lib/hkscs2004.h: Likewise.
534 * lib/hkscs2008.h: Likewise.
535 * lib/isoir165ext.h: Likewise.
536 * lib/jisx0208.h: Likewise.
537 * lib/jisx0212.h: Likewise.
538 * lib/jisx0213.h: Likewise.
539 * lib/ksc5601.h: Likewise.
540 * lib/uhc_1.h: Likewise.
541 * lib/uhc_2.h: Likewise.
543 2012-01-15 Bruno Haible <bruno@clisp.org>
546 * lib/config.h.in (inline, mode_t, ssize_t): Copy snippets from top
548 * tests/genutf8.c: Include config.h.
549 * tests/gengb18030z.c: Likewise.
550 * woe32dll/export.h (VARIABLE): Define to empty if not using GCC.
552 2011-01-28 Bruno Haible <bruno@clisp.org>
555 * woe32dll/export.h: Add a reference to the woe32dll writeup.
557 2012-01-06 Bruno Haible <bruno@clisp.org>
559 Update after gnulib changed.
560 * gnulib-local/lib/error.h.diff: Update.
562 2012-01-06 Bruno Haible <bruno@clisp.org>
564 Talk about "native Windows API", not "Woe32".
565 * lib/relocatable.c: Update comments to mention native Windows.
567 2012-01-04 Bruno Haible <bruno@clisp.org>
569 Talk about "native Windows API", not "Win32".
570 * lib/relocatable.c: Update comments to mention native Windows.
571 (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
573 2011-10-27 Bruno Haible <bruno@clisp.org>
575 Fix bug with error handling in UCS-2, UCS-4, UTF-32 decoders.
576 * lib/ucs2.h (ucs2_mbtowc): Increment count only after validating wc.
577 * lib/ucs4.h (ucs4_mbtowc): Likewise.
578 * lib/utf32.h (utf32_mbtowc): Likewise.
579 Reported at <https://savannah.gnu.org/bugs/?34916>.
581 2012-06-30 Bruno Haible <bruno@clisp.org>
583 Improve ISO-2022-CP-MS versus CP932.
584 * lib/iso2022_jpms.h (iso2022_jpms_mbtowc): Recognize characters from
585 the rows 0x79..0x7C as rows from CP932.
586 * tests/ISO-2022-JP-MS-snippet.alt: New file, renamed from
587 tests/ISO-2022-JP-MS-snippet.
588 * tests/ISO-2022-JP-MS-snippet.UTF-8: Update the rows that correspond
589 to ESC $ B 0x79..0x7C.
590 * tests/ISO-2022-JP-MS-snippet: Likewise.
591 * tests/check-stateful: Also test the *-snippet.alt file if it exists.
592 * tests/check-stateful.bat: Likewise.
594 2012-06-30 Bruno Haible <bruno@clisp.org>
596 Improve ISO-2022-CP-MS versus CP932.
597 * lib/cp50221_0208_ext.h (cp50221_0208_ext_page30): Map U+301D like
599 * lib/iso2022_jpms.h (iso2022_jpms_wctomb): Map U+663B to JISX0208
600 0x7A 0x36, U+FFE2 to 0x7C 0x7B, U+FFE4 to 0x7C 0x7C.
601 Reported by Jeff Diehl <diehl.jeff@gmail.com>.
603 2011-10-23 Bruno Haible <bruno@clisp.org>
605 New encoding ISO-2022-CP-MS.
606 * NOTES: Mention ISO-2022-JP-MS.
607 * tools/CP50221-0208-EXT.TXT: New file.
608 * tools/CP50221-0212-EXT.TXT: New file.
609 * tools/8bit_tab_to_h.c: Add comments about how to generate
610 cp50221_0208_ext.h, cp50221_0212_ext.h.
611 * tools/Makefile: Add rules for generating cp50221_0208_ext.h,
613 * lib/cp50221_0208_ext.h: New file, mostly generated.
614 * lib/cp50221_0212_ext.h: New file, mostly generated.
615 * lib/iso2022_jpms.h: New file.
616 * lib/converters.h: Include it.
617 * lib/encodings.def: Add ISO-2022-JP-MS.
618 * README, man/iconv_open.3: Add ISO-2022-JP-MS.
619 * tests/ISO-2022-JP-MS-snippet: New file.
620 * tests/ISO-2022-JP-MS-snippet.UTF-8: New file.
621 * tests/Makefile.in (check): Also test ISO-2022-JP-MS.
622 Reported by Jeff Diehl <diehl.jeff@gmail.com>.
624 2011-10-23 Bruno Haible <bruno@clisp.org>
626 * lib/encodings.def: Add comments about Windows names of encodings.
628 2011-10-18 Bruno Haible <bruno@clisp.org>
630 * m4/libtool.m4: Update from libtool-2.4.2, with modifications:
631 2008-04-06 Bruno Haible <bruno@clisp.org>
632 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
633 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
635 * m4/ltoptions.m4: Likewise.
636 * m4/ltversion.m4: Likewise.
637 * build-aux/ltmain.sh: Likewise.
639 2011-10-03 Bruno Haible <bruno@clisp.org>
641 * lib/relocatable.c: Update from gnulib.
643 2011-09-02 Bruno Haible <bruno@clisp.org>
645 Fix "make check" failure when $(srcdir) != $(builddir).
646 * tests/Makefile.in (check): When $(srcdir) != ., temporarily copy
647 GB18030.IRREVERSIBLE.TXT into the build directory.
648 Reported by Christian Weisgerber <naddy@mips.inka.de>.
650 2011-08-07 Bruno Haible <bruno@clisp.org>
652 Ensure all HTML-formatted man pages are up-to-date.
653 * Makefile.devel (all): Depend on man/iconvctl.3.html and
654 man/iconv_open_into.3.html.
656 2011-08-07 Bruno Haible <bruno@clisp.org>
658 * Version 1.14 released.
660 2011-08-07 Bruno Haible <bruno@clisp.org>
662 * configure.ac: Bump version number to 1.14.
664 * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
665 * windows/iconv.rc: Update.
666 * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 7:1:5.
667 * src/iconv.c (print_version): Update copyright year.
669 2011-08-07 Bruno Haible <bruno@clisp.org>
671 Avoid a test failure on Solaris 2.6 and HP-UX 11.00.
672 * tests/test-to-wchar.c (main): Skip the test if conversion to wchar_t
675 2011-08-07 Bruno Haible <bruno@clisp.org>
677 * tests/check-subst: Add comments about OSF/1.
679 2011-08-07 Bruno Haible <bruno@clisp.org>
681 * lib/relocatable.c: Update from gnulib.
683 2011-08-06 Bruno Haible <bruno@clisp.org>
685 Upgrade the GB18030 converter to the version from 2005.
686 * lib/gb18030ext.h (gb18030ext_2uni_pagefe): Change element type to
687 'unsigned int'. Change values for 0xFE51..0xFE53, 0xFE59, 0xFE61,
688 0xFE66, 0xFE67, 0xFE6C, 0xFE6D, 0xFE76, 0xFE7E, 0xFE90, 0xFE91, 0xFEA0.
689 (gb18030ext_mbtowc): Change type of wc to 'unsigned int'. Change values
690 for 0xA6D9..0xA6DF, 0xA6EC..0xA6ED, 0xA6F3, 0xA8BC.
691 (gb18030ext_page9f, gb18030ext_pagefe): New constant arrays.
692 (gb18030ext_wctomb): Change values for U+1E3F, U+9FB4..U+9FBB,
693 U+FE10..U+FE19, U+20087, U+20089, U+200CC, U+215D7, U+2298F, U+241FE.
694 * tests/GB18030-BMP.TXT: Change values for 0xA6D9..0xA6DF,
695 0xA6EC..0xA6ED, 0xA6F3, 0xA8BC, 0xFE51..0xFE53, 0xFE59, 0xFE61, 0xFE66,
696 0xFE67, 0xFE6C, 0xFE6D, 0xFE76, 0xFE7E, 0xFE90, 0xFE91, 0xFEA0, to map
697 to now-assigned Unicode codepoints.
698 * tests/GB18030.IRREVERSIBLE.TXT: New file.
700 2011-08-06 Bruno Haible <bruno@clisp.org>
702 Fix conversion bug in CP1258 converter.
703 * lib/vietcomb.h (viet_comp_table_data): Remove entry for
704 U+00A5 U+0301. Fix entry for U+00A8 U+0301.
705 (viet_decomp_table): Fix entry for U+0385.
706 * tests/CP1258.IRREVERSIBLE.TXT: Update.
707 Reported by Gertjan Halkes <gertjan@ghalkes.nl>.
709 2011-07-03 Bruno Haible <bruno@clisp.org>
711 Improve interactive behaviour of iconv program.
712 * src/iconv.c (convert): Flush the output before starting a possibly
713 blocking safe_read call.
715 2011-07-03 Bruno Haible <bruno@clisp.org>
717 Fix interactive behaviour of iconv program.
718 * Makefile.devel (GNULIB_MODULES): Add safe-read.
719 * src/iconv.c: Include safe-read.h.
720 (convert): Take the infile as a file descriptor, not as a FILE stream.
721 Use safe_read() instead of fread().
723 Reported by Xavier Pucel <xpucel@hotmail.com>.
725 2011-05-02 Bruno Haible <bruno@clisp.org>
727 Update after gnulib changed.
728 * autogen.sh (GNULIB_MODULES): Remove exit, add stdlib.
730 2011-06-02 Bruno Haible <bruno@clisp.org>
732 Update after gnulib changed.
733 * gnulib-local/m4/alloca.m4 (gl_FUNC_ALLOCA): Update.
735 2011-06-04 Bruno Haible <bruno@clisp.org>
737 Work around <wchar.h> bug on OSF/1 5.1.
738 * lib/loop_wchar.h: Before including <wchar.h>, include <stdio.h> and
741 2011-03-27 KO Myung-Hun <komh@chollian.net>
743 Fix installation on OS/2.
744 * src/Makefile.in (all, iconv_no_i18n): Add $(EXEEXT) suffix to
745 iconv_no_i18n. This is the recommended way to use libtool, see
746 <https://lists.gnu.org/archive/html/bug-libtool/2009-04/msg00013.html>.
748 2011-03-31 Bruno Haible <bruno@clisp.org>
750 gentranslit: Fix buffer overrun.
751 * lib/gentranslit.c (main): Allocate more room for the suffix strings
752 of the translit pages.
753 Reported by Ben Noordhuis <info@bnoordhuis.nl>.
755 2011-02-28 Bruno Haible <bruno@clisp.org>
757 * lib/relocatable.h: Update from gnulib.
758 * lib/relocatable.c: Likewise.
760 2011-01-29 Corinna Vinschen <corinna-cygwin@cygwin.com>
761 Bruno Haible <bruno@clisp.org>
763 Simplify "wchar_t" handling on Cygwin 1.7.x.
764 * lib/iconv.c (iconv_canonicalize): On Cygwin >= 1.7, map
765 ei_local_wchar_t to ei_utf16le or ei_utf16be, not ei_ucs2internal.
766 * lib/iconv_open1.h: Likewise.
767 Rationale: <https://cygwin.com/ml/cygwin/2011-01/msg00410.html>.
769 2011-01-29 Bruno Haible <bruno@clisp.org>
771 Adjust the meaning of "wchar_t" on native Windows systems.
772 * lib/iconv.c (iconv_canonicalize): On native Windows, map
773 ei_local_wchar_t to ei_utf16le or ei_utf16be, not ei_ucs2internal.
774 * lib/iconv_open1.h: Likewise.
775 Reported by Corinna Vinschen <corinna-cygwin@cygwin.com>
776 in <https://cygwin.com/ml/cygwin/2011-01/msg00410.html>.
778 2010-11-23 Bruno Haible <bruno@clisp.org>
780 Implement newer release of BIG5-HKSCS.
781 * tools/Makefile (ALL): Add hkscs2008.h.
782 (hkscs2008.h): New rule.
783 * tools/cjk_tab_to_h.c (main): Recognize hkscs2008.
784 * lib/encodings.def: Add BIG5-HKSCS:2008. Change BIG5-HKSCS alias to be
785 equivalent to BIG5-HKSCS:2008.
786 * lib/hkscs2008.h: New file, autogenerated.
787 * lib/big5hkscs2008.h: New file, based on lib/big5hkscs2004.h.
788 * lib/converters.h: Include the new file.
789 * README, man/iconv_open.3: Add BIG5-HKSCS:2004.
790 * tests/BIG5-HKSCS-2008.TXT: New file, based on
791 tests/BIG5-HKSCS-2004.TXT.
792 * tests/BIG5-HKSCS-2008.IRREVERSIBLE.TXT: New file, copied from
793 tests/BIG5-HKSCS-2004.IRREVERSIBLE.TXT
794 * tests/BIG5-HKSCS-2008-snippet: New file, based on
795 tests/BIG5-HKSCS-2004-snippet.
796 * tests/BIG5-HKSCS-2008-snippet.UTF-8: New file, based on
797 tests/BIG5-HKSCS-2004-snippet.UTF-8.
798 * tests/Makefile.in (check): Check also BIG5-HKSCS:2008.
799 Reported by oCameLo <camel322@gmail.com>.
801 2010-11-23 Bruno Haible <bruno@clisp.org>
803 Make cjk_tab_to_h 64-bit clean.
804 * tools/cjk_tab_to_h.c (do_jisx0213): Add a cast from size_t to int.
805 (output_title): Update copyright year.
807 2010-09-23 Bruno Haible <bruno@clisp.org>
809 Switch to autoconf 2.68.
810 * autogen.sh: Update comment.
811 * configure.ac: Fix AC_COMPILE_IFELSE invocation.
812 * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.68.
813 * preload/Makefile.devel (AUTOCONF): Likewise.
815 2010-09-23 Bruno Haible <bruno@clisp.org>
817 * m4/libtool.m4: Update from libtool-2.4, with modifications:
818 2008-04-06 Bruno Haible <bruno@clisp.org>
819 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
820 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
822 * m4/ltversion.m4: Update from libtool-2.4.
823 * build-aux/ltmain.sh: Likewise.
825 2010-09-23 Bruno Haible <bruno@clisp.org>
827 Simplify use of gnulib-tool now that gnulib-tool --import works better.
828 * autogen.sh: Don't remove gnulib-cache.m4 before running gnulib-tool.
829 * Makefile.devel (srclib/Makefile.gnulib): Depend on 'force'.
831 2010-07-31 Bruno Haible <bruno@clisp.org>
833 * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.67.
834 * preload/Makefile.devel (AUTOCONF): Likewise.
836 2010-07-03 Bruno Haible <bruno@clisp.org>
838 * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.66.
839 * preload/Makefile.devel (AUTOCONF): Likewise.
841 2010-06-04 Bruno Haible <bruno@clisp.org>
843 Addendum to 2009-10-18 commit.
844 * m4/fcntl-o.m4: New file, from gnulib.
845 * configure.ac: Invoke gl_FCNTL_O_FLAGS.
846 * lib/config.h.in (HAVE_WORKING_O_NOFOLLOW): New macro.
848 2010-06-04 Bruno Haible <bruno@clisp.org>
850 * m4/libtool.m4: Update from libtool-2.2.8, with modifications:
851 2008-04-06 Bruno Haible <bruno@clisp.org>
852 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
853 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
855 * m4/ltoptions.m4: Update from libtool-2.2.8.
856 * m4/ltversion.m4: Likewise.
857 * m4/lt~obsolete.m4: Likewise.
858 * build-aux/ltmain.sh: Likewise.
860 2010-04-06 Bruno Haible <bruno@clisp.org>
862 Avoid a compilation error of gnulib's test-iconv-h-c++.cc on mingw.
863 * include/iconv.h.in: Restrict the extern "C" { ... } scope so that it
864 doesn't contains #include directives.
866 2010-03-30 Bruno Haible <bruno@clisp.org>
868 * README.woe32: Update for Cygwin 1.7.x.
870 2009-12-26 Bruno Haible <bruno@clisp.org>
872 * windows/libiconv.rc: Update.
873 * windows/iconv.rc: Update.
875 2009-12-11 Bruno Haible <bruno@clisp.org>
877 * include/iconv.h.in: Untabify.
878 * gnulib-local/lib/xalloc.h: Untabify.
879 * woe32dll/export.h: Untabify.
880 * tests/uniq-u.c: Untabify.
882 2009-12-11 Bruno Haible <bruno@clisp.org>
884 * srclib/Makefile.am (MOSTLYCLEANDIRS): New macro.
886 2009-12-11 Bruno Haible <bruno@clisp.org>
888 * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.65.
889 * preload/Makefile.devel (AUTOCONF): Likewise.
891 2009-11-22 Bruno Haible <bruno@clisp.org>
893 * tests/check-subst: Add reference to the Solaris printf bug.
894 Reported by Dagobert Michelsen <dagobert@familie-michelsen.de>.
896 2009-09-01 Bruno Haible <bruno@clisp.org>
898 * README.woe32: Put the -mno-cygwin option into CC and CXX.
899 Recommended by Paolo Bonzini and Eric Blake.
901 2009-08-15 Bruno Haible <bruno@clisp.org>
903 * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.64.
904 * preload/Makefile.devel (AUTOCONF): Likewise.
906 2009-08-15 Bruno Haible <bruno@clisp.org>
908 Use .git/info/exclude, not .gitignore, for imported or generated files.
909 * Makefile.devel (srclib/Makefile.gnulib): Pass option --no-vc-files to
912 2009-07-07 Bruno Haible <bruno@clisp.org>
915 * lib/loop_wchar.h (wchar_to_loop_convert): Handle the case of
916 incomplete input correctly.
917 * tests/test-to-wchar.c: New file.
918 * tests/Makefile.in (tests-to-wchar, tests-to-wchar.o): New rules.
919 (check): Depend on and run tests-to-wchar.
920 (clean): Add tests-to-wchar.
921 Reported by Tristan Gingold <gingold@adacore.com>.
923 2009-06-30 Bruno Haible <bruno@clisp.org>
925 * Version 1.13.1 released.
927 2009-06-30 Bruno Haible <bruno@clisp.org>
929 * configure.ac: Bump version number to 1.13.1.
932 2009-06-04 Bruno Haible <bruno@clisp.org>
934 * preload/Makefile.devel (AUTOCONF): Switch to version 2.63.
935 (ACLOCAL): Switch to version 1.11.
937 2009-05-19 Bruno Haible <bruno@clisp.org>
939 * Makefile.devel (AUTOMAKE, ACLOCAL): Switch to version 1.11.
940 * autogen.sh: Update comments.
942 2009-04-24 Bruno Haible <bruno@clisp.org>
944 Fix a compilation error on HP-UX 11.00, introduced on 2008-09-16.
945 * src/iconv_open2.h: Don't initialize nonexistent field if
946 !(HAVE_WCRTOMB || HAVE_MBRTOWC).
947 Patch by Joel Brobecker <brobecker@adacore.com>.
949 2009-04-15 Bruno Haible <bruno@clisp.org>
951 * src/Makefile.in (install, uninstall): Append the $(EXEEXT) suffix
952 explicitly. Needed on Cygwin.
954 2009-04-11 Bruno Haible <bruno@clisp.org>
956 * configure.ac: Move the statements for WOE32 and WINDRES.
958 2009-03-26 Bruno Haible <bruno@clisp.org>
960 * Version 1.13 released.
962 2009-03-26 Bruno Haible <bruno@clisp.org>
964 * src/iconv.c: Update copyright header to GPLv3+.
965 (print_version): Update license info.
967 2009-03-26 Bruno Haible <bruno@clisp.org>
969 * src/iconv.c (print_version): Bump year.
971 2009-03-25 Bruno Haible <bruno@clisp.org>
973 * build-aux/config.guess: Update to GNU version 2009-02-03.
974 * build-aux/config.sub: Likewise.
976 2009-03-25 Bruno Haible <bruno@clisp.org>
978 * configure.ac: Bump version number to 1.13.
980 * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
981 * windows/iconv.rc: Update.
982 * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 7:0:5.
984 2009-03-25 Bruno Haible <bruno@clisp.org>
986 Fix the handling of Windows resources in shared libraries.
987 * configure.ac: Invoke LT_LANG for 'Windows Resource'.
988 * lib/Makefile.in (RC): New variable.
989 (WINDRES): Remove variable.
990 (OBJECTS_RES_yes): Add .lo suffix.
991 (libiconv.res.lo): Renamed from libiconv.res. Use libtool --tag=RC.
993 Based on a patch by Roumen Petrov <bugtrack@roumenpetrov.info>.
995 2009-03-14 Bruno Haible <bruno@clisp.org>
997 * autogen.sh: Checkout gnulib using 'git' instead of 'cvs'.
999 2009-01-24 Bruno Haible <bruno@clisp.org>
1001 * tools/Makefile (ALL): Add cp1131.h.
1002 (cp1131.h): New rule.
1003 * lib/encodings.def: Add CP1131.
1004 * lib/cp1131.h: New file.
1005 * lib/converters.h: Include it.
1006 * README, man/iconv_open.3: Add CP1131.
1007 * NOTES: Mention CP1131.
1008 * tests/CP1131.TXT: New file.
1009 * tests/Makefile.in (check): Also test CP1131.
1011 2009-01-17 Bruno Haible <bruno@clisp.org>
1013 Add support for "make install-strip".
1014 * configure.ac: Search for 'strip'. Invoke AM_PROG_INSTALL_STRIP.
1015 * Makefile.in (install-strip): New rule.
1016 * src/Makefile.in (STRIP, INSTALL_STRIP_PROGRAM, install_sh): New
1018 (install-strip): New rule.
1019 * lib/Makefile.in (install-strip): New target.
1020 * preload/Makefile.in (install-strip): Likewise.
1021 * man/Makefile.in (install-strip): Likewise.
1022 Reported by Alon Bar-Lev <alon.barlev@gmail.com>.
1024 2009-01-17 Bruno Haible <bruno@clisp.org>
1026 Update after gnulib changed.
1027 * src/Makefile.in (RELOCATABLE_STRIP): New variable.
1029 2009-01-17 Bruno Haible <bruno@clisp.org>
1031 Make --enable-relocatable work on glibc systems.
1032 * src/Makefile.in (host): New variable.
1034 2009-01-17 Bruno Haible <bruno@clisp.org>
1036 * lib/genflags.c: Include <string.h>.
1038 2009-01-14 Bruno Haible <bruno@clisp.org>
1040 * configure.ac: More consistent m4 quoting.
1041 * preload/configure.ac: Likewise.
1043 2008-09-28 Bruno Haible <bruno@clisp.org>
1045 * build-aux/ltmain.sh (func_emit_cwrapperexe_src): On mingw,
1046 preprocess the argument vector through prepare_spawn.
1048 2008-09-27 Bruno Haible <bruno@clisp.org>
1050 * build-aux/config.guess: Update to GNU version 2008-09-08.
1051 * build-aux/config.sub: Likewise.
1053 2008-09-26 Bruno Haible <bruno@clisp.org>
1055 * tests/test-shiftseq.c (main1, main2): Use ICONV_CONST.
1057 2008-09-26 Bruno Haible <bruno@clisp.org>
1059 * Makefile.devel (GNULIB_MODULES): Add sigpipe, stdio.
1060 * tests/Makefile.in (check, table-from, table-to, test-shiftseq): Link
1061 all programs against libicrt.a. Needed for the stdio function
1062 replacements on mingw.
1064 2008-09-21 Tadamasa Teranishi <yw3t-trns@asahi-net.or.jp>
1066 * lib/encodings_extra.def: Add aliases for EUC-JISX0213, SHIFT_JISX0213,
1067 ISO-2022-JP-3, found on <http://x0213.org/codetable/index.en.html>.
1069 2008-09-20 Bruno Haible <bruno@clisp.org>
1071 * man/iconv_open_into.3: New file.
1073 2008-09-16 Bruno Haible <bruno@clisp.org>
1075 New function iconv_open_into.
1076 * include/iconv.h.in: Include <wchar.h> and its prerequisites.
1077 (iconv_allocation_t): New type.
1078 (iconv_open_into): New declaration.
1079 * lib/iconv_open1.h: New file, extracted from lib/iconv.c.
1080 * lib/iconv_open2.h: New file, extracted from lib/iconv.c.
1081 * lib/iconv.c (iconv_open): Include iconv_open1.h and iconv_open2.h.
1082 Verify size of iconv_allocation_t.
1083 (iconv_open_into): New function.
1084 * lib/loop_wchar.h (struct wchar_conv_struct): Don't define a state
1085 field if !(HAVE_WCRTOMB || HAVE_MBRTOWC).
1086 * configure.ac: Set and substitute USE_MBSTATE_T, BROKEN_WCHAR_H.
1087 Reported by Roman Rybalko <romanr@romanr.info>.
1089 2008-09-16 Bruno Haible <bruno@clisp.org>
1091 * Makefile.devel (AUTOCONF, AUTOHEADER): Switch to version 2.63.
1093 2008-09-16 Bruno Haible <bruno@clisp.org>
1095 * include/iconv.h.in: Use Unicode single-quotes in comments.
1097 2008-09-14 Bruno Haible <bruno@clisp.org>
1099 * Makefile.devel (GNULIB_MODULES): Add strerror.
1101 2008-09-07 Bruno Haible <bruno@clisp.org>
1103 Make behaviour when encountering invalid input after a shift sequence
1105 * lib/converters.h (RET_SHIFT_ILSEQ): New macro.
1106 (RET_ILSEQ): Define in terms of RET_SHIFT_ILSEQ.
1107 (RET_TOOFEW): Change to avoid collisions with RET_SHIFT_ILSEQ.
1108 (DECODE_SHIFT_ILSEQ, DECODE_TOOFEW): New macros.
1109 * lib/loop_unicode.h (unicode_loop_convert): Take into account the
1110 shift count contained in the negative return values.
1111 * lib/hz.h (hz_mbtowc): When encountering invalid input, store the
1112 modified state and return RET_SHIFT_ILSEQ.
1113 * lib/iso2022_cn.h (iso2022_cn_mbtowc): Likewise.
1114 * lib/iso2022_cnext.h (iso2022_cn_ext_mbtowc): Likewise.
1115 * lib/iso2022_jp.h (iso2022_jp_mbtowc): Likewise.
1116 * lib/iso2022_jp1.h (iso2022_jp1_mbtowc): Likewise.
1117 * lib/iso2022_jp2.h (iso2022_jp2_mbtowc): Likewise.
1118 * lib/iso2022_jp3.h (iso2022_jp3_mbtowc): Likewise.
1119 * lib/iso2022_kr.h (iso2022_kr_mbtowc): Likewise.
1120 * lib/ucs2.h (ucs2_mbtowc): Likewise.
1121 * lib/ucs4.h (ucs4_mbtowc): Likewise.
1122 * lib/utf16.h (utf16_mbtowc): Likewise.
1123 * lib/utf32.h (utf32_mbtowc): Likewise.
1124 * lib/utf7.h (utf7_mbtowc): Likewise.
1125 * lib/utf16be.h (utf16be_mbtowcutf16be_mbtowc): When encountering
1126 invalid input, return RET_SHIFT_ILSEQ.
1127 * lib/utf16le.h (utf16le_mbtowc): Likewise.
1128 * tests/test-shiftseq.c: New file.
1129 * tests/Makefile.in (check): Run test-shiftseq.
1130 (test-shiftseq, test-shiftseq.@OBJEXT@): New rules.
1131 (clean): Remove test-shiftseq executable.
1132 Reported by Roman Rybalko <roman_rybalko@users.sourceforge.net>
1133 at <https://savannah.gnu.org/bugs/?24216>.
1135 2008-09-07 Bruno Haible <bruno@clisp.org>
1137 * man/iconv.3: Clarify the processing of shift-sequences.
1139 2008-09-07 Bruno Haible <bruno@clisp.org>
1141 * m4/libtool.m4: Update from libtool-2.2.6, with modifications:
1142 2008-04-06 Bruno Haible <bruno@clisp.org>
1143 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
1144 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
1146 * m4/ltoptions.m4: Update from libtool-2.2.6.
1147 * m4/ltsugar.m4: Likewise.
1148 * m4/ltversion.m4: Likewise.
1149 * build-aux/ltmain.sh: Likewise.
1151 2008-09-06 Bruno Haible <bruno@clisp.org>
1153 * lib/gbk.h (gbk_wctomb): Fix an out-of-bounds write.
1154 Reported by Roman Rybalko <roman_rybalko@users.sourceforge.net>
1155 at <https://savannah.gnu.org/bugs/?24214>.
1157 2008-06-30 Bruno Haible <bruno@clisp.org>
1159 Fix sed expressions to work with the old sed-3.02 on MSYS.
1160 * windows/windres-options (sed_extract_major, sed_extract_minor,
1161 sed_extract_subminor): Put a semicolon before the closing brace. Use
1162 an i\ command instead of an a\ command.
1163 Reported by Sunil Negi <sunil.negi@morningstar.com>
1164 in <http://article.gmane.org/gmane.comp.gnu.mingw.msys/4410>
1165 via Keith Marshall <keithmarshall@users.sourceforge.net>.
1167 2008-05-22 Bruno Haible <bruno@clisp.org>
1169 * README.woe32: Update with info from GNU gettext's README.woe32.
1171 2008-05-18 Bruno Haible <bruno@clisp.org>
1173 * m4/libtool.m4: Update from libtool-2.2.4, with modifications:
1174 2008-04-06 Bruno Haible <bruno@clisp.org>
1175 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
1176 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
1178 * m4/ltoptions.m4: Update from libtool-2.2.4.
1179 * m4/ltversion.m4: Likewise.
1180 * m4/lt~obsolete.m4: Likewise.
1181 * build-aux/ltmain.sh: Likewise.
1183 2008-04-14 Bruno Haible <bruno@clisp.org>
1185 * tests/Makefile.in (check): Remove *.dSYM directories left over by gcc
1188 2008-04-14 Bruno Haible <bruno@clisp.org>
1190 * preload/configure.ac: Invoke AC_USE_SYSTEM_EXTENSIONS instead of
1191 AC_AIX and AC_MINIX.
1192 * Makefile.devel (AUTOCONF, AUTOHEADER): Require autoconf-2.62.
1193 * preload/Makefile.devel (AUTOCONF): Likewise.
1194 * autogen.sh: Likewise.
1196 2008-04-06 Bruno Haible <bruno@clisp.org>
1198 * m4/libtool.m4: Update from libtool-2.2.2, with modifications:
1199 2008-04-06 Bruno Haible <bruno@clisp.org>
1200 * m4/libtool.m4 (LT_INIT): When setting LIBTOOL, use
1201 CONFIG_SHELL; don't assume that the Makefile.in will set SHELL
1203 * m4/ltoptions.m4: New file, from libtool-2.2.2.
1204 * m4/ltsugar.m4: New file, from libtool-2.2.2.
1205 * m4/ltversion.m4: New file, from libtool-2.2.2.
1206 * m4/lt~obsolete.m4: New file, from libtool-2.2.2.
1207 * build-aux/ltmain.sh: New file, from libtool-2.2.2.
1208 * configure.ac: Use LT_INIT instead of AC_PROG_LIBTOOL.
1209 * preload/configure.ac: Likewise.
1211 2008-04-06 Bruno Haible <bruno@clisp.org>
1213 More portable way of building the preloadable library.
1214 * preload/Makefile.devel: New file.
1215 * preload/Makefile.in: New file, based on lib/Makefile.in.
1216 * preload/configure.ac: New file, based on configure.ac.
1217 * Makefile.devel (all): Recurse into preload directory.
1218 * Makefile.in (all, install, installdirs, uninstall, check,
1219 mostlyclean, clean, distclean, maintainer-clean): Recurse into preload
1221 * configure.ac: Likewise.
1222 (OS, GCC, PLUGLIB): Remove definitions.
1223 * lib/Makefile.in (all): Don't depend on PLUGLIB.
1224 (preloadable_libiconv.so, preloadable_libiconv_linux.so,
1225 preloadable_libiconv_solaris.so, preloadable_libiconv_osf.so): Remove
1227 (install, uninstall, clean): Don't handle the preloadable library here.
1229 2008-04-06 Bruno Haible <bruno@clisp.org>
1231 Avoid a gcc warning.
1232 * lib/loop_unicode.h (unicode_loop_convert): Add a cast.
1234 2008-04-06 Bruno Haible <bruno@clisp.org>
1236 * src/iconv.c (print_version): Bump year.
1238 2008-04-06 Bruno Haible <bruno@clisp.org>
1240 Support all possible nl_langinfo(CODESET) results on the respective
1241 platforms, according to libcharset/lib/config.charset.
1242 * lib/encodings.def: Add DEFALIAS statements, conditional on
1243 USE_AIX_ALIASES, USE_HPUX_ALIASES, USE_OSF1_ALIASES,
1244 USE_SOLARIS_ALIASES.
1245 * lib/encodings_aix.def: Add DEFALIAS statements, conditional on
1247 * lib/encodings_osf1.def: Add DEFALIAS statements, conditional on
1249 * lib/genaliases.c (emit_alias): New function, extracted from
1251 (emit_encoding): Use it.
1252 (main): Define DEFALIAS.
1253 * lib/genaliases2.c (counter): New variable, extracted from
1255 (emit_alias): New function, extracted from emit_encoding.
1256 (emit_encoding): Use it.
1257 (main): Define DEFALIAS.
1258 * lib/genflags.c (main): Define DEFALIAS.
1259 * lib/iconv.c (all_encodings): Define DEFALIAS.
1260 Include the system dependent variant of aliases.h on the appropriate
1262 (all_canonical): Include the system dependent variant of canonical.h,
1263 canonical_aix.h, canonical_osf1.h, canonical_local.h on the appropriate
1265 * lib/aliases2.h: Include the system dependent variant of
1266 aliases_aix.h or aliases_osf1.h on the appropriate systems.
1267 * lib/Makefile.in (iconv.lo): Depend on aliases_sysaix.h,
1268 aliases_syshpux.h, aliases_sysosf1.h, aliases_syssolaris.h,
1269 aliases_aix_sysaix.h, lib/aliases_osf1_sysosf1.h, and also
1270 aliases_extra.h, translit.h.
1271 * Makefile.devel (all): Depend on lib/aliases_sysaix.h,
1272 lib/aliases_syshpux.h, lib/aliases_sysosf1.h, lib/aliases_syssolaris.h,
1273 lib/aliases_aix_sysaix.h, lib/aliases_osf1_sysosf1.h.
1274 (lib/aliases_sysaix.h, lib/aliases_syshpux.h, lib/aliases_sysosf1.h,
1275 lib/aliases_syssolaris.h): New rules.
1276 (lib/aliases_aix_sysaix.h): New rule.
1277 (lib/aliases_osf1_sysosf1.h): New rule.
1278 * autogen.sh: Also remove lib/aliases_sysaix.h, lib/aliases_syshpux.h,
1279 lib/aliases_sysosf1.h, lib/aliases_syssolaris.h,
1280 lib/aliases_aix_sysaix.h, lib/aliases_osf1_sysosf1.h.
1282 2008-04-06 Bruno Haible <bruno@clisp.org>
1284 * build-aux/config.libpath: Remove file, brought in by gnulib-tool.
1285 * build-aux/config.rpath: Remove file, brought in by gnulib-tool.
1287 2007-11-11 Bruno Haible <bruno@clisp.org>
1289 * Version 1.12 released.
1291 2007-11-11 Bruno Haible <bruno@clisp.org>
1293 * Makefile.devel (AUTOCONF, AUTOHEADER): Require version 2.61.
1294 (AUTOMAKE, ACLOCAL): Require version 1.10.
1295 (srclib/Makefile.in): Avoid error from automake.
1297 2007-10-26 Bruno Haible <bruno@clisp.org>
1299 * m4/libtool.m4: Update, based on libtool-1.5.24.
1300 * build-aux/ltmain.sh: Update, based on libtool-1.5.24.
1302 2007-10-23 Bruno Haible <bruno@clisp.org>
1304 * build-aux/config.guess: Update to GNU version 2007-07-22.
1305 * build-aux/config.sub: Likewise.
1307 2007-10-23 Bruno Haible <bruno@clisp.org>
1309 * configure.ac: Bump version number to 1.12.
1312 2007-10-23 Bruno Haible <bruno@clisp.org>
1314 Move relocatability infrastructure to gnulib.
1315 * gnulib-local/lib/relocatable.h: Remove file.
1316 * gnulib-local/lib/relocatable.c: Remove file.
1318 2007-10-23 Bruno Haible <bruno@clisp.org>
1320 Update from GNU gettext.
1321 2006-11-26 Bruno Haible <bruno@clisp.org>
1322 * gnulib-local/lib/xalloc.h (xmemdup): Add a typesafe C++
1324 Based on a patch from Paul Eggert in gnulib.
1325 2006-11-06 Bruno Haible <bruno@clisp.org>
1326 * gnulib-local/lib/xalloc.h (xcharalloc): New macro.
1327 (xmemdup): New declaration.
1328 * gnulib-local/lib/xstrdup.c (xmemdup): New function.
1329 2006-11-03 Bruno Haible <bruno@clisp.org>
1330 * gnulib-local/lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC,
1331 XCALLOC): New macros.
1332 (xnboundedmalloc): New inline function.
1333 * gnulib-local/lib/xstrdup.c (xstrdup): Use XNMALLOC instead of
1335 2006-11-02 Bruno Haible <bruno@clisp.org>
1336 * lib/xalloc.h (xnmalloc): New declaration. From gnulib
1338 * lib/xmalloc.c (fixup_null_alloc): Write NULL, not 0.
1339 (xnmalloc): New function.
1341 2007-10-23 Bruno Haible <bruno@clisp.org>
1343 Moved module xreadlink to gnulib.
1344 * gnulib-local/modules/xreadlink: Remove file.
1345 * gnulib-local/lib/xreadlink.h: Remove file.
1346 * gnulib-local/lib/xreadlink.c: Remove file.
1347 * gnulib-local/m4/xreadlink.m4: Remove file.
1349 2007-10-07 Bruno Haible <bruno@clisp.org>
1351 Update program license to GPLv3.
1352 * COPYING: Replace with GPL 3.
1353 * windows/iconv.rc (Comments): Update.
1355 2007-10-07 Bruno Haible <bruno@clisp.org>
1357 * gnulib-local/lib/alloca.in.h: Renamed from gnulib-local/lib/alloca_.h.
1359 2007-03-30 Bruno Haible <bruno@clisp.org>
1361 * gnulib-local/lib/alloca_.h: Change prefix of double-inclusion guard
1364 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
1366 * gnulib-local/lib/alloca_.h (alloca) [defined alloca]: Don't define or
1369 2007-09-29 Bruno Haible <bruno@clisp.org>
1371 * autogen.sh (GNULIB_CVS_ROOT): Change to read-only git mirror
1372 valid since 2007-09-19.
1374 2007-07-07 Bruno Haible <bruno@clisp.org>
1376 * autogen.sh: Add an option --skip-gnulib.
1378 2007-07-07 Bruno Haible <bruno@clisp.org>
1380 * gnulib-local/lib/uniwidth.h: Remove file, moved to gnulib.
1381 * gnulib-local/lib/width.c: Remove file, moved to gnulib.
1382 * gnulib-local/lib/cjk.h: Remove file, moved to gnulib.
1383 * gnulib-local/modules/uniwidth: Remove file.
1384 * Makefile.devel (GNULIB_MODULES): Remove uniwidth, add uniwidth/width.
1385 * src/iconv.c: Include uniwidth/cjk.h instead of cjk.h.
1387 2007-06-30 Bruno Haible <bruno@clisp.org>
1389 * src/iconv.c (print_version): Use the standard --version output, see
1390 <https://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00302.html>.
1392 2007-06-30 Bruno Haible <bruno@clisp.org>
1394 * autogen.sh: New file.
1395 * DEPENDENCIES: New file.
1396 * HACKING: New file.
1398 2007-06-30 Bruno Haible <bruno@clisp.org>
1400 * src/iconv.c: Provide translator comments for many messages.
1401 (conversion_error_EILSEQ, conversion_error_EINVAL,
1402 conversion_error_other): New functions, extracted from convert.
1403 (convert): Use them.
1404 Reported by Tim Van Holder <tim.van.holder@telenet.be>.
1406 2007-06-09 Bruno Haible <bruno@clisp.org>
1408 * gnulib-local/lib/relocwrapper.c: Remove file.
1410 2007-05-27 Bruno Haible <bruno@clisp.org>
1412 * windows/libiconv.rc: New file.
1413 * windows/iconv.rc: New file.
1414 * windows/windres-options: New file.
1415 * configure.ac (WOE32): New variable.
1416 (WINDRES) [WOE32]: New variable.
1417 * lib/Makefile.in (WINDRES): New variable.
1418 (PACKAGE_VERSION): New variable.
1419 (OBJECTS_EXP_yes): Renamed from OBJECTS_yes.
1420 (OBJECTS_EXP_no): Renamed from OBJECTS_no.
1421 (OBJECTS_RES_yes, OBJECTS_RES_no): New variables.
1422 (OBJECTS): Add one of them.
1423 (libiconv.res): New rule.
1424 (clean): Remove also libiconv.res.
1425 * src/Makefile.in (WINDRES): New variable.
1426 (PACKAGE_VERSION): New variable.
1427 (OBJECTS_RES_yes, OBJECTS_RES_no): New variables.
1428 (all, iconv_no_i18n, install): Use them.
1429 (iconv.res): New rule.
1430 (clean): Remove also iconv.res.
1431 Suggested and inspired by work by Perry Rapp.
1433 2007-05-27 Bruno Haible <bruno@clisp.org>
1435 Follow broken iconv() prototype in POSIX.
1436 * configure.ac (ICONV_CONST): Set to empty if the system has no iconv.
1437 * lib/config.h.in (ICONV_CONST): Change default value to an empty
1439 * src/iconv.c (ICONV_CONST): Change default value to empty.
1440 Reported by Andreas Krennmair <ak@synflood.at>.
1442 2007-05-25 Bruno Haible <bruno@clisp.org>
1444 * tools/Makefile (ALL): Add rk1048.h.
1445 (rk1048.h): New rule.
1446 * lib/encodings.def: Add RK1048.
1447 * lib/rk1048.h: New file.
1448 * lib/converters.h: Include it.
1449 * README, man/iconv_open.3: Add RK1048.
1450 * NOTES: Mention RK1048.
1451 * tests/RK1048.TXT: New file.
1452 * tests/Makefile.in (check): Also test RK1048.
1453 Suggested by Timur Birsh <team9@host.kz>.
1455 2007-04-24 Bruno Haible <bruno@clisp.org>
1457 * man/iconv_open.3: Tweak explanation of TRANSLIT.
1458 Reported by Perry Rapp.
1460 2007-04-23 Bruno Haible <bruno@clisp.org>
1462 * tests/check-subst: Use the output of 'printf' only if it didn't
1463 crash. Needed to work around a buffer overflow in Solaris /bin/printf.
1464 Reported by Arto C. Nirkko <anirkko@insel.ch>.
1466 2007-04-23 Bruno Haible <bruno@clisp.org>
1468 * lib/iconv.c (iconv_open, iconv_canonicalize): Treat native Woe32
1469 systems like those which define __STDC_ISO_10646__.
1470 Reported by Keith Marshall <keithmarshall@users.sourceforge.net>.
1472 2007-03-31 Bruno Haible <bruno@clisp.org>
1474 * man/iconv.1: Use HYPHEN-MINUS signs instead of HYPHENs where
1476 * man/iconv_open.3: Likewise.
1477 * man/iconv.3: Likewise.
1478 * man/iconv_close.3: Likewise.
1479 * man/iconvctl.3: Likewise.
1481 2007-03-31 Bruno Haible <bruno@clisp.org>
1483 * man/iconv.1: Mark as POSIX compliant.
1484 * man/iconv_open.3: Likewise.
1485 * man/iconv.3: Likewise.
1486 * man/iconv_close.3: Likewise.
1488 * man/*.[13]: Syntactic simplifications.
1490 2007-03-19 Bruno Haible <bruno@clisp.org>
1492 Assume that mkinstalldirs also creates the necessary parent directories.
1493 * Makefile.in (install, installdirs): Don't explicitly create the
1495 * lib/Makefile.in (install, installdirs): Likewise.
1496 * src/Makefile.in (install, installdirs): Likewise.
1497 * man/Makefile.in (install, installdirs): Likewise.
1498 Reported by Thomas Klausner <tk@giga.or.at>.
1500 2007-03-04 Bruno Haible <bruno@clisp.org>
1502 * Makefile.devel (GNULIB_MODULES): Add relocatable-prog. Remove
1503 relocatable, relocwrapper.
1504 * configure.ac: Invoke gl_RELOCATABLE instead of AC_RELOCATABLE.
1505 * gnulib-local/modules/progreloc: Remove file.
1506 * gnulib-local/modules/relocatable: Remove file.
1507 * gnulib-local/modules/relocwrapper: Remove file.
1508 * gnulib-local/m4/relocatable.m4: Remove file.
1509 * gnulib-local/lib/strerror.c.diff: Remove file.
1510 * src/Makefile.in: Remove SET_RELOCATABLE invocation. Instead get
1511 RELOCATABLE_LDFLAGS and INSTALL_PROGRAM_ENV.
1513 2007-02-19 Bruno Haible <bruno@clisp.org>
1515 * gnulib-local/lib/xmalloc.c: Don't include exit.h.
1516 * src/iconv.c: Likewise.
1518 2007-02-16 Juan Manuel Guerrero <juan.guerrero@gmx.de>
1522 2007-02-03 Bruno Haible <bruno@clisp.org>
1524 * tools/Makefile (ksc5601.h): Add one extra character.
1525 * lib/ksc5601.h: Regenerated.
1526 * lib/cp949.h (cp949_mbtowc, cp949_wctomb): Exclude the new character.
1527 * tests/EUC-KR.TXT: Add CIRCLED HANGUL IEUNG U.
1528 * tests/JOHAB.TXT: Likewise.
1529 Reported by Jungshik Shin (신정식, 申政湜) <jungshik@google.com>.
1531 * lib/euc_kr.h: Update comments.
1532 * lib/johab.h: Likewise.
1534 2007-02-03 Bruno Haible <bruno@clisp.org>
1536 * tools/cjk_tab_to_h.c (output_title): Bump copyright year.
1538 2007-01-26 Bruno Haible <bruno@clisp.org>
1540 Moved streq.h to gnulib.
1541 * gnulib-local/lib/streq.h: Remove file.
1542 * gnulib-local/modules/uniwidth (Files): Remove lib/streq.h.
1543 (Depends-on): Add streq.
1544 (lib_SOURCES): Remove streq.h.
1546 2007-01-26 Bruno Haible <bruno@clisp.org>
1548 Moved unitypes.h to gnulib.
1549 * gnulib-local/lib/unitypes.h: Remove file.
1550 * gnulib-local/modules/uniwidth (Files): Remove lib/unitypes.h.
1551 (Depends-on): Add unitypes.
1552 (lib_SOURCES): Remove unitypes.h.
1554 2007-01-26 Bruno Haible <bruno@clisp.org>
1556 Moved canonicalize to gnulib.
1557 * gnulib-local/modules/canonicalize: Remove file.
1558 * gnulib-local/lib/canonicalize.h: Remove file.
1559 * gnulib-local/lib/canonicalize.c: Remove file.
1560 * gnulib-local/m4/canonicalize.m4: Remove file.
1561 * gnulib-local/modules/progreloc (Depends-on): Replace 'canonicalize'
1562 with 'canonicalize-lgpl'.
1564 2006-12-20 Bruno Haible <bruno@clisp.org>
1566 * lib/Makefile.in (install): On AIX, add the contents of
1567 /lib/libiconv.a to libiconv.a.
1569 2006-12-20 Bruno Haible <bruno@clisp.org>
1571 * Makefile.devel (all): Depend on srclib/Makefile.gnulib, not
1573 (aclocal.m4): Likewise. Touch the resulting file, since aclocal not
1575 (srclib/Makefile.gnulib): Renamed from srclib/Makefile.am. Pass
1576 option --makefile-name.
1577 (srclib/Makefile.in): Depend on srclib/Makefile.gnulib too.
1578 * srclib/Makefile.am: New file that includes srclib/Makefile.gnulib.
1580 2006-10-31 Bruno Haible <bruno@clisp.org>
1582 Update from GNU gettext.
1583 2006-10-29 Bruno Haible <bruno@clisp.org>
1584 Make it compile in C++ mode.
1585 * gnulib-local/lib/xalloc.h (xrealloc): Define as template
1586 with appropriate return type.
1587 * gnulib-local/lib/xstrdup.c (xstrdup): Cast xmalloc result.
1588 2006-10-26 Bruno Haible <bruno@clisp.org>
1589 * gnulib-local/modules/canonicalize (Makefile.am): Remove
1590 EXTRA_DIST. Now done by gnulib-tool.
1591 * gnulib-local/modules/relocatable (Makefile.am): Likewise.
1592 * gnulib-local/modules/relocwrapper (Makefile.am): Likewise.
1593 2006-10-25 Bruno Haible <bruno@clisp.org>
1594 * gnulib-local/m4/relocatable.m4 (AC_RELOCATABLE_BODY):
1595 Renamed from AC_RELOCATABLE, without the AC_LIBOBJ invocation.
1596 (AC_RELOCATABLE): New macro. Invoke AC_LIBOBJ here.
1597 * gnulib-local/modules/relocwrapper (configure.ac): Invoke
1598 AC_RELOCATABLE instead of requiring it.
1599 2006-10-12 Bruno Haible <bruno@clisp.org>
1600 * gnulib-local/modules/canonicalize (Makefile.am): Distribute
1601 all files in lib/ through EXTRA_DIST.
1602 * gnulib-local/modules/relocatable (Makefile.am): Likewise.
1603 2006-09-14 Bruno Haible <bruno@clisp.org>
1604 * gnulib-local/lib/canonicalize.c: Include <config.h>
1606 * gnulib-local/lib/relocatable.c: Likewise.
1607 * lib/relocatable.c: Likewise.
1608 * gnulib-local/lib/relocwrapper.c: Likewise.
1609 * gnulib-local/lib/xmalloc.c: Likewise.
1610 * gnulib-local/lib/xreadlink.c: Likewise.
1611 * gnulib-local/lib/xstrdup.c: Likewise.
1612 2006-08-02 Bruno Haible <bruno@clisp.org>
1613 * gnulib-local/modules/canonicalize: Put under LGPL.
1614 * gnulib-local/modules/relocatable: Likewise.
1615 2006-07-18 Bruno Haible <bruno@clisp.org>
1616 * gnulib-local/xalloc.h (xzalloc): New declaration.
1617 * gnulib-local/xmalloc.c (xzalloc): New function.
1619 2006-10-24 Bruno Haible <bruno@clisp.org>
1621 * man/Makefile.in (PACKAGE): New variable. Needed for docdir.
1622 Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
1624 2006-10-14 Bruno Haible <bruno@clisp.org>
1626 * COPYING: New file.
1627 * README: Clarify copyright of the iconv program.
1628 Reported by Charles Wilson <cwilson@fastmail.fm>.
1630 2006-08-08 Bruno Haible <bruno@clisp.org>
1632 * INSTALL.generic: Add a recommendation for Tru64.
1633 Reported by Gary V. Vaughan <gary@gnu.org>.
1635 2006-07-29 Bruno Haible <bruno@clisp.org>
1637 * tests/check-subst: Set CHARSETALIASDIR.
1638 Needed so that "make check" works before "make install" on systems
1641 2006-07-29 Bruno Haible <bruno@clisp.org>
1643 * Makefile.devel (aclocal.m4): Depend on srclib/Makefile.am.
1644 (AUTOCONF_FILES): Add the existing *.m4 files.
1646 2006-07-29 Bruno Haible <bruno@clisp.org>
1648 * gnulib-local/lib/xreadlink.c: Assume <stdlib.h> exists.
1649 * src/iconv.c: Assume <locale.h> exists.
1650 * configure.ac: Remove tests for <locale.h>, <stddef.h>, <stdlib.h>,
1653 2006-07-29 Bruno Haible <bruno@clisp.org>
1655 * configure.ac: Remove obsolete calls AC_PROG_GCC_TRADITIONAL,
1656 AC_ISC_POSIX, AC_HEADER_STDC.
1658 2006-07-29 Bruno Haible <bruno@clisp.org>
1660 * configure.ac: Remove macro invocations that are redundant through
1661 gl_EARLY and gl_INIT.
1663 2006-07-29 Bruno Haible <bruno@clisp.org>
1665 * gnulib-local/m4/alloca.m4 (gl_PREREQ_ALLOCA): Add a dummy statement.
1666 Avoids a sh syntax error.
1668 2006-07-29 Bruno Haible <bruno@clisp.org>
1670 * gnulib-local/m4/relocatable.m4: Add comments.
1672 2006-07-29 Bruno Haible <bruno@clisp.org>
1674 * gnulib-local/modules/libiconv-misc: New file.
1675 * Makefile.devel (GNULIB_MODULES): Add libiconv-misc.
1677 * Makefile.devel (srclib/Makefile.am): Pass --no-libtool.
1679 2006-07-29 Bruno Haible <bruno@clisp.org>
1681 Note: gnulib macros no longer invoke AC_TYPE_SIZE_T nor
1682 AC_CHECK_TYPE([ptrdiff_t], , [AC_DEFINE([ptrdiff_t], [long], ...)])
1683 because we now assume that the system defines size_t and ptrdiff_t.
1685 2006-07-29 Bruno Haible <bruno@clisp.org>
1687 Switch to using gnulib.
1688 * configure.ac (AC_PREREQ): Require autoconf-2.60.
1689 Invoke gl_EARLY and gl_INIT.
1690 * Makefile.devel (all): Depend on srclib/Makefile.am.
1691 (aclocal.m4): Pass -I srcm4 to aclocal. Simplify dependencies, assuming
1693 (GNULIB_MODULES): New variable.
1694 (srclib/Makefile.am): New rule.
1695 * gnulib-local: New directory.
1696 * gnulib-local/m4/alloca.m4: Moved here from m4/alloca.m4.
1697 * gnulib-local/m4/canonicalize.m4: Moved here from m4/canonicalize.m4.
1698 * gnulib-local/m4/relocatable.m4: Moved here from m4/relocatable.m4.
1699 * gnulib-local/m4/xreadlink.m4: Moved here from m4/xreadlink.m4.
1700 * gnulib-local/lib/alloca_.h: Moved here from srclib/alloca_.h.
1701 * gnulib-local/lib/canonicalize.h: Moved here from srclib/canonicalize.h.
1702 * gnulib-local/lib/canonicalize.c: Moved here from srclib/canonicalize.c.
1703 * gnulib-local/lib/cjk.h: Moved here from srclib/cjk.h.
1704 * gnulib-local/lib/error.h.diff: New file.
1705 * gnulib-local/lib/progname.h.diff: New file.
1706 * gnulib-local/lib/relocatable.h: Moved here from srclib/relocatable.h.
1707 * gnulib-local/lib/relocatable.c: Moved here from srclib/relocatable.c.
1708 * gnulib-local/lib/relocwrapper.c: Moved here from srclib/relocwrapper.c.
1709 * gnulib-local/lib/streq.h: Moved here from srclib/streq.h.
1710 * gnulib-local/lib/strerror.c.diff: New file.
1711 * gnulib-local/lib/unitypes.h: Moved here from srclib/unitypes.h.
1712 * gnulib-local/lib/uniwidth.h: Moved here from srclib/uniwidth.h.
1713 * gnulib-local/lib/width.c: Moved here from srclib/width.c.
1714 * gnulib-local/lib/xalloc.h: Moved here from srclib/xalloc.h.
1715 * gnulib-local/lib/xmalloc.c: Moved here from srclib/xmalloc.c.
1716 * gnulib-local/lib/xstrdup.c: Moved here from srclib/xstrdup.c.
1717 * gnulib-local/lib/xreadlink.h: Moved here from srclib/xreadlink.h.
1718 * gnulib-local/lib/xreadlink.c: Moved here from srclib/xreadlink.c.
1719 * gnulib-local/modules/canonicalize: New file.
1720 * gnulib-local/modules/progreloc: New file.
1721 * gnulib-local/modules/relocatable: New file.
1722 * gnulib-local/modules/relocwrapper: New file.
1723 * gnulib-local/modules/uniwidth: New file.
1724 * gnulib-local/modules/xalloc: New file.
1725 * gnulib-local/modules/xreadlink: New file.
1727 * m4/allocsa.m4: Remove file. Now taken from gnulib.
1728 * m4/codeset.m4: Likewise.
1729 * m4/eealloc.m4: Likewise.
1730 * m4/error.m4: Likewise.
1731 * m4/extensions.m4: Likewise.
1732 * m4/full-header-path.m4: Likewise.
1733 * m4/gettext.m4: Likewise.
1734 * m4/glibc21.m4: Likewise.
1735 * m4/iconv.m4: Likewise.
1736 * m4/intmax.m4: Likewise.
1737 * m4/inttypes-h.m4: Likewise.
1738 * m4/inttypes_h.m4: Likewise.
1739 * m4/isc-posix.m4: Likewise.
1740 * m4/lcmessage.m4: Likewise.
1741 * m4/lib-ld.m4: Likewise.
1742 * m4/lib-link.m4: Likewise.
1743 * m4/lib-prefix.m4: Likewise.
1744 * m4/longdouble.m4: Likewise.
1745 * m4/longlong.m4: Likewise.
1746 * m4/mbstate_t.m4: Likewise.
1747 * m4/nls.m4: Likewise.
1748 * m4/onceonly.m4: Likewise.
1749 * m4/pathmax.m4: Likewise.
1750 * m4/po.m4: Likewise.
1751 * m4/printf-posix.m4: Likewise.
1752 * m4/progtest.m4: Likewise.
1753 * m4/readlink.m4: Likewise.
1754 * m4/setenv.m4: Likewise.
1755 * m4/signed.m4: Likewise.
1756 * m4/size_max.m4: Likewise.
1757 * m4/ssize_t.m4: Likewise.
1758 * m4/stdbool.m4: Likewise.
1759 * m4/stdint.m4: Likewise.
1760 * m4/stdint_h.m4: Likewise.
1761 * m4/strerror.m4: Likewise.
1762 * m4/strerror_r.m4: Likewise.
1763 * m4/unistd_h.m4: Likewise.
1764 * m4/unlocked-io.m4: Likewise.
1765 * m4/visibility.m4: Likewise.
1766 * m4/wchar_t.m4: Likewise.
1767 * m4/wint_t.m4: Likewise.
1769 * srclib/allocsa.h: Remove file. Now taken from gnulib.
1770 * srclib/allocsa.c: Likewise.
1771 * srclib/binary-io.h: Likewise.
1772 * srclib/error.h: Likewise.
1773 * srclib/error.c: Likewise.
1774 * srclib/exit.h: Likewise.
1775 * srclib/gettext.h: Likewise.
1776 * srclib/memmove.c: Likewise.
1777 * srclib/pathmax.h: Likewise.
1778 * srclib/progname.h: Likewise.
1779 * srclib/progname.c: Likewise.
1780 * srclib/progreloc.c: Likewise.
1781 * srclib/readlink.c: Likewise.
1782 * srclib/setenv.h: Likewise.
1783 * srclib/setenv.c: Likewise.
1784 * srclib/stdbool_.h: Likewise.
1785 * srclib/stdint_.h: Likewise.
1786 * srclib/strerror.c: Likewise.
1787 * srclib/unlocked-io.h: Likewise.
1788 * srclib/unsetenv.c: Likewise.
1789 * srclib/Makefile.am: Remove file.
1791 2006-07-27 Bruno Haible <bruno@clisp.org>
1793 Remove OS/2 build support that doesn't assume GNU make and GNU bash.
1794 * README.os2: Remove file.
1795 * Makefile.os2: Remove file.
1796 * lib/Makefile.os2: Remove file.
1797 * src/Makefile.os2: Remove file.
1798 * man/Makefile.os2: Remove file.
1799 * tests/Makefile.os2: Remove file.
1800 * tests/check-stateful.cmd: Remove file.
1801 * tests/check-stateless.cmd: Remove file.
1802 * tests/check-translit.cmd: Remove file.
1804 2006-07-25 Bruno Haible <bruno@clisp.org>
1806 Remove MSVC/nmake build support.
1807 * windows: Remove directory.
1808 * Makefile.msvc: Remove file.
1809 * lib/Makefile.msvc: Remove file.
1810 * srclib/Makefile.msvc: Remove file.
1811 * src/Makefile.msvc: Remove file.
1812 * tests/Makefile.msvc: Remove file.
1813 * man/Makefile.msvc: Remove file.
1814 * po/Rules-msvc: Remove file.
1815 * po/Makefile.msvc.sh: Remove file.
1816 * Makefile.devel (config.h.msvc, lib/config.h.msvc): Remove rules.
1817 (include/iconv.h.msvc-static, include/iconv.h.msvc-shared): Remove
1819 (po/Makefile.msvc): Remove rule.
1822 2006-07-25 Bruno Haible <bruno@clisp.org>
1825 * vms: Remove directory.
1826 * Makefile.vms: Remove file.
1827 * lib/Makefile.vms: Remove file.
1828 * srclib/Makefile.vms: Remove file.
1829 * src/Makefile.vms: Remove file.
1830 * tests/Makefile.vms: Remove file.
1831 * man/Makefile.vms: Remove file.
1832 * Makefile.devel (config.h_vms, lib/config.h_vms): Remove rules.
1833 (include/iconv.h_vms): Remove rule.
1836 2006-07-23 Bruno Haible <bruno@clisp.org>
1838 * lib/Makefile.in (libiconv.la): Use the CFLAGS during linking.
1839 * src/Makefile.in (iconv_no_i18n): Likewise.
1840 (install): Likewise.
1841 * tests/Makefile.in (table-from, table-to): Likewise.
1842 Needed because the CFLAGS can e.g. trigger profiling.
1843 Reported by Russell Aspinwall <russell.aspinwall@flomerics.co.uk>.
1845 2006-07-19 Bruno Haible <bruno@clisp.org>
1847 * Version 1.11 released.
1849 2006-07-19 Bruno Haible <bruno@clisp.org>
1851 * srclib/Makefile.am (libicrt_a_SOURCES): Remove error.h, error.c.
1852 (LIBADD_SOURCE): Add them here.
1854 2006-07-19 Bruno Haible <bruno@clisp.org>
1856 * build-aux/config.guess: Update to GNU version 2006-07-02.
1857 * build-aux/config.sub: Likewise.
1859 2006-07-14 Bruno Haible <bruno@clisp.org>
1861 * lib/Makefile.in (clean): Remove also *.stackdump.
1862 * src/Makefile.in (clean): Likewise.
1863 * tests/Makefile.in (clean): Likewise.
1865 2006-07-14 Bruno Haible <bruno@clisp.org>
1867 * src/Makefile.in (clean): Remove also iconv_no_i18n. Needed for
1869 * tests/Makefile.in (clean): Remove also the programs, without
1870 EXEEXT. Needed for cygwin or mingw.
1871 * Makefile.in (mostlyclean, clean, distclean, maintainer-clean):
1872 Remove also bin directory. Needed for cygwin and mingw.
1874 2006-07-03 Bruno Haible <bruno@clisp.org>
1876 * src/iconv.c (check_subst_formatstring): Use ngettext.
1877 (subst_wc_to_mb_fallback, subst_mb_to_mb_fallback): Fix error messages
1878 after 2006-01-22 change.
1879 * configure.ac: Require a gettext version with ngettext.
1881 2006-06-28 Bruno Haible <bruno@clisp.org>
1883 * m4/gettext.m4: Update from GNU gettext.
1884 * m4/po.m4: Update from GNU gettext.
1886 2006-06-27 Bruno Haible <bruno@clisp.org>
1888 * Makefile.devel (AUTOCONF, AUTOHEADER): Use autoconf-2.60.
1889 * Makefile.in (datarootdir): New variable.
1890 (install, installdirs, uninstall): Also pass datarootdir.
1891 * configure.ac (mandir): Remove customization.
1892 * man/Makefile.in (datarootdir): New variable.
1893 (docdir, htmldir): Use autoconf-substituted value.
1894 * src/Makefile.in (datarootdir): New variable.
1895 (localedir): Use autoconf-substituted value.
1897 2006-06-27 Bruno Haible <bruno@clisp.org>
1899 * m4/stdint.m4: Update from gnulib.
1900 * srclib/stdint_.h: Update from gnulib.
1901 * srclib/Makefile.am: Update.
1903 2006-06-17 Bruno Haible <bruno@clisp.org>
1905 * srclib/unsetenv.c: Update from GNU gettext.
1906 * srclib/xreadlink.c: Likewise.
1908 2006-06-16 Bruno Haible <bruno@clisp.org>
1910 * m4/full-header-path.m4: New file, from gnulib.
1911 * m4/size_max.m4: New file, from gnulib.
1912 * m4/stdint.m4: Update from gnulib.
1913 * srclib/stdint_.h: Update from gnulib.
1914 * srclib/Makefile.am (stdint.h): Likewise.
1915 * Makefile.devel (aclocal.m4): Update dependencies.
1917 2006-06-16 Bruno Haible <bruno@clisp.org>
1919 * m4/ssize_t.m4: Update from GNU gettext.
1921 2006-06-12 Bruno Haible <bruno@clisp.org>
1923 * m4/gettext.m4: Update from GNU gettext.
1924 * m4/inttypes-h.m4: New file, from GNU gettext.
1925 * m4/inttypes.m4: Remove file.
1926 * m4/stdint.m4 (gl_STDINT_H): Update.
1927 * Makefile.devel (aclocal.m4): Update dependencies.
1929 2006-06-10 Bruno Haible <bruno@clisp.org>
1931 * src/iconv.c (error) [NO_I18N]: Define here instead of including
1932 error.h. Fixes link failure introduced on 2006-01-22.
1934 2006-03-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1936 * m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER) [ linux ]: Avoid warning when
1937 "parsing" /etc/ld.so.conf and empty /etc/ld.so.conf.d.
1939 2006-05-20 Bruno Haible <bruno@clisp.org>
1941 * tests/BIG5-HKSCS-1999-snippet: New file.
1942 * tests/BIG5-HKSCS-1999-snippet.UTF-8: New file.
1943 * tests/BIG5-HKSCS-2001-snippet: New file.
1944 * tests/BIG5-HKSCS-2001-snippet.UTF-8: New file.
1945 * tests/BIG5-HKSCS-2004-snippet: New file.
1946 * tests/BIG5-HKSCS-2004-snippet.UTF-8: New file.
1947 * tests/Makefile.in (check): Test also the stateful parts of
1948 BIG5-HKSCS:1999, BIG5-HKSCS:2001, BIG5-HKSCS:2004.
1950 2006-05-17 Bruno Haible <bruno@clisp.org>
1952 Implement newer releases of BIG5-HKSCS.
1953 * tools/Makefile (ALL): Remove hkscs.h, add hkscs1999.h, hkscs2001.h,
1955 (hkscs.h): Remove rule.
1956 (hkscs1999.h, hkscs2001.h, hkscs2004.h): New rules.
1957 * tools/cjk_tab_to_h.c (output_title): Update year.
1958 (main): Recognize hkscs1999, hkscs2001, hkscs2004.
1959 * lib/encodings.def: Rename BIG5-HKSCS to BIG5-HKSCS:1999. Add
1960 BIG5-HKSCS:2001, BIG5-HKSCS:2004. Make all three stateful.
1961 * lib/hkscs.h: Remove file.
1962 * lib/hkscs1999.h: New file.
1963 * lib/hkscs2001.h: New file.
1964 * lib/hkscs2004.h: New file.
1965 * lib/big5hkscs.h: Remove file.
1966 * lib/big5hkscs1999.h: New file.
1967 * lib/big5hkscs2001.h: New file.
1968 * lib/big5hkscs2004.h: New file.
1969 * lib/converters.h: Include the new files.
1970 * README, man/iconv_open.3: Add BIG5-HKSCS:1999, BIG5-HKSCS:2001.
1971 * tests/BIG5-HKSCS.TXT: Remove file.
1972 * tests/BIG5-HKSCS.IRREVERSIBLE.TXT: Remove file.
1973 * tests/BIG5-HKSCS-1999.TXT: New file.
1974 * tests/BIG5-HKSCS-1999.IRREVERSIBLE.TXT: New file.
1975 * tests/BIG5-HKSCS-2001.TXT: New file.
1976 * tests/BIG5-HKSCS-2001.IRREVERSIBLE.TXT: New file.
1977 * tests/BIG5-HKSCS-2004.TXT: New file.
1978 * tests/BIG5-HKSCS-2004.IRREVERSIBLE.TXT: New file.
1979 * tests/check-stateless: Convert colon in the charset name to a dash in
1981 * tests/Makefile.in (check): Check BIG5-HKSCS:1999, BIG5-HKSCS:2001,
1982 BIG5-HKSCS:2004 instead of just BIG5-HKSCS.
1983 * tests/Makefile.msvc (check): Don't check BIG5-HKSCS.
1984 * tests/Makefile.os2 (check): Likewise.
1986 2006-05-17 Bruno Haible <bruno@clisp.org>
1988 * srclib/progreloc.c: Update from GNU gettext.
1990 2006-05-16 Bruno Haible <bruno@clisp.org>
1992 * src/Makefile.in (clean): Use EXEEXT.
1993 * tests/Makefile.in (check, clean): Likewise.
1995 2006-05-15 Bruno Haible <bruno@clisp.org>
1997 * configure.ac: Move some checks before AC_RELOCATABLE.
1999 2006-05-15 Bruno Haible <bruno@clisp.org>
2001 Support for building shared libraries on mingw and Cygwin.
2002 * configure.ac (WOE32DLL, DLL_VARIABLE): New variables.
2003 * include/iconv.h.in (_libiconv_version): Mark as DLL_VARIABLE.
2004 * woe32dll/export.h: New file, from GNU gettext.
2005 * woe32dll/iconv-exports.h: New file.
2006 * Makefile.devel (include/iconv.h_vms, include/iconv.h.msvc-static,
2007 include/iconv.h.msvc-shared): Remove the DLL_VARIABLE annotation.
2008 * lib/Makefile.in (INCLUDES): Add -I for parent directory.
2009 (LDFLAGS): Add WOE32DLL dependent flags.
2010 (LDFLAGS_yes, LDFLAGS_no): New variables.
2011 (OBJECTS): Add WOE32DLL dependent objects.
2012 (OBJECTS_yes, OBJECTS_no): New variables.
2013 (iconv-exports.lo): New rule.
2015 2006-05-15 Bruno Haible <bruno@clisp.org>
2017 * srclib/gettext.h: Update from GNU gettext.
2018 * srclib/pathmax.h: Update from GNU gettext.
2019 * srclib/progreloc.c: Update from GNU gettext.
2020 * srclib/unsetenv.c: Update from GNU gettext.
2021 * srclib/Makefile.am: Add snippet for creation of unistd.h.
2022 * m4/extensions.m4: Update from GNU gettext.
2023 * m4/gettext.m4: Update from GNU gettext.
2024 * m4/lib-ld.m4: Update from GNU gettext.
2025 * m4/lib-link.m4: Update from GNU gettext.
2026 * m4/lib-prefix.m4: Update from GNU gettext.
2027 * m4/longdouble.m4: Update from GNU gettext.
2028 * m4/nls.m4: Update from GNU gettext.
2029 * m4/onceonly.m4: Update from GNU gettext.
2030 * m4/po.m4: Update from GNU gettext.
2031 * m4/relocatable.m4: Update from GNU gettext.
2032 * m4/unistd_h.m4: New file, from GNU gettext.
2033 * Makefile.devel (aclocal.m4): Depend on it.
2034 * configure.ac: Invoke gl_HEADER_UNISTD.
2036 2006-05-14 Bruno Haible <bruno@clisp.org>,
2037 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2039 * m4/libtool.m4 [ linux ] (AC_LIBTOOL_LANG_CXX_CONFIG)
2040 (AC_LIBTOOL_POSTDEP_PREDEP, AC_LIBTOOL_PROG_COMPILER_PIC)
2041 (AC_LIBTOOL_PROG_LD_SHLIBS): Add support for Sun C 5.9,
2042 Sun C++ 5.9, and Sun Fortran 8.3 on Linux.
2044 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
2046 * m4/libtool.m4: On Cygwin, like on mingw, define DLL_EXPORT when
2047 compiling a shared library object.
2049 2006-05-15 Bruno Haible <bruno@clisp.org>
2051 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
2053 2006-03-31 Juan Manuel Guerrero <juan.guerrero@gmx.de>
2057 2006-01-23 Bruno Haible <bruno@clisp.org>
2059 * configure.ac: Invoke gl_ALLOCSA.
2061 * Makefile.devel (aclocal.m4): Depend on $(CONFIGURES_IN).
2063 2006-01-22 Bruno Haible <bruno@clisp.org>
2065 * src/iconv.c (xmalloc, xalloc_die) [NO_I18N]: Define to avoid using
2068 2006-01-22 Bruno Haible <bruno@clisp.org>
2070 * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 6:0:4.
2072 2006-01-22 Bruno Haible <bruno@clisp.org>
2074 * src/iconv.c: Include error.h, exit.h.
2075 (print_version): Use EXIT_SUCCESS.
2076 (check_subst_formatstring, subst_mb_to_uc_fallback,
2077 subst_uc_to_mb_fallback, subst_mb_to_wc_fallback,
2078 subst_wc_to_mb_fallback, subst_mb_to_mb_fallback, convert, main): Use
2079 error() instead of fprintf to stderr.
2081 2006-01-22 Bruno Haible <bruno@clisp.org>
2083 New feature: character-dependent substitutions.
2084 * include/iconv.h.in (iconv_unicode_mb_to_uc_fallback,
2085 iconv_unicode_uc_to_mb_fallback, iconv_wchar_mb_to_wc_fallback,
2086 iconv_wchar_wc_to_mb_fallback): New types.
2087 (struct iconv_fallbacks): New structure type.
2088 (ICONV_SET_FALLBACKS): New macro.
2089 * configure.ac: Invoke gt_TYPE_WCHAR_T and substitute HAVE_WCHAR_T.
2090 * Makefile.os2 (all): Also substitute @HAVE_WCHAR_T@ in build/iconv.h.
2091 * Makefile.devel (include/iconv.h_vms, include/iconv.h.msvc-static,
2092 include/iconv.h.msvc-shared): Also substitute @HAVE_WCHAR_T@.
2093 * lib/converters.h (struct conv_struct): Add field 'fallbacks'.
2094 * lib/loop_unicode.h (struct uc_to_mb_fallback_locals): New type.
2095 (uc_to_mb_write_replacement): New function.
2096 (struct mb_to_uc_fallback_locals): New type.
2097 (mb_to_uc_write_replacement): New function.
2098 (unicode_loop_convert): Call mb_to_uc_fallback and uc_to_mb_fallback.
2099 (unicode_loop_reset): Call uc_to_mb_fallback.
2100 * lib/loop_wchar.h (struct wc_to_mb_fallback_locals): New type.
2101 (wc_to_mb_write_replacement): New function.
2102 (wchar_from_loop_convert): Call wc_to_mb_fallback.
2103 (struct mb_to_wc_fallback_locals): New type.
2104 (mb_to_wc_write_replacement): New function.
2105 (wchar_to_loop_convert): Call mb_to_wc_fallback.
2106 * lib/iconv.c (iconv_open): Initialize the 'fallbacks' field.
2107 (iconvctl): Handle ICONV_SET_FALLBACKS.
2108 * lib/genflags.c (struct iconv_fallbacks): New dummy definition.
2109 * src/iconv.c: Include limits.h.
2110 (isdigit, c_isprint): New macros.
2111 (usage): Document long options and new options.
2112 (check_subst_formatstring): New function.
2113 (ilseq_byte_subst, ilseq_wchar_subst, ilseq_unicode_subst): New
2115 (ilseq_byte_subst_size, ilseq_wchar_subst_size,
2116 ilseq_unicode_subst_size): New variables.
2117 (ilseq_byte_subst_buffer, ilseq_wchar_subst_buffer,
2118 ilseq_unicode_subst_buffer): New variables.
2119 (subst_mb_to_uc_cd, subst_mb_to_uc_temp_buffer): New variables.
2120 (subst_mb_to_uc_fallback): New function.
2121 (subst_uc_to_mb_cd, subst_uc_to_mb_temp_buffer): New variables.
2122 (subst_uc_to_mb_fallback): New function.
2123 (subst_mb_to_wc_cd, subst_mb_to_wc_temp_buffer): New variables.
2124 (subst_mb_to_wc_fallback): New function.
2125 (subst_wc_to_mb_cd, subst_wc_to_mb_temp_buffer): New variables.
2126 (subst_wc_to_mb_fallback): New function.
2127 (subst_mb_to_mb_cd, subst_mb_to_mb_temp_buffer): New variables.
2128 (subst_mb_to_mb_fallback): New function.
2129 (convert): Enlarge the outbuf when the conversion failed with E2BIG.
2130 (main): Handle new options --byte-subst, --widechar-subst,
2132 * man/iconv.1: Document --unicode-subst, --byte-subst, --widechar-subst
2134 * tests/check-subst: New file.
2135 * tests/Makefile.in (check): Also invoke check-subst.
2136 Suggested by James Taylor <james@oakseed.demon.co.uk>.
2138 2006-01-21 Bruno Haible <bruno@clisp.org>
2140 * src/iconv.c (print_version): Bump copyright year.
2141 (main): Accept long options --from-code, --to-code, --list, --silent.
2142 Accept abbreviated long options, like getopt() does.
2143 * man/iconv.1: Document long options.
2145 2005-12-29 Bruno Haible <bruno@clisp.org>
2147 * src/iconv.c (print_version): Update copyright year.
2149 2005-12-29 Bruno Haible <bruno@clisp.org>
2151 * configure.ac: Renamed from configure.in.
2152 * Makefile.devel (CONFIGURES_IN, configure, config.h.in): Update.
2154 2005-12-29 Bruno Haible <bruno@clisp.org>
2156 * configure.in: Bump version number.
2157 * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
2158 * windows/iconv.rc: Likewise.
2159 * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 5:1:3.
2161 2005-12-29 Bruno Haible <bruno@clisp.org>
2163 * build-aux/config.guess: Update to GNU version 2005-12-23.
2164 * build-aux/config.sub: Likewise.
2165 * build-aux/config.libpath: Update from GNU gettext.
2166 * build-aux/install-sh: Upgrade to automake-1.9.5.
2167 * build-aux/missing: Upgrade to automake-1.9.5.
2168 * build-aux/mkinstalldirs: Upgrade to automake-1.9.5.
2170 2005-12-29 Bruno Haible <bruno@clisp.org>
2172 * m4/alloca.m4: Update from GNU gettext.
2173 * m4/allocsa.m4: Update from GNU gettext.
2174 * m4/canonicalize.m4: Update from GNU gettext.
2175 * m4/codeset.m4: Update from GNU gettext.
2176 * m4/eealloc.m4: Update from GNU gettext.
2177 * m4/error.m4: Update from GNU gettext.
2178 * m4/extensions.m4: Update from GNU gettext.
2179 * m4/gettext.m4: Update from GNU gettext.
2180 * m4/glibc21.m4: Update from GNU gettext.
2181 * m4/iconv.m4: Update from GNU gettext.
2182 * m4/intmax.m4: Update from GNU gettext.
2183 * m4/inttypes_h.m4: New file, from GNU gettext.
2184 * m4/isc-posix.m4: Update from GNU gettext.
2185 * m4/lcmessage.m4: Update from GNU gettext.
2186 * m4/longdouble.m4: Update from GNU gettext.
2187 * m4/longlong.m4: Update from GNU gettext.
2188 * m4/mbstate_t.m4: Update from GNU gettext.
2189 * m4/nls.m4: Update from GNU gettext.
2190 * m4/onceonly.m4: Update from GNU gettext.
2191 * m4/pathmax.m4: Update from GNU gettext.
2192 * m4/po.m4: Update from GNU gettext.
2193 * m4/printf-posix.m4: Update from GNU gettext.
2194 * m4/progtest.m4: Update from GNU gettext.
2195 * m4/readlink.m4: Update from GNU gettext.
2196 * m4/relocatable.m4: Update from GNU gettext.
2197 * m4/setenv.m4: Update from GNU gettext.
2198 * m4/signed.m4: Update from GNU gettext.
2199 * m4/ssize_t.m4: Update from GNU gettext.
2200 * m4/stdbool.m4: Update from GNU gettext.
2201 * m4/stdint_h.m4: New file, from GNU gettext.
2202 * m4/strerror.m4: Update from GNU gettext.
2203 * m4/strerror_r.m4: Update from GNU gettext.
2204 * m4/unlocked-io.m4: Update from GNU gettext.
2205 * m4/wchar_t.m4: Update from GNU gettext.
2206 * m4/wint_t.m4: Update from GNU gettext.
2207 * m4/xreadlink.m4: Update from GNU gettext.
2208 * Makefile.devel (aclocal.m4): Depend on m4/inttypes_h.m4 and
2209 m4/stdint_h.m4 as well.
2210 * configure.in: Invoke AC_TYPE_MBSTATE_T instead of AC_MBSTATE_T.
2211 Invoke gl_FUNC_GLIBC_UNLOCKED_IO instead of jm_FUNC_GLIBC_UNLOCKED_IO.
2212 Invoke gl_ERROR instead of gt_FUNC_ERROR_AT_LINE.
2213 Don't invoke AC_AIX and AC_MINIX, done by gl_USE_SYSTEM_EXTENSIONS.
2214 Temporarily redefine AC_LIBOBJ and AC_REPLACE_FUNCS, so as to fill
2215 SRCLIBOBJS instead of LIBOBJS.
2216 * srclib/alloca_.h: Update from GNU gettext.
2217 * srclib/allocsa.h: Update from GNU gettext.
2218 * srclib/canonicalize.c: Update from GNU gettext.
2219 * srclib/error.h: Update from GNU gettext.
2220 * srclib/error.c: Update from GNU gettext.
2221 * srclib/gettext.h: Update from GNU gettext.
2222 * srclib/memmove.c: Update from GNU gettext.
2223 * srclib/progname.h: Update from GNU gettext.
2224 * srclib/progname.c: Update from GNU gettext.
2225 * srclib/progreloc.c: Update from GNU gettext.
2226 * srclib/readlink.c: Update from GNU gettext.
2227 * srclib/relocatable.c: Update from GNU gettext.
2228 * srclib/relocwrapper.c: Update from GNU gettext.
2229 * srclib/setenv.h: Update from GNU gettext.
2230 * srclib/setenv.c: Update from GNU gettext.
2231 * srclib/stdbool_.h: Update from GNU gettext.
2232 * srclib/stdint_.h: Update from gnulib.
2233 * srclib/strerror.c: Update from GNU gettext.
2234 * srclib/unlocked-io.h: Update from GNU gettext.
2235 * srclib/unsetenv.c: Update from GNU gettext.
2236 * srclib/xalloc.h: Update from GNU gettext.
2237 * srclib/xmalloc.c: Update from GNU gettext.
2238 * srclib/xreadlink.c: Update from GNU gettext.
2239 * srclib/xstrdup.c: Update from GNU gettext.
2240 * srclib/Makefile.am (DEFS): Also define EXEEXT.
2241 (libicrt_a_LIBADD): Use SRCLIBOBJS instead of LIBOBJS.
2242 (libicrt_a_DEPENDENCIES): New variable.
2243 * src/Makefile.in (EXEEXT): New variable.
2244 * build-aux/install-reloc: Update from GNU gettext.
2245 * build-aux/reloc-ldflags: Update from GNU gettext.
2246 * build-aux/config.rpath: Update from GNU gettext.
2248 2005-12-29 Bruno Haible <bruno@clisp.org>
2250 * m4/libtool.m4: Update, based on libtool-1.5.22.
2251 * build-aux/ltmain.sh: Update, based on libtool-1.5.22.
2253 2005-12-24 Bruno Haible <bruno@clisp.org>
2255 Check the whole range of GB18030.
2256 * tests/GB18030-BMP.TXT: Renamed from tests/GB18030.TXT.
2257 * tests/gengb18030z.c: New file.
2258 * tests/table-from.c (main): For GB18030, don't stop at U+10000.
2259 * tests/table-to.c (main): Likewise.
2260 * tests/Makefile.in (check): Generate GB18030.TXT on the fly from
2262 (clean): Remove also gengb18030z and GB18030.TXT.
2263 * tests/Makefile.msvc (check): Generate GB18030.TXT on the fly from
2265 (clean): Remove also GB18030Z.TXT, GB18030TMP.TXT, GB18030.TXT.
2266 * tests/Makefile.os2 (check): Depend on gengb18030z.exe. Generate
2267 GB18030.TXT on the fly from GB18030-BMP.TXT.
2268 (clean): Remove also GB18030Z.TXT, GB18030TMP.TXT, GB18030.TXT.
2270 2005-12-20 Bruno Haible <bruno@clisp.org>
2272 * tests/table-to.c (main): Test the mappings up to U+10FFFF, not only
2273 up to U+2FFFF. Tolerate that Unicode language tags are silently mapped
2276 2005-12-22 Bruno Haible <bruno@clisp.org>
2278 Extend GB18030 converter to cover the entire Unicode PUA.
2279 * lib/gb18030.h: Update comments, based on second printing.
2280 (gb18030_mbtowc): Add mapping for range U+E000..U+E765.
2281 (gb18030_pua2charset): New array.
2282 (gb18030_wctomb): Add mapping for range U+E000..U+E765 and the two-byte
2283 part of range U+E766..U+E864.
2284 * lib/gb18030ext.h (gb18030ext_2uni_pagefe): Add mappings to private
2286 (gb18030ext_mbtowc): Add mapping for the two-byte part of range
2288 * lib/gb18030uni.h (gb18030uni_charset2uni_ranges,
2289 gb18030uni_uni2charset_ranges, gb18030uni_ranges): Add 12 more
2291 (gb18030uni_mbtowc, gb18030uni_wctomb): Update.
2292 * tests/GB18030.TXT: Complete mappings to private area.
2294 2005-12-22 Bruno Haible <bruno@clisp.org>
2296 * lib/gbk.h: Update comments.
2298 2005-12-20 Bruno Haible <bruno@clisp.org>
2300 Add private area mappings to CP949.
2301 * lib/cp949.h (cp949_mbtowc, cp949_wctomb): Map U+E000..U+E0BB like
2303 * tests/CP949.TXT: Add mappings for U+E000..U+E0BB.
2305 2005-12-15 Bruno Haible <bruno@clisp.org>
2307 Add private area mappings to CP950.
2308 * lib/cp950.h (cp950_mbtowc, cp950_wctomb): Map U+E000..U+F6B0 like
2310 * tests/CP950.TXT: Add mappings for U+E000..U+F6B0.
2312 2005-12-15 Bruno Haible <bruno@clisp.org>
2314 Make CP936 follow what Microsoft does.
2315 In http://www.microsoft.com/globaldev/reference/dbcs/936.mspx they
2316 added a 0x80 - U+20AC mapping to the code chart, but not to the
2317 tooltips and not to the list of mappings.
2318 * lib/cp936.h: New file.
2319 * lib/gbk.h: Update comments.
2320 * lib/ces_gbk.h: Update comments.
2321 * lib/converters.h: Include cp936.h.
2322 * lib/encodings.def (CP936): New encoding.
2323 (GBK): Remove CP936 aliases.
2324 * README, man/iconv_open.3: Add CP936.
2325 * tests/Makefile.in (check): Check CP936.
2326 * tests/Makefile.msvc (check): Likewise.
2327 * tests/Makefile.os2 (check): Likewise.
2328 * tests/CP936.TXT: New file.
2330 2005-12-14 Bruno Haible <bruno@clisp.org>
2332 * lib/cp932.h (cp932_wctomb): Map U+FF5E, U+2225, U+FF0D, U+FFE0,
2333 U+FFE1 like Microsoft does it.
2334 * lib/CP932.IRREVERSIBLE.TXT: Add these mappings.
2335 Reported by Lei Wang <lwang@qilinsoft.com>.
2337 2005-12-14 Bruno Haible <bruno@clisp.org>
2339 Follow Euro sign addition done in 1999 in
2340 http://www.microsoft.com/globaldev/reference/dbcs/950/950_A3.mspx
2341 * lib/cp950.h (cp950_mbtowc, cp950_wctomb): Add mapping for 0xA3E1.
2342 * tests/CP950.TXT: Add mapping for 0xA3E1.
2344 2005-11-11 Bruno Haible <bruno@clisp.org>
2346 * lib/euc_jp.h (euc_jp_wctomb): When writing a 3-bytes byte sequence
2347 and only two bytes are available in the output buffer, return
2348 RET_TOOSMALL instead of overrunning the output buffer.
2349 * lib/isoir165.h (isoir165_wctomb): When only one byte is available
2350 in the output buffer, don't overrun the output buffer.
2351 Reported by William Bardwell <bardwell@curl.com>.
2353 2005-09-18 Bruno Haible <bruno@clisp.org>
2355 * m4/libtool.m4: Update, based on libtool-1.5.20.
2356 * build-aux/ltmain.sh: Update, based on libtool-1.5.20.
2358 2005-08-12 Bruno Haible <bruno@clisp.org>
2360 * lib/big5_2003.h: Map 0xF9FA..0xF9FD differently.
2361 * tests/BIG5-2003.TXT: Likewise.
2362 * tests/BIG5-2003.IRREVERSIBLE.TXT: New file.
2363 Reported by Ping Yeh <ping@pingyeh.net>.
2365 2005-07-24 Bruno Haible <bruno@clisp.org>
2367 Tidy up exported symbols.
2368 * m4/visibility.m4: New file.
2369 * include/export.h: New file.
2370 * configure.in: Invoke gl_VISIBILITY. Use AC_CONFIG_FILES. Arrange to
2371 create also include/iconv.h.inst.
2372 * Makefile.devel (all): Depend on include/iconv.h.build.in.
2373 (aclocal.m4): Depend on m4/visibility.m4.
2374 (include/iconv.h.build.in): New rule.
2375 * Makefile.in (install-lib, install): Install include/iconv.h.inst,
2376 not the include/iconv.h that was used for building.
2377 (distclean, maintainer-clean): Remove also include/iconv.h.inst.
2378 * lib/Makefile.in (CFLAGS): Add @CFLAG_VISIBILITY@.
2379 (DEFS): Also define BUILDING_LIBICONV and BUILDING_DLL.
2380 * lib/config.h.in (HAVE_VISIBILITY): New macro.
2381 * lib/relocatable.h (RELOCATABLE_DLL_EXPORTED) [HAVE_VISIBILITY]:
2382 Define to the gcc visibility attribute.
2383 * srclib/relocatable.h (RELOCATABLE_DLL_EXPORTED) [HAVE_VISIBILITY]:
2386 2005-07-25 Bruno Haible <bruno@clisp.org>
2388 2003-08-24 Bruno Haible <bruno@clisp.org>
2389 * lib/relocatable.h: Make this file includable in C++ mode: add extern
2392 2005-07-08 Bruno Haible <bruno@clisp.org>
2394 * Version 1.10 released.
2396 2005-07-08 Bruno Haible <bruno@clisp.org>
2398 * m4/libtool.m4 (postinstall_cmds) [cygwin,mingw,pw32]: Make DLL
2399 executable after installing it.
2401 2005-07-08 Bruno Haible <bruno@clisp.org>
2403 * configure.in: Bump version number.
2404 * include/iconv.h.in (_LIBICONV_VERSION): Likewise.
2405 * windows/iconv.rc: Likewise.
2406 * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 5:0:3.
2408 2005-07-05 Bruno Haible <bruno@clisp.org>
2410 * Makefile.devel (ACLOCAL): New variable.
2411 (aclocal.m4): Use it.
2413 2005-07-05 Bruno Haible <bruno@clisp.org>
2415 * m4/relocatable.m4 (AC_RELOCATABLE): On mingw, simply set
2416 SET_RELOCATABLE to a trivial value.
2418 2004-08-08 Bruno Haible <bruno@clisp.org>
2420 * srclib/progreloc.c (xstrdup): Define as strdup if no xmalloc should
2423 2004-04-28 Bruno Haible <bruno@clisp.org>
2425 * srclib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
2426 Treat Cygwin like Windows, since it now accepts Windows pathnames.
2428 2005-06-09 Bruno Haible <bruno@clisp.org>
2430 * Makefile.in (mkinstalldirs): Use build-aux/ instead of autoconf/.
2431 * lib/Makefile.in (mkinstalldirs): Likewise.
2432 * src/Makefile.in (mkinstalldirs): Likewise.
2433 * man/Makefile.in (mkinstalldirs): Likewise.
2435 2005-06-08 Bruno Haible <bruno@clisp.org>
2437 * srclib/canonicalize.c (__realpath): Avoid gcc warnings on platforms
2438 that don't support symbolic links.
2440 2005-06-08 Bruno Haible <bruno@clisp.org>
2442 * srclib/binary-io.h (fileno): Undefine before defining it. Avoids a
2443 gcc warning on mingw.
2445 2005-05-22 Bruno Haible <bruno@clisp.org>
2447 Implement and document BIG5-2003.
2448 * lib/big5_2003.h: New file.
2449 * lib/converters.h: Include it.
2450 * lib/encodings_extra.def (BIG5-2003): New encoding.
2451 * README, man/iconv_open.3: Add BIG5-2003.
2452 * tests/Makefile.in (check-extra-yes): Check BIG5-2003.
2453 * tests/BIG5-2003.TXT: New file.
2455 2005-05-21 Bruno Haible <bruno@clisp.org>
2457 Add EURO SIGN to EUC-TW converter.
2458 * lib/cns11643_1.h (cns11643_1_2uni_page42): Add entry for 0x14242.
2459 (cns11643_1_mbtowc): Update.
2460 * lib/cns11643_inv.h (cns11643_inv_2charset): Add entry for 0x20AC.
2461 (cns11643_inv_uni2indx_page*): Update.
2462 * lib/dec_hanyu.h (dec_hanyu_mbtowc, dec_hanyu_wctomb): Consider only
2464 * tests/EUC-TW.TXT: Add entry for 0x20AC.
2465 * tests/EUC-TW.IRREVERSIBLE.TXT: Likewise.
2467 2005-05-03 Bruno Haible <bruno@clisp.org>
2469 * tools/Makefile (ALL): Add pt154.h.
2470 (pt154.h): New rule.
2471 * lib/encodings.def: Add PT154.
2472 * lib/pt154.h: New file.
2473 * lib/converters.h: Include it.
2474 * README, man/iconv_open.3: Add PT154.
2475 * NOTES: Mention PT154.
2476 * tests/PT154.TXT: New file.
2477 * tests/Makefile.in (check): Also test PT154.
2478 * tests/Makefile.msvc (check): Likewise.
2479 * tests/Makefile.os2 (check): Likewise.
2481 2005-03-29 Bruno Haible <bruno@clisp.org>
2483 Rename libiconv_plug.so to preloadable_libiconv.so.
2484 * configure.in (PLUGLIB): Set to preloadable_libiconv.so instead of
2486 * lib/Makefile.in (preloadable_libiconv.so): Renamed from
2488 (preloadable_libiconv_linux.so): Renamed from libiconv_plug_linux.so.
2489 (preloadable_libiconv_solaris.so): Renamed from
2490 libiconv_plug_solaris.so.
2491 (preloadable_libiconv_osf.so): Renamed from libiconv_plug_osf.so.
2495 2005-03-29 Bruno Haible <bruno@clisp.org>
2497 Implement and document ATARIST.
2498 * tools/Makefile (ALL): Add atarist.h.
2499 (atarist.h): New rule.
2500 * lib/atarist.h: New file.
2501 * lib/converters.h: Include it.
2502 * lib/encodings_extra.def (ATARIST): New encoding.
2503 * README, man/iconv_open.3: Add ATARIST.
2504 * tests/Makefile.in (check-extra-yes): Check ATARIST.
2505 * tests/ATARIST.TXT: New file.
2507 2005-03-22 Bruno Haible <bruno@clisp.org>
2509 * build-aux: New directory, renamed from autoconf.
2510 * configure.in (AC_CONFIG_AUX_DIR): Use build-aux.
2512 2005-03-16 Bruno Haible <bruno@clisp.org>
2514 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
2515 HAVE_LONGLONG_64BIT.
2516 * srclib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
2517 HAVE_LONGLONG_64BIT.
2518 * srclib/Makefile.am (stdint.h): Likewise.
2520 2005-03-14 Bruno Haible <bruno@clisp.org>
2522 * Makefile.devel (aclocal.m4): Depend also on allocsa.m4, eealloc.m4,
2523 extensions.m4, intmax.m4, inttypes.m4, longdouble.m4, longlong.m4,
2524 printf-posix.m4, readlink.m4, signed.m4, ssize_t.m4, stdint.m4,
2525 wchar_t.m4, wint_t.m4.
2527 2005-03-13 Bruno Haible <bruno@clisp.org>
2529 Make stdout error checking reliable, also when writing to a NFS file.
2530 * src/iconv.c (main): Check the return value of fclose(stdout).
2531 * lib/genaliases.c (main): Likewise.
2532 * lib/genaliases2.c (main): Likewise.
2533 * lib/genflags.c (main): Likewise.
2534 * lib/gentranslit.c (main): Likewise.
2535 * tests/genutf8.c (main): Likewise.
2536 * tests/table-from.c (main): Likewise.
2537 * tests/table-to.c (main): Likewise.
2539 2005-03-13 Bruno Haible <bruno@clisp.org>
2541 * src/iconv.c (convert): Before outputting an error message, flush
2542 stdout and output a newline if suitable.
2544 2005-03-13 Bruno Haible <bruno@clisp.org>
2546 Improved error messages.
2547 * srclib/width.c: New file, from GNU clisp.
2548 * srclib/uniwidth.h: New file, from GNU clisp with modifications.
2549 * srclib/unitypes.h: New file, from GNU clisp with modifications.
2550 * srclib/cjk.h: New file, from GNU clisp.
2551 * srclib/streq.h: New file, from GNU clisp.
2552 * srclib/stdint_.h: New file, from gnulib.
2553 * m4/stdint.m4: New file, from gnulib.
2554 * m4/inttypes.m4: New file, from gnulib.
2555 * srclib/Makefile.am: Add gnulib module 'stdint' snippet.
2556 (BUILT_SOURCES): New variable.
2557 (libicrt_a_SOURCES): Add width.c, uniwidth.h, unitypes.h, cjk.h,
2559 * configure.in: Invoke gl_STDINT_H.
2560 * src/iconv.c: Include cjk.h, uniwidth.h.
2561 (line, column, cjkcode): New variables.
2562 (update_line_column): New function.
2563 (convert): Initialize line and column. In all error message, show also
2564 the line and column number.
2565 (main): Initialize cjkcode. Set up hooks to call update_line_column.
2567 2005-03-13 Bruno Haible <bruno@clisp.org>
2569 * include/iconv.h.in (iconv_canonicalize): New declaration.
2570 * lib/genaliases.c (emit_encoding): Take two output streams as
2571 arguments. To the second stream, emit a shell command for extracting
2572 offsets into the gperf generated string pool.
2573 (main): Write the shell commands into file descriptors 3 and 4.
2574 * lib/genaliases2.c (emit_encoding): Take two output streams as
2575 arguments. To the second stream, emit an expression for the offset
2576 into the string pool.
2577 (main): Write the offsets into file descriptor 3.
2578 * Makefile.devel (lib/aliases.gperf): Remove target.
2579 (lib/aliases.h): Generate lib/aliases.gperf temporarily. Generate also
2580 lib/canonical.h and lib/canonical_local.h.
2581 (lib/aliases_aix.h): Generate also lib/canonical_aix.h.
2582 (lib/aliases_osf1.h): Generate also lib/canonical_osf1.h.
2583 (lib/aliases_dos.h): Generate also lib/canonical_dos.h.
2584 (lib/aliases_extra.h): Generate also lib/canonical_extra.h.
2585 * lib/iconv.c (stringpool2): Provide default definition when it doesn't
2587 (all_canonical): New array.
2588 (iconv_canonicalize): New function.
2590 2005-03-13 Bruno Haible <bruno@clisp.org>
2592 * include/iconv.h.in (iconv_unicode_char_hook, iconv_wide_char_hook,
2593 iconv_hooks): New types.
2594 (ICONV_SET_HOOKS): New macro.
2595 * lib/converters.h (struct conv_struct): Add field 'hooks'.
2596 * lib/iconv.c (iconv_open): Initialize hooks to NULL.
2597 (iconvctl): Handle ICONV_SET_HOOKS.
2598 * lib/loop_unicode.h (unicode_loop_convert, unicode_loop_reset): After
2599 conversion of a character, call the uc_hook.
2600 * lib/loop_wchar.h (wchar_id_loop_convert): After every character, call
2602 * lib/genflags.c (iconv_hooks): Provide a dummy definition.
2604 2005-02-05 Bruno Haible <bruno@clisp.org>
2606 * src/iconv.c (main): In case of unsupported encodings, show a hint
2609 2005-01-06 Bruno Haible <bruno@clisp.org>
2611 * lib/Makefile.msvc (CFLAGS): Define also INSTALLPREFIX.
2612 * lib/Makefile.vms (DEFS): Likewise.
2613 Reported by Troels Walsted Hansen <Troels.W.Hansen@fast.no>.
2615 2005-01-05 Bruno Haible <bruno@clisp.org>
2617 * autoconf/config.rpath: Update from GNU gettext.
2619 2005-01-05 Bruno Haible <bruno@clisp.org>
2621 Assume automake-1.9.
2622 * Makefile.devel (AUTOMAKE): Assume automake-1.9.
2624 2005-01-05 Bruno Haible <bruno@clisp.org>
2626 * m4/libtool.m4: Update from GNU gettext, based on libtool-1.5.10.
2627 * autoconf/ltmain.sh: Update from GNU gettext, based on libtool-1.5.10.
2629 2004-11-11 Bruno Haible <bruno@clisp.org>
2631 * lib/iconv.c (iconv_open): Accept the suffixes //TRANSLIT and //IGNORE
2633 Reported by Lukas Gebauer <gebauerl@mlp.cz>.
2635 2004-09-21 Juan Manuel Guerrero <st001906@hrz1.hrz.tu-darmstadt.de>
2637 * djgpp/config.bat: Update.
2638 * djgpp/config.sed: Update.
2639 * djgpp/config.site: Update.
2640 * djgpp/edtest.bat: Update.
2641 * djgpp/fnchange.in: Update.
2642 * djgpp/Makefile.maint: Update.
2643 * djgpp/makefile.sed: Update.
2644 * djgpp/README.in: Update.
2645 * djgpp/sources.sed: Update.
2646 * djgpp/translit-check.sed: Update.
2648 2004-08-25 Bruno Haible <bruno@clisp.org>
2650 * m4/libtool.m4: Update from GNU gettext, based on libtool-1.5.6.
2651 * autoconf/ltmain.sh: Update from GNU gettext, based on libtool-1.5.6.
2653 2004-07-31 Bruno Haible <bruno@clisp.org>
2655 Update to JISX 0213 plane 1 to 2004 version (ISO-IR-233).
2656 * tools/Makefile (jisx0213.h): Bump version number.
2657 * tools/JISX0213.TXT: Change mappings U+2015 -> U+2014,
2658 U+2299 -> U+29BF, and add 10 new characters.
2659 * tools/cjk_tab_to_h.c (output_title): Bump year.
2660 (do_jisx0213): Update comments. Emit a conditional 'inline'.
2661 * lib/jisx0213.h: Regenerated.
2662 * lib/iso2022_jp3.h (iso2022_jp3_mbtowc): Accept escape sequence
2663 ESC $ ( Q as a synonym of ESC $ ( O.
2664 (iso2022_jp3_wctomb): Emit ESC $ ( Q instead of ESC $ ( O.
2665 * tests/EUC-JISX0213.TXT: Change mappings U+2015 -> U+2014,
2666 U+2299 -> U+29BF, and add 10 new characters.
2667 * tests/SHIFT_JISX0213.TXT: Likewise.
2668 * tests/ISO-2022-JP-3-snippet: Update.
2669 * tests/ISO-2022-JP-3-snippet.UTF-8: Update.
2671 2004-07-22 Bruno Haible <bruno@clisp.org>
2673 * lib/encodings.def (ISO-8859-7): Add alias ISO_8859-7:2003.
2674 * tools/Makefile (iso8859_7.h): Use conversion table from 2003.
2675 * lib/iso8859_7.h: Add mappings for 0xa4, 0xa5, 0xaa.
2676 * tests/ISO-8859-7.TXT: Update to ISO_8859-7:2003.
2678 2004-07-22 Bruno Haible <bruno@clisp.org>
2680 * tools/Makefile (ALL): Add iso8859_11.h.
2681 (iso8859_11.h): New rule.
2682 * lib/encodings.def: Add ISO-8859-11.
2683 * lib/iso8859_11.h: New file.
2684 * lib/converters.h: Include it.
2685 * tests/ISO-8859-11.TXT: New file.
2686 * tests/Makefile.in (check): Also test ISO-8859-11.
2687 * tests/Makefile.msvc (check): Likewise.
2688 * tests/Makefile.os2 (check): Likewise.
2690 2004-07-17 Bruno Haible <bruno@clisp.org>
2692 * src/iconv.c (main): Terminate option parsing when option -- is seen.
2693 Reported by Len Lattanzi <zardoz@users.sourceforge.net>.
2695 2004-03-05 Bruno Haible <bruno@clisp.org>
2697 * src/Makefile.in (install): Make DESTDIR work on HP-UX.
2698 Reported by Bob Proulx <box@proulx.com>.
2700 2004-02-19 Bruno Haible <bruno@clisp.org>
2702 * lib/vietcomb.h (viet_comp_table_data): Un-uncomment 0x00D5, 0x00F5,
2703 0x0168, 0x0169. Needed for TCVN-5712 but not for CP1258.
2704 (viet_comp_table0301_len): Increment by 4.
2706 * lib/cp1255.h (cp1255_mbtowc): Don't delay the handling of characters
2707 which are not entries in cp1255_comp_table_data.
2708 * lib/cp1258.h (cp1258_comp_bases): New array.
2709 (cp1258_mbtowc): Don't delay the handling of characters which are not
2710 relevant entries in viet_comp_table_data.
2711 * lib/tcvn.h (tcvn_comp_bases): New array.
2712 (tcvn_mbtowc): Don't delay the handling of characters which are not
2713 relevant entries in viet_comp_table_data.
2714 Reported by Alain Bench <veronatif@free.fr>.
2716 2004-02-02 Perry Rapp <lifelines_3_0_18@hotmail.com>
2717 Bruno Haible <bruno@clisp.org>
2719 * man/iconvctl.3: New file.
2720 * man/iconv.3: Refer to it in "See also".
2721 * man/iconv_open.3: Likewise.
2723 2004-01-24 Bruno Haible <bruno@clisp.org>
2725 * srclib/progreloc.c (xstrdup): Define as strdup if no xmalloc should
2728 2004-01-20 Bruno Haible <bruno@clisp.org>
2730 Upgrade from gettext-0.14.
2732 * configure.in: Call gl_USE_SYSTEM_EXTENSIONS. Call AM_STDBOOL_H
2733 instead of gt_STDBOOL_H. Provide a definition for DLL_VARIABLE.
2734 * srclib/Makefile.am (libicrt_a_SOURCES): Add allocsa.h, allocsa.c,
2735 xalloc.h. Remove xmalloc.h.
2736 (libicrt_a_LIBADD): Remove @ALLOCA@.
2737 * srclib/Makefile.msvc (OBJECTS): Add allocsa.obj.
2738 (allocsa.obj): New rule.
2739 * srclib/Makefile.vms (OBJECTS): Add allocsa.obj.
2740 (allocsa.obj): New rule.
2741 * Makefile.devel (config.h_vms): Set MALLOC_0_IS_NONNULL to 0.
2742 (config.h.msvc): Set MALLOC_0_IS_NONNULL to 1.
2746 2003-10-09 Bruno Haible <bruno@clisp.org>
2747 * lib/relocatable.c: Include xalloc.h instead of xmalloc.h.
2749 2003-08-01 Bruno Haible <bruno@clisp.org>
2750 * lib/relocatable.c (find_shared_library_fullname): Disable the code on
2751 Linux/libc5. Reported by Alain Guibert <derogaton+bgli@oreka.com>.
2753 2003-06-22 Bruno Haible <bruno@clisp.org>
2754 * lib/relocatable.c (compute_curr_prefix): Comment out this function in
2755 the case when it is not used.
2756 Reported by Pavel Roskin <proski@gnu.org>.
2760 * m4/gettext.m4: Upgrade from GNU gettext. Many changes.
2761 * m4/po.m4: Likewise.
2763 * m4/readlink.m4: New file, from GNU gettext.
2765 2003-11-30 Bruno Haible <bruno@clisp.org>
2766 * m4/allocsa.m4: New file.
2767 * m4/eealloc.m4: New file.
2768 * m4/setenv.m4 (gl_PREREQ_SETENV): Require gl_ALLOCSA instead of
2771 2003-10-21 Bruno Haible <bruno@clisp.org>
2772 * m4/canonicalize.m4 (gl_PREREQ_CANONICALIZE): Also test for
2775 2003-08-24 Bruno Haible <bruno@clisp.org>
2776 * m4/relocatable.m4 (AC_RELOCATABLE): Use $(host) instead of @host@,
2777 since the substitution of @host@ may occur before the substitution of
2780 2003-08-23 Bruno Haible <bruno@clisp.org>
2781 * stdbool.m4: Replace with the version from gnulib, without
2784 2003-08-08 Paul Eggert <eggert@twinsun.com>
2785 * m4/extensions.m4: New file.
2786 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
2787 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
2789 2003-07-01 Bruno Haible <bruno@clisp.org>
2790 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
2791 <sys/types.h> should be sufficient.
2792 Reported by Paul Eggert.
2794 2003-07-01 Bruno Haible <bruno@clisp.org>
2795 * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Avoid "duplicated macro" error
2796 from aclocal-1.4-p4.
2797 Reported by Luke Schierer <lschiere@rackspace.com> and
2798 Michael C. Toren <mct@toren.net>.
2800 2003-07-01 Paul Eggert <eggert@twinsun.com>
2801 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
2802 xreadlink.c now includes it unconditionally.
2804 2003-06-17 Paul Eggert <eggert@twinsun.com>
2805 * m4/lib-ld.m4 (AC_LIB_PROG_LD_GNU, AC_LIB_PROG_LD): Don't use egrep,
2806 for portability to POSIX 1003.1-2001. Backported from libtool-1.5.
2808 2003-05-28 Paul Eggert <eggert@twinsun.com>
2809 * m4/pathmax.m4 (gl_PATHMAX): Don't check for limits.h.
2810 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
2812 2002-12-24 Bruno Haible <bruno@clisp.org>
2813 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
2814 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
2816 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
2821 2003-11-30 Bruno Haible <bruno@clisp.org>
2822 * srclib/alloca.c: Remove file.
2824 2003-11-30 Bruno Haible <bruno@clisp.org>
2825 Safer stack allocation.
2826 * srclib/allocsa.h: New file.
2827 * srclib/allocsa.c: New file.
2828 * canonicalize.c: Include allocsa.h.
2829 (__realpath): Use allocsa instead of alloca. Don't clobber errno right
2830 before returning NULL.
2831 * srclib/relocwrapper.c: Indirectly depends on allocsa.
2832 * srclib/setenv.c: Include allocsa.h.
2833 (alloca): Remove fallback definition.
2834 (freea): Remove macro.
2835 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
2838 2003-11-17 Bruno Haible <bruno@clisp.org>
2839 * srclib/canonicalize.c: #undef realpath after <config.h> but before
2840 the system includes, so as to avoid a prototype clash on Solaris 2.5.1.
2841 Reported by Warren L. Dodge <warrend@mdhost.cse.tek.com>.
2843 2003-10-21 Bruno Haible <bruno@clisp.org>
2844 * srclib/canonicalize.c (lstat): Define as an alias to 'stat' on
2845 systems without symbolic links.
2847 2003-10-17 Bruno Haible <bruno@clisp.org>
2848 * srclib/binary-io.h: Avoid warnings on Cygwin.
2850 2003-10-09 Bruno Haible <bruno@clisp.org>
2851 * srclib/xalloc.h: Renamed from xmalloc.h.
2852 * srclib/progreloc.c: Include xalloc.h instead of xmalloc.h.
2853 * srclib/relocatable.c: Likewise.
2854 * srclib/xmalloc.c: Likewise.
2855 * srclib/xreadlink.c: Likewise.
2856 * srclib/xstrdup.c: Likewise.
2858 2003-09-12 Paul Eggert <eggert@twinsun.com>
2859 * srclib/progreloc.c (get_full_program_name): Define via prototype.
2861 2003-09-12 Paul Eggert <eggert@twinsun.com>
2862 * srclib/setenv.c (clearenv): Define via prototype.
2864 2003-09-10 Bruno Haible <bruno@clisp.org>
2865 * srclib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
2866 * srclib/unsetenv.c: Likewise.
2868 2003-08-28 Bruno Haible <bruno@clisp.org>
2869 * srclib/binary-io.h: Undefine O_BINARY before defining it. This avoids
2870 a warning on QNX, which defines O_BINARY to 000000.
2872 2003-08-24 Bruno Haible <bruno@clisp.org>
2873 * srclib/binary-io.h: Include <stdio.h>, to avoid a compilation error
2874 when MSVC7 <stdio.h> is included later.
2876 2003-08-24 Bruno Haible <bruno@clisp.org>
2877 * srclib/error.h: Use ANSI C "..." declarations when compiling with
2878 MSVC, even though it doesn't define __STDC__ by default.
2879 * srclib/error.c: Use <stdarg.h> when compiling with MSVC, even though
2880 it doesn't define __STDC__ by default.
2882 2003-08-24 Bruno Haible <bruno@clisp.org>
2883 Support for building DLLs on Windows.
2884 * srclib/error.h (error_print_progname, error_message_count,
2885 error_one_per_line): Add DLL_VARIABLE attribute.
2886 * srclib/progname.h (program_name): Likewise.
2888 2003-08-24 Bruno Haible <bruno@clisp.org>
2889 * srclib/progname.h: Make this file includable in C++ mode: add extern
2891 * srclib/relocatable.h: Likewise.
2892 * srclib/xmalloc.h: Likewise.
2894 2003-08-22 Bruno Haible <bruno@clisp.org>
2895 * srclib/progname.h (error_with_progname, maybe_print_progname): Remove
2897 * srclib/progname.c (error_with_progname): Remove variable.
2898 (maybe_print_progname): Remove function.
2900 2003-08-01 Bruno Haible <bruno@clisp.org>
2901 * srclib/relocatable.c (find_shared_library_fullname): Disable the code
2902 on Linux/libc5. Reported by Alain Guibert <derogaton+bgli@oreka.com>.
2904 2003-07-01 Paul Eggert <eggert@twinsun.com>
2905 * srclib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
2906 having it depend on HAVE_SYS_TYPES_H.
2908 2003-06-23 Bruno Haible <bruno@clisp.org>
2909 Avoid compilation units that are empty after preprocessing.
2910 * srclib/canonicalize.c: Add dummy declaration.
2911 * srclib/strerror.c: Likewise.
2912 * srclib/error.c: Include <stdio.h> even if there's nothing to be
2915 2003-06-22 Bruno Haible <bruno@clisp.org>
2916 * srclib/relocatable.c (compute_curr_prefix): Comment out this function
2917 in the case when it is not used.
2918 Reported by Pavel Roskin <proski@gnu.org>.
2920 2003-05-28 Paul Eggert <eggert@twinsun.com>
2921 * srclib/pathmax.h: Include <limits.h> without checking for
2923 * srclib/xreadlink.c: Likewise.
2925 2004-01-20 Bruno Haible <bruno@clisp.org>
2927 Assume automake-1.8.
2928 * Makefile.devel (AUTOCONF, AUTOHEADER): Assume autoconf-2.59.
2929 (AUTOMAKE): Assume automake-1.8.
2930 * Makefile.in (am--refresh): New target.
2932 2004-01-23 Bruno Haible <bruno@clisp.org>
2934 * Version 1.9.2 released.
2936 2004-01-23 Bruno Haible <bruno@clisp.org>
2938 * tests/table-from.c: Include binary-io.h.
2939 (main): Switch stdout to binary mode.
2940 * tests/table-to.c: Include binary-io.h.
2941 (main): Switch stdout to binary mode.
2942 * tests/genutf8.c: Include binary-io.h.
2943 (main): Switch stdout to binary mode.
2944 * tests/Makefile.in (INCLUDES): Also look in srclib.
2945 (check): Pass INCLUDES when compiling genutf8.c.
2946 * tests/Makefile.os2 (INCLUDES): Also look in srclib.
2947 (genutf8.exe): Pass INCLUDES when compiling genutf8.c.
2948 * tests/Makefile.msvc (INCLUDES): Also look in srclib.
2949 (check): Pass INCLUDES when compiling genutf8.c.
2951 2004-01-21 Bruno Haible <bruno@clisp.org>
2953 * src/iconv.c (force_binary): Remove variable.
2954 (usage): Don't document --binary any more.
2955 (convert, main): Always switch to binary mode.
2956 * tests/check-stateful.bat: Remove --binary option.
2957 * tests/check-translit.bat: Likewise.
2958 * tests/check-stateful.cmd: Likewise.
2959 * tests/check-translit.cmd: Likewise.
2960 * djgpp/stateful-check.sed: Remove MODE variable.
2961 * djgpp/translit-check.sed: Likewise.
2963 2004-01-21 Bruno Haible <bruno@clisp.org>
2965 * man/iconv.3: Fix description of return value in case of error.
2966 Reported by Jonathan Wakely <redi@users.sf.net>.
2968 2003-09-12 Paul Eggert <eggert@twinsun.com>
2970 * srclib/progreloc.c (get_full_program_name): Define via prototype.
2972 2003-08-15 Bruno Haible <bruno@clisp.org>
2974 * Makefile.devel (lib/translit.h): Add ulimit command so that the
2975 gentranslit program gets the stack it needs. Many Linux distributions
2976 allow only 8 MB of stack by default.
2978 2003-08-01 Bruno Haible <bruno@clisp.org>
2980 * lib/relocatable.c (find_shared_library_fullname): Disable the code on
2982 * srclib/relocatable.c (find_shared_library_fullname): Likewise.
2983 Reported by Alain Guibert <derogaton+bgli@oreka.com>.
2985 2003-07-02 Bruno Haible <bruno@clisp.org>
2987 * m4/lib-ld.m4: Update from GNU gettext.
2988 * m4/lib-prefix.m4: Update from GNU gettext.
2989 * m4/gettext.m4: Update from GNU gettext.
2990 * m4/intmax.m4: New file, from GNU gettext.
2991 * m4/longdouble.m4: New file, from GNU gettext.
2992 * m4/longlong.m4: New file, from GNU gettext.
2993 * m4/printf-posix.m4: New file, from GNU gettext.
2994 * m4/signed.m4: New file, from GNU gettext.
2995 * m4/wchar_t.m4: New file, from GNU gettext.
2996 * m4/wint_t.m4: New file, from GNU gettext.
2997 * m4/pathmax.m4: Update from GNU gettext and gnulib.
2998 * m4/ssize_t.m4: Update from GNU gettext and gnulib.
2999 * m4/xreadlink.m4: Update from GNU gettext and gnulib.
3000 * m4/readlink.m4: New file, from gnulib.
3001 * autoconf/install-reloc: Update from GNU gettext.
3002 * srclib/stdbool_.h: Renamed from srclib/stdbool.h.in.
3003 * srclib/readlink.c: New file, from GNU gettext and gnulib.
3004 * srclib/Makefile.am (LIBADD_SOURCE): Add readlink.c.
3005 (EXTRA_DIST, stdbool.h): Use stdbool_.h instead of stdbool.h.in.
3006 * configure.in: Invoke gl_FUNC_READLINK.
3008 2003-06-22 Bruno Haible <bruno@clisp.org>
3010 * src/Makefile.in (install): Link with the already installed library.
3011 This fixes a link error on Solaris.
3012 Reported by Paul Eggert.
3014 2003-06-08 Bruno Haible <bruno@clisp.org>
3016 * srclib/canonicalize.c (__getcwd) [VMS]: Pass 3 arguments to getcwd.
3018 2003-05-02 Bruno Haible <bruno@clisp.org>
3020 Support for libtool-1.5.
3021 * srclib/progname.c (set_program_name): Remove a leading
3022 "<dirname>/.libs/lt-" or "<dirname>/.libs/", not only "lt-".
3024 2003-06-23 Bruno Haible <bruno@clisp.org>
3026 Avoid compilation units that are empty after preprocessing.
3027 * srclib/canonicalize.c: Add dummy declaration.
3028 * srclib/strerror.c: Likewise.
3029 * srclib/error.c: Include <stdio.h> even if there's nothing to be
3032 2003-06-22 Bruno Haible <bruno@clisp.org>
3034 Portability to mingw32.
3035 * m4/ssize_t.m4: New file, from GNU gettext.
3036 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
3037 Reported by Jeff Bonggren <jbon@cfl.rr.com>.
3039 2003-06-22 Bruno Haible <bruno@clisp.org>
3041 Portability to mingw32.
3042 * lib/relocatable.c [WIN32]: Include <windows.h>.
3043 * srclib/relocatable.c: Likewise.
3044 Reported by Jeff Bonggren <jbon@cfl.rr.com>.
3046 2003-06-22 Bruno Haible <bruno@clisp.org>
3048 * lib/relocatable.c (compute_curr_prefix): Comment out this function in
3049 the case when it is not used.
3050 * srclib/relocatable.c (compute_curr_prefix): Likewise.
3051 Reported by Pavel Roskin <proski@gnu.org>.
3053 2003-06-18 Bruno Haible <bruno@clisp.org>
3055 * config/install-sh: Update from automake-1.7.5.
3057 2003-06-16 Bruno Haible <bruno@clisp.org>
3059 * lib/encodings.def (ISO-8859-15): Add alias LATIN-9.
3060 (ISO-8859-16): Add aliases ISO_8859-16:2001, LATIN10, L10. Remove alias
3062 (GBK): Add aliases MS936, WINDOWS-936.
3063 Reported by Guido Flohr <guido@imperia.net>.
3065 2003-05-09 Bruno Haible <bruno@clisp.org>
3067 * srclib/canonicalize.c: Add #ifdef around versioned_symbol. Avoids an
3068 "extraneous semicolon" warning from Tru64 cc.
3070 2003-06-07 Bruno Haible <bruno@clisp.org>
3072 * Makefile.devel (config.h_vms): Don't define HAVE_ENVIRON_DECL.
3073 * Makefile.vms (config.h): New rule.
3074 (all, install): Depend on it.
3075 (all, install, installdirs, uninstall, check): Fix typo.
3076 (mostlyclean, clean, distclean, maintainer-clean): Likewise. Remove
3078 * lib/Makefile.vms (DEFS): Fix value of INSTALLDIR.
3079 (OBJECTS): Use libiconv.obj instead of iconv.obj.
3080 (libiconv.obj): Renamed from iconv.obj.
3081 * srclib/Makefile.vms (INCLUDES): Add parent directory.
3082 (OBJECTS): Remove strtoul.obj, setenv.obj, unsetenv.obj.
3083 (strtoul.obj, setenv.obj, unsetenv.obj): Remove rules.
3084 (alloca.h): New rule.
3085 (canonicalize.obj): Depend on it.
3086 (clean): Remove alloca.h.
3087 * src/Makefile.vms (datadir, localedir): New variables.
3088 (DEFS): Also define LOCALEDIR.
3089 (iconv.obj): Add flags for relocatability,
3090 (iconv.exe): Link with libicrt. Use link_options.
3091 * vms/link_options.opt: New file.
3092 Reported by Jouk Jansen <joukj@hrem.stm.tudelft.nl>.
3094 2003-06-07 Bruno Haible <bruno@clisp.org>
3096 Support for relocatable data files even on Woe32.
3097 * lib/Makefile.msvc (PICFLAGS): Also define PIC.
3099 2003-05-22 Bruno Haible <bruno@clisp.org>
3101 * Version 1.9.1 released.
3103 2003-05-22 Bruno Haible <bruno@clisp.org>
3105 * lib/genaliases.c (main): Emit %pic instead of %null-strings.
3106 Change type of 'name' field to 'int'.
3107 * lib/genaliases2.c (emit_encoding): Add a 'tag' argument. Emit an
3108 invocation of macro S(), including the tag and a counter.
3109 (main): Use the command-line argument as tag.
3110 * Makefile.devel (lib/aliases_aix.h, lib/aliases_osf1.h,
3111 lib/aliases_dos.h, lib/aliases_extra.h): Pass a tag to the program.
3112 * lib/iconv.c (stringpool2_t): New type.
3113 (stringpool2_contents): New data table.
3114 (stringpool2): New macro.
3115 (sysdep_aliases): Make position-independent. Move #includes out to
3117 (aliases2_lookup): Update.
3119 (compare_by_index): Use 'struct nalias' instead of 'struct alias'.
3120 (iconvlist): Convert 'struct alias' to 'struct nalias' while copying.
3121 * lib/aliases2.h: New file, extracted from lib/iconv.c.
3123 2003-05-20 Bruno Haible <bruno@clisp.org>
3125 * lib/iconv.c (iconvlist): Test p->name against NULL, not against "".
3126 Reported by Muraoka Taro <koron@tka.att.ne.jp>.
3128 2003-05-19 Bruno Haible <bruno@clisp.org>
3130 * windows/iconv.rc: Include <winver.h>.
3131 Reported by Perry Rapp.
3133 2003-05-18 Bruno Haible <bruno@clisp.org>
3135 * Version 1.9 released.
3137 2003-05-18 Bruno Haible <bruno@clisp.org>
3139 * lib/Makefile.in (libiconv_plug_osf.so): Avoid using LIBTOOL_LINK.
3141 2003-05-18 Bruno Haible <bruno@clisp.org>
3143 * lib/Makefile.msvc (DEBUGFLAGS): New variable.
3144 (iconv.lib): Use it.
3145 * src/Makefile.msvc (DEBUGFLAGS): New variable.
3146 * tests/Makefile.msvc (DEBUGFLAGS): New variable.
3148 2003-05-17 Bruno Haible <bruno@clisp.org>
3150 * src/Makefile.msvc (libdir, datadir, localedir): New variables.
3151 (IIlibdir, IIdatadir, IIlocaledir): New variables.
3152 (CFLAGS): Define LOCALEDIR.
3153 (iconv_no_i18n.exe): New rule.
3154 (all): Depend on it.
3155 * tests/check-stateful.bat: Invoke iconv_no_i18n instead of iconv.
3156 * tests/check-translit.bat: Likewise.
3158 2003-05-16 Bruno Haible <bruno@clisp.org>
3160 * lib/genaliases.c (main): Emit declarations for gperf-3.0.
3161 * Makefile.devel (lib/aliases.h): Remove gperf command line options;
3162 add new option "-m 10" for gperf-3.0.
3164 2003-05-12 Bruno Haible <bruno@clisp.org>
3166 * m4/error.m4: Update from gettext.
3168 2003-05-12 Bruno Haible <bruno@clisp.org>
3170 * configure.in: Invoke AC_GNU_SOURCE and jm_FUNC_GLIBC_UNLOCKED_IO.
3172 2003-05-12 Bruno Haible <bruno@clisp.org>
3174 * lib/Makefile.msvc (PICFLAGS, CFLAGS): Move BUILDING_* macros from
3177 2003-05-09 Bruno Haible <bruno@clisp.org>
3179 * srclib/error.c: Update from gnulib with modifications.
3180 * srclib/unlocked-io.h: New file, from gnulib.
3181 * m4/strerror_r.m4: New file, from gnulib.
3182 * m4/unlocked-io.m4: New file, from gnulib.
3183 * Makefile.devel (aclocal.m4): Depend on them.
3185 2003-05-08 Bruno Haible <bruno@clisp.org>
3187 * Makefile.msvc (IIPREFIX): New variable.
3188 * srclib/Makefile.msvc (INCLUDES): Add -I..\windows.
3189 * src/Makefile.msvc (IIPREFIX, IIprefix, IIexec_prefix, IIbindir,
3190 IIincludedir): New variables.
3191 (INCLUDES): Add -I..\windows.
3192 (iconv.exe): Define INSTALLPREFIX and INSTALLDIR. Link with
3194 Patches by Perry Rapp.
3196 2003-05-07 Bruno Haible <bruno@clisp.org>
3198 * README.woe32: Fix instructions for step 1.
3199 * srclib/Makefile.msvc (OBJECTS): Remove strtoul.obj.
3200 (strtoul.obj): Remove rule.
3201 Reported by Perry Rapp.
3203 2003-05-07 Bruno Haible <bruno@clisp.org>
3205 * Makefile.vms: New file.
3206 * lib/Makefile.vms: New file.
3207 * srclib/Makefile.vms: New file.
3208 * src/Makefile.vms: New file.
3209 * man/Makefile.vms: New file.
3210 * tests/Makefile.vms: New file.
3211 * Makefile.devel (config.h_vms, lib/config.h_vms, include/iconv.h_vms):
3213 (all): Depend on them.
3215 2003-05-07 Bruno Haible <bruno@clisp.org>
3217 * srclib/Makefile.msvc (OBJECTS): Remove findprog.obj.
3218 (findprog.obj): Remove rule.
3219 * src/Makefile.msvc (includedir): New variable.
3221 2003-05-06 Bruno Haible <bruno@clisp.org>
3223 * lib/translit.def: Upgrade to Unicode 4.0.
3225 2003-05-06 Bruno Haible <bruno@clisp.org>
3227 * srclib/Makefile.am (DEFS): Fix spelling of DEPENDS_ON_LIBICONV.
3228 * srclib/Makefile.msvc (CFLAGS): Likewise.
3230 * srclib/Makefile.msvc (INCLUDES): Add -I.. .
3231 Reported by Perry Rapp.
3233 * Makefile.msvc (config.h): New rule.
3234 (all): Depend on it.
3235 (mostlyclean, clean, distclean, maintainer-clean): Erase config.h.
3236 Reported by Perry Rapp.
3238 2003-05-06 Bruno Haible <bruno@clisp.org>
3240 * autoconf/config.guess: Update to GNU version 2003-02-22.
3241 * autoconf/config.sub: Likewise.
3243 2003-05-06 Bruno Haible <bruno@clisp.org>
3245 * m4/lib-link.m4: Update from GNU gettext.
3246 * autoconf/config.rpath: Update from GNU gettext.
3248 * m4/libtool.m4: Update from GNU gettext, based on libtool-1.5.
3249 * autoconf/ltmain.sh: Update from GNU gettext, based on libtool-1.5.
3251 * m4/gettext.m4: Update from GNU gettext.
3252 * m4/nls.m4: Update from GNU gettext.
3253 * m4/po.m4: Update from GNU gettext.
3254 * Makefile.devel (aclocal.m4): Depend on m4/nls.m4 and m4/po.m4.
3256 2003-04-12 Bruno Haible <bruno@clisp.org>
3258 Support for OpenVMS 7.3.
3259 * lib/iconv.c (USE_OSF1): Define also on VMS.
3261 2003-04-12 Bruno Haible <bruno@clisp.org>
3263 Better support for FreeBSD.
3264 * lib/encodings.def (ISO8859-{1,2,3,4,5,6,7,8,9,10,13,14,15,16): New
3265 aliases, for compatibility with earlier FreeBSD iconv implementation
3266 by Konstantin Chuguev.
3267 * lib/iconv.c (iconv_open, iconv, iconv_close) [FreeBSD]: Define as
3269 * src/Makefile.in (install) [FreeBSD]: Avoid installation problem.
3271 2003-04-12 Bruno Haible <bruno@clisp.org>
3273 * configure.in (mandir): Change default value.
3274 * Makefile.in (datadir): New variable.
3275 (install, installdirs, uninstall): Pass datadir to po and man
3277 * Makefile.os2 (datadir): New variable.
3278 (mandir): Use it instead of prefix.
3279 (install, uninstall): Pass datadir to man directory.
3280 * Makefile.msvc (mandir, docdir): Use datadir instead of prefix.
3281 * man/Makefile.in (datadir): New variable.
3282 (docdir): Use it instead of prefix.
3283 (install, installdirs): Update.
3284 * man/Makefile.os2 (datadir): New variable.
3285 (mandir): Use it instead of prefix.
3286 * man/Makefile.msvc (datadir): New variable.
3287 (mandir, docdir): Use it instead of prefix.
3288 (install, installdirs): Update.
3290 2003-04-06 Bruno Haible <bruno@clisp.org>
3292 Make it possible to build with or without libintl support on Woe32.
3293 * Makefile.devel (config.h.msvc): Remove ENABLE_NLS.
3294 * Makefile.msvc (NO_NLS): New variable.
3295 * srclib/Makefile.msvc (NO_NLS): New variable.
3296 (CFLAGS, INCLUDES): Use them.
3297 * src/Makefile.msvc (NO_NLS): New variable.
3298 (NLSFLAGS, INCINTL, LIBINTL): New variables.
3299 (CFLAGS, INCLUDES, iconv.exe): Use them.
3301 2003-04-12 Bruno Haible <bruno@clisp.org>
3303 * lib/loop_unicode.h (unicode_transliterate): When the Hangul or
3304 variants transliteration failed with RET_ILUNI, don't return
3306 Reported by the FreeBSD porters.
3308 2003-04-06 Bruno Haible <bruno@clisp.org>
3310 * srclib/binary-io.h: New file, from GNU gettext.
3311 * src/iconv.c: Include it.
3312 (O_BINARY, O_TEXT, SET_BINARY): Remove definitions.
3314 2003-04-05 Bruno Haible <bruno@clisp.org>
3316 Support for relocatable installation.
3317 * m4/alloca.m4: New file, from GNU gettext.
3318 * m4/canonicalize.m4: New file, from GNU gettext.
3319 * m4/error.m4: New file, from GNU gettext.
3320 * m4/onceonly.m4: New file, from GNU gettext.
3321 * m4/pathmax.m4: New file, from GNU gettext.
3322 * m4/relocatable.m4: New file, from GNU gettext.
3323 * m4/setenv.m4: New file, from GNU gettext.
3324 * m4/stdbool.m4: New file, from GNU gettext.
3325 * m4/strerror.m4: New file, from GNU gettext.
3326 * m4/xreadlink.m4: New file, from GNU gettext.
3327 * autoconf/config.libpath: New file, from GNU gettext.
3328 * autoconf/install-reloc: New file, from GNU gettext.
3329 * autoconf/reloc-ldflags: New file, from GNU gettext.
3330 * autoconf/missing: New file, from GNU automake 1.7.3.
3331 * lib/relocatable.h: New file, from GNU gettext.
3332 * lib/relocatable.c: New file, from GNU gettext.
3333 * srclib/alloca.c: New file, from GNU gettext.
3334 * srclib/alloca_.h: New file, from GNU gettext.
3335 * srclib/canonicalize.c: New file, from GNU gettext.
3336 * srclib/canonicalize.h: New file, from GNU gettext.
3337 * srclib/error.c: New file, from GNU gettext.
3338 * srclib/error.h: New file, from GNU gettext.
3339 * srclib/exit.h: New file, from GNU gettext.
3340 * srclib/gettext.h: New file, from GNU gettext.
3341 * srclib/memmove.c: New file, from GNU gettext.
3342 * srclib/pathmax.h: New file, from GNU gettext.
3343 * srclib/progname.c: New file, from GNU gettext.
3344 * srclib/progname.h: New file, from GNU gettext.
3345 * srclib/progreloc.c: New file, from GNU gettext.
3346 * srclib/relocatable.c: New file, from GNU gettext.
3347 * srclib/relocatable.h: New file, from GNU gettext.
3348 * srclib/relocwrapper.c: New file, from GNU gettext.
3349 * srclib/setenv.c: New file, from GNU gettext.
3350 * srclib/setenv.h: New file, from GNU gettext.
3351 * srclib/stdbool.h.in: New file, from GNU gettext.
3352 * srclib/strerror.c: New file, from GNU gettext.
3353 * srclib/unsetenv.c: New file, from GNU gettext.
3354 * srclib/xmalloc.c: New file, from GNU gettext.
3355 * srclib/xmalloc.h: New file, from GNU gettext.
3356 * srclib/xreadlink.c: New file, from GNU gettext.
3357 * srclib/xreadlink.h: New file, from GNU gettext.
3358 * srclib/xstrdup.c: New file, from GNU gettext.
3359 * srclib/Makefile.am: New file.
3360 * srclib/Makefile.msvc: New file.
3361 * windows/alloca.h: New file, from GNU gettext.
3362 * windows/stdbool.h: New file, from GNU gettext.
3363 * configure.in (AC_CONFIG_HEADERS): Replace src/config.h with config.h.
3364 Add AC_RELOCATABLE, AC_HEADER_STDC, AC_CHECK_HEADERS(stddef.h stdlib.h
3365 string.h), AC_CHECK_FUNCS(getc_unlocked), AC_REPLACE_FUNCS(memmove),
3366 AM_LANGINFO_CODESET, gl_FUNC_ALLOCA, gl_CANONICALIZE,
3367 gt_FUNC_ERROR_AT_LINE, gl_PATHMAX, gt_FUNC_SETENV, gt_STDBOOL_H,
3368 gl_FUNC_STRERROR, gl_XREADLINK, AC_OUTPUT(srclib/Makefile).
3369 * lib/config.h.in: Add HAVE_GETC_UNLOCKED, HAVE_LANGINFO_CODESET,
3370 HAVE_SETLOCALE, HAVE_STDDEF_H, HAVE_STDLIB_H, HAVE_STRING_H, for
3371 localcharset.c. Add ENABLE_RELOCATABLE, INSTALLPREFIX, for
3373 * lib/Makefile.in (DEFS): New variable.
3374 (SOURCES): Add localcharset.c and relocatable.c.
3375 (OBJECTS): Add localcharset.lo and relocatable.lo.
3376 (LIBCHARSET_OBJECTS): Remove variable.
3377 (libiconv_plug_linux.so, libiconv_plug_solaris.so,
3378 libiconv_plug_osf.so): Use $(DEFS). Don't use $(LIBCHARSET_OBJECTS).
3379 (iconv.lo): Use $(DEFS).
3380 (localcharset.lo, relocatable.lo): New rules.
3381 * lib/Makefile.msvc (CFLAGS): Define HAVE_CONFIG_H, BUILDING_DLL,
3382 ENABLE_RELOCATABLE, IN_LIBRARY, INSTALLDIR, NO_XMALLOC,
3383 set_relocation_prefix, relocate. Remove $(PICFLAGS).
3384 (INCLUDES): Simplify.
3385 (SOURCES): Remove variable.
3386 (OBJECTS): Add localcharset.obj and relocatable.obj.
3387 (LIBCHARSET_OBJECTS): Remove variable.
3388 (iconv.obj): Add $(PICFLAGS).
3389 (localcharset.obj, relocatable.obj): New rules.
3390 (iconv.lib): Drop $(LIBCHARSET_OBJECTS).
3391 * include/iconv.h.in (libiconv_set_relocation_prefix): New declaration.
3392 * src/gettext.h: Remove file.
3393 * src/iconv.c: Include progname.h and relocatable.h.
3394 (ICONV_CONST): Define to const if the system has no iconv.
3395 (main): Invoke set_program_name. Relocate LOCALEDIR.
3396 * src/Makefile.in (top_srcdir): New variable.
3397 (INCLUDES): Add .. and ../srclib.
3398 (iconv_no_i18n, iconv): Link with ../srclib/libicrt.a.
3399 (iconv_no_i18n.@OBJEXT@, iconv.@OBJEXT@): Define INSTALLDIR.
3400 (RELOCATABLE_LIBRARY_PATH, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR,
3401 RELOCATABLE_CONFIG_H_DIR, @SET_RELOCATABLE@, iconv_LDFLAGS): New
3403 (iconv): Use $(iconv_LDFLAGS).
3404 (install): Use $(INSTALL_PROGRAM_ENV).
3405 (distclean): Drop removing config.h.
3406 * src/Makefile.msvc (INCLUDES): Add .., simplify.
3407 * tests/Makefile.msvc (INCLUDES): Simplify.
3408 * Makefile.devel (AUTOHEADER, AUTOMAKE): New variables.
3409 (config.h.in, srclib/Makefile.in, config.h.msvc): New rules.
3410 (all): Depend on them.
3411 (aclocal.m4) Depend also on m4/alloca.m4, m4/canonicalize.m4,
3412 m4/error.m4, m4/onceonly.m4, m4/pathmax.m4, m4/relocatable.m4,
3413 m4/setenv.m4, m4/stdbool.m4, m4/strerror.m4, m4/xreadlink.m4.
3414 (lib/config.h.msvc): Additional processing.
3415 * Makefile.in (all, install, installdirs, uninstall, check): Recurse
3417 (mostlyclean, clean, distclean, maintainerclean): Likewise. Remove
3419 (distclean, maintainerclean): Remove also config.h and some stamps.
3420 * Makefile.msvc (all, install, installdirs, uninstall, check,
3421 mostlyclean, clean, distclean, maintainerclean): Recurse into srclib.
3422 * INSTALL.generic: Document --enable-relocatable and
3423 --with-libintl-prefix. Remove the recommendation to set CPPFLAGS and
3424 LDFLAGS. The lib-link.m4 macros make this unnecessary.
3426 2003-04-05 Bruno Haible <bruno@clisp.org>
3428 * configure.in: Bump version number to 1.9.
3429 * include/iconv.h.in (_LIBICONV_VERSION): Bump.
3430 * windows/iconv.rc: Bump version number.
3431 * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 4:0:2.
3433 2003-04-05 Bruno Haible <bruno@clisp.org>
3435 * Makefile.msvc (PREFIX): New variable.
3437 (distclean, maintainer-clean): Drop Unix specific removals.
3438 * lib/Makefile.msvc (PREFIX, IIPREFIX): New variables.
3440 (IIprefix, IIexec_prefix, IIbindir, IIlibdir): New variables.
3441 (clean): Drop Unix specific removal.
3442 * src/Makefile.msvc (PREFIX): New variable.
3444 (clean): Drop Unix specific removal.
3445 (distclean): Likewise.
3446 * tests/Makefile.msvc (clean): Drop Unix specific removal.
3447 (distclean): Likewise.
3449 2003-04-05 Bruno Haible <bruno@clisp.org>
3451 * m4/endian.m4 (CL_WORDS_LITTLEENDIAN): Use 3-argument AC_DEFINE.
3453 2003-04-05 Bruno Haible <bruno@clisp.org>
3455 * m4/general.m4 (CL_CONFIG_SUBDIRS, CL_CANONICAL_HOST,
3456 CL_CANONICAL_HOST_CPU, CL_CANONICAL_HOST_CPU_FOR_FFCALL): Remove
3458 * m4/gettext.m4: Update from GNU gettext.
3459 * m4/iconv.m4: Update from GNU gettext.
3460 * m4/lcmessage.m4: Update from GNU gettext.
3461 * m4/progtest.m4: Update from GNU gettext.
3462 * m4/libtool.m4: Update from GNU gettext.
3463 2003-02-16 Bruno Haible <bruno@clisp.org>
3464 Workaround autoconf >= 2.52 breakage.
3465 * libtool.m4 (AC_LIBTOOL_ARG_WITH): New macro.
3466 (_LT_AC_LTCONFIG_HACK, AC_PROG_LD): Use it.
3467 * autoconf/ltmain.sh: Update from GNU gettext.
3468 2003-02-18 Bruno Haible <bruno@clisp.org>
3469 Fix the 2002-09-16 fix.
3470 * ltmain.sh (install): If "ln -s -f" fails (this is the case
3471 with /usr/bin/ln on Solaris 2.7), fall back to "rm && ln -s".
3473 2003-04-05 Bruno Haible <bruno@clisp.org>
3475 Start using automake.
3476 * configure.in: Add AM_INIT_AUTOMAKE invocation.
3477 (PACKAGE, VERSION): Remove.
3478 Use AC_CANONICAL_HOST instead of CL_CANONICAL_HOST.
3479 Use AC_PROG_LN_S instead of CL_PROG_LN_S.
3480 Use AC_PROG_RANLIB instead of CL_PROG_RANLIB.
3481 Reorder so that AC_CANONICAL_HOST comes early but still after
3483 * m4/ranlib.m4: Remove file.
3484 * m4/libtool.m4: Undo AC_ -> CL_ substitutions.
3485 * Makefile.devel (CLISP_DIR): Comment out.
3486 (AUTOCONF_FILES): Change to aclocal.m4.
3487 (aclocal.m4): Renamed from autoconf/aclocal.m4. Update dependencies.
3488 (configure.in): Drop --include option.
3490 2003-03-17 Bruno Haible <bruno@clisp.org>
3492 Improved MSVC support.
3493 * Makefile.msvc (prefix): Use less Unixy value.
3494 (local_prefix): Remove variable.
3495 (libdir, includedir, mandir): Use backslashes.
3496 (bindir, datadir, localedir, docdir): New variables.
3497 (INSTALL, INSTALL_PROGRAM, INSTALL_DATA): New variables.
3498 (all): Recurse into po/ and man/.
3499 (install, installdirs, uninstall): Rewritten.
3500 (check, mostlyclean, clean, distclean, maintainer-clean): Recurse
3502 * lib/Makefile.msvc (prefix): Use less Unixy value.
3503 (local_prefix): Remove variable.
3504 (libdir): Use backslashes.
3505 (bindir): New variable.
3506 (INSTALL, INSTALL_PROGRAM, INSTALL_DATA): Set to real values.
3507 (RESOURCES): Enable iconv.res.
3508 (install, installdirs, uninstall): New rules.
3509 (clean): Remove config.h.
3510 (distclean): Don't remove config.h here.
3511 * src/Makefile.msvc (prefix, exec_prefix, bindir): New variables.
3512 (INSTALL, INSTALL_PROGRAM, INSTALL_DATA): New variables.
3513 (install, installdirs, uninstall): New rules.
3514 * man/Makefile.msvc: New file.
3515 * tests/Makefile.msvc (install, installdirs, uninstall): New rules.
3516 * Makefile.devel (all): Depend on po/Makefile.msvc.
3517 (po/Makefile.msvc): New rule.
3518 * windows/iconv.rc: Update.
3519 * README.woe32: Mention automatic installation command.
3521 Rename libcharset.h to localcharset.h.
3522 * lib/iconv.c: Include localcharset.h, not libcharset.h.
3523 * Makefile.in (lib/localcharset.h): Renamed from lib/libcharset.h.
3524 (all, install): Update dependencies.
3525 (all): Create lib/localcharset.h, not lib/libcharset.h.
3526 (mostlyclean, clean, distclean, maintainer-clean): Remove
3527 lib/localcharset.h, not lib/libcharset.h.
3528 * djgpp/README.in, djgpp/README: Update.
3529 * djgpp/config.bat: Update.
3530 * djgpp/config.sed: Update.
3531 * djgpp/fnchange.in, djgpp/fnchange.lst: Update.
3533 2003-01-31 Bruno Haible <bruno@clisp.org>
3535 * src/Makefile.in (all): Don't do the chmod if it has already been
3538 2003-01-31 Bruno Haible <bruno@clisp.org>
3540 * lib/loop_unicode.h (unicode_transliterate): Enable recursive
3541 transliteration. Idea from Perry Rapp.
3542 * lib/gentranslit.c (main): Change bound from 0x10000 to 0x110000.
3543 Change element type of translit_data to 'unsigned int'.
3544 * lib/translit.def: Many new transliterations, mostly taken from glibc.
3545 * lib/translit.h: Regenerated.
3546 * tests/Translit1.ISO-8859-1, tests/Translit1.ASCII: New files.
3547 * tests/Makefile.in (check): Add Translit1 check.
3548 * tests/Makefile.msvc (check): Likewise.
3549 * tests/Makefile.os2 (check): Likewise.
3550 * tests/TranslitFail1.ISO-8859-1: Choose a sentence which the new
3551 improved transliteration cannot do.
3553 2003-02-14 Bruno Haible <bruno@clisp.org>
3555 * Makefile.devel (AUTOCONF): Switch to autoconf-2.57.
3556 (configure): Update rule.
3558 2003-01-03 Albert Chin <libtool@thewrittenword.com>
3560 * autoconf/ltmain.sh: Don't pass -R flags found in a .la's
3561 dependency_libs variable directly down to the linker.
3562 Reported by Tim Mooney <mooney@dogbert.cc.ndsu.nodak.edu>.
3564 2003-01-01 Bruno Haible <bruno@clisp.org>
3566 * src/Makefile.in (install): Use libiconv.la in ../lib, not in
3567 $(libdir), so that installing with DESTDIR works.
3568 Reported by Michael Adams <michael@michaeladams.org>.
3570 2003-01-01 Bruno Haible <bruno@clisp.org>
3572 * Makefile.in (mkinstalldirs): New variable.
3573 (install-lib, install, installdirs): Use it instead of mkdir.
3574 * lib/Makefile.in (mkinstalldirs): New variable.
3575 (install-lib, install, installdirs): Use it instead of mkdir.
3576 * man/Makefile.in (mkinstalldirs): New variable.
3577 (install, installdirs): Use it instead of mkdir.
3578 * src/Makefile.in (mkinstalldirs): New variable.
3579 (install, installdirs): Use it instead of mkdir.
3581 2002-09-27 Bruno Haible <bruno@clisp.org>
3583 * autoconf/mkinstalldirs: Upgrade to automake-1.7.2 version.
3585 2002-11-07 Bruno Haible <bruno@clisp.org>
3587 * m4/libtool.m4: Upgrade to libtool-1.4.3.
3588 * autoconf/ltmain.sh: Upgrade to libtool-1.4.3.
3590 2002-07-14 Bruno Haible <bruno@clisp.org>
3592 * m4/libtool.m4 (_LT_AC_LTCONFIG_HACK): Add support for GNU/FreeBSD.
3594 2002-06-12 Bruno Haible <bruno@clisp.org>
3596 * configure.in: Use new AC_* names of libtool macros. Invoke
3597 AC_LIBTOOL_WIN32_DLL.
3599 2002-12-19 Bruno Haible <bruno@clisp.org>
3601 * lib/Makefile.in (libiconv_plug_solaris.so): Change rule if using gcc.
3602 Reported by Henry Nelson <henry@irm.nara.kindai.ac.jp>.
3604 2002-11-07 Bruno Haible <bruno@clisp.org>
3606 Make "make install" without prior "make" work.
3607 * Makefile.in (lib/libcharset.h): New rule.
3608 (all, install): Depend on it.
3609 Reported by Martin Mokrejš <mmokrejs@natur.cuni.cz>.
3611 2002-10-28 Bruno Haible <bruno@clisp.org>
3613 * man/Makefile.in (install): Change directory back to the working
3614 directory, so that install-sh (which may be a relative pathname) is
3615 found in the right place.
3617 2002-09-16 Bruno Haible <bruno@clisp.org>
3619 * autoconf/ltmain.sh (install): Use "ln -s -f" instead of
3620 "rm -f && ln -s" to make a symlink for a shared library.
3621 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
3623 2002-09-02 Bruno Haible <bruno@clisp.org>
3625 * src/iconv.c (main): Don't call bindtextdomain if !ENABLE_NLS.
3627 2002-08-16 Bruno Haible <bruno@clisp.org>
3629 * src/iconv.c (main): Perform fflush before testing ferror(stdout).
3631 2002-05-29 Bruno Haible <bruno@clisp.org>
3633 * Version 1.8 released.
3635 2002-05-26 Bruno Haible <bruno@clisp.org>
3637 * lib/c99.h: New file.
3638 * lib/converters.h: Include it.
3639 * lib/encodings.def (C99): New encoding.
3640 * README, man/iconv_open.3: Document C99 encoding.
3642 2002-05-26 Bruno Haible <bruno@clisp.org>
3644 * lib/java.h (java_mbtowc): Accept 12-byte sequences for non-BMP
3646 (java_wctomb): Produce 12-byte sequences for non-BMP characters.
3648 2002-05-29 Bruno Haible <bruno@clisp.org>
3650 Fix installation of iconv program when linked with a libintl that was
3651 built against an earlier libiconv.
3652 * src/iconv.c: Conditionally disable NLS.
3653 * src/iconv_no_i18n.c: New file.
3654 * src/Makefile.in (libdir): New variable.
3655 (all): Depend on iconv_no_i18n, iconv.@OBJEXT@ but not iconv. Make
3656 directory writable, so iconv executable can be created during "make
3658 (iconv): Remove rule.
3659 (iconv_no_i18n, iconv_no_i18n.@OBJEXT@): New rules.
3660 (install): Link iconv now, after the new libiconv.so is installed.
3661 (clean): Also remove iconv_no_i18n.
3662 * tests/Makefile.in: (check, check-extra-yes): Depend on iconv_no_i18n,
3664 * tests/check-stateful: Use iconv_no_i18n, not iconv.
3665 * tests/check-translit: LIkewise.
3666 * tests/check-translitfailure: Likewise.
3668 2002-05-29 Bruno Haible <bruno@clisp.org>
3670 * configure.in: Call AC_PROG_INSTALL instead of CL_PROG_INSTALL.
3671 * m4/install.m4: Remove file.
3672 * Makefile.devel (autoconf/aclocal.m4): Don't depend on m4/install.m4.
3674 2002-05-24 Bruno Haible <bruno@clisp.org>
3676 * lib/jisx0213.h: Use 'inline' only conditionally.
3678 2002-05-18 Bruno Haible <bruno@clisp.org>
3680 * configure.in (AC_INIT), include/iconv.h.in (_LIBICONV_VERSION),
3681 README, windows/iconv.rc, djgpp/README, djgpp/fnchange.lst:
3682 Bump version number.
3683 * lib/Makefile.in (LIBICONV_VERSION_INFO): Define to 3:0:1.
3685 2002-02-06 Bruno Haible <bruno@clisp.org>
3687 * autoconf/ltmain.sh: Upgrade from libtool-1.4 to libtool-1.4.2.
3689 2002-02-02 Bruno Haible <bruno@clisp.org>
3691 * autoconf/ltmain.sh: Add DESTDIR support on ELF systems.
3693 2001-11-03 Bruno Haible <haible@clisp.cons.org>
3695 * autoconf/ltmain.sh: chmod 777 the .libs directory, so that
3696 "make install" succeeds.
3698 2002-05-18 Bruno Haible <bruno@clisp.org>
3700 * src/Makefile.in (iconv): Remove the -liconv dependency of -lintl
3701 from the command line. Needed to ensure that the new libiconv version
3704 2002-05-14 Bruno Haible <bruno@clisp.org>
3706 Implement and document CP853, TDS565, RISCOS-LATIN1.
3707 * tools/Makefile (ALL): Add cp853.h, tds565.h, riscos1.h.
3708 (cp853.h, tds565.h, riscos1.h): New rules.
3709 * lib/cp853.h: New file.
3710 * lib/tds565.h: New file.
3711 * lib/riscos1.h: New file.
3712 * lib/converters.h: Include them.
3713 * lib/encodings_dos.def (CP853): New encoding.
3714 * lib/encodings_extra.def (TDS565, RISCOS-LATIN1): New encodings.
3715 * README, man/iconv_open.3: Add CP853, TDS565, RISCOS-LATIN1.
3716 * tests/Makefile.in (check-extra-yes): Check CP853, TDS565,
3718 * tests/Makefile.msvc (check): Check CP853.
3719 * tests/CP853.TXT: New file.
3720 * tests/TDS565.TXT: New file.
3721 * tests/RISCOS-LATIN1.TXT: New file.
3723 * lib/cp860.h (cp860_wctomb): Optimize.
3725 2002-05-12 Bruno Haible <bruno@clisp.org>
3727 * tools/Makefile (ksc5601.h): Add two extra characters.
3728 * lib/ksc5601.h: Regenerated.
3729 * tests/EUC-KR.TXT: Add EURO SIGN and REGISTERED SIGN.
3730 * tests/CP949.TXT: Likewise.
3731 * tests/JOHAB.TXT: Likewise.
3733 2002-05-12 Bruno Haible <bruno@clisp.org>
3735 * README: Mention extra encodings.
3736 * man/iconv_open.3: Likewise. Improve formatting in text and html
3739 2002-05-12 Bruno Haible <bruno@clisp.org>
3741 * tests/SHIFT_JIS.TXT: Renamed from tests/SHIFT-JIS.TXT.
3743 2002-05-12 Bruno Haible <bruno@clisp.org>
3745 * Makefile.devel (AUTOCONF): New variable.
3746 (AUTOCONF_FILES): Remove autoconf/autoconf.m4f.
3747 (configure): Use the AUTOCONF variable.
3748 * autoconf/autoconf: Remove file.
3749 * autoconf/autoconf.m4: Remove file.
3750 * autoconf/autoconf.m4f: Remove file.
3752 2002-05-12 Bruno Haible <bruno@clisp.org>
3754 * tools/JISX0213.TXT: New file.
3755 * tools/cjk_tab_to_h.c (do_jisx0213): New function.
3756 (main): Accept "jisx0213".
3757 * tools/Makefile (all): Add jisx0213.h.
3758 (jisx0213.h): New rule.
3759 * lib/jisx0213.h: New file, generated by cjk_tab_to_h.
3760 * lib/euc_jisx0213.h: New file.
3761 * lib/shift_jisx0213.h: New file.
3762 * lib/iso2022_jp3.h: New file.
3763 * lib/converters.h: Include them.
3764 * lib/encodings_extra.def (EUC-JISX0213, SHIFT_JISX0213,
3765 ISO-2022-JP-3): New encodings.
3766 * tests/EUC-JISX0213.TXT: New file.
3767 * tests/SHIFT_JISX0213.TXT: New file.
3768 * tests/ISO-2022-JP-3-snippet: New file.
3769 * tests/ISO-2022-JP-3-snippet.UTF-8: New file.
3770 * tests/Makefile.in (check-extra): Also check EUC-JISX0213,
3771 SHIFT_JISX0213, ISO-2022-JP-3.
3772 * tests/check-stateless: Add support for encodings which contain
3773 precomposed Unicode characters, by eliminating precomposed characters
3774 before the comparison.
3775 * tests/table-from.c (main): Fix usage message.
3776 * tests/table-to.c (main): Make it work for encodings for which the
3777 "to" direction is stateful.
3779 2002-05-09 Bruno Haible <bruno@clisp.org>
3781 New configure option --enable-extra-encodings.
3782 * lib/encodings_extra.def: New file.
3783 * lib/converters.h: Handle USE_EXTRA.
3784 * lib/genaliases2.c (main): Handle USE_EXTRA.
3785 * lib/genflags.c: Define USE_EXTRA.
3786 (main): Include encodings_extra.def.
3787 * lib/iconv.c: Handle ENABLE_EXTRA, conditionally set USE_EXTRA.
3789 * lib/config.h.in (ENABLE_EXTRA): New macro.
3790 * configure.in: Accept option --enable-extra-encodings.
3791 * Makefile.devel (all): Depend on lib/aliases_extra.h.
3792 (lib/aliases_extra.h): New rule.
3793 (lib/flags.h): Depend on lib/encodings_extra.def.
3794 * tests/Makefile.in (check-extra, check-extra-no, check-extra-yes):
3796 (check): Invoke check-extra.
3797 * tests/Makefile.msvc (check): Also check the DOS encodings.
3799 Support for testing the AIX encodings.
3800 * tests/CP856.TXT: New file.
3801 * tests/CP922.TXT: New file.
3802 * tests/CP1046.TXT: New file.
3803 * tests/CP1124.TXT: New file.
3804 * tests/CP1129.TXT: New file.
3805 * tests/CP1161.TXT, tests/CP1161.IRREVERSIBLE.TXT: New files.
3806 * tests/CP1162.TXT: New file.
3807 * tests/CP1163.TXT, tests/CP1163.IRREVERSIBLE.TXT: New files.
3809 Support for testing the OSF/1 encodings.
3810 * tests/DEC-KANJI.TXT: New file.
3811 * tests/DEC-HANYU.TXT, tests/DEC-HANYU.IRREVERSIBLE.TXT: New files.
3813 Support for testing the DOS encodings.
3814 * tests/CP437.TXT: New file.
3815 * tests/CP737.TXT: New file.
3816 * tests/CP775.TXT: New file.
3817 * tests/CP852.TXT: New file.
3818 * tests/CP855.TXT: New file.
3819 * tests/CP857.TXT: New file.
3820 * tests/CP858.TXT: New file.
3821 * tests/CP860.TXT: New file.
3822 * tests/CP861.TXT: New file.
3823 * tests/CP863.TXT: New file.
3824 * tests/CP864.TXT: New file.
3825 * tests/CP865.TXT: New file.
3826 * tests/CP869.TXT: New file.
3827 * tests/CP1125.TXT: New file.
3829 2002-05-09 Bruno Haible <bruno@clisp.org>
3831 Implement more ASCII compatible DOS encodings.
3832 * tools/Makefile (ALL): Add cp737.h, cp858.h, cp860.h, cp863.h.
3833 (cp737.h, cp858.h, cp860.h, cp863.h): New rules.
3834 * lib/cp737.h: New file.
3835 * lib/cp858.h: New file.
3836 * lib/cp860.h: New file.
3837 * lib/cp863.h: New file.
3838 * lib/converters.h: Include them.
3839 * lib/encodings_dos.def (CP737, CP858, CP860, CP863): New encodings.
3841 2002-05-09 Bruno Haible <bruno@clisp.org>
3843 Implement new ASCII compatible encodings from IBM.
3844 * tools/Makefile (ALL): Add cp1161.h, cp1162.h, cp1163.h.
3845 (cp1161.h, cp1162.h, cp1163.h): New rules.
3846 * lib/cp1161.h: New file.
3847 * lib/cp1162.h: New file.
3848 * lib/cp1163.h: New file.
3849 * lib/converters.h: Include them.
3850 * lib/encodings_aix.def (CP1161, CP1162, CP1163): New encodings.
3852 2002-05-09 Bruno Haible <bruno@clisp.org>
3854 Implement and document KOI8-T.
3855 * tools/Makefile (ALL): Add koi8_t.h.
3856 (koi8_t.h): New rule.
3857 * lib/koi8_t.h: New file.
3858 * lib/converters.h: Include it.
3859 * lib/encodings.def (KOI8-T): New encoding.
3860 * README, man/iconv_open.3: Add KOI8-T.
3861 * tests/Makefile.in (tests): Check KOI8-T.
3862 * tests/Makefile.os2 (tests): Likewise.
3863 * tests/Makefile.msvc (tests): Likewise.
3864 * tests/KOI8-T.TXT: New file.
3866 2002-05-09 Bruno Haible <bruno@clisp.org>
3868 * tools/8bit_tab_to_h.c (main): Update copyright year.
3869 * tools/cjk_variants.c (main): Likewise.
3871 2002-05-08 Bruno Haible <bruno@clisp.org>
3873 * README.woe32: Renamed from README.win32.
3875 2002-05-08 Bruno Haible <bruno@clisp.org>
3877 * lib/iconv.c: Enable DOS encodings also when compiling for Woe32,
3878 because the Woe32 consoles use them.
3880 2002-05-04 Bruno Haible <bruno@clisp.org>
3882 * lib/loop_unicode.h (unicode_loop_convert): When quitting the loop
3883 without writing an output character, restore cd->istate to its value
3884 before the xxx_mbtowc call. Otherwise we lose some characters during
3885 CP1255/CP1258/TCVN to Unicode conversion.
3886 (unicode_loop_reset): Likewise for the xxx_flushwc call.
3887 * tests/CP1255-snippet, tests/CP1255-snippet.UTF-8: Make the test
3888 files large enough to test against the bug.
3889 * tests/CP1258-snippet, tests/CP1258-snippet.UTF-8: Likewise.
3890 * tests/TCVN-snippet, tests/TCVN-snippet.UTF-8: Likewise.
3892 2002-04-28 Bruno Haible <bruno@clisp.org>
3894 * tools/Makefile (armscii_8.h): Use table from glibc-2.2.90.
3895 * tests/ARMSCII-8.TXT: Update to glibc-2.2.90 version.
3896 * tests/ARMSCII-8.IRREVERSIBLE.TXT: Remove 0x0027.
3897 * lib/armscii_8.h: Regenerated.
3899 2002-04-28 Bruno Haible <bruno@clisp.org>
3901 * src/iconv.c: Include gettext.h.
3903 (usage, print_version, convert, main): Internationalize.
3904 (main): Call setlocale, bindtextdomain, textdomain.
3905 * src/gettext.h: New file, from GNU gettext 0.11.2.
3906 * src/config.h.in: New file, needed for ENABLE_NLS.
3907 * src/Makefile.in (datadir, localedir): New variables.
3908 (iconv): Link with @LTLIBINTL@.
3909 (iconv.@OBJEXT@): Define LOCALEDIR.
3910 (distclean): Remove config.h.
3911 * po: New directory.
3912 * Makefile.in (all, install, installdirs, uninstall, check,
3913 mostlyclean, clean, distclean, maintainer-clean): Recurse into the po
3915 * autoconf/mkinstalldirs: New file, from automake-1.5.
3916 * ABOUT-NLS: New file, from GNU gettext 0.11.2.
3917 * m4/codeset.m4: New file, from GNU gettext 0.11.2.
3918 * m4/gettext.m4: New file, from GNU gettext 0.11.2.
3919 * m4/glibc21.m4: New file, from GNU gettext 0.11.2.
3920 * m4/isc-posix.m4: New file, from GNU gettext 0.11.2.
3921 * m4/lcmessage.m4: New file, from GNU gettext 0.11.2.
3922 * m4/progtest.m4: New file, from GNU gettext 0.11.2.
3923 * configure.in: Require autoconf-2.52, needed for multiple config.h.in
3924 files. Use new form of AC_INIT. Invoke AM_GNU_GETTEXT.
3925 (PACKAGE, VERSION): Define, needed for po/Makefile.in.in.
3926 * lib/config.h.in (HAVE_LOCALE_H, HAVE_SETLOCALE): Remove.
3928 2002-04-28 gettextize <bug-gnu-gettext@gnu.org>
3930 * configure.in (AC_OUTPUT): Add po/Makefile.in.
3932 2002-04-28 Bruno Haible <bruno@clisp.org>
3934 * m4/eilseq.m4: Renamed from autoconf/eilseq.m4.
3935 * m4/mbstate_t.m4: Renamed from autoconf/mbstate_t.m4.
3936 * m4/general.m4: New file, from GNU clisp.
3937 * m4/proto.m4: New file, from GNU clisp.
3938 * m4/ranlib.m4: New file, from GNU clisp.
3939 * m4/install.m4: New file, from GNU clisp.
3940 * m4/cp.m4: New file, from GNU clisp.
3941 * m4/ln.m4: New file, from GNU clisp.
3942 * m4/endian.m4: New file, from GNU clisp.
3943 * m4/iconv.m4: New file, from GNU gettext 0.11.2.
3944 * m4/lib-ld.m4: New file, from GNU gettext 0.11.2.
3945 * m4/lib-link.m4: New file, from GNU gettext 0.11.2.
3946 * m4/lib-prefix.m4: New file, from GNU gettext 0.11.2.
3947 * autoconf/config.rpath: New file, from GNU gettext 0.11.2.
3948 * m4/libtool.m4: New file, based on libtool-1.4.2.
3949 * Makefile.devel (ACLOCAL): Remove variable.
3950 (ACSELECT): Remove variable.
3951 (OTHERMACROS): Remove variable.
3952 (m4/*.m4): New rules.
3953 (autoconf/aclocal.m4): Construct using aclocal instead of acselect.
3954 * configure.in: Invoke AM_ICONV instead of CL_ICONV.
3956 2002-04-06 Bruno Haible <bruno@clisp.org>
3958 Upgrade to Unicode 3.2.
3959 * tools/cjk_tab_to_h.c (output_title): Bump copyright year.
3960 (compact_large_charset2uni): Add an argument. Determine optimal shift.
3961 Copy modified enc->charset2uni table.
3962 (output_charset2uni): Deal with shift other than 8. Copy encoding, so
3963 as to not disturb subsequent output_uni2charset[_sparse] call.
3964 * lib/hkscs.h: Regenerated.
3965 * tests/BIG5-HKSCS.TXT: Update.
3966 * tests/BIG5-HKSCS.IRREVERSIBLE.TXT: Update.
3968 2002-04-06 Bruno Haible <bruno@clisp.org>
3970 Upgrade to Unicode 3.2.
3971 * tools/Makefile (cns11643_1.h, cns11643_2.h, cns11643_3.h,
3972 cns11643_4a.h, cns11643_4b.h, cns11643_5.h, cns11643_6.h,
3973 cns11643_7.h, cns11643_15.h, cns11643_inv.h): Use
3974 CNS11643-Unicode32.TXT instead of CNS11643-Unicode31.TXT.
3975 * lib/cns11643_3.h: Regenerated.
3976 * lib/cns11643_4a.h: Regenerated.
3977 * lib/cns11643_4b.h: Regenerated.
3978 * lib/cns11643_5.h: Regenerated.
3979 * lib/cns11643_6.h: Regenerated.
3980 * lib/cns11643_7.h: Regenerated.
3981 * lib/cns11643_15.h: Regenerated.
3982 * lib/cns11643_inv.h: Regenerated.
3983 * tests/EUC-TW.TXT: Update.
3985 2002-01-17 Bruno Haible <bruno@clisp.org>
3987 * lib/tcvn.h (tcvn_2uni_1): Make it smaller.
3988 (tcvn_mbtowc): Small optimization.
3990 2002-01-13 Bruno Haible <bruno@clisp.org>
3992 New options -l, -c, -s.
3993 * src/iconv.c (discard_unconvertible, silent): New variables.
3994 (usage): Document options -l, -c, -s.
3995 (print_one): New function.
3996 (convert): If silent is true, don't print error messages about the
3997 conversion to stderr. If discard_unconvertible is true, set the
3998 iconv descriptor to DISCARD_ILSEQ the first time, but make sure to
3999 return the same return code as when discard_unconvertible is false.
4000 (main): Accept options -l, -c, -s. Implement option -l.
4001 * man/iconv.1: Document options -l, -c, -s.
4003 2002-01-13 Bruno Haible <bruno@clisp.org>
4005 Support for "iconv -c".
4006 * include/iconv.h.in (ICONV_GET_DISCARD_ILSEQ): New macro.
4007 (ICONV_SET_DISCARD_ILSEQ): Likewise.
4008 * lib/converters.h (struct conv_struct): New field discard_ilseq.
4009 * lib/iconv.c (iconv_open): Set discard_ilseq to true if tocode
4010 has an "//IGNORE" suffix, and to false otherwise.
4011 (iconvctl): Implement ICONV_GET_DISCARD_ILSEQ, ICONV_SET_DISCARD_ILSEQ.
4012 * lib/loop_unicode.h (unicode_loop_convert): If discard_ilseq is
4013 true, skip one input character instead of returning EILSEQ.
4014 (unicode_loop_reset): Likewise.
4015 * lib/loop_wchar.h (wchar_from_loop_convert): Likewise.
4016 (wchar_to_loop_convert): Likewise.
4018 2002-01-13 Bruno Haible <bruno@clisp.org>
4020 Support for "iconv -l".
4021 * include/iconv.h.in (iconvlist): New declaration.
4022 * Makefile.devel (lib/aliases.h): Change gperf options.
4023 * lib/iconv.c (compare_by_index, compare_by_name, iconvlist): New
4026 2002-01-06 Bruno Haible <bruno@clisp.org>
4028 * lib/loop_unicode.h (unicode_transliterate): If the transliteration
4029 fails due to limited output encoding, return RET_ILUNI, not
4030 RET_TOOSMALL. Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
4031 * tests/check-translitfailure: New file.
4032 * tests/TranslitFail1.ISO-8859-1: New file.
4033 * tests/Makefile.in (check): Call check-translitfailure.
4035 2001-12-15 Bruno Haible <bruno@clisp.org>
4037 * lib/euc_jp.h (euc_jp_wctomb): Add irreversible mappings for
4038 Shift_JIS characters 0x5C and 0x7E.
4039 * tests/EUC-JP.IRREVERSIBLE.TXT: New file.
4041 2001-12-05 Bruno Haible <bruno@clisp.org>
4043 * lib/iconv.c (iconv_open): Recognize the empty encoding name. Avoid
4044 endless loop if locale_charset() returns the empty string.
4045 * README, man/iconv_open.3: Add the empty encoding name.
4047 2001-11-10 Bruno Haible <haible@clisp.cons.org>
4049 * lib/Makefile.in (libiconv_plug_linux.so): Allow building it with a
4052 2001-10-23 Bruno Haible <haible@clisp.cons.org>
4054 * tools/Makefile (cp1125.h): New target.
4056 * lib/cp1125.h: New file.
4057 * lib/converters.h: Include it.
4058 * lib/encodings_dos.def (CP1125): New encoding.
4060 2001-09-08 Bruno Haible <haible@clisp.cons.org>
4062 * autoconf/eilseq.m4: New file.
4063 * Makefile.devel (OTHERMACROS): Add it.
4064 * configure.in: Call AC_EILSEQ.
4065 * include/iconv.h.in (EILSEQ): Define to the autoconf determined value.
4067 2001-08-25 Bruno Haible <haible@clisp.cons.org>
4069 Upgrade to autoconf-2.52.
4070 * autoconf/autoconf: Upgrade to autoconf-2.52.
4071 * autoconf/acgeneral.m4: Remove file.
4072 * autoconf/acspecific.m4: Remove file.
4073 * autoconf/autoconf.m4f: New file, from autoconf-2.52.
4074 * autoconf/aclocal.m4: Require autoconf-2.52.
4075 (CL_CANONICAL_HOST): Call AC_CANONICAL_HOST. Don't cache the result,
4076 AC_CANONICAL_HOST does it itself. Add $SHELL in front of
4077 $ac_config_guess and $ac_config_sub.
4078 * Makefile.devel (AUTOCONF_FILES): Remove acgeneral.m4, acspecific.m4.
4080 (configure): Use autoconf options -A, -l instead of -m.
4081 * configure.in: Use AC_CONFIG_SUBDIRS, not AC_OUTPUT_SUBDIRS.
4083 2001-08-05 Bruno Haible <haible@clisp.cons.org>
4085 * autoconf/acgeneral.m4 (AC_MSG_RESULTPROTO): Remove macro.
4086 (AC_LANG_EXTERN): Move to aclocal.m4.
4087 * autoconf/aclocal.m4 (AC_LANG_EXTERN): Moved here from acgeneral.m4.
4088 (CL_PROTO): Use AC_MSG_RESULT directly, instead of AC_MSG_RESULTPROTO.
4089 (CL_SILENT): No need to pushdef AC_MSG_RESULTPROTO.
4091 2001-08-05 Bruno Haible <haible@clisp.cons.org>
4093 Make it possible to build libiconv with CC=gcc CFLAGS="-x c++".
4094 * lib/loop_wchar.h (wchar_to_loop_convert): Rename local variable
4096 * lib/Makefile.in (libiconv_plug_linux.so): Add "-x none" option
4097 between sources and libs.
4098 (libiconv_plug_solaris.so) [GCC]: Likewise.
4099 (libiconv_plug_osf.so) [GCC]: Likewise.
4100 * src/Makefile.in (iconv.@OBJEXT@): New rule.
4101 (iconv): Depend on it.
4102 (clean): Erase *.@OBJEXT@, not *.o.
4103 * tests/Makefile.in (table-from.@OBJEXT@): New rule.
4104 (table-from): Depend on it.
4105 (table-to.@OBJEXT@): New rule.
4106 (table-to): Depend on it.
4107 (clean): Erase *.@OBJEXT@, not *.o.
4109 2001-07-28 Bruno Haible <haible@clisp.cons.org>
4111 * tools/Makefile (iso8859_16.h): Generate from the unicode.org table.
4112 * lib/iso8859_16.h: Regenerated.
4113 * tests/ISO-8859-16.TXT: Swap the values of 0xA5 and 0xAB.
4115 2001-07-17 Bruno Haible <haible@clisp.cons.org>
4117 * configure.in (VERSION): Define. Needed by djgpp/Makefile.maint.
4119 2001-07-03 Bruno Haible <haible@clisp.cons.org>
4121 * configure.in: Also check for mbsinit.
4122 * lib/loop_wchar.h (mbsinit): Define to 1 if not defined.
4123 Needed for SCO 3.2v5.0.2.
4125 2001-06-27 Bruno Haible <haible@clisp.cons.org>
4127 * Version 1.7 released.
4129 2001-06-27 Bruno Haible <haible@clisp.cons.org>
4131 * INSTALL.generic (Particular Systems): Generalize section about
4132 /usr/local to "most systems".
4134 * lib/Makefile.in (all): Build @PLUGLIB@ before libiconv.la, because
4135 Solaris cc destroys iconv.o and iconv.lo while building
4136 libiconv_plug_solaris.so.
4137 (clean): Remove so_locations, left there by the OSF/1 linker.
4139 * lib/cp1255.h (cp1255_decomp): Use 'signed int' instead of 'int'.
4141 * lib/vietcomb.h (viet_decomp): Use 'unsigned int' instead of
4144 * tests/table-from.c: Include string.h.
4145 * tests/table-to.c: Likewise.
4147 2001-06-26 Bruno Haible <haible@clisp.cons.org>
4149 * tools/Makefile (jisx0208.h): Replace U+005C with U+FF3C.
4150 (jisx0212.h): Replace U+007E with U+FF5E.
4151 * lib/jisx0208.h: Regenerated.
4152 * lib/jisx0212.h: Regenerated.
4153 * tests/EUC-JP.TXT: Map 0xA1C0 to U+FF3C. Map 0x8FA2B7 to U+FF5E.
4154 * tests/EUC-JP.IRREVERSIBLE.TXT: Remove file.
4155 * tests/SHIFT-JIS.TXT: Map 0x815F to U+FF3C.
4156 * tests/CP932.TXT: Likewise.
4157 * tests/CP932.IRREVERSIBLE.TXT: 0x815F mapping is now reversible.
4159 2001-06-25 Bruno Haible <haible@clisp.cons.org>
4161 * src/Makefile.in (iconv): Mention $(INCLUDES) before $(CFLAGS) and
4163 * src/Makefile.msvc (iconv.exe): Likewise.
4164 * src/Makefile.os2 (iconv.exe): Likewise.
4165 * lib/Makefile.in (libiconv_plug_linux.so): Likewise.
4166 (libiconv_plug_solaris.so): Likewise.
4167 (libiconv_plug_osf.so): Likewise.
4168 (iconv.lo): Likewise.
4169 * lib/Makefile.msvc (iconv.obj): Likewise.
4170 * lib/Makefile.os2 (iconv.obj): Likewise.
4171 * tests/Makefile.in (table-from, table-to): Likewise.
4172 * tests/Makefile.msvc (table-from.exe, table-to.exe): Likewise.
4173 * tests/Makefile.os2 (table-from.exe, table-to.exe): Likewise.
4174 (genutf8.exe): Don't use $(INCLUDES).
4176 2001-06-25 Bruno Haible <haible@clisp.cons.org>
4178 * include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
4179 Bump version number.
4180 * lib/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:4:0.
4182 2001-06-25 Bruno Haible <haible@clisp.cons.org>
4184 * Makefile.devel (OTHERMACROS): Use libtool.m4 in libcharset subdir.
4186 2001-06-25 Bruno Haible <haible@clisp.cons.org>
4188 * lib/encodings.def: Make SHIFT_JIS the primary name of SJIS.
4190 2001-06-08 Bruno Haible <haible@clisp.cons.org>
4192 * autoconf/ltmain.sh: Upgrade to libtool-1.4.
4193 * autoconf/ltconfig: Remove file.
4195 2001-06-08 Bruno Haible <haible@clisp.cons.org>
4197 * autoconf/config.guess: Update to GNU version 2001-05-11.
4198 * autoconf/config.sub: Likewise.
4200 2001-06-03 Bruno Haible <haible@clisp.cons.org>
4202 * lib/loop_unicode.h (unicode_loop_convert): Ignore Unicode 3.1 tag
4203 characters if they cannot be converted.
4204 (unicode_loop_reset): Likewise.
4205 * lib/iso2022_jp2.h (STATE_TAG_NONE, STATE_TAG_LANGUAGE,
4206 STATE_TAG_LANGUAGE_j, STATE_TAG_LANGUAGE_ja, STATE_TAG_LANGUAGE_k,
4207 STATE_TAG_LANGUAGE_ko, STATE_TAG_LANGUAGE_z, STATE_TAG_LANGUAGE_zh):
4209 (SPLIT_STATE, COMBINE_STATE): Different differently for wctomb
4211 (iso2022_jp2_wctomb): Keep track of Unicode 3.1 language tag.
4212 If "ja", prefer conversion to Japanese character sets. If "zh",
4213 prefer conversion to GB2312. If "ko", prefer conversion to KSC5601.
4215 * lib/converters.h (RET_ILUNI): Change value from 0 to -1.
4216 (RET_TOOSMALL): Change value from -1 to -2.
4217 * lib/loop_unicode.h (unicode_transliterate): Allow xxx_wctomb to
4218 return 0 written bytes.
4220 2001-06-06 Bruno Haible <haible@clisp.cons.org>
4222 * lib/encodings.def: Align with IANA character-set registry.
4223 (US-ASCII): Add alias "ANSI_X3.4-1986".
4224 (ISO-8859-14): Add alias "ISO-CELTIC".
4225 (JIS_X0208): Add alias "JIS_C6226-1983".
4226 (BIG5HKSCS): Add alias "BIG5-HKSCS".
4227 * README, man/iconv_open.3: Rename BIG5HKSCS to BIG5-HKSCS.
4228 * tests/Makefile.in (check): Likewise.
4229 * tests/Makefile.os2 (check): Likewise.
4230 * tests/Makefile.msvc (check): Likewise.
4231 * tests/BIG5-HKSCS.TXT: Renamed from BIG5HKSCS.TXT.
4232 * tests/BIG5-HKSCS.IRREVERSIBLE.TXT: Renamed from
4233 BIG5HKSCS.IRREVERSIBLE.TXT.
4235 2001-06-02 Bruno Haible <haible@clisp.cons.org>
4237 * tools/cjk_tab_to_h.c (Encoding): Add fffd field.
4238 (is_charset2uni_large, compact_large_charset2uni): New functions.
4239 (find_charset2uni_pages): Use enc->fffd instead of 0xfffd.
4240 (output_charset2uni): If mapping to more than the Unicode BMP,
4241 use an extra indirection to keep each value in 16 bits.
4242 (invert): Bump limit from U+10000 to U+30000.
4243 (output_uni2charset_dense): Likewise.
4244 (output_uni2charset_sparse): Likewise. If mapping to more than one
4245 CJK plane, use three bytes per value instead of two bytes.
4246 (byte_row_cns11643): Allow more than 3 CJK planes.
4247 (do_cns11643_only_uni2charset): Increase number of rows, to include
4248 plane 15. Remove plane bits hack.
4249 (main): Accept names cns11643_4a,4b,5,6,7,15 as well.
4250 * tools/Makefile (ALL): Add cns11643_4a.h, cns11643_4b.h, cns11643_5.h,
4251 cns11643_6.h, cns11643_7.h, cns11643_15.h.
4252 (cns11643_1.h, cns11643_2.h, cns11643_3.h): Use new Unicode 3.1
4254 (cns11643_4a.h, cns11643_4b.h, cns11643_5.h, cns11643_6.h,
4255 cns11643_7.h, cns11643_15.h): New rules.
4256 (cns11643_inv.h): Change title.
4257 * lib/cns11643_1.h: Regenerated from Unicode 3.1 derived table.
4258 * lib/cns11643_3.h: Likewise.
4259 * lib/cns11643_4a.h: New file.
4260 * lib/cns11643_4b.h: New file.
4261 * lib/cns11643_4.h: New file.
4262 * lib/cns11643_5.h: New file.
4263 * lib/cns11643_6.h: New file.
4264 * lib/cns11643_7.h: New file.
4265 * lib/cns11643_15.h: New file.
4266 * lib/cns11643_inv.h: Regenerated from Unicode 3.1 derived table.
4267 (cns11643_inv_wctomb): Return 3 bytes now.
4268 * lib/cns11643.h: Include cns11643_4.h, cns11643_5.h, cns11643_6.h,
4269 cns11643_7.h, cns11643_15.h.
4270 (cns11643_wctomb): Now a simple alias to cns11643_inv_wctomb. Return
4271 plane number starting at 1, not 0.
4272 * lib/dec_hanyu.h (dec_hanyu_wctomb): Update for cns11643_wctomb
4274 * lib/euc_tw.h (euc_tw_mbtowc): Accept CNS11643 planes 4,5,6,7,15 as
4276 (euc_tw_wctomb): Update for cns11643_wctomb change.
4277 * lib/iso2022_cn.h (iso2022_cn_wctomb): Likewise.
4278 * lib/iso2022_cnext.h (iso2022_cn_ext_mbtowc): Accept CNS11643 planes
4280 (iso2022_cn_ext_wctomb): Update for cns11643_wctomb change.
4281 Try CNS11643 planes 4,5,6,7 as well.
4282 * tests/EUC-TW.TXT: Many additions, mostly in planes 3,4,5,6,7,15.
4283 * tests/EUC-TW.IRREVERSIBLE.TXT: Reflect additions to CNS11643 plane 1.
4286 2001-06-01 Bruno Haible <haible@clisp.cons.org>
4288 * tests/table-from.c (bmp_only): New variable.
4289 (ucs4_decode): If bmp_only, don't return characters outside Unicode
4291 (main): When testing UTF-8 or GB18030, set bmp_only to 1. Don't print
4292 a conversion line if ucs4_decode returns NULL.
4293 * tests/table-to.c (main): When testing encodings other than UTF-8 and
4294 GB18030, loop upto U+30000 instead of U+10000.
4296 2001-05-24 Bruno Haible <haible@clisp.cons.org>
4298 * lib/converters.h (mbtowc_funcs): Add flushwc member function.
4299 * lib/flushwc.h: New file.
4300 * lib/cp1255.h: Include flushwc.h.
4301 (cp1255_comp_table_data, cp1255_comp_table): New arrays.
4302 (cp1255_mbtowc): Compose base and combining characters.
4303 (cp1255_flushwc): New macro.
4304 * lib/vietcomb.h (viet_comp_table_data, viet_comp_table): New arrays.
4305 * lib/cp1258.h: Include flushwc.h.
4306 (cp1258_mbtowc): Compose base and combining characters.
4307 (cp1258_flushwc): New macro.
4308 * lib/tcvn.h: Include flushwc.h.
4309 (tcvn_mbtowc): Compose base and combining characters.
4310 (tcvn_flushwc): New macro.
4311 * lib/loop_unicode.h: (unicode_transliterate): New function, extracted
4312 from unicode_loop_convert.
4313 (unicode_loop_convert): Use unicode_transliterate.
4314 (unicode_loop_reset): Call xxx_flushwc and output the resulting
4316 * lib/encodings.def: Add xxx_flushwc member.
4317 * lib/encodings_aix.def: Likewise.
4318 * lib/encodings_dos.def: Likewise.
4319 * lib/encodings_local.def: Likewise.
4320 * lib/encodings_osf1.def: Likewise.
4321 * lib/genaliases.c: Add an argument to the DEFENCODING macro.
4322 * lib/genaliases2.c: Likewise.
4323 * lib/genflags.c: Likewise.
4324 * lib/iconv.c: Likewise.
4325 * tests/table-from.c (try): Reset the iconv descriptor before the main
4326 call, and flush it afterwards.
4327 (ucs4_decode): New function.
4328 (main): Allow up to 3 Unicode characters output. Call ucs4_decode.
4329 * tests/CP1255-snippet: New file.
4330 * tests/CP1255-snippet.UTF-8: New file.
4331 * tests/CP1258-snippet: New file.
4332 * tests/CP1258-snippet.UTF-8: New file.
4333 * tests/TCVN-snippet: New file.
4334 * tests/TCVN-snippet.UTF-8: New file.
4335 * tests/Makefile.in (check): Check combining behaviour of CP1255,
4337 * tests/Makefile.msvc (check): Likewise.
4338 * tests/Makefile.os2 (check): Likewise.
4340 2001-05-22 Bruno Haible <haible@clisp.cons.org>
4342 * lib/converters.h (RET_ILUNI): New macro.
4343 (RET_ILSEQ): Change value to -1.
4344 (RET_TOOFEW): Change value.
4345 * lib/loop_unicode.h (unicode_loop_convert): Write RET_ILUNI instead
4346 of 0. Update handling of xxx_mbtowc return value.
4347 * lib/genflags.c (emit_encoding): Likewise.
4348 * lib/ascii.h (ascii_wctomb): Use RET_ILUNI instead of RET_ILSEQ.
4349 * lib/armscii_8.h (armscii_8_wctomb): Likewise.
4350 * lib/big5.h (big5_wctomb): Likewise.
4351 * lib/big5hkscs.h (big5hkscs_wctomb): Likewise.
4352 * lib/ces_big5.h (ces_big5_wctomb): Likewise.
4353 * lib/ces_gbk.h (ces_gbk_wctomb): Likewise.
4354 * lib/cns11643.h (cns11643_wctomb): Likewise.
4355 * lib/cns11643_inv.h (cns11643_inv_wctomb): Likewise.
4356 * lib/cp437.h (cp437_wctomb): Likewise.
4357 * lib/cp775.h (cp775_wctomb): Likewise.
4358 * lib/cp850.h (cp850_wctomb): Likewise.
4359 * lib/cp852.h (cp852_wctomb): Likewise.
4360 * lib/cp855.h (cp855_wctomb): Likewise.
4361 * lib/cp856.h (cp856_wctomb): Likewise.
4362 * lib/cp857.h (cp857_wctomb): Likewise.
4363 * lib/cp861.h (cp861_wctomb): Likewise.
4364 * lib/cp862.h (cp862_wctomb): Likewise.
4365 * lib/cp864.h (cp864_wctomb): Likewise.
4366 * lib/cp865.h (cp865_wctomb): Likewise.
4367 * lib/cp866.h (cp866_wctomb): Likewise.
4368 * lib/cp869.h (cp869_wctomb): Likewise.
4369 * lib/cp874.h (cp874_wctomb): Likewise.
4370 * lib/cp922.h (cp922_wctomb): Likewise.
4371 * lib/cp932ext.h (cp932ext_wctomb): Likewise.
4372 * lib/cp932.h (cp932_wctomb): Likewise.
4373 * lib/cp936ext.h (cp936ext_wctomb): Likewise.
4374 * lib/cp949.h (cp949_wctomb): Likewise.
4375 * lib/cp950ext.h (cp950ext_wctomb): Likewise.
4376 * lib/cp950.h (cp950_wctomb): Likewise.
4377 * lib/cp1046.h (cp1046_wctomb): Likewise.
4378 * lib/cp1124.h (cp1124_wctomb): Likewise.
4379 * lib/cp1129.h (cp1129_wctomb): Likewise.
4380 * lib/cp1133.h (cp1133_wctomb): Likewise.
4381 * lib/cp1250.h (cp1250_wctomb): Likewise.
4382 * lib/cp1251.h (cp1251_wctomb): Likewise.
4383 * lib/cp1252.h (cp1252_wctomb): Likewise.
4384 * lib/cp1253.h (cp1253_wctomb): Likewise.
4385 * lib/cp1254.h (cp1254_wctomb): Likewise.
4386 * lib/cp1255.h (cp1255_wctomb): Likewise.
4387 * lib/cp1256.h (cp1256_wctomb): Likewise.
4388 * lib/cp1257.h (cp1257_wctomb): Likewise.
4389 * lib/cp1258.h (cp1258_wctomb): Likewise.
4390 * lib/dec_hanyu.h (dec_hanyu_wctomb): Likewise.
4391 * lib/dec_kanji.h (dec_kanji_wctomb): Likewise.
4392 * lib/euc_cn.h (euc_cn_wctomb): Likewise.
4393 * lib/euc_jp.h (euc_jp_wctomb): Likewise.
4394 * lib/euc_kr.h (euc_kr_wctomb): Likewise.
4395 * lib/euc_tw.h (euc_tw_wctomb): Likewise.
4396 * lib/gb12345ext.h (gb12345ext_wctomb): Likewise.
4397 * lib/gb12345.h (gb12345_wctomb): Likewise.
4398 * lib/gb18030ext.h (gb18030ext_wctomb): Likewise.
4399 * lib/gb18030.h (gb18030_wctomb): Likewise.
4400 * lib/gb18030uni.h (gb18030uni_wctomb): Likewise.
4401 * lib/gb2312.h (gb2312_wctomb): Likewise.
4402 * lib/gbkext_inv.h (gbkext_inv_wctomb): Likewise.
4403 * lib/gbk.h (gbk_wctomb): Likewise.
4404 * lib/georgian_academy.h (georgian_academy_wctomb): Likewise.
4405 * lib/georgian_ps.h (georgian_ps_wctomb): Likewise.
4406 * lib/hkscs.h (hkscs_wctomb): Likewise.
4407 * lib/hp_roman8.h (hp_roman8_wctomb): Likewise.
4408 * lib/hz.h (hz_wctomb): Likewise.
4409 * lib/iso2022_cnext.h (iso2022_cn_ext_wctomb): Likewise.
4410 * lib/iso2022_cn.h (iso2022_cn_wctomb): Likewise.
4411 * lib/iso2022_jp1.h (iso2022_jp1_wctomb): Likewise.
4412 * lib/iso2022_jp2.h (iso2022_jp2_wctomb): Likewise.
4413 * lib/iso2022_jp.h (iso2022_jp_wctomb): Likewise.
4414 * lib/iso2022_kr.h (iso2022_kr_wctomb): Likewise.
4415 * lib/iso646_cn.h (iso646_cn_wctomb): Likewise.
4416 * lib/iso646_jp.h (iso646_jp_wctomb): Likewise.
4417 * lib/iso8859_1.h (iso8859_1_wctomb): Likewise.
4418 * lib/iso8859_2.h (iso8859_2_wctomb): Likewise.
4419 * lib/iso8859_3.h (iso8859_3_wctomb): Likewise.
4420 * lib/iso8859_4.h (iso8859_4_wctomb): Likewise.
4421 * lib/iso8859_5.h (iso8859_5_wctomb): Likewise.
4422 * lib/iso8859_6.h (iso8859_6_wctomb): Likewise.
4423 * lib/iso8859_7.h (iso8859_7_wctomb): Likewise.
4424 * lib/iso8859_8.h (iso8859_8_wctomb): Likewise.
4425 * lib/iso8859_9.h (iso8859_9_wctomb): Likewise.
4426 * lib/iso8859_10.h (iso8859_10_wctomb): Likewise.
4427 * lib/iso8859_13.h (iso8859_13_wctomb): Likewise.
4428 * lib/iso8859_14.h (iso8859_14_wctomb): Likewise.
4429 * lib/iso8859_15.h (iso8859_15_wctomb): Likewise.
4430 * lib/iso8859_16.h (iso8859_16_wctomb): Likewise.
4431 * lib/isoir165ext.h (isoir165ext_wctomb): Likewise.
4432 * lib/isoir165.h (isoir165_wctomb): Likewise.
4433 * lib/jisx0201.h (jisx0201_wctomb): Likewise.
4434 * lib/jisx0208.h (jisx0208_wctomb): Likewise.
4435 * lib/jisx0212.h (jisx0212_wctomb): Likewise.
4436 * lib/johab.h (johab_wctomb): Likewise.
4437 * lib/johab_hangul.h (johab_hangul_wctomb, johab_hangul_decompose):
4439 * lib/koi8_r.h (koi8_r_wctomb): Likewise.
4440 * lib/koi8_ru.h (koi8_ru_wctomb): Likewise.
4441 * lib/koi8_u.h (koi8_u_wctomb): Likewise.
4442 * lib/ksc5601.h (ksc5601_wctomb): Likewise.
4443 * lib/mac_arabic.h (mac_arabic_wctomb): Likewise.
4444 * lib/mac_centraleurope.h (mac_centraleurope_wctomb): Likewise.
4445 * lib/mac_croatian.h (mac_croatian_wctomb): Likewise.
4446 * lib/mac_cyrillic.h (mac_cyrillic_wctomb): Likewise.
4447 * lib/mac_greek.h (mac_greek_wctomb): Likewise.
4448 * lib/mac_hebrew.h (mac_hebrew_wctomb): Likewise.
4449 * lib/mac_iceland.h (mac_iceland_wctomb): Likewise.
4450 * lib/mac_roman.h (mac_roman_wctomb): Likewise.
4451 * lib/mac_romania.h (mac_romania_wctomb): Likewise.
4452 * lib/mac_thai.h (mac_thai_wctomb): Likewise.
4453 * lib/mac_turkish.h (mac_turkish_wctomb): Likewise.
4454 * lib/mac_ukraine.h (mac_ukraine_wctomb): Likewise.
4455 * lib/mulelao.h (mulelao_wctomb): Likewise.
4456 * lib/nextstep.h (nextstep_wctomb): Likewise.
4457 * lib/sjis.h (sjis_wctomb): Likewise.
4458 * lib/tcvn.h (tcvn_wctomb): Likewise.
4459 * lib/tis620.h (tis620_wctomb): Likewise.
4460 * lib/ucs2be.h (ucs2be_wctomb): Likewise.
4461 * lib/ucs2.h (ucs2_wctomb): Likewise.
4462 * lib/ucs2internal.h (ucs2internal_wctomb): Likewise.
4463 * lib/ucs2le.h (ucs2le_wctomb): Likewise.
4464 * lib/ucs2swapped.h (ucs2swapped_wctomb): Likewise.
4465 * lib/ucs4.h (ucs4_wctomb): Likewise.
4466 * lib/uhc_1.h (uhc_1_wctomb): Likewise.
4467 * lib/uhc_2.h (uhc_2_wctomb): Likewise.
4468 * lib/utf16be.h (utf16be_wctomb): Likewise.
4469 * lib/utf16.h (utf16_wctomb): Likewise.
4470 * lib/utf16le.h (utf16le_wctomb): Likewise.
4471 * lib/utf32be.h (utf32be_wctomb): Likewise.
4472 * lib/utf32.h (utf32_wctomb): Likewise.
4473 * lib/utf32le.h (utf32le_wctomb): Likewise.
4474 * lib/utf7.h (utf7_wctomb): Likewise.
4475 * lib/utf8.h (utf8_wctomb): Likewise.
4476 * lib/viscii.h (viscii_wctomb): Likewise.
4477 * tools/8bit_tab_to_h.c (main): Likewise.
4478 * tools/cjk_tab_to_h.c (output_uni2charset_dense,
4479 output_uni2charset_sparse, do_gb18030uni): Likewise.
4481 2001-05-19 Bruno Haible <haible@clisp.cons.org>
4483 * Makefile.devel (all): Add man/{iconv.1,iconv*.3}.html.
4484 (man/%.html): New rule.
4485 * man/Makefile.in (docdir, htmldir): New variables.
4486 (install, installdirs): Install the HTML formatted man pages in
4488 (uninstall): Uninstall them.
4490 2001-05-20 Bruno Haible <haible@clisp.cons.org>
4492 * lib/cp1255.h (cp1255_decomp_table): New array.
4493 (cp1255_comb_table): New array.
4494 (cp1255_wctomb): Decompose Unicode characters.
4495 * tests/CP1255.IRREVERSIBLE.TXT: New file.
4497 2001-05-13 Bruno Haible <haible@clisp.cons.org>
4499 * lib/vietcomb.h: New file.
4500 * lib/cp1258.h: Include it.
4501 (cp1258_comb_table): New array.
4502 (cp1258_wctomb): Decompose Unicode characters.
4503 * lib/tcvn.h: Include it.
4504 (tcvn_comb_table): New array.
4505 (tcvn_wctomb): Decompose Unicode characters.
4506 * tests/CP1258.IRREVERSIBLE.TXT: New file.
4507 * tests/TCVN.IRREVERSIBLE.TXT: New file.
4509 2001-05-06 Bruno Haible <haible@clisp.cons.org>
4511 * lib/Makefile.msvc (config.h): Allow the 'del' command to fail.
4512 (iconv.lib): Likewise.
4514 2001-05-06 Bruno Haible <haible@clisp.cons.org>
4516 * lib/Makefile.in (CPPFLAGS, LDFLAGS): New variables.
4517 (CPP): Remove variable.
4518 (libiconv.la, libiconv_plug_linux.so, libiconv_plug_solaris.so,
4519 libiconv_plug_osf.so): Use LDFLAGS.
4520 (libiconv_plug_linux.so, libiconv_plug_solaris.so,
4521 libiconv_plug_osf.so, iconv.lo): Use CPPFLAGS.
4522 * lib/Makefile.msvc (CPP): Remove variable.
4523 * src/Makefile.in (CPPFLAGS, LDFLAGS): New variables.
4524 (CPP): Remove variable.
4525 (iconv): Use CPPFLAGS and LDFLAGS.
4526 * src/Makefile.msvc (CPP): Remove variable.
4527 * tests/Makefile.in (CPPFLAGS, LDFLAGS): New variables.
4528 (check, table-from, table-to): Use CPPFLAGS and LDFLAGS.
4529 * tests/Makefile.msvc (CPP): Remove variable.
4531 2001-05-06 Bruno Haible <haible@clisp.cons.org>
4533 * lib/Makefile.in (libiconv_plug_solaris.so): Change rule if not using
4534 gcc. Reported by Paananen Mikko <mikkopa@cs.tut.fi>.
4536 2001-04-11 Bruno Haible <haible@clisp.cons.org>
4538 Implement and document UTF-32, UTF-32BE, UTF-32LE.
4539 * src/utf32.h, src/utf32be.h, src/utf32le.h: New files.
4540 * src/converters.h: Include them.
4541 * src/encodings.def (UTF-32, UTF-32BE, UTF32LE): New encodings.
4542 * README, man/iconv_open.3: Add UTF-32, UTF-32BE, UTF32LE.
4543 * tests/Makefile.in (check): Check UTF-32, UTF-32BE, UTF32LE.
4544 * tests/Makefile.os2 (check): Likewise.
4545 * tests/Makefile.msvc (check): Likewise.
4546 * tests/UTF-32*snippet*: New files.
4548 * lib/ucs4.h (ucs4_mbtowc): Fix value of other-endian byte order.
4549 (ucs4_wctomb): Allow any 31-bit codepoint.
4551 2001-04-11 Bruno Haible <haible@clisp.cons.org>
4553 * tests/GB18030.TXT: Add mappings for all of U+0000..U+FFFF, including
4554 unassigned code points.
4555 * tests/table-from.c (main); When dumping GB18030, don't print code
4556 points larger than U+FFFF.
4558 2001-03-30 Bruno Haible <haible@clisp.cons.org>
4560 * tools/Makefile (GB18030uni.TXT): Use a table source which includes
4561 the unassigned Unicode code points.
4562 * lib/gb18030uni.h: Update.
4563 (gb18030uni_ranges): Remove bitmap_offset field.
4564 (gb18030uni_bitmap): Remove array.
4565 (gb18030uni_mbtowc): Omit gb18030uni_bitmap access.
4566 (gb18030uni_wctomb): Likewise.
4567 * lib/gb18030.h (gb18030_mbtowc): Handle Unicode characters >= 0x10000.
4568 (gb18030_wctomb): Likewise.
4570 2001-03-21 Bruno Haible <haible@clisp.cons.org>
4572 * INSTALL.generic (Particular Systems): Add recommendations for AIX 3.
4574 2001-03-21 Bruno Haible <haible@clisp.cons.org>
4576 * src/iconv.c (print_version): Now called GNU libiconv.
4578 2001-03-20 Bruno Haible <haible@clisp.cons.org>
4580 * README: This package is now called GNU libiconv.
4582 * tools/8bit_tab_to_h.c (main): Emit copyright notice to the output
4584 * tools/cjk_tab_to_h.c (output_title): Likewise.
4585 * tools/cjk_variants.c (main): Likewise.
4586 * lib/gentranslit.c (main): Likewise.
4588 2001-03-19 Bruno Haible <haible@clisp.cons.org>
4590 * autoconf/aclocal.m4 (CL_CANONICAL_HOST): Always define
4591 ac_config_guess and ac_config_sub. Then ignore requests for
4592 AC_CONFIG_AUX_DIR_DEFAULT or AC_CANONICAL_HOST.
4594 2001-03-10 Bruno Haible <haible@clisp.cons.org>
4596 * INSTALL.generic: New section "Particular Systems".
4598 2001-03-10 Bruno Haible <haible@clisp.cons.org>
4600 * lib/Makefile.in (libiconv.la): Pass flag -no-undefined. Needed on
4601 platforms like BeOS.
4603 * lib/loop_wchar.h (mbstate_t): Don't typedef if already #defined in
4606 2001-03-06 Bruno Haible <haible@clisp.cons.org>
4608 * Version 1.6 released.
4609 * include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
4610 Bump version number.
4611 * lib/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:3:0.
4613 2001-03-05 Bruno Haible <haible@clisp.cons.org>
4615 Provide all encodings used by OSF/1 5.1 locales.
4616 * lib/dec_kanji.h: New file.
4617 * lib/dec_hanyu.h: New file.
4618 * lib/converters.h: Include them if USE_OSF1 is defined.
4619 * lib/encodings_osf1.def: New file.
4620 * lib/genflags.c (main): Include it. Define USE_OSF1.
4621 * lib/genaliases2.c (main): Include it conditionally.
4622 * lib/iconv.c: Define USE_OSF1 on OSF/1.
4623 Include encodings_osf1.def and aliases_osf1.h.
4624 * lib/Makefile.in (iconv.lo): Depend on encodings_osf1.def and
4626 * Makefile.devel (lib/aliases_osf1.h): New target.
4627 (all): Depend on lib/aliases_osf1.h.
4628 (lib/flags.h): Depend on lib/encodings_osf1.def.
4630 2001-03-01 Bruno Haible <haible@clisp.cons.org>
4632 * tools/Makefile (cp775.h): New target.
4634 * lib/cp775.h: New file.
4635 * lib/converters.h: Include it.
4636 * lib/encodings_dos.def (CP775): New encoding.
4638 2001-02-25 Bruno Haible <haible@clisp.cons.org>
4640 * lib/iconv.c (iconv_open): locale_charset() doesn't return NULL any
4643 2001-02-24 Bruno Haible <haible@clisp.cons.org>
4645 * src/iconv.c (convert): Use ICONV_CONST.
4646 * tests/table-from.c: Include config.h.
4647 (try): Use ICONV_CONST.
4648 * tests/table-to.c: Include config.h.
4649 (main): Use ICONV_CONST.
4650 * tests/Makefile.in (INCLUDES): Add -I../lib.
4651 * tests/Makefile.os2 (INCLUDES): Likewise.
4652 * tests/Makefile.msvc (INCLUDES): Add -I..\lib.
4654 2001-02-24 Bruno Haible <haible@clisp.cons.org>
4656 Provide all encodings used by DOS locales.
4657 * tools/Makefile (cp437.h, cp852.h, cp855.h, cp857.h, cp861.h,
4658 cp864.h, cp865.h, cp869.h): New targets.
4660 * lib/cp437.h: New file.
4661 * lib/cp852.h: New file.
4662 * lib/cp855.h: New file.
4663 * lib/cp857.h: New file.
4664 * lib/cp861.h: New file.
4665 * lib/cp864.h: New file.
4666 * lib/cp865.h: New file.
4667 * lib/cp869.h: New file.
4668 * lib/converters.h: Include them if USE_DOS is defined.
4669 * lib/encodings_dos.def: New file.
4670 * lib/genflags.c (main): Include it. Define USE_DOS.
4671 * lib/genaliases2.c (main): Include it conditionally.
4672 * lib/iconv.c: Define USE_DOS on DJGPP.
4673 Include encodings_dos.def and aliases_dos.h.
4674 * lib/Makefile.in (iconv.lo): Depend on encodings_dos.def and
4676 * Makefile.devel (lib/aliases_dos.h): New target.
4677 (all): Depend on lib/aliases_dos.h.
4678 (lib/flags.h): Depend on lib/encodings_dos.def.
4680 2001-02-23 Bruno Haible <haible@clisp.cons.org>
4682 * src/iconv.c [DJGPP]: Include <io.h> and <unistd.h>.
4683 (SET_BINARY) [O_BINARY]: New macro.
4684 (usage): Mention --binary if available.
4685 (convert): Use SET_BINARY instead of setmode.
4687 Reported by Juan Manuel Guerrero <st001906@hrz1.hrz.tu-darmstadt.de>.
4689 2001-02-25 Bruno Haible <haible@clisp.cons.org>
4691 * autoconf/ltconfig:
4692 sed -e 's/reload object files/produce relocatable object files/'.
4694 2001-02-20 Bruno Haible <haible@clisp.cons.org>
4696 * src/iconv.c (usage, main): Make -f and -t options optional.
4697 * man/iconv.1: Mark them as optional.
4699 2001-02-20 Bruno Haible <haible@clisp.cons.org>
4701 * tools/Makefile (GB18030ext.TXT, GB18030uni.TXT): Generate from
4703 * lib/gb18030uni.h, lib/gb18030ext.h: Add mapping 0xA989 -> U+303E,
4704 0xFE5E -> U+2E97. Shift the entire four-byte range.
4705 * tests/GB18030.TXT: Regenerated.
4707 2001-02-20 Bruno Haible <haible@clisp.cons.org>
4709 Better support for DOS/Windows platforms.
4710 * autoconf/ltconfig: Upgrade to libtool-1.3.5.
4711 * autoconf/ltmain.sh: Likewise.
4712 * autoconf/aclocal.m4: Likewise.
4713 * autoconf/install-sh: New file.
4714 * configure.in: Call AC_OBJEXT and AC_EXEEXT. Call AC_CONFIG_AUX_DIR.
4716 2001-02-20 Bruno Haible <haible@clisp.cons.org>
4718 * Makefile.in (libdir, includedir, mandir): Use the autoconf
4719 determined value, in order to respect the configure arguments.
4720 * lib/Makefile.in (libdir): Likewise.
4721 * src/Makefile.in (bindir): Likewise.
4722 * man/Makefile.in (mandir): Likewise.
4724 2001-02-04 Bruno Haible <haible@clisp.cons.org>
4726 * lib/translit.def: Add all the neutral transliterations from glibc.
4727 * lib/gentranslit.c (main): Allow UTF-8 replacements which are in
4728 UCS-2 but not in ISO-8859-1. Generate a table of 'unsigned short'.
4729 Avoid accessing data[-1].
4730 * lib/loop_unicode.h (unicode_loop_convert): Change type of pointer
4733 2001-01-05 Bruno Haible <haible@clisp.cons.org>
4735 Implement and document CP862.
4736 * tools/Makefile (ALL): Add cp862.h.
4737 (cp862.h): New target.
4738 * lib/cp862.h: New file.
4739 * lib/converters.h: Include it.
4740 * lib/encodings.def (CP862): New encoding.
4741 * README, man/iconv_open.3: Add CP862.
4742 * tests/Makefile.in (check): Check CP862.
4743 * tests/Makefile.msvc (check): Likewise.
4744 * tests/Makefile.os2 (check): Likewise.
4745 * tests/CP862.TXT: New file.
4747 2000-12-18 Bruno Haible <haible@clisp.cons.org>
4749 * autoconf/mbstate_t.m4: New file, from textutils-2.0.10.
4750 * Makefile.devel (OTHERMACROS): Add it.
4751 * configure.in: Call AC_MBSTATE_T.
4752 * lib/config.h.in (mbstate_t): New definition.
4753 * lib/loop_wchar.h (mbrtowc): For BeOS, declare and define fallback.
4755 2000-12-12 Bruno Haible <haible@clisp.cons.org>
4757 * Makefile.in: Use $(MAKE) instead of $(MAKE) -r. Needed with Solaris
4758 "make", which doesn't set MAKE as expected by @SET_MAKE@ if -r is
4759 given. Reported by Toshimitsu Fujiwara.
4761 2000-12-08 Bruno Haible <haible@clisp.cons.org>
4763 * Makefile.in (exec_prefix): Use configure's --exec-prefix argument.
4764 * lib/Makefile.in (exec_prefix): Likewise.
4765 * src/Makefile.in (exec_prefix): Likewise.
4766 * man/Makefile.in (exec_prefix): Likewise.
4768 2000-12-02 Bruno Haible <haible@clisp.cons.org>
4770 * Version 1.5 released.
4771 * include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
4772 Bump version number.
4773 * lib/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:2:0.
4775 2000-12-02 Bruno Haible <haible@clisp.cons.org>
4777 * Makefile.in (mostlyclean, clean, distclean, maintainer-clean):
4778 Remove files installed in lib by libcharset.
4779 * Makefile.msvc (mostlyclean): Likewise.
4781 * Makefile.in (check): Depend on target 'all'.
4782 * Makefile.os2 (check): Likewise.
4783 * Makefile.msvc (check): Depend on target 'force' as well.
4785 * src/iconv.c (usage): Take an exitcode argument.
4786 (print_version): New function.
4787 (main): Recognize --help and --version command line options.
4789 2000-12-02 Bruno Haible <haible@clisp.cons.org>
4791 * Makefile.msvc: Replace STATIC with its opposite flag, DLL.
4792 * lib/Makefile.msvc: Likewise.
4793 * src/Makefile.msvc: Likewise.
4794 * tests/Makefile.msvc: Likewise.
4796 2000-12-01 Bruno Haible <haible@clisp.cons.org>
4798 * src/iconv.c: Include <fcntl.h>. Define fallbacks for setmode, fileno.
4799 (force_binary): New variable.
4800 (convert): If requested, set the input O_BINARY.
4801 (main): Accept --binary option. If requested, set the output O_BINARY.
4802 * tests/check-stateful.bat: Pass --binary to iconv.
4803 * tests/check-stateful.cmd: Likewise.
4804 * tests/check-translit.bat: Likewise.
4805 * tests/check-translit.cmd: Likewise.
4807 2000-12-01 Bruno Haible <haible@clisp.cons.org>
4809 * include/iconv.h.in (_libiconv_version): New declaration.
4810 * lib/iconv.c (_libiconv_version): New variable.
4812 2000-11-30 Bruno Haible <haible@clisp.cons.org>
4814 * Makefile.msvc (all): File now named lib/libcharset.h.
4815 (clean, distclean, maintainer-clean): Likewise.
4817 2000-11-23 Bruno Haible <haible@clisp.cons.org>
4819 * lib/*: Move here all files from src/*.
4820 * src/*: Move all files to lib.
4821 * lib/Makefile.in (distclean): No need to remove config.status,
4822 config.log, config.cache.
4823 * configure.in: Require lib/iconv.c, not src/iconv.c. Create
4824 lib/config.h, not src/config.h. Also create lib/Makefile.
4825 * Makefile.in (all): Install libcharset into lib, not src. Recurse
4827 (install-lib): Recurse into lib, not src.
4828 (install): Recurse into libcharset, lib and src.
4829 (installdirs, uninstall): Likewise.
4830 (check, mostlyclean, clean, distclean, maintainer-clean): Likewise.
4831 * Makefile.msvc (all): Recurse into lib and src.
4832 (install): Recurse into libcharset, lib and src.
4833 (installdirs, uninstall): Likewise.
4834 (check, mostlyclean, clean, distclean, maintainer-clean): Likewise.
4835 * Makefile.os2 (all): Recurse into lib and src.
4836 (install-lib): Recurse into lib, not src.
4837 (install, uninstall): Recurse into lib and src.
4838 (check, mostlyclean, clean, distclean, maintainer-clean): Likewise.
4839 * Makefile.devel (lib/config.h.msvc): Renamed from src/config.h.msvc.
4840 (lib/aliases.h): Renamed from src/aliases.h.
4841 (lib/aliases.gperf): Renamed from src/aliases.gperf.
4842 (lib/aliases_aix.h): Renamed from src/aliases_aix.h.
4843 (lib/flags.h): Renamed from src/flags.h.
4844 (lib/translit.h): Renamed from src/translit.h.
4845 * src/iconv.c: Moved here from tests/iconv.c.
4846 * src/Makefile.in: New file.
4847 * src/Makefile.msvc: New file.
4848 * src/Makefile.os2: New file.
4849 * tests/Makefile.in (iconv): Remove target.
4850 (../lib/libiconv.la): Renamed from ../src/libiconv.la.
4851 (clean): No need to remove iconv.
4852 * tests/Makefile.msvc (iconv.exe): Remove target.
4853 * tests/Makefile.os2 (iconv.exe): Likewise.
4854 * tests/check-stateful: iconv is in ../src.
4855 * tests/check-stateful.bat: Likewise.
4856 * tests/check-stateful.cmd: Likewise.
4857 * tests/check-translit: iconv is in ../src.
4858 * tests/check-translit.bat: Likewise.
4859 * tests/check-translit.cmd: Likewise.
4860 * man/iconv.1: New file.
4861 * man/Makefile.in (install, installdirs, uninstall): Also install *.1
4863 * man/Makefile.os2 (MAN3): Renamed from MAN.
4864 (MAN1): New variable.
4865 (install, uninstall): Also install *.1 man pages.
4867 2000-11-21 Bruno Haible <haible@clisp.cons.org>
4869 * Makefile.msvc (all, check, mostlyclean, clean, distclean,
4870 maintainer-clean): Recurse into libcharset.
4871 (clean, distclean, maintainer-clean): Remove src\libcharset.h.
4872 * src/Makefile.msvc (LIBCHARSET_OBJECTS): New variable.
4873 (iconv.lib): Link with $(LIBCHARSET_OBJECTS).
4875 2000-11-18 Bruno Haible <haible@clisp.cons.org>
4877 * src/cp950.h (cp950_mbtowc, cp950_wctomb): Change implementation
4878 so that it agrees with Microsoft's definition of CP950.
4879 * tests/CP950.TXT: Likewise.
4880 * tests/CP950.IRREVERSIBLE.TXT: Add 0xA244, 0xA2CC, 0xA2CE.
4882 2000-11-18 Bruno Haible <haible@clisp.cons.org>
4884 Add support for locale dependent "char" and "wchar_t" encodings.
4885 * libcharset: New subdirectory.
4886 * src/loop_unicode.h: New file, extracted from src/iconv.c.
4887 * src/loop_wchar.h: New file.
4888 * src/loops.h: New file. Include loop_unicode.h and loop_wchar.h.
4889 * src/encodings_local.def: New file.
4890 * src/genaliases.c: Also create aliases for encodings_local.def.
4891 * src/converters.h (conv_struct): Add lfuncs field.
4892 * src/genflags.c: Add dummy definitions of struct loop_funcs.
4893 * src/iconv.c: Include libcharset.h.
4894 (loop_funcs): New structure.
4895 Treat encodings_local.def like encodings.def.
4897 (iconv_open): Move the bulk of the code to loop_unicode.h.
4899 (iconvctl): Extend determination of TRIVIALP to wchar_t conversion
4901 * src/Makefile.in (PLUG_SOURCES): Remove variable.
4902 (LIBCHARSET_OBJECTS): New variable.
4903 (libiconv.la): Link in the LIBCHARSET_OBJECTS.
4904 (libiconv_plug_linux.so, libiconv_plug_solaris.so,
4905 libiconv_plug_osf.so): Link in the LIBCHARSET_OBJECTS, using
4907 (iconv.lo): Depend on encodings_local.def.
4908 * src/Makefile.msvc (iconv.obj): Depend on encodings_local.def.
4909 * src/Makefile.os2 (iconv.obj): Likewise.
4910 * configure.in: Add tests for locale.h, mbrtowc, wcrtomb, setlocale.
4911 Recurse into libcharset.
4912 * src/config.h.in (HAVE_LOCALE_H, HAVE_MBRTOWC, HAVE_WCRTOMB,
4913 HAVE_SETLOCALE): New macros.
4914 * tests/iconv.c: Include config.h and locale.h.
4915 (main): Call setlocale.
4916 * tests/Makefile.in (iconv): Search for config.h in ../src.
4917 * tests/Makefile.os2 (iconv.exe): Likewise.
4918 * tests/Makefile.msvc (iconv.exe): Likewise.
4919 * README, man/iconv_open.3: Document "char" and "wchar_t" encodings.
4920 * Makefile.in: After "cd", use "&&" not ";".
4921 (all, check, mostlyclean, clean, distclean, maintainer-clean):
4922 Recurse into libcharset.
4923 * Makefile.devel (all): Recurse into libcharset.
4924 (src/aliases.gperf): Depend on src/encodings_local.def.
4926 2000-11-18 Bruno Haible <haible@clisp.cons.org>
4928 * src/converters.h (ucs4_t): New type.
4929 (wchar_t): Remove locally defined override.
4930 (mbtowc_funcs, wctomb_funcs): Use ucs4_t instead of wchar_t.
4931 * src/iconv.c (iconv): Likewise.
4932 * src/genflags.c (emit_encoding): Use ucs4_t instead of wchar_t.
4933 * tools/8bit_tab_to_h.c: Use "ucs4_t" instead of "wchar_t".
4934 * tools/cjk_tab_to_h.c: Likewise.
4935 * src/armscii_8.h: Use ucs4_t instead of wchar_t.
4936 * src/ascii.h: Likewise.
4937 * src/big5.h: Likewise.
4938 * src/big5hkscs.h: Likewise.
4939 * src/ces_big5.h: Likewise.
4940 * src/ces_gbk.h: Likewise.
4941 * src/cns11643.h: Likewise.
4942 * src/cns11643_1.h: Likewise.
4943 * src/cns11643_2.h: Likewise.
4944 * src/cns11643_3.h: Likewise.
4945 * src/cns11643_inv.h: Likewise.
4946 * src/cp1046.h: Likewise.
4947 * src/cp1124.h: Likewise.
4948 * src/cp1129.h: Likewise.
4949 * src/cp1133.h: Likewise.
4950 * src/cp1250.h: Likewise.
4951 * src/cp1251.h: Likewise.
4952 * src/cp1252.h: Likewise.
4953 * src/cp1253.h: Likewise.
4954 * src/cp1254.h: Likewise.
4955 * src/cp1255.h: Likewise.
4956 * src/cp1256.h: Likewise.
4957 * src/cp1257.h: Likewise.
4958 * src/cp1258.h: Likewise.
4959 * src/cp850.h: Likewise.
4960 * src/cp856.h: Likewise.
4961 * src/cp866.h: Likewise.
4962 * src/cp874.h: Likewise.
4963 * src/cp922.h: Likewise.
4964 * src/cp932.h: Likewise.
4965 * src/cp932ext.h: Likewise.
4966 * src/cp936ext.h: Likewise.
4967 * src/cp949.h: Likewise.
4968 * src/cp950.h: Likewise.
4969 * src/cp950ext.h: Likewise.
4970 * src/euc_cn.h: Likewise.
4971 * src/euc_jp.h: Likewise.
4972 * src/euc_kr.h: Likewise.
4973 * src/euc_tw.h: Likewise.
4974 * src/gb12345.h: Likewise.
4975 * src/gb12345ext.h: Likewise.
4976 * src/gb18030.h: Likewise.
4977 * src/gb18030ext.h: Likewise.
4978 * src/gb18030uni.h: Likewise.
4979 * src/gb2312.h: Likewise.
4980 * src/gbk.h: Likewise.
4981 * src/gbkext1.h: Likewise.
4982 * src/gbkext2.h: Likewise.
4983 * src/gbkext_inv.h: Likewise.
4984 * src/georgian_academy.h: Likewise.
4985 * src/georgian_ps.h: Likewise.
4986 * src/hkscs.h: Likewise.
4987 * src/hp_roman8.h: Likewise.
4988 * src/hz.h: Likewise.
4989 * src/iso2022_cn.h: Likewise.
4990 * src/iso2022_cnext.h: Likewise.
4991 * src/iso2022_jp.h: Likewise.
4992 * src/iso2022_jp1.h: Likewise.
4993 * src/iso2022_jp2.h: Likewise.
4994 * src/iso2022_kr.h: Likewise.
4995 * src/iso646_cn.h: Likewise.
4996 * src/iso646_jp.h: Likewise.
4997 * src/iso8859_1.h: Likewise.
4998 * src/iso8859_10.h: Likewise.
4999 * src/iso8859_13.h: Likewise.
5000 * src/iso8859_14.h: Likewise.
5001 * src/iso8859_15.h: Likewise.
5002 * src/iso8859_16.h: Likewise.
5003 * src/iso8859_2.h: Likewise.
5004 * src/iso8859_3.h: Likewise.
5005 * src/iso8859_4.h: Likewise.
5006 * src/iso8859_5.h: Likewise.
5007 * src/iso8859_6.h: Likewise.
5008 * src/iso8859_7.h: Likewise.
5009 * src/iso8859_8.h: Likewise.
5010 * src/iso8859_9.h: Likewise.
5011 * src/isoir165.h: Likewise.
5012 * src/isoir165ext.h: Likewise.
5013 * src/java.h: Likewise.
5014 * src/jisx0201.h: Likewise.
5015 * src/jisx0208.h: Likewise.
5016 * src/jisx0212.h: Likewise.
5017 * src/johab.h: Likewise.
5018 * src/johab_hangul.h: Likewise.
5019 * src/koi8_r.h: Likewise.
5020 * src/koi8_ru.h: Likewise.
5021 * src/koi8_u.h: Likewise.
5022 * src/ksc5601.h: Likewise.
5023 * src/mac_arabic.h: Likewise.
5024 * src/mac_centraleurope.h: Likewise.
5025 * src/mac_croatian.h: Likewise.
5026 * src/mac_cyrillic.h: Likewise.
5027 * src/mac_greek.h: Likewise.
5028 * src/mac_hebrew.h: Likewise.
5029 * src/mac_iceland.h: Likewise.
5030 * src/mac_roman.h: Likewise.
5031 * src/mac_romania.h: Likewise.
5032 * src/mac_thai.h: Likewise.
5033 * src/mac_turkish.h: Likewise.
5034 * src/mac_ukraine.h: Likewise.
5035 * src/mulelao.h: Likewise.
5036 * src/nextstep.h: Likewise.
5037 * src/sjis.h: Likewise.
5038 * src/tcvn.h: Likewise.
5039 * src/tis620.h: Likewise.
5040 * src/ucs2.h: Likewise.
5041 * src/ucs2be.h: Likewise.
5042 * src/ucs2internal.h: Likewise.
5043 * src/ucs2le.h: Likewise.
5044 * src/ucs2swapped.h: Likewise.
5045 * src/ucs4.h: Likewise.
5046 * src/ucs4be.h: Likewise.
5047 * src/ucs4internal.h: Likewise.
5048 * src/ucs4le.h: Likewise.
5049 * src/ucs4swapped.h: Likewise.
5050 * src/uhc_1.h: Likewise.
5051 * src/uhc_2.h: Likewise.
5052 * src/utf16.h: Likewise.
5053 * src/utf16be.h: Likewise.
5054 * src/utf16le.h: Likewise.
5055 * src/utf7.h: Likewise.
5056 * src/utf8.h: Likewise.
5057 * src/viscii.h: Likewise.
5059 2000-11-18 Bruno Haible <haible@clisp.cons.org>
5061 Make transliteration optional.
5062 * src/iconv.c (iconv_open): Strip off //TRANSLIT suffix from names.
5063 Set transliteration on if and only if tocode ends in //TRANSLIT.
5064 * README, man/iconv_open.3: Document how to enable transliteration.
5065 * tests/check-translit: Add //TRANSLIT to iconv's 't' argument.
5066 * tests/check-translit.bat: Likewise.
5067 * tests/check-translit.cmd: Likewise.
5069 2000-11-18 Bruno Haible <haible@clisp.cons.org>
5071 * man/iconv.3: Fix typo.
5073 2000-10-31 Bruno Haible <haible@clisp.cons.org>
5075 * README, man/iconv_open.3: Document JOHAB again.
5077 2000-11-15 Bruno Haible <haible@clisp.cons.org>
5079 * Makefile.msvc: Add support for MFLAGS and DEBUG parameters.
5080 (STATIC): Change default from 0 to 1.
5081 * src/Makefile.msvc: Likewise.
5082 * tests/Makefile.msvc: Likewise.
5083 * tests/check-stateless.bat: Call 'sort' with no arguments.
5085 2000-11-12 Bruno Haible <haible@clisp.cons.org>
5087 * autoconf/config.guess, autoconf/config.sub: Upgrade to newest
5088 version from GNU CVS.
5090 2000-10-24 Bruno Haible <haible@clisp.cons.org>
5092 * Version 1.4 released.
5093 * include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
5094 Bump version number.
5095 * src/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:1:0.
5097 2000-10-23 Bruno Haible <haible@clisp.cons.org>
5099 Implement and document GB18030 and BIG5HKSCS.
5100 * tools/cjk_tab_to_h.c (row_byte_hkscs, byte_row_hkscs, do_hkscs): New
5102 (do_gb18030uni): New function.
5103 (main): Accept gb18030ext, gb18030uni, hkscs.
5104 * tools/Makefile (ALL): Add gb18030ext.h, gb18030uni.h, hkscs.h.
5105 (gb18030ext.h, GB18030ext.TXT, gb18030uni.h, GB18030uni.TXT,
5106 hkscs.h): New targets.
5107 * src/gb18030ext.h, src/gb18030uni.h, src/gb18030.h: New files.
5108 * src/hkscs.h, src/big5hkscs.h: New files.
5109 * src/converters.h: Include gb18030.h and big5hkscs.h.
5110 * src/encodings.def (GB18030, BIG5HKSCS): New encodings.
5111 * README, man/iconv_open.3: Add GB18030, BIG5HKSCS.
5112 * tests/Makefile.in (check): Check GB18030, BIG5HKSCS.
5113 * tests/Makefile.msvc (check): Likewise.
5114 * tests/Makefile.os2 (check): Likewise.
5115 * tests/GB18030.TXT: New file.
5116 * tests/BIG5HKSCS.TXT, tests/BIG5HKSCS.IRREVERSIBLE.TXT: New files.
5118 2000-10-23 Bruno Haible <haible@clisp.cons.org>
5120 * tests/table-from.c (try, main): Use UCS-4-INTERNAL instead of
5121 UCS-2-INTERNAL, to avoid problems with UCS-2 surrogate handling.
5122 * tests/table-to.c (main): Likewise.
5124 2000-10-22 Bruno Haible <haible@clisp.cons.org>
5126 * src/gentranslit.c (main): Read the input in UTF-8 encoding.
5128 2000-10-09 Bruno Haible <haible@clisp.cons.org>
5130 CPU recognition on OpenBSD.
5131 * autoconf/aclocal.m4 (CL_WORDS_LITTLEENDIAN): Recognize __m68k__,
5132 __mc68020__, __MIPSEB__, __MIPSEL__, __m88k__ as CPU indicators.
5134 2000-10-03 Bruno Haible <haible@clisp.cons.org>
5136 * src/gentranslit.c (main): Don't output non-ASCII ISO-8859-1
5137 character literals, use the numeric value instead.
5138 Reported by Shin-Hsien Yeh <shyeh@alcatel.com.tw>.
5140 2000-09-29 Bruno Haible <haible@clisp.cons.org>
5142 * autoconf/aclocal.m4 (CL_CANONICAL_HOST): Fix bug in 2000-05-23
5145 2000-09-25 Bruno Haible <haible@clisp.cons.org>
5147 * autoconf/aclocal.m4 (CL_WORDS_LITTLEENDIAN): Recognize __i386__
5148 as equivalent to __i386. For OpenBSD.
5150 2000-09-21 Bruno Haible <haible@clisp.cons.org>
5152 * src/utf16.h (utf16_wctomb): Reject single surrogates.
5153 * src/utf16be.h (utf16be_wctomb): Likewise.
5154 * src/utf16le.h (utf16le_wctomb): Likewise.
5155 * src/ucs2.h (ucs2_mbtowc, ucs2_wctomb): Likewise.
5156 * src/ucs2be.h (ucs2be_mbtowc, ucs2be_wctomb): Likewise.
5157 * src/ucs2le.h (ucs2le_mbtowc, ucs2le_wctomb): Likewise.
5158 * src/ucs2internal.h (ucs2internal_mbtowc, ucs2internal_wctomb):
5160 * src/ucs2swapped.h (ucs2swapped_mbtowc, ucs2swapped_wctomb):
5163 2000-09-15 Bruno Haible <haible@clisp.cons.org>
5165 * Makefile.in (install, installdirs, uninstall): Support DESTDIR.
5166 * src/Makefile.in (install, installdirs, uninstall): Likewise.
5167 * man/Makefile.in (install, installdirs, uninstall): Likewise.
5169 2000-09-11 Bruno Haible <haible@clisp.cons.org>
5171 * src/utf7.h (utf7_mbtowc): Fix combining of UTF-16 surrogates.
5173 2000-08-26 Bruno Haible <haible@clisp.cons.org>
5175 * autoconf/acgeneral.m4 (AC_OUTPUT): Use braces in exec_prefix default
5178 2000-07-04 Akira Hatakeyama <akira@sra.co.jp>
5179 Bruno Haible <haible@clisp.cons.org>
5181 * os2/iconv.def, README.os2, Makefile.os2, src/Makefile.os2,
5182 tests/Makefile.os2, man/Makefile.os2, tests/check-stateful.cmd,
5183 tests/check-stateless.cmd, tests/check-translit.cmd: New files.
5185 2000-06-28 Bruno Haible <haible@clisp.cons.org>
5187 * src/ucs2internal.h (ucs2internal_mbtowc): Avoid gcc warning about
5189 * src/ucs4internal.h (ucs4internal_mbtowc): Likewise.
5190 * src/ucs2swapped.h (ucs2swapped_mbtowc, ucs2swapped_wctomb): Verify
5191 sizeof(unsigned short).
5192 * src/ucs4swapped.h (ucs4swapped_mbtowc, ucs4swapped_mbtowc): Verify
5193 sizeof(unsigned int).
5194 Reported by François Pinard <pinard@iro.umontreal.ca>.
5196 2000-05-29 Bruno Haible <haible@clisp.cons.org>
5198 * autoconf/aclocal.m4 (CL_PROG_INSTALL): Fix typo.
5199 Reported by Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>.
5201 2000-05-23 Bruno Haible <haible@clisp.cons.org>
5203 * autoconf/aclocal.m4 (CL_CANONICAL_HOST): Determine host_cpu,
5204 host_vendor, host_os correctly if $host has more than two hyphens.
5206 2000-04-15 Bruno Haible <haible@clisp.cons.org>
5208 * Version 1.3 released.
5209 * include/iconv.h.in (_LIBICONV_VERSION), README, windows/iconv.rc:
5210 Bump version number.
5211 * src/Makefile.in (LIBICONV_VERSION_INFO): Define to 2:0:0.
5213 2000-04-15 Bruno Haible <haible@clisp.cons.org>
5216 * INSTALL.generic: New file.
5218 Implement and document UCS-2BE, UCS-2LE, UCS-4BE, UCS-4LE.
5219 * src/ucs2be.h, src/ucs2le.h, src/ucs4be.h, src/ucs4le.h: New files.
5220 * src/converters.h: Include them.
5221 * src/ucs2swapped.h: Remove #defines for UCS-2-BE, UCS-2-LE.
5222 * src/ucs4swapped.h: Remove #defines for UCS-4-BE, UCS-4-LE.
5223 * src/encodings.def (UCS-2BE): Renamed from UCS-2-BE.
5224 (UCS-2LE): Renamed from UCS-2-LE.
5225 (UCS-4BE): Renamed from UCS-4-BE.
5226 (UCS-4LE): Renamed from UCS-4-LE.
5227 * Makefile.devel (src/aliases.h): Pass option "-i 1" to gperf.
5228 * README, man/iconv_open.3: Add UCS-2BE, UCS-2LE, UCS-4BE, UCS-4LE.
5229 * tests/Makefile.in (check): Check UCS-2BE, UCS-2LE, UCS-4BE, UCS-4LE.
5230 * tests/Makefile.msvc (check): Likewise.
5231 * tests/UCS-*snippet*: New files.
5233 Allow building as a shared library on Windows.
5234 Allow running the tests on Windows.
5235 * Makefile.devel (include/iconv.h.msvc): Remove rule.
5236 (include/iconv.h.msvc-static, include/iconv.h.msvc-shared): New
5239 * windows/dllexport.h: New file.
5240 * include/iconv.h.msvc: Remove file.
5241 * include/iconv.h.msvc-static, include/iconv.h.msvc-shared: New
5242 autogenerated files.
5243 * Makefile.msvc (STATIC, DEBUG): Default to 0.
5244 (all): Choose either include\iconv.h.msvc-static or
5245 include\iconv.h.msvc-shared.
5246 (check): Depend on all.
5247 (all, check, mostlyclean, clean, distclean, maintainer-clean):
5248 Recurse into tests directory.
5249 * src/Makefile.msvc (STATIC, DEBUG): Default to 0.
5250 (WARN_CFLAGS, PICFLAGS, OPTIMFLAGS): New variables.
5251 (CFLAGS): Use them. Add -MD and -DBUILDING_LIBICONV.
5252 (RESOURCES): New variable.
5253 (iconv.lib): Change rule when building DLL.
5254 (clean, distclean): One filename per line.
5255 * tests/Makefile.msvc: New file.
5256 * tests/check-stateful.bat, tests/check-stateless.bat,
5257 tests/check-translit.bat: New files.
5258 * tests/uniq-u.c: New file, taken from GNU textutils.
5259 * README.win32: Update.
5260 Based on patches by Taro Muraoka <koron@tka.att.ne.jp>.
5262 2000-04-14 Bruno Haible <haible@clisp.cons.org>
5264 Fix an OSF/1 problem.
5265 * configure.in: Define GCC variable for substitution.
5266 * src/Makefile.in (libiconv_plug_osf.so): Change rule if not using
5269 2000-04-13 Bruno Haible <haible@clisp.cons.org>
5271 Fix a SunOS 4 problem.
5272 * include/iconv.h.in: If EILSEQ is not defined by the system, define
5273 it to ENOENT, not EINVAL.
5275 2000-04-02 Bruno Haible <haible@clisp.cons.org>
5277 Allow building on filesystems lacking symlinks and hard links.
5278 * Makefile.devel (autoconf/aclocal.m4): Replace AC_PROG_LN_S with
5280 * configure.in: Add CL_PROG_LN, CL_PROG_LN_S.
5281 * src/Makefile.in (LN): Use autoconfigured value @LN@.
5282 (LN_S): Use autoconfigured value @LN_S@.
5284 2000-03-15 Bruno Haible <haible@clisp.cons.org>
5286 * Version 1.2 released.
5287 * include/iconv.h.in (_LIBICONV_VERSION): Bump version number.
5288 * src/Makefile.in (LIBICONV_VERSION_INFO): Define to 1:1:1.
5290 2000-03-14 Bruno Haible <haible@clisp.cons.org>
5292 Implement and document UTF-16BE and UTF16LE.
5293 * src/utf16be.h, src/utf16le.h: New files.
5294 * src/converters.h: Include them.
5295 * src/encodings.def (UTF-16BE, UTF16LE): New encodings.
5296 * README, man/iconv_open.3: Add UTF-16BE, UTF16LE.
5297 * tests/Makefile.in (check): Check UTF-16, UTF-16BE, UTF16LE.
5298 * tests/UTF-16*snippet*: New files.
5300 * src/utf16.h (utf16_wctomb): Output a byte order mark.
5302 2000-03-13 Bruno Haible <haible@clisp.cons.org>
5304 Provide all encodings used by AIX locales.
5305 * tools/Makefile (all): Add cp856.h, cp922.h, cp1046.h, cp1124.h,
5307 (cp856.h, cp922.h, cp1046.h, cp1124.h, cp1129.h): New targets.
5308 * src/cp856.h, src/cp922.h, src/cp943.h, src/cp1046.h, src/cp1124.h,
5309 src/cp1129.h: New files.
5310 * src/converters.h: Include them if USE_AIX is defined.
5311 * src/encodings_aix.def: New file, with CP856, CP922, CP943, CP1046,
5313 * src/genflags.c: Define USE_AIX. Include encodings_aix.def.
5314 * src/genaliases2.c: New file.
5315 * src/iconv.c: Define USE_AIX on AIX.
5316 Include encodings_aix.def and aliases_aix.h.
5317 (aliases2_lookup): New function.
5318 (iconv_open): Call aliases2_lookup.
5319 * src/Makefile.in (iconv.lo): Depend on encodings_aix.def and
5321 * Makefile.devel (all): Add src/aliases_aix.h.
5322 (src/aliases_aix.h): New rule.
5323 (src/flags.h): Depend on src/encodings_aix.def.
5325 2000-02-24 Bruno Haible <haible@clisp.cons.org>
5327 * src/iconv.c (iconv): Don't write beyond the end of the output buffer.
5328 Reported by Edmund Grimley Evans <edmundo@rano.org>.
5330 2000-02-22 Bruno Haible <haible@clisp.cons.org>
5332 * src/utf7.h (direct_tab, xdirect_tab): Treat tab like space.
5334 2000-02-15 Bruno Haible <haible@clisp.cons.org>
5336 * src/iconv.c (iconv): Add cast in xxx_reset call.
5338 2000-02-05 Bruno Haible <haible@clisp.cons.org>
5340 * src/tis620.h: Simplify.
5342 2000-01-27 Bruno Haible <haible@clisp.cons.org>
5344 * Makefile.devel (CLISP_DIR): Change to "..".
5346 2000-01-24 Bruno Haible <haible@clisp.cons.org>
5348 * Version 1.1 released.
5349 * include/iconv.h.in (_LIBICONV_VERSION): Bump version number.
5350 * src/Makefile.in (LIBICONV_VERSION_INFO): Define to 1:0:1.
5352 2000-01-23 Bruno Haible <haible@clisp.cons.org>
5354 * src/utf7.h (utf7_wctomb): If base64 encoding is not active, encode
5357 2000-01-22 Bruno Haible <haible@clisp.cons.org>
5359 * include/iconv.h.in (iconvctl): New declaration.
5360 (ICONV_TRIVIALP, ICONV_GET_TRANSLITERATE, ICONV_SET_TRANSLITERATE):
5362 * src/iconv.c (iconvctl): New function.
5364 * tests/Makefile.in: Add a rule for ../src/libiconv.la. Define $(MAKE).
5366 Solve a build problem.
5367 * include/iconv.h.in: Renamed from include/libiconv.h.in.
5368 * Makefile.devel: libiconv.h -> iconv.h.
5369 * Makefile.in: Likewise.
5370 * configure.in: Likewise. Remove check for <iconv.h>.
5371 * src/iconv.c: Include iconv.h instead of libiconv.h.
5372 * tests/iconv.c, tests/table-from.c, tests/table-to.c: Likewise.
5374 * README, man/iconv_open.3: Don't document JOHAB any more.
5376 * man/iconv.3: Clarify return value again.
5378 2000-01-16 Bruno Haible <haible@clisp.cons.org>
5381 * src/encodings.def (ISO-8859-14): Add alias ISO-IR-199.
5382 (ISO-8859-15): Add alias ISO-IR-203.
5383 (EUC-CN): Add alias CN-GB, from RFC 1922.
5384 (BIG5): Add alias CN-BIG5, from RFC 1922.
5385 * Makefile.devel (src/aliases.h): Add 8th character to key set.
5388 * src/encodings.def (JIS_X0201): Drop JISX0201.1976-0 alias.
5389 (JIS_X0208): Drop JIS_X0208.1983-0, JIS_X0208.1983-1 aliases.
5390 (KSC_5601): Drop KSC5601.1987-0 alias.
5392 Improve GB/T 12345 (not used yet).
5393 * tools/Makefile (gb12345ext.h): Use GB12345-more.TXT.
5394 * src/gb12345ext.h: Regenerated.
5396 Improve and document CP949.
5397 * tools/Makefile (all): Add uhc_1.h and uhc_2.h.
5398 (uhc_1.h, uhc_2.h): New rules.
5399 * tools/cjk_tab_to_h.c (output_charset2uni_noholes_monotonic): New
5401 (output_uni2charset_sparse): Take an additional boolean argument.
5402 All callers changed.
5403 (*_uhc_1, *_uhc_2): New functions.
5404 (main): Treat uhc_1 and uhc_2.
5405 * src/uhc_1.h, src/uhc_2.h: New files.
5406 * src/cp949.h: New file, include them.
5407 * src/converters.h: Include it.
5408 * src/encodings.def (KSC_5601): Remove alias CP949.
5409 (CP949): New encoding.
5410 * README, man/iconv_open.3: Add CP949.
5411 * tests/Makefile.in (check): Check CP949.
5412 * tests/CP949.TXT: New file.
5415 * README, man/iconv_open.3: Add CP932.
5416 * tests/Makefile.in (check): Check CP932.
5417 * tests/CP932.TXT, tests/CP932.IRREVERSIBLE.TXT: New files.
5419 * Makefile.devel (src/flags.h): Depend on src/converters.h.
5421 * tests/Makefile.in (check): Check JIS_X0201.
5422 * tests/JIS_X0201.TXT: New file.
5424 * src/euc_kr.h (euc_kr_wctomb): Shrink size of buf.
5425 * src/iso2022_kr.h (iso2022_kr_wctomb): Likewise.
5427 * src/iso2022_cnext.h (iso2022_cn_ext_mbtowc): Use isoir165_mbtowc.
5428 (iso2022_cn_ext_wctomb): Use isoir165_wctomb.
5430 Add ISO-IR-165 (undocumented).
5431 * tools/Makefile (all): Add isoir165ext.h.
5432 (isoir165ext.h): New rule.
5433 * tools/cjk_tab_to_h.c (main): Treat isoir165ext like gb2312.
5434 * src/isoir165.h, src/isoir165ext.h: New files.
5435 * src/converters.h: Include it.
5436 * src/encodings.def: Add ISO-IR-165.
5437 * tests/Makefile.in (check): Check ISO-IR-165.
5438 * tests/ISO-IR-165.TXT, tests/ISO-IR-165.IRREVERSIBLE.TXT: New files.
5440 Add ISO646-CN (undocumented).
5441 * src/iso646_cn.h: New file.
5442 * src/converters.h: Include it.
5443 * src/encodings.def: Add ISO646-CN.
5444 * tests/Makefile.in (check): Check ISO646-CN.
5445 * tests/ISO646-CN.TXT: New file.
5447 Add ISO646-JP (undocumented).
5448 * src/iso646_jp.h: New file.
5449 * src/converters.h: Include it.
5450 * src/encodings.def: Add ISO646-JP.
5451 * tests/Makefile.in (check): Check ISO646-JP.
5452 * tests/ISO646-JP.TXT: New file.
5454 2000-01-05 Bruno Haible <haible@clisp.cons.org>
5457 * tools/Makefile (all): Add iso8859_16.h.
5458 (iso8859_16.h): New rule.
5459 * src/iso8859_16.h: New file.
5460 * src/converters.h: Include it.
5461 * src/encodings.def: Add ISO-8859-16.
5462 * README, man/iconv_open.3: Add ISO-8859-16.
5463 * tests/Makefile.in (check): Check ISO-8859-16.
5464 * tests/ISO-8859-16.TXT: New file.
5466 * man/iconv.3: Clarify what happens *inbuf in case 3.
5468 * src/iso8859_8.h: Update using newest table from ftp.unicode.org.
5469 * tests/ISO-8859-8.TXT: Likewise.
5471 2000-01-04 Bruno Haible <haible@clisp.cons.org>
5473 * Version 1.0 released.
5474 * include/libiconv.h.in (_LIBICONV_VERSION): Bump version number.
5475 * src/Makefile.in (LIBICONV_VERSION_INFO): Define to 0:1:0.
5476 (libiconv.la): Use LIBICONV_VERSION_INFO.
5478 2000-01-03 Bruno Haible <haible@clisp.cons.org>
5480 * tests/Makefile.in: New file.
5481 tests/check-stateless, tests/table-from.c, tests/table-to.c,
5482 tests/*.TXT, tests/genutf8.c: New files, checks for stateless
5484 tests/check-stateful, tests/iconv.c, tests/*-snippet*: New files,
5485 checks for stateful encodings.
5486 * Makefile.in (all, check, mostlyclean, clean, distclean,
5487 maintainer-clean): Descend into tests directory.
5488 * configure.in: Add tests/Makefile to AC_OUTPUT duties.
5490 * src/gentranslit.c: New file.
5491 * Makefile.devel (src/translit.h): New rule.
5492 * src/translit.def, src/translit.h: New files.
5493 * src/iconv.c: Include it.
5494 (iconv): Transliterate using translit.h table.
5496 * src/genflags.c: New file.
5497 * Makefile.devel (src/flags.h): New rule.
5498 * src/flags.h: New file.
5499 * src/iconv.c: Include it.
5500 (encoding): Add field 'oflags'.
5501 (all_encodings): Initialize the field 'oflags'.
5502 (iconv_open): Copy field 'oflags'.
5503 (iconv): Transliterate quotation marks U+2018, U+2019, U+201A.
5504 * src/Makefile.in (iconv.lo): Update dependencies.
5506 * src/converters.h: New file, extracted from src/iconv.c.
5507 * src/iconv.c: Include it.
5508 * src/Makefile.in (iconv.lo): Update dependencies.
5510 * tools/cjk_variants.c: New file.
5511 * tools/Makefile (ALL): Add cjk_variants.h.
5512 (cjk_variants.h, cjk_variants): New rules.
5513 * src/cjk_variants.h: New file.
5514 * src/iconv.c: Include it.
5515 (iconv): Use cjk_variants for transliteration.
5517 * man/iconv.3: Fix description of return value.
5518 * euc_kr.h (euc_kr_wctomb): Remove Hangul transliteration.
5519 * iso2022_kr.h (iso2022kr_wctomb): Likewise.
5520 * src/iconv.c (iconv): Do Hangul transliteration here and increment
5521 result once for every transliterated character.
5522 * src/johab_hangul.h (johab_hangul_decompose): Change result array
5523 from 'unsigned char*' to 'wchar_t*'.
5525 * src/cp1258.h (cp1258_mbtowc): Return RET_ILSEQ instead of storing
5528 * src/georgian_ps.h (georgian_ps_wctomb): Accept 0x00e6.
5530 * src/euc_jp.h (euc_jp_wctomb): Don't treat U+005C and U+007E like
5533 * src/euc_tw.h (euc_tw_mbtowc): Fix typo.
5535 * src/cp950.h (cp950_mbtowc, cp950_wctomb): Exclude the range
5538 * tools/cjk_tab_to_h.c (read_table_ksc5601): Some Hangul range was
5539 not being excluded. Fix that.
5540 * src/ksc5601.h: Regenerated.
5541 * src/johab.h (johab_mbtowc): Don't accept 0xDA{A1..D3} - this is
5542 valid in KSC5601/KSX1001 but not in JOHAB.
5544 * src/iconv.c (conv_struct): Add fields iindex, oindex.
5545 (iconv_open): Fill in iindex, oindex.
5547 * src/encodings.def (UCS-2-BE): Add aliases "UNICODE-1-1" and
5548 "csUnicode11", from IANA charset list.
5549 (MacRoman): Add aliases "MAC" and "csMacintosh" for "MACINTOSH",
5550 from IANA charset list.
5551 (JIS_X0208): Add aliases "X0208", "ISO-IR-87", "csISO87JISX0208",
5552 from IANA charset list.
5553 (GB_2312-80): New encoding, from IANA charset list.
5555 * README, man/iconv_open.3: Add MacIceland and MacUkraine.
5557 * Makefile.devel: Add rules for src/aliases.h and src/aliases.gperf.
5558 (all): Depend on src/aliases.h.
5559 * src/Makefile.in: Remove rules for $(srcdir)/aliases.h and
5560 $(srcdir)/aliases.gperf.
5563 * src/Makefile.in (libiconv_plug_linux.so): Remove unneeded "-ldl".
5565 1999-12-31 Bruno Haible <haible@clisp.cons.org>
5567 * Version 0.3 released.