aboutsummaryrefslogtreecommitdiff
path: root/stdio-common/Xprintf_buffer_flush.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2024-09-20 13:10:54 +0200
committerFlorian Weimer <fweimer@redhat.com>2024-09-20 13:51:09 +0200
commit8ef3cff9d1ceafe369f982d980678d749fb93bd2 (patch)
tree10944be240ac4ed5aeeeb634c98e7836457a5d08 /stdio-common/Xprintf_buffer_flush.c
parent6cbf845fcdc76131d0e674cee454fe738b69c69d (diff)
downloadglibc-8ef3cff9d1ceafe369f982d980678d749fb93bd2.zip
glibc-8ef3cff9d1ceafe369f982d980678d749fb93bd2.tar.gz
glibc-8ef3cff9d1ceafe369f982d980678d749fb93bd2.tar.bz2
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>
Diffstat (limited to 'stdio-common/Xprintf_buffer_flush.c')
0 files changed, 0 insertions, 0 deletions