Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-24367

QFile::canReadLine() always returns false

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 4.7.4, 4.8.0, 4.8.2, 5.1.0 , 5.2.0, 5.3.1
    • Core: I/O
    • None
    • Linux, Windows

    Description

      QIODevice::canReadLine() always returns false if the object is a QFile, even if the file contains linefeed characters.
      E.g. the executable from the attached project always prints "Error: Cannot read line, but should be able to.".
      This happens with the current git heads of both 4.7 and 4.8 (a96672bc77642e3e5a030fd9e78f700b47e11ccb and 262444086fe949441aebb6c6726ba13c97476191, respectively).

      Attachments

        1. filetest.tar.gz
          0.6 kB
          Christian Kandeler
        For Gerrit Dashboard: QTBUG-24367
        # Subject Branch Project Status CR V

        Activity

          People

            thiago Thiago Macieira
            kandeler Christian Kandeler
            Votes:
            6 Vote for this issue
            Watchers:
            13 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes