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

Source file contains BOM marker in src/plugins/position/positionpoll/qgeoareamonitor_polling.h

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 5.2.1
    • 5.2.0
    • Location
    • None

      The qtlocation package contains an header file which has a BOM, this was introduced by commit https://qt.gitorious.org/qt/qtlocation/commit/0ed9f7496656fa0ea52d703c7fddff26c2192857

      For the file : src/plugins/position/positionpoll/qgeoareamonitor_polling.h

      It prevents qtlocation to build with compilers like g++ 4.3.2 and AFAIK all gcc/g++ version should be concerned. The compiler fails with the following errors :

      In file included from qgeoareamonitor_polling.cpp:42:
      qgeoareamonitor_polling.h:1: error: stray '\357' in program
      qgeoareamonitor_polling.h:1: error: stray '\273' in program
      qgeoareamonitor_polling.h:1: error: stray '\277' in program
      In file included from .moc/moc_qgeoareamonitor_polling.cpp:9,
      from qgeoareamonitor_polling.cpp:518:
      .moc/../qgeoareamonitor_polling.h:1: error: stray '\357' in program
      .moc/../qgeoareamonitor_polling.h:1: error: stray '\273' in program
      .moc/../qgeoareamonitor_polling.h:1: error: stray '\277' in program
      make[6]: *** [.obj/qgeoareamonitor_polling.o] Error 1

      I attached a patch which remove the BOM to present the issue.

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

            ablasche Alex Blasche
            daminetreg Damien Buhl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes