Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-6681

Qt Creator saves qrc files with LF line endings on windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • Qt Creator 3.2.0-rc1
    • Qt Creator 2.3.1, Qt Creator 2.4.0-rc, Qt Creator 2.4.0
    • All Other Issues
    • None
    • Windows 7. Qt SDK 1.1.4 with Qt Creator 2.3.1 [From revision 8840168fc5] (also tested in Qt Creator 2.3.84 [From revision 34033aea88]).
      The bug is also present in Qt Creator 2.4.0 [From revision de875606e8].
    • c3d10509b97093cd83a1cc8022c7e665222a15e9

    Description

      When you edit and save a qrc resource file in Qt Creator on windows, it saves the file with LF line endings even if the original line endings of the file are CRLF.

      Steps to reproduce:
      1. Open a qrc file (with CRLF endings) in Qt Creator.
      "file" utility shows: test.qrc: ASCII text, with CRLF line terminators
      2. Change something and save the file. At this point, the file has LF endings.
      "file" shows: test.qrc: ASCII text

      This bugreport looks similar: QTCREATORBUG-5901

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-6681
        # Subject Branch Project Status CR V

        Activity

          People

            con Eike Ziller
            enikolsky Eugene Nikolsky
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes