This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/6050] New: iconv(1) buffers all of stdin in memory


When reading from stdin, glibc's iconv(1) frontend buffers the entire input in 
memory, which makes the program unsuitable for very large inputs.

(This problem does not arise when reading a file directly, presumably because 
the input is mmap()ed in that case.)

$ iconv -f utf8 -t ucs2 <lots-o-gigabytes-utf8.txt >/dev/null
Killed

Confirmed with 2.6.1.

-- 
           Summary: iconv(1) buffers all of stdin in memory
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: skunk at iskunk dot org
                CC: glibc-bugs at sources dot redhat dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


http://sourceware.org/bugzilla/show_bug.cgi?id=6050

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]