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

QTextStream doesn't recognise \r as an end of line marker

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Out of scope
    • P3: Somewhat important
    • None
    • 4.7.2
    • Core: I/O
    • None
    • Windows 7

    Description

      Please see https://developer.qt.nokia.com/forums/viewthread/4341/#25856 "How do I read in a text file line by line that uses Hex0D as a line terminator?" for a lengthy and illuminating discussion.

      read(1) rather than readLine() has to be used to read a file that uses \r (hex0D) as a line terminator.

      It would be useful if either \r was recognised as a terminator, or that the terminator could be configured.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            jallin JAllin
            Votes:
            5 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes