git-iconv-Support-in-place-conversions-bug-10460-bug-320
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Sat, 23 Nov 2024 13:57:03 +0000 (14:57 +0100)
committerAurelien Jarno <aurel32@debian.org>
Sat, 23 Nov 2024 13:57:03 +0000 (14:57 +0100)
commit841de7252f0be9fbbc603b4a12cbe09ed68f6572
treebceff5730fd4609883bc0049846290e9f0b34f6d
parent847d317ac8392fc93d2430d469e7479320d97c03
git-iconv-Support-in-place-conversions-bug-10460-bug-320

commit f432d9495d428eef0455376e4de666d0a6748040
Author: Florian Weimer <fweimer@redhat.com>
Date:   Fri Sep 20 13:10:54 2024 +0200

    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>
Gbp-Pq: Topic any
Gbp-Pq: Name git-iconv-Support-in-place-conversions-bug-10460-bug-320.patch
iconv/Makefile
iconv/iconv_prog.c
iconv/tst-iconv_prog-buffer.sh