Bug#328303: iconv breaks on piped input, because it tries to read whole input into a buffer
Package: libc6
Version: 2.3.2.ds1-22
iconv(1) tries to read in its whole input before doing
conversion. This is no good if you want to use it in a
pipe.
Example:
yes | iconv -f utf-8 -t iso-8859-1
expected result: ten lines of `y'
actual result: iconv runs out of memory
As a more serious example, consider
zcat dump-of-wikipedia.xml.gz | iconv -f utf-8 -t $charset | ...
--
``The Strategic Railway Authority is not in the business of railway lines.''
(Cambridgeshire County Councillor Shona Johnstone)
Reply to: