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

When building app with qt-5.14, msvc 2015 print tons of warning of qglobal.h

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P4: Low
    • 5.14.1, 5.14.2, 5.15.0 Alpha
    • 5.14.0
    • Core: Other
    • None
    • Windows 10, zh_CN
      msvc 2015
      qt-5.14
    • Windows
    • f936ca4f86e359cb919be9d21ad239618a878559 (qt/qtbase/5.14)

    Description

          I built qt-5.14 (from git) under Windows 10 with msvc 2015. When I build qt based app with qt-5.14, the compiler will print tons of warning as the following:

      d:\qt5\qtbase\include\qtcore\../../src/corelib/global/qglobal.h(777): warning C4819: The file contains a character that cannot be represented in the current code page (936). Save the file in Unicode format to prevent data loss

      I think this is because qglobal.h of qt-5.14 contains utf-8 character not representable with ascII and msvc by default treat source code character encoding as cp936 in chinese desktop environment.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            jianliang79 liang jian
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes