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

qmake should skip project file's BOM if exists.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.0.0 Beta 2
    • 5.0.0
    • Build tools: qmake
    • None
    • All

    Description

      Qt 5 have started to enforce that source code file must be UTF-8. But .pro/.pri/.prf files with UTF-8 BOM can not deal by qmake.

      More worse, it will cause subtle errors. For example, we have a hello.pro file which saved as UTF-8 with BOM.

      TEMPLATE = lib
      message($$TEMPLATE)
      

      when we run qmake, we will get

      Project MESSAGE: app
      Project MESSAGE: app
      Project MESSAGE: app
      

      Attachments

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

        Activity

          People

            buddenha Oswald Buddenhagen
            dbzhang800 debao zhang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes