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

The Chinese characters in the pri file result in the file content introduced in the pri not being compiled properly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6.0
    • Build tools: qmake
    • None
    • Windows11 22H2, Qt Creator 12.0.1 Based on Qt 6.6.0 (MSVC 2019, x86_64) From revision ee75c7276b
    • Windows

    Description

      Abstract

      The Chinese characters in the pri file result in the file content introduced in the pri not being compiled properly. (I have attached the error report for the project)

       

      Bug Sample

      My project structure is shown in the following figure, with the introduction of the testpri.pri in the PriTest.pro.

      When I use English annotations, the content in Pri is loaded normally,like this.

      But when I use Chinese as a comment, the content in the pri file will not be loaded properly!

      And more interestingly, the occurrence of errors is also related to the content of the characters. Some Chinese content such as "你好" will not report errors.

       

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            nihilwater30 Jinze Zhu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes