C ++ compilation error messages do not display properly in PuTTY

If I compile a C ++ program with errors on Linux connected via PuTTY, I see error messages like:

g++ a.cpp a.cpp: In function âint main()â: a.cpp:38: error: expected primary-expression before â)â token a.cpp:38: error: âwaitpidâ was not declared in this scope 

Any idea on why the â symbol comes?

+4
source share
2 answers

Verify that the locale command returns the same encoding as set in the PuTTY configuration. Translation-> Received, is assumed to be in this character set.

+2
source

Set the PuTTY character set for UTF-8 in the options.

+2
source

Source: https://habr.com/ru/post/1337438/


All Articles