Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-32677

Cyrillic UTF-8 text encoding in comments is broken at save file changes

XMLWordPrintable

    • Windows
    • 4d8a4e97b (16.0)

      If to open any CMake/Qbs C++ project, and modify any *.cpp/.hpp* file (e.g. with cyrillic "Привет" comment), and click on "save changes" (or ctrl + s), then the saved comment becomes broken:

      1. Create/open CMake/Qbs project.
      2. Open e.g. `main.cpp` file.
      3. Make sure that encoding is UTF-8.
      4. Write e.g. this comment:

       // Привет.
      

      5. Save `main.cpp` file.
      6. Watch that the comment is broken and changes to:

      // Привет
      

      UPD:
      1. Same behaviour and with the

      *.h/*.hpp
      

      files which are parts of a CMake/Qbs project.
      2. If to rename

      *.cpp
      

      extension with the

      *.c
      

      extension, then all saves fine.
      3. If to open a

      *.cpp/hpp/h
      

      files wihich are not a part of a CMake/Qbs projects, then all saves fine.

      OS: Windows 11 64-bit ( 24H2, build 26100.3476)

        1. screenshot-1.png
          screenshot-1.png
          69 kB
        2. screenshot-2.png
          screenshot-2.png
          76 kB
        3. screenshot-3.png
          screenshot-3.png
          101 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            davschul David Schulz
            kuzulis Denis Shienkov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes