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

qtuiohandler.cpp fail to compile under simplified chinese windows 10

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.8.0 RC
    • Fix Version/s: 5.9.0 Beta 2
    • Component/s: Other
    • Labels:
      None
    • Environment:
      Windows 10, simplified chinese
      vs2015 update 3
    • Commits:
      3cd1c3cb70dd57df939ad067f5668e8304d32237

      Description

      Now I fail to compile src/plugins/generic/tuiotouch/qtuiohandler.cpp under simplified chinese Windows 10, This is caused by the following line:

          qCDebug(lcTuioSet) << "Processing SET for token " << classId << id << " @ " << x << y << "∡" << angle <<
                                "vel" << vx << vy << angularVelocity << "acc" << acceleration << angularAcceleration;
      

      There is a character '∡' in this line which is not a latin-1 character but it is a valid utf-8 character. But under simplified chinese windows 10, the default character-set is GBK, the compiler will assume GBK source code which cause the compile error.

        Attachments

          Issue Links

          For Gerrit Dashboard: QTBUG-58161
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              liaqi Liang Qi
              Reporter:
              jianliang79 liang jian
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes