Incorrect Encoding for CMake Output in VSCode Terminal on Chinese Windows System #4190
Labels
bug
a bug in the product
world ready
World Readiness - ensuring we are globally ready with our localized content
Brief Issue Summary
Bug Description
I am using CMake with MSVC to build a C++ program on my Chinese Windows system. With the default settings of CMake Tools, the output displayed in the VSCode terminal has incorrect encoding. Please see the highlighted section in the screenshot below.
Possible Fix
The default setting for
cmake.outputLogEncoding
is "auto" (related patch: #550). This setting sets the interpreted encoding of CMake output to the ANSI encoding on Windows, which in my case is GBK (cp936).However, when I set
cmake.outputLogEncoding
to "utf-8", the output displays correctly, so I suspect that the actual encoding of the CMake output is UTF-8. I believe changing the default setting ofcmake.outputLogEncoding
to "utf-8" could resolve this bug.How to Reproduce
I believe that building any CMake project on a non-ASCII Windows system will reproduce this problem.
Related Issues
#3632
CMake Tools Diagnostics
Debug Log
Additional Information
No response
The text was updated successfully, but these errors were encountered: