Jump to content
Xtreme .Net Talk

How to get Unicode output from cl.exe?


Recommended Posts

Guest Yuri Plyakhin
Posted

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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...