Branch :
| Author | Commit | Date | CI | Message |
|---|---|---|---|---|
| 918904ed | 2025-07-07 11:42:45 | Add support for --enable-relocatable in mingw builds on Cygwin hosts. Reported by Michele Locati <michele@locati.it> in <https://github.com/mlocati/gettext-iconv-windows/pull/47#issuecomment-3041406917>. * configure.ac: Invoke gl_BUILD_TO_HOST_BINDIR. * src/Makefile.in (bindir_c_make, localedir_c_make): New variables. (iconv_no_i18n.@OBJEXT@, iconv.@OBJEXT@): Fix value of INSTALLDIR and LOCALEDIR. | ||
| 8d618a87 | 2024-12-15 12: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. | ||
| 09865086 | 2024-08-13 20:51:25 | Prefer #include <...> for system headers. See <https://www.gnu.org/software/gnulib/manual/html_node/Style-of-_0023include-statements.html>. * gnulib-local/lib/xmalloc.c: Include <error.h>. * src/iconv.c: Likewise. | ||
| e613b130 | 2024-07-12 14: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. | ||
| 5bddef71 | 2024-06-11 23:51:44 | POSIX compliance: Interpret '-' file name as standard input. Reported by Brian Inglis at <https://savannah.gnu.org/bugs/?65874>. * src/iconv.c (main): Recognize the argument '-' as denoting standard input. | ||
| af375a34 | 2023-05-12 22:50:18 | Integrate the last change. * src/Makefile.in (SOURCE_FILES): Add zos-tag.h. * tests/Makefile.in (SOURCE_FILES): Add check-tag. * NEWS: Mention the new functionality. | ||
| 153d4079 | 2023-05-12 22:41:08 | On z/OS, set a charset tag on iconv's output file. For the concept of charset tags as external metadata on z/OS files, see <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2023-04/msg00021.html>. * src/zos-tag.h: New file. * src/iconv.c: Include zos-tag.h. (convert): Add a 'tocode' parameter. On z/OS, turn off auto-conversion and tag the output file. (main): Update callers. * tests/check-ebcdic: On z/OS, make all test files initially untagged. * tests/check-tag: New file. * tests/Makefile.in (check): Pass the host_os to check-ebcdic. Invoke check-tag. | ||
| 19b6af5e | 2023-04-03 04: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. | ||
| c593e206 | 2023-02-13 10:59:50 | Fix iconv link command for Cygwin. Inspired by https://www.cygwin.com/git-cygwin-packages/?p=git/cygwin-packages/libiconv.git;a=blob;f=1.16-cross-install.patch;h=7b3c5c0d761497a20abf0e4cc38d74f2755445fb;hb=HEAD . Rationale: libintl may depends on libiconv. * src/Makefile.in (install): On the link command line, mention libintl before libiconv. | ||
| c31a1460 | 2022-02-12 13: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. |