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

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Done
    • Affects Version/s: 5.14.0
    • Fix Version/s: 5.14.1, 5.14.2, 5.15.0 Alpha
    • Component/s: Core: Other
    • Labels:
      None
    • Environment:
      Windows 10, zh_CN
      msvc 2015
      qt-5.14
    • Platform/s:
      Windows
    • Commits:
      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

            Assignee:
            thiago Thiago Macieira
            Reporter:
            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