Changes between Initial Version and Version 1 of Ticket #199, comment 15


Ignore:
Timestamp:
Jul 29, 2011, 3:13:58 PM (13 years ago)
Author:
Dmitry A. Kuminov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #199, comment 15

    initial v1  
    11I found the culprit: it's the feof() LIBC call. It never returns true when stdin is a pipe and the other end of the pipe gets closed. Since feof() is what gets used by QFile::atEnd() on sequential streams (which stdin is as well), loops like {{{while (!file.atEnd())}}} never end.
    22
    3 {{{while (!reader.atEnd())}}} is what is used by UIC as well when it parses the input .UI file.
     3Of course, {{{while (!reader.atEnd())}}} is what is used by UIC as well when it parses the input .UI file.