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

Clang Format Japanese characters garbled source file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • Qt Creator 16.0.0
    • Editors
    • None
    • Windows11
      QtCreator 16.0.0
    • Windows
    • 4d8a4e97b (16.0)

    Description

      QtCreator 16.0.0

       

      Japanese characters in the source code are garbled when 'Clang Format' is used.

      1.Clang Format  Enable.

       Option -> Use Custom Style

      Value is  Any value or blank is fine.

      ************************

      Language: Cpp

      TabWidth: 4

      ************************

      2.Edit Sorce File(h/cpp) 

        Sorce File Text Format is UTF-8 BOM

      3.File Save

       

      Add...

      QtCreator 14 -> OK

      QtCreator 15 -> OK

      QtCreator 16 -> NG

       

      Example

      Before Save File

      Atter Save File

      Attachments

        1. image-2025-03-18-16-59-08-291.png
          9 kB
          TOYOHIRO SATO
        2. image-2025-03-18-17-00-23-033.png
          10 kB
          TOYOHIRO SATO
        3. image-2025-03-31-15-22-07-053.png
          4 kB
          TOYOHIRO SATO
        4. image-2025-03-31-15-26-43-371.png
          40 kB
          TOYOHIRO SATO
        5. image-2025-03-31-15-30-33-677.png
          41 kB
          TOYOHIRO SATO
        6. test_save_after.cpp
          0.1 kB
          TOYOHIRO SATO
        7. test_save_before.cpp
          0.1 kB
          TOYOHIRO SATO

        Issue Links

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

          Activity

            People

              davschul David Schulz
              toyo TOYOHIRO SATO
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes