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

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

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Out of scope
    • Affects Version/s: 4.7.2
    • Fix Version/s: None
    • Component/s: Core: I/O
    • Labels:
      None
    • Environment:

      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

            Assignee:
            Unassigned Unassigned
            Reporter:
            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