glibc/iconv
Florian Weimer 8ef3cff9d1 iconv: Support in-place conversions (bug 10460, bug 32033)
Check if any of the input files overlaps with the output file, and use
a temporary file in this case, so that the input is no clobbered
before it is read.  This fixes bug 10460.  It allows to use iconv
more easily as a functional replacement for GNU recode.

The updated output buffer management truncates the output file
if there is no input, fixing bug 32033.

Reviewed-by: DJ Delorie <dj@redhat.com>
2024-09-20 13:51:09 +02:00
..
dummy-repertoire.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
gconv_builtin.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
gconv_builtin.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
gconv_cache.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
gconv_charset.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
gconv_charset.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
gconv_close.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
gconv_conf.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
gconv_db.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
gconv_dl.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
gconv_int.h iconv: Preserve iconv -c error exit on invalid inputs (bug 32046) 2024-09-20 13:51:09 +02:00
gconv_open.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
gconv_parseconfdir.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
gconv_simple.c iconv: Preserve iconv -c error exit on invalid inputs (bug 32046) 2024-09-20 13:51:09 +02:00
gconv_trans.c iconv: Preserve iconv -c error exit on invalid inputs (bug 32046) 2024-09-20 13:51:09 +02:00
gconv.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
gconv.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
iconv_charmap.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
iconv_close.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
iconv_open.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
iconv_prog.c iconv: Support in-place conversions (bug 10460, bug 32033) 2024-09-20 13:51:09 +02:00
iconv_prog.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
iconv.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
iconv.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
iconvconfig.c Update copyright dates not handled by scripts/update-copyrights 2024-01-01 10:53:40 -08:00
iconvconfig.h Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
loop.c iconv: Preserve iconv -c error exit on invalid inputs (bug 32046) 2024-09-20 13:51:09 +02:00
Makefile iconv: Support in-place conversions (bug 10460, bug 32033) 2024-09-20 13:51:09 +02:00
skeleton.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
strtab.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
test-gconv-modules Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-gconv-init-failure-mod.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-gconv-init-failure.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-iconv1.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
tst-iconv2.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-iconv3.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
tst-iconv4.c [BZ #9793] 2009-02-03 01:31:30 +00:00
tst-iconv5.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-iconv6.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-iconv7.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-iconv8.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-iconv9.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-iconv_prog-buffer.sh iconv: Support in-place conversions (bug 10460, bug 32033) 2024-09-20 13:51:09 +02:00
tst-iconv_prog.sh Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-iconv-mt.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-iconv-opt.c Update copyright dates with scripts/update-copyrights 2024-01-01 10:53:40 -08:00
tst-iconv-sticky-input-error.c iconv: Preserve iconv -c error exit on invalid inputs (bug 32046) 2024-09-20 13:51:09 +02:00
tst-translit-locale iconv: Fix matching of multi-character transliterations (bug 31859) 2024-08-05 16:49:57 +02:00
tst-translit-mchar.c iconv: Fix matching of multi-character transliterations (bug 31859) 2024-08-05 16:49:57 +02:00
tst-translit-mchar.sh iconv: Fix matching of multi-character transliterations (bug 31859) 2024-08-05 16:49:57 +02:00
Versions intl: Handle translation output codesets with suffixes [BZ #26383] 2020-09-25 14:47:06 +02:00