g++ curly quotes displayed incorrectly in console and “Problems” list

前端 未结 4 1971
臣服心动
臣服心动 2021-02-15 13:45

Recently, I switched from Visual Studio to Eclipse CDT. I\'ve set it up beautifully such that the G++ compiler from my Cygwin installation can locate and compile my code without

4条回答
  •  南旧
    南旧 (楼主)
    2021-02-15 14:08

    According to gcc 4.0 release notes http://gcc.gnu.org/gcc-4.0/changes.html:

    English-language diagnostic messages will now use Unicode quotation marks in UTF-8 locales. (Non-English messages already used the quotes appropriate for the language in previous releases.) If your terminal does not support UTF-8 but you are using a UTF-8 locale (such locales are the default on many GNU/Linux systems) then you should set LC_CTYPE=C in the environment to disable that locale. Programs that parse diagnostics and expect plain ASCII English-language messages should set LC_ALL=C. See Markus Kuhn's explanation of Unicode quotation marks for more information.

提交回复
热议问题