Changes between Initial Version and Version 1 of Ticket #199, comment 15
- Timestamp:
- Jul 29, 2011, 5:13:58 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #199, comment 15
initial v1 1 1 I 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. 2 2 3 {{{while (!reader.atEnd())}}} is what is used by UIC as well when it parses the input .UI file.3 Of course, {{{while (!reader.atEnd())}}} is what is used by UIC as well when it parses the input .UI file.