include/iconv.h.in

Branch


Log

Author Commit Date CI Message
Bruno Haible 8d618a87 2024-12-15T12:56:32 Prepare for version 1.18. * configure.ac: Bump version number to 1.18. * include/iconv.h.in (_LIBICONV_VERSION): Likewise. * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 9:0:7. * src/iconv.c (print_version): Update copyright year. * windows/iconv.rc: Likewise. * windows/libiconv.rc: Likewise. * README: Update download link.
Bruno Haible 9f28054d 2024-12-15T12:52:18 Implement the //NON_IDENTICAL_DISCARD suffix from POSIX:2024. * include/iconv.h.in (ICONV_GET_DISCARD_INVALID, ICONV_SET_DISCARD_INVALID, ICONV_GET_DISCARD_NON_IDENTICAL, ICONV_SET_DISCARD_NON_IDENTICAL): New macros. * lib/converters.h (struct conv_struct): Change type of discard_ilseq to 'unsigned int'. (DISCARD_INVALID, DISCARD_UNCONVERTIBLE): New macros. * lib/iconv.c (iconv_open, iconv_open_into): Change type of discard_ilseq to 'unsigned int'. (iconvctl): Implement ICONV_GET_DISCARD_INVALID, ICONV_SET_DISCARD_INVALID, ICONV_GET_DISCARD_NON_IDENTICAL, ICONV_SET_DISCARD_NON_IDENTICAL. Change the implementation of ICONV_GET_DISCARD_ILSEQ, ICONV_SET_DISCARD_ILSEQ to test/set both bits. * lib/iconv_open1.h: Update comment. Recognize //NON_IDENTICAL_DISCARD. * lib/iconv_open2.h: Update comment. * lib/loop_unicode.h (mb_to_uc_write_replacement): Test the DISCARD_UNCONVERTIBLE bit of discard_ilseq. (unicode_loop_convert): Test the respective bit of discard_ilseq. (unicode_loop_reset): Test the DISCARD_UNCONVERTIBLE bit of discard_ilseq. * lib/loop_wchar.h (wchar_from_loop_convert, wchar_to_loop_convert): Test the DISCARD_INVALID bit of discard_ilseq. * man/iconv_open.3: Mention the //NON_IDENTICAL_DISCARD suffix. Mark as conforming to POSIX:2024. * man/iconv.3: Likewise. * man/iconv_close.3: Mark as conforming to POSIX:2024. * man/iconv.1: Likewise. * man/iconvctl.3: Document ICONV_GET_DISCARD_INVALID, ICONV_SET_DISCARD_INVALID, ICONV_GET_DISCARD_NON_IDENTICAL, ICONV_SET_DISCARD_NON_IDENTICAL. Revise the description of ICONV_GET_DISCARD_ILSEQ, ICONV_SET_DISCARD_ILSEQ. * tests/test-discard.c (test_default, test_translit, test_ignore, test_ignore_translit): Test also the ICONV_GET_DISCARD_INVALID, ICONV_GET_DISCARD_NON_IDENTICAL accessors. (test_nid, test_nid_translit, test_invd, test_invd_translit): New functions. (main): Add test cases with //NON_IDENTICAL_DISCARD suffix. * NEWS: Mention the change.
Bruno Haible e310efbf 2024-12-14T17:00:22 Remove left-overs of preloadable library (removed in 1.16). * include/iconv.h.in: Remove LIBICONV_PLUG conditionals. * lib/iconv.c: Likewise. * lib/converters.h: Likewise. * lib/loop_unicode.h: Likewise. * lib/loop_wchar.h: Likewise. * lib/iconv_open2.h: Likewise.
Bruno Haible e613b130 2024-07-12T14:06:43 Assume wchar_t. * include/iconv.h.in (iconv_wchar_mb_to_wc_fallback, iconv_wchar_wc_to_mb_fallback): Assume HAVE_WCHAR_T is 1. * src/iconv.c (ilseq_wchar_subst_buffer, subst_mb_to_wc_fallback, subst_wc_to_mb_fallback, main): Likewise. * configure.ac (HAVE_WCHAR_T): Remove variable. (gt_TYPE_WCHAR_T): Remove invocation.
Bruno Haible 968e1240 2023-05-21T15:12:35 Fix link error regarding _libiconv_version on MSVC in C++ mode. Reported at <https://savannah.gnu.org/bugs/?64227>. * include/iconv.h.in (_libiconv_version): Enclose in an extern "C" block.
Bruno Haible 19b6af5e 2023-04-03T04:12:01 Allow overriding the newline conversion for EBCDIC encodings. Reported by Mike Fulton <mikefultonpersonal@gmail.com> in <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2023-04/msg00009.html>. * include/iconv.h.in (ICONV_SURFACE_NONE, ICONV_SURFACE_EBCDIC_ZOS_UNIX): New macros. (ICONV_GET_FROM_SURFACE, ICONV_SET_FROM_SURFACE, ICONV_GET_TO_SURFACE, ICONV_SET_TO_SURFACE): New macros. * lib/converters.h (struct conv_struct): Add the fields isurface, osurface. (swap_x15_x25): New macro. * lib/iconv.c (iconv_open, iconv_open_into): Add local variables from_surface, to_surface. (ALL_SURFACES): New macro. (iconvctl): Adjust ICONV_TRIVIALP implementation. Implement the ICONV_{GET,SET}_{FROM,TO}_SURFACE requests. * lib/iconv_open1.h: Parse a /ZOS_UNIX surface specifier. Set from_surface, to_surface. * lib/iconv_open2.h: Copy the values of from_surface, to_surface into the conversion descriptor. * lib/ebcdic*.h (*_mbtowc): Test the isurface. If requested, call swap_x15_x25 right after fetching an input byte. (*_wctomb): Test the osurface. If requested, call swap_x15_x25 right before storing an output byte. * man/iconvctl.3 (REQUEST VALUES): Document the ICONV_{GET,SET}_{FROM,TO}_SURFACE requests. * src/iconv.c (main): If ICONV_EBCDIC_ZOS_UNIX is set, set the from/to surfaces accordingly. * man/iconv.1 (ENVIRONMENT): New section. * tests/check-ebcdic: New file. * tests/Makefile.in (check): Invoke it. (SOURCE_FILES): Add it. * NEWS: Mention the new functionality.
Bruno Haible c31a1460 2022-02-12T13:50:15 Prepare for version 1.17. * configure.ac: Bump version number to 1.17. * include/iconv.h.in (_LIBICONV_VERSION): Likewise. * lib/Makefile.in (LIBICONV_VERSION_INFO): Bump to 9:0:7. * src/iconv.c (print_version): Update copyright year. * windows/iconv.rc: Likewise. * windows/libiconv.rc: Likewise. * README: Update download link.
Bruno Haible 91f96be0 2021-06-06T11:51:12 Change the license of the library from LGPL 2.0 to LGPL 2.1.
Bruno Haible 3acb1179 2020-04-04T14:58:34 Change the license of the library from LGPL 2.0 to LGPL 2.1.
Bruno Haible 24729046 2019-04-26T20:59:03 Prepare for version 1.16.
Bruno Haible e54fc9c1 2018-09-17T18:28:56 Prefer https URLs where possible.
Bruno Haible 3347685a 2016-11-25T11:53:26 Prepare for version 1.15.
Bruno Haible 48f31c74 2012-02-12T20:54:51 Replace FSF snail-mail address with URL.
Bruno Haible 4d036b9a 2011-08-07T15:16:56 Prepare for version 1.14.
Bruno Haible a47098b3 2010-04-07T00:44:31 Avoid a compilation error of gnulib's test-iconv-h-c++.cc on mingw.
Bruno Haible 4a2f4d20 2009-12-11T12:16:52 Untabify.
Bruno Haible f13047d9 2009-03-26T02:16:00 Prepare for version 1.13.
Bruno Haible 607294d2 2008-09-17T01:08:35 New function iconv_open_into.
Bruno Haible 3a889794 2008-09-16T23:37:17 Use Unicode single-quotes in comments.
Bruno Haible a373c34b 2006-05-15T21:58:39 Support for building shared libraries on mingw and Cygwin.
Bruno Haible 422b3b1d 2006-01-23T13:25:49 New feature: character-dependent substitutions.
Bruno Haible 78423b48 2005-12-29T13:20:57 Prepare for version 1.11.
Bruno Haible aec14b3f 2005-07-07T12:44:34 Bump version number.
Bruno Haible 45bd190c 2005-05-19T17:14:19 Update FSF postal address.
Bruno Haible 8489f6de 2005-03-14T11:27:00 New function iconv_canonicalize.
Bruno Haible 719d85b4 2005-03-14T11:24:40 Introduce iconv_hooks.
Bruno Haible 99e22dda 2003-04-14T15:28:52 Support for relocatable installation.
Bruno Haible a9adbd70 2003-04-11T09:16:41 Bump version number to 1.9.
Bruno Haible 8ce4b310 2002-05-23T11:52:37 Prepare for release 1.8.
Bruno Haible d82b82d2 2002-01-14T12:05:04 Support for "iconv -l".
Bruno Haible 4f99b68d 2002-01-15T12:47:34 Support for "iconv -c".
Bruno Haible e48b2399 2001-09-09T15:20:46 Better test for EILSEQ. BSD/OS has it in <wchar.h> which is totally nonstandard.
Bruno Haible 78281f96 2001-06-25T12:14:05 Bump version number for 1.7.
Bruno Haible d5ac1c2b 2001-03-20T20:35:46 Update copyright notice.
Bruno Haible d771d662 2001-03-06T17:29:26 Prepare for libiconv release 1.6.
Bruno Haible 58849cb5 2000-12-01T20:10:31 Define the version number in the library as well.
Bruno Haible 2fa33a56 2000-12-02T01:01:44 Bump version number to 1.5.
Bruno Haible 6f19ac3a 2000-10-24T12:26:53 Bump version number to 1.4.
Bruno Haible da1ff855 2000-03-15T20:22:04 Upgrade to libiconv-1.2.
Bruno Haible 6d93d60b 2000-04-17T17:18:14 Upgrade to libiconv-1.3.
Bruno Haible c37afd43 2000-01-24T13:06:57 Upgrade to libiconv-1.1.