[Bug manual/10460] iconv does not support in-place conversion

cvs-commit at gcc dot gnu.org sourceware-bugzilla@sourceware.org
Fri Sep 20 11:52:54 GMT 2024


https://sourceware.org/bugzilla/show_bug.cgi?id=10460

--- Comment #10 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Florian Weimer <fw@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8ef3cff9d1ceafe369f982d980678d749fb93bd2

commit 8ef3cff9d1ceafe369f982d980678d749fb93bd2
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>

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Glibc-bugs mailing list