Branch :
| Author | Commit | Date | CI | Message |
|---|---|---|---|---|
| 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. | ||
| 68ac8a9f | 2022-01-23 23:37:30 | New EBCDIC encodings. Reported by Ulrich Schwab and Calvin Buckley via Jack Woehr. * NOTES: Mention how to enable EBCDIC encodings. * tests/IBM-*.TXT: New files. * tools/8bit_tab_to_h.c (main): Emit copyright header with year 2022. * tools/Makefile: Add rules for generating ebcdic*.h. * lib/ebcdic*.h: New files, automatically generated by tools/Makefile. * lib/ebcdic838.h: Tweak reverse mapping manually. * lib/ebcdic1160.h: Likewise. * lib/converters.h: Include all ebcdic*.h. * lib/encodings_zos.def: New file. * lib/genaliases2.c: Include encodings_zos.def. * lib/genflags.c: Likewise. * Makefile.devel (lib/aliases_zos.h lib/canonical_zos.h): New rule. (lib/flags.h, totally-clean): Update. * lib/aliases2.h: Include aliases_zos.h. * lib/iconv.c (USE_ZOS): New macro. Include encodings_zos.def, canonical_zos.h. * README, man/iconv_open.3: Document the IBM-* encodings. * tests/Makefile.in (check-extra-yes): Also test the EBCDIC encodings. | ||
| 91f96be0 | 2021-06-06 11:51:12 | Change the license of the library from LGPL 2.0 to LGPL 2.1. | ||
| 0eb1068c | 2020-08-31 23:43:18 | Fix some -Wcast-qual warning, reported by clang. | ||
| 3acb1179 | 2020-04-04 14:58:34 | Change the license of the library from LGPL 2.0 to LGPL 2.1. | ||
| e54fc9c1 | 2018-09-17 18:28:56 | Prefer https URLs where possible. | ||
| 35064ed9 | 2018-05-04 21:27:39 | Simplify code. Drop support for Borland C++ on Windows. | ||
| b29089d8 | 2016-11-19 17:13:56 | Fix link error when compiling with gcc -O0. | ||
| 40924a62 | 2016-10-14 03:18:05 | Use 'size_t', not 'int', for the length of a string. | ||
| 48f31c74 | 2012-02-12 20:54:51 | Replace FSF snail-mail address with URL. | ||
| 3cdff14a | 2011-01-29 18:34:14 | Simplify "wchar_t" handling on Cygwin 1.7.x. | ||
| c38bdb4f | 2011-01-29 18:24:44 | Adjust the meaning of "wchar_t" on native Windows systems. | ||
| 607294d2 | 2008-09-17 01:08:35 | New function iconv_open_into. | ||
| bcb1081e | 2008-04-06 07:38:02 | Support system-dependent aliases. | ||
| a446ed6b | 2007-04-23 21:57:37 | Exploit the fact that wchar_t on native Woe32 is Unicode. | ||
| 422b3b1d | 2006-01-23 13:25:49 | New feature: character-dependent substitutions. | ||
| 45bd190c | 2005-05-19 17:14:19 | Update FSF postal address. | ||
| 1f180ad5 | 2005-03-16 12:19:06 | Accept //TRANSLIT//IGNORE as synonymous to //IGNORE//TRANSLIT also in function iconv_canonicalize. | ||
| 8489f6de | 2005-03-14 11:27:00 | New function iconv_canonicalize. | ||
| 719d85b4 | 2005-03-14 11:24:40 | Introduce iconv_hooks. | ||
| 3d0c9858 | 2004-11-11 15:36:38 | Oops. | ||
| 48535df2 | 2004-11-11 15:34:18 | Accept //TRANSLIT//IGNORE as synonymous to //IGNORE//TRANSLIT. | ||
| 294602d6 | 2003-05-22 19:17:48 | Convert the string tables to position-independent code. | ||
| c1e5bb48 | 2003-05-20 11:56:06 | Fix a null pointer access in "iconv -l". | ||
| 2929676c | 2003-04-25 10:18:03 | Add support for VMS. | ||
| 411b8e57 | 2003-04-24 10:49:10 | Better support for FreeBSD. | ||
| 64d5a8b9 | 2003-03-29 16:35:11 | Improved MSVC support. | ||
| ca7aa552 | 2002-05-16 12:01:34 | New configure option --enable-extra-encodings. Add the extra encodings and the platform dependent encodings to the testsuite. | ||
| 5ab9f909 | 2002-05-08 19:37:48 | Enable DOS encodings also on Woe32. Suggested by Perry Rapp. | ||
| 4f99b68d | 2002-01-15 12:47:34 | Support for "iconv -c". | ||
| d82b82d2 | 2002-01-14 12:05:04 | Support for "iconv -l". | ||
| 1d7b650c | 2001-12-06 14:27:22 | Empty encoding name is equivalent to locale dependent encoding, as in glibc. | ||
| 19bb4fef | 2001-05-26 00:31:46 | The multibyte to Unicode conversion may now be stateful. Add Unicode normalization to multibyte to Unicode direction for CP1255, CP1258, TCVN. | ||
| 65068c48 | 2001-03-27 13:35:32 | Update copyright notice. | ||
| 8c5fb204 | 2001-03-06 13:43:56 | Add support for OSF/1 (Tru64) 5.1. | ||
| dbd0052d | 2001-02-26 13:42:01 | locale_charset() doesn't return NULL any more. | ||
| 3d31606d | 2001-02-26 13:36:17 | Add support for DOS encodings. | ||
| 58849cb5 | 2000-12-01 20:10:31 | Define the version number in the library as well. | ||
| a615528b | 2000-11-23 19:54:07 | Move src/ to lib/, and install the iconv program. |