[Bug 1568726] [NEW] iconv stdio buffering

R. Diez rdiezmail-ubuntu at yahoo.de
Mon Apr 11 07:34:56 UTC 2016


Public bug reported:

Tool "iconv" suffers from the stdio buffering problem described here:

https://stackoverflow.com/questions/14472179/how-do-i-perform-a
-streaming-character-conversion

Basically, when piping to iconv in an interactive session, output
stutters. Tool "stdbuf" does not help. From the page above: "But it
looks like iconv is managing the buffering internally itself - it's
nothing to do with the Linux pipe buffer."

Solutions are described in this page:

http://www.pixelbeat.org/programming/stdio_buffering/

iconv should have a command-line switch to help. From the page above:

"Note tail's stdout buffer would also have this problem, but tail -f calls fflush
on the stdout stream when new data is received to alleviate this
(as do tcpdump -l, grep --line-buffered and sed --unbuffered for example)."

** Affects: eglibc (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to eglibc in Ubuntu.
https://bugs.launchpad.net/bugs/1568726

Title:
  iconv stdio buffering

Status in eglibc package in Ubuntu:
  New

Bug description:
  Tool "iconv" suffers from the stdio buffering problem described here:

  https://stackoverflow.com/questions/14472179/how-do-i-perform-a
  -streaming-character-conversion

  Basically, when piping to iconv in an interactive session, output
  stutters. Tool "stdbuf" does not help. From the page above: "But it
  looks like iconv is managing the buffering internally itself - it's
  nothing to do with the Linux pipe buffer."

  Solutions are described in this page:

  http://www.pixelbeat.org/programming/stdio_buffering/

  iconv should have a command-line switch to help. From the page above:

  "Note tail's stdout buffer would also have this problem, but tail -f calls fflush
  on the stdout stream when new data is received to alleviate this
  (as do tcpdump -l, grep --line-buffered and sed --unbuffered for example)."

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/eglibc/+bug/1568726/+subscriptions



More information about the foundations-bugs mailing list