man/iconv_open.3

Branch


Log

Author Commit Date CI Message
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 db5e62f4 2023-05-25T01:05:43 man pages: Use man page section title from groff or the distro. Reported by Mike Fulton <mikefultonpersonal@gmail.com> in <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2023-04/msg00027.html>. * man/*.[13]: Remove section title "Linux Programmer's Manual".
Bruno Haible 6549d20c 2023-05-21T00:29:37 Implement GB18030 version 2022. * lib/encodings.def (GB18030): Add alias GB18030:2005. (GB18030:2022): New encoding. * lib/gb18030ext.h (gb18030_2005_ext_2uni_pagefe): Renamed from gb18030ext_2uni_pagefe. (gb18030_2022_ext_2uni_pagefe): New array. (gb18030_2005_ext_mbtowc): Renamed from gb18030ext_mbtowc. (gb18030_2022_ext_mbtowc): New function. (gb18030_2005_ext_wctomb): Renamed from gb18030ext_wctomb. (gb18030_2022_ext_wctomb): New function. * lib/gb18030uni.h (gb18030_2022_charset2uni_pua1, gb18030_2022_charset2uni_pua2): New arrays. (gb18030_2005_uni_mbtowc): Renamed from gb18030uni_mbtowc. (gb18030_2022_uni_mbtowc): New function. (gb18030_2022_uni2charset_pua1, gb18030_2022_uni2charset_pua2): New arrays. (gb18030_2005_uni_wctomb): Renamed from gb18030uni_wctomb. (gb18030_2022_uni_wctomb): New function. * lib/gb18030_2005.h: Renamed from lib/gb18030.h. Update comments. (gb18030_2005_mbtowc): Renamed from gb18030_mbtowc. (gb18030_2005_pua2charset): Renamed from gb18030_pua2charset. (gb18030_2005_wctomb): Renamed from gb18030_wctomb. * lib/gb18030_2022.h: New file, based on lib/gb18030_2005.h. * lib/converters.h: Don't include gb18030.h. Include gb18030_2005.h, gb18030_2022.h. * lib/Makefile.in (SOURCE_FILES): Remove gb18030.h. Add gb18030_2005.h, gb18030_2022.h. * tests/GB18030-2005-BMP.TXT: Renamed from tests/GB18030-BMP.TXT. * tests/GB18030-2005.IRREVERSIBLE.TXT: Renamed from tests/GB18030.IRREVERSIBLE.TXT. * tests/GB18030-2022-BMP.TXT: New file. * tests/Makefile.in (check): Test GB18030:2005 instead of GB18030. Also test GB18030:2022. (clean): Don't remove GB18030.TXT. Instead, remove GB18030-2005.TXT and GB18030-2022.TXT. (SOURCE_FILES): Update. Add GB18030-2022-BMP.TXT. * README: Mention the new encoding. * man/iconv_open.3: Likewise. * NEWS: Likewise.
Bruno Haible 68ac8a9f 2022-01-23T23: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.
Bruno Haible 3dda6027 2012-12-07T04:09:10 Change copyright holder of man pages.
Bruno Haible 3a33986e 2011-10-24T02:39:35 New encoding ISO-2022-CP-MS.
Bruno Haible fd7d5707 2010-11-24T03:33:29 Implement newer release of BIG5-HKSCS.
Bruno Haible 459ce580 2009-01-24T23:16:06 New converter for CP1131.
Bruno Haible 7095c1ea 2007-10-07T18:23:40 Upgrade license.
Bruno Haible 614f279f 2007-05-25T23:41:00 Add support for the Kazakh RK1048 encoding.
Bruno Haible dfbfdf8c 2007-04-24T07:02:08 Tweak wording.
Bruno Haible e54929ca 2007-03-31T23:25:25 \- is a HYPHEN-MINUS, - is a HYPHEN. Use HYPHEN-MINUS so that copy&paste leads to better results.
Bruno Haible 59019c79 2007-03-31T22:22:08 Mark as POSIX compliant.
Bruno Haible 970a6068 2007-03-31T22:14:05 Syntactic simplification.
Bruno Haible 7edefe50 2006-05-18T12:48:00 Implement newer releases of BIG5-HKSCS.
Bruno Haible 05a280da 2005-12-15T12:43:45 CP936 is now different from GBK.
Bruno Haible 38981e01 2005-05-23T10:06:44 Implement BIG5-2003 encoding.
Bruno Haible 9341db94 2005-05-06T11:04:28 Support for PT154 encoding.
Bruno Haible bb98761e 2005-03-29T13:55:27 Implement and document ATARIST converter.
Bruno Haible b45f3ec4 2004-02-02T11:31:24 New man page for iconvctl().
Bruno Haible ed9ef091 2002-05-29T14:11:14 New encoding C99.
Bruno Haible e9eef361 2002-05-22T12:41:45 New encodings CP853, TDS565, RISCOS-LATIN1.
Bruno Haible f91d7f06 2002-05-21T12:50:46 Mention extra encodings.
Bruno Haible b4332637 2002-05-18T01:27:16 Write Shift_JIS instead of Shift-JIS.
Bruno Haible 33057762 2002-05-13T10:03:19 Add KOI8-T encoding.
Bruno Haible 854c1592 2002-05-10T10:38:29 Update my email address.
Bruno Haible 1d7b650c 2001-12-06T14:27:22 Empty encoding name is equivalent to locale dependent encoding, as in glibc.
Bruno Haible 7397d65d 2001-06-06T18:37:24 Rename BIG5HKSCS to BIG5-HKSCS.
Bruno Haible e91c0ce3 2001-04-12T12:55:41 Add UTF-32 encodings.
Bruno Haible 06aa1274 2001-01-05T13:52:21 Add support for CP862.
Bruno Haible fdd8e49f 2000-11-20T18:26:50 Transliteration is now off by default.
Bruno Haible d51d26bc 2000-11-20T18:33:47 Add support for locale dependent "char" and "wchar_t" encodings.
Bruno Haible 875b6b71 2000-11-20T18:24:35 Document JOHAB again.
Bruno Haible 8333237d 2000-10-23T14:20:07 Add support for GB18030 and BIG5HKSCS.
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.
Bruno Haible 00e960fc 2000-01-04T21:56:56 Upgrade to libiconv-1.0.
Bruno Haible 3af9cd39 1999-12-31T12:50:49 Import from libiconv-0.3.