I'm trying to use CLion 2018.2 on Windows 10 with the toolchain from Studio 2017. Studio cl.exe displays its messages in Russian in an encoding that the CLion console does not understand. It turns out like:

cl: Є®¬ ¤ п бва®Є warning D9025: ЇҐаҐ®ЇаҐ¤Ґ«ҐЁҐ "/std:c++latest"  "/std:c++17" 

Any solution to the problem is of interest: change the compiler's language to English (without reinstalling the studio or Windows), or change the encoding of the CLion console. There are no sane ways to do either on the Internet yet.

I pay attention that this is NOT another question about the encoding of my sources and setlocale.

UPD. In the same console is displayed

 NMAKE : fatal error U1077: "D:\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.14.26428\bin\Hostx64\x64\cl.exe" : возвращенный код "0x2" 

That is, nmake and cl speak different encodings?

UPD2. Found the right ticket . At the time of this revision is not yet closed.

  • Well, do not use CLion ... What you do not like the studio? Especially if the compiler still use the studio. As for the message encoding, there may be a problem in setting up the Russian localization for the studio. - VTT
  • There are no "Russian encodings". There is cp1251, utf-8 and many others. You have a studio output in CP1251, and a stupid idea shows as CP866 (or vice versa). - KoVadim
  • @KoVadim is understandable. To do what? And yes, the point is to install Russian localization in the studio. However, when installing, the studio was firmly tied to the system language and did not want to install another version. - Sergey
  • Ideally, the key for cl.exe would fit, which sets the language (or encoding) of the messages. But this is not. - Sergey
  • The correct answer is to demolish the clion. Slightly more interesting answer - run the studio installer and demolish from there the crack. The answer for the strong in spirit - look in the clion settings, where the encoding is set. Or contact support - KoVadim

1 answer 1

You need to change the cmd.exe encoding from cp1251 to UTF-8

ps CLion VS has recently appeared, is in testing, so it’s better to use mingw or cygwin for now to avoid further problems.

  • Most likely, your advice will not help - KoVadim 2:01 pm
  • @KoVadim everything works for me, these are the problems of i18n Windows, but not normal ide and compilers, where by default UTF-8 is everywhere - browse
  • it is good that you work. - KoVadim pm
  • @KoVadim for what a minus? op did not write yet, helped him or not - brow
  • I did not set. But most likely it will not help. - KoVadim 2:12 pm