Cmake using chinese single quotation marks

0

I'm using wsl with clion coding cpp program.

When a error occurred, cmake using chinese single quotation marks result in gibberish in messages of clion like below:

error: expected 鈥�;鈥� at end of member declaration

However, bash shows:

error: expected ‘;’ at end of member

is chinese single quotation marks.

Wsl is using C.UTF-8.

What causes those gibberish? How could I fix it?

Riton Elion

Posted 2019-06-30T12:27:15.297

Reputation: 1

1How are you using WSL without bash? – harrymc – 2019-06-30T14:03:47.320

Clion can access wsl by ssh. See https://www.jetbrains.com/help/clion/how-to-use-wsl-development-environment-in-clion.html

– Riton Elion – 2019-06-30T14:34:58.307

(1) In Settings > File Encodings, is IDE Encodings defined as UTF-8? (2) If you have somewhere the file rubymine.sh, add export XMODIFIERS="" right after the shebang. – harrymc – 2019-06-30T14:43:58.973

Thanks for your reply.However, I already set all file encodings as utf-8, it does't make any difference.Also I searched my computer and couldn't find a file named "rubymine.rs". – Riton Elion – 2019-06-30T16:15:03.457

Maybe it's a bug of clion : ), I'll submit a report to Jetbrain. – Riton Elion – 2019-06-30T16:16:38.050

rubymine.sh not rubymine.rs. – harrymc – 2019-06-30T17:22:08.217

No answers