How to get Unicode output from cl.exe?

  • Thread starter Thread starter Yuri Plyakhin
  • Start date Start date
Y

Yuri Plyakhin

Guest
Hello,

I have a code that runs "cl.exe" by CreateProcess. Then I parse the output from "cl.exe". All works fine with English characters. But if output contains non-English characters, I get "???????" instead of non-English characters.

As I know, "cl.exe" can create two named pipes and write Unicode output to them, instead of using stderr and stdout.
Also, I've read about an environment variable "VS_UNICODE_OUTPUT". As I've understand that variable causes "cl.exe" to create these two named pipes.

The questions are:
How can I run "cl.exe" in such mode (to get Unicode output)?
What names should I use for pipes?
What value should I set to "VS_UNICODE_OUTPUT", and what does this value mean?

Continue reading...
 
Back
Top