|
cf10b545
|
2025-05-31T00:29:46
|
|
Document the 'const char **' vs. 'char **' problem.
Reported by Braden Ganetsky <braden.ganetsky@gmail.com> in
<https://lists.gnu.org/archive/html/bug-gnu-libiconv/2025-05/msg00003.html>.
* man/iconv.3 (SYNOPSIS, CONFORMING TO): List also the POSIX-compatible
declaration. Explain the background. Mention AM_ICONV.
|
|
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.
|
|
2c82f5d5
|
2024-12-14T12:10:36
|
|
Improve man page.
* man/iconv.3: Move 4th case to be the 2nd case. Add a NOTES section,
based on the Linux man-pages project's iconv.3 page.
|
|
bf03f38b
|
2023-05-25T01:43:25
|
|
man pages: List a fifth condition when iconv(3) may stop.
Based on the patch to the man-pages project
<https://marc.info/?l=linux-man&m=168496625522371&w=2> =
<https://lore.kernel.org/linux-man/2f9c4dbd-7aa6-fc7a-f126-453603ef695e@gmail.com/T/#m25e33d4defa1118e5c84951790f0319360abf9d4>
* man/iconv.3: List a fifth condition.
|
|
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".
|
|
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.
|
|
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.
|
|
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.
|
|
1badfd5d
|
2019-01-27T22:57:45
|
|
Accommodate a shell that is not in /bin/sh.
|
|
67802283
|
2016-12-03T18:52:49
|
|
Create tarballs through an Automake-like "make dist" command.
|
|
4a064184
|
2016-10-01T16:22:10
|
|
Remove autogenerated doc files from version control.
|
|
3dda6027
|
2012-12-07T04:09:10
|
|
Change copyright holder of man pages.
|
|
3a33986e
|
2011-10-24T02:39:35
|
|
New encoding ISO-2022-CP-MS.
|
|
2665c092
|
2011-08-07T20:09:23
|
|
Remove all .cvsignore files. Not needed any more since the switch to git.
|
|
fd7d5707
|
2010-11-24T03:33:29
|
|
Implement newer release of BIG5-HKSCS.
|
|
d03a4f0e
|
2009-08-14T12:29:10
|
|
Remove executable bits.
|
|
79f729f9
|
2009-06-04T09:31:30
|
|
Automatically generated from iconv_open_into.3.
|
|
459ce580
|
2009-01-24T23:16:06
|
|
New converter for CP1131.
|
|
13bf88bb
|
2009-01-17T09:06:59
|
|
Add support for "make install-strip".
|
|
b5abb1f6
|
2008-09-21T18:18:54
|
|
Explain resultp.
|
|
56cf69ef
|
2008-09-20T14:59:45
|
|
Documentation of iconv_open_into.
|
|
93ddeebe
|
2008-09-07T21:38:33
|
|
Clarify the processing of shift-sequences.
|
|
7095c1ea
|
2007-10-07T18:23:40
|
|
Upgrade license.
|
|
4fc3efad
|
2007-06-30T21:47:00
|
|
Remove autogenerated file from CVS.
|
|
614f279f
|
2007-05-25T23:41:00
|
|
Add support for the Kazakh RK1048 encoding.
|
|
dfbfdf8c
|
2007-04-24T07:02:08
|
|
Tweak wording.
|
|
e54929ca
|
2007-03-31T23:25:25
|
|
\- is a HYPHEN-MINUS, - is a HYPHEN. Use HYPHEN-MINUS so that copy&paste
leads to better results.
|
|
59019c79
|
2007-03-31T22:22:08
|
|
Mark as POSIX compliant.
|
|
970a6068
|
2007-03-31T22:14:05
|
|
Syntactic simplification.
|
|
2613089e
|
2007-03-20T01:55:33
|
|
Remove redundant mkinstalldirs invocations.
|
|
044da085
|
2006-10-25T11:39:30
|
|
Fix installation directory of HTML documentation.
|
|
a7a84a32
|
2006-07-27T12:00:38
|
|
Remove OS/2 build support that doesn't assume GNU make and GNU bash.
|
|
f260e646
|
2006-07-26T11:42:48
|
|
Remove MSVC/nmake build support.
|
|
f574c3fa
|
2006-07-25T11:08:43
|
|
Remove VMS support.
|
|
2cfac6dc
|
2006-06-27T13:32:50
|
|
Assume autoconf-2.60.
|
|
a4b44c8f
|
2006-05-18T12:49:45
|
|
Regenerated.
|
|
7edefe50
|
2006-05-18T12:48:00
|
|
Implement newer releases of BIG5-HKSCS.
|
|
b73dd1c9
|
2006-01-23T13:42:23
|
|
Regenerated.
|
|
422b3b1d
|
2006-01-23T13:25:49
|
|
New feature: character-dependent substitutions.
|
|
3a95ad61
|
2006-01-23T13:23:00
|
|
Accept long options.
|
|
5640998c
|
2005-12-15T12:54:52
|
|
Regenerated.
|
|
05a280da
|
2005-12-15T12:43:45
|
|
CP936 is now different from GBK.
|
|
cafce997
|
2005-07-06T11:01:05
|
|
Regenerated.
|
|
850c9ab1
|
2005-06-09T19:08:18
|
|
Renamed autoconf/ to build-aux/.
|
|
38981e01
|
2005-05-23T10:06:44
|
|
Implement BIG5-2003 encoding.
|
|
21830937
|
2005-05-19T17:22:26
|
|
Regenerated with AtariST and PT154 support.
|
|
9341db94
|
2005-05-06T11:04:28
|
|
Support for PT154 encoding.
|
|
bb98761e
|
2005-03-29T13:55:27
|
|
Implement and document ATARIST converter.
|
|
35a6ae08
|
2005-01-05T18:46:12
|
|
Regenerated.
|
|
49bc5baa
|
2004-02-02T15:51:51
|
|
Automatically generated from iconvctl.3.
|
|
daefecf7
|
2004-02-02T11:35:26
|
|
Tiny fix.
|
|
b45f3ec4
|
2004-02-02T11:31:24
|
|
New man page for iconvctl().
|
|
fe3dc142
|
2004-02-02T11:34:53
|
|
Tiny fix.
|
|
b881c36d
|
2004-01-25T18:37:02
|
|
Regenerated for release 1.9.2.
|
|
d7f2ba17
|
2004-01-21T12:09:53
|
|
Fix description of return value.
|
|
9042f1c1
|
2003-05-07T19:52:28
|
|
Support for VMS.
|
|
3a9a83af
|
2003-04-23T12:13:25
|
|
Install documentation under $(datadir), not $(prefix).
|
|
1be7e00e
|
2003-04-10T10:32:39
|
|
Improved MSVC support.
|
|
0a858fb5
|
2003-02-14T18:30:07
|
|
Regenerated.
|
|
64d5a8b9
|
2003-03-29T16:35:11
|
|
Improved MSVC support.
|
|
407b7965
|
2003-01-06T14:29:08
|
|
Use mkinstalldirs.
|
|
0dc3ae56
|
2002-10-28T11:28:41
|
|
Fix "make install" when builddir != srcdir on Solaris.
|
|
9bd02ce1
|
2002-07-22T17:06:17
|
|
Fix typo in email address.
|
|
5f66bf92
|
2002-06-13T12:33:07
|
|
Fix typo.
|
|
661d5e29
|
2002-05-29T14:22:14
|
|
Regenerated.
|
|
ed9ef091
|
2002-05-29T14:11:14
|
|
New encoding C99.
|
|
e9eef361
|
2002-05-22T12:41:45
|
|
New encodings CP853, TDS565, RISCOS-LATIN1.
|
|
d1126b74
|
2002-05-24T13:02:51
|
|
Regenerated.
|
|
f91d7f06
|
2002-05-21T12:50:46
|
|
Mention extra encodings.
|
|
b4332637
|
2002-05-18T01:27:16
|
|
Write Shift_JIS instead of Shift-JIS.
|
|
33057762
|
2002-05-13T10:03:19
|
|
Add KOI8-T encoding.
|
|
854c1592
|
2002-05-10T10:38:29
|
|
Update my email address.
|
|
dc5f739c
|
2002-01-16T12:22:10
|
|
New options -c, -s, -l.
|
|
c17cbdd6
|
2001-11-28T18:59:51
|
|
ignore Makefile
|
|
1d7b650c
|
2001-12-06T14:27:22
|
|
Empty encoding name is equivalent to locale dependent encoding, as in glibc.
|
|
675bbf62
|
2002-01-14T12:07:48
|
|
Regenerated.
|
|
bc3491ee
|
2001-06-06T18:50:35
|
|
Regenerated.
|
|
7397d65d
|
2001-06-06T18:37:24
|
|
Rename BIG5HKSCS to BIG5-HKSCS.
|
|
44bfc1f1
|
2001-05-21T12:34:42
|
|
Distribute the man pages in HTML format as well.
|
|
8df7aa6f
|
2001-05-21T12:39:06
|
|
Automatically generated from Makefile.devel.
|
|
e91c0ce3
|
2001-04-12T12:55:41
|
|
Add UTF-32 encodings.
|
|
b2ef8c91
|
2001-02-20T19:44:26
|
|
Respect configure arguments --libdir, --includedir, --mandir.
|
|
fc8e3792
|
2001-02-22T16:46:29
|
|
Make -f and -t options optional.
|
|
74834e21
|
2000-12-08T14:57:53
|
|
Don't ignore --exec-prefix given to configure.
|
|
06aa1274
|
2001-01-05T13:52:21
|
|
Add support for CP862.
|
|
a615528b
|
2000-11-23T19:54:07
|
|
Move src/ to lib/, and install the iconv program.
|
|
d51d26bc
|
2000-11-20T18:33:47
|
|
Add support for locale dependent "char" and "wchar_t" encodings.
|
|
96cb8d7b
|
2000-11-20T18:25:26
|
|
Fix typo in manpage.
|
|
fdd8e49f
|
2000-11-20T18:26:50
|
|
Transliteration is now off by default.
|
|
875b6b71
|
2000-11-20T18:24:35
|
|
Document JOHAB again.
|
|
8333237d
|
2000-10-23T14:20:07
|
|
Add support for GB18030 and BIG5HKSCS.
|
|
dbbc4681
|
2000-10-23T13:47:19
|
|
Typo in comment.
|
|
84b6a3e8
|
2000-07-04T14:48:49
|
|
Support for OS/2 using emx+gcc.
|
|
98128f18
|
2000-09-22T12:24:19
|
|
Support DESTDIR during installation.
|
|
da1ff855
|
2000-03-15T20:22:04
|
|
Upgrade to libiconv-1.2.
|
|
6d93d60b
|
2000-04-17T17:18:14
|
|
Upgrade to libiconv-1.3.
|
|
c37afd43
|
2000-01-24T13:06:57
|
|
Upgrade to libiconv-1.1.
|
|
00e960fc
|
2000-01-04T21:56:56
|
|
Upgrade to libiconv-1.0.
|
|
3af9cd39
|
1999-12-31T12:50:49
|
|
Import from libiconv-0.3.
|