git-iconv-Support-in-place-conversions-bug-10460-bug-320
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Tue, 24 Sep 2024 19:46:16 +0000 (21:46 +0200)
committerAurelien Jarno <aurel32@debian.org>
Tue, 24 Sep 2024 19:46:16 +0000 (21:46 +0200)
commit4bc70b038a7bd5d9e9e71404f07c2111f4b38d71
treeea96d08b6191f99f89939a764a0bfca169b86d18
parentc93c5cc229e2cba294d611620666b1408c3c7a6d
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