Skip to content

cmSystemTools: Fix encoding of whole-environment lookup on Windows

nzh63 requested to merge nzh63/cmake:unicode-env into master

On Windows, environ is encoded by CP_ACP, which may be different from KWSYS_ENCODING_DEFAULT_CODEPAGE. When environment variables include a unicode character, they may be corrupted. Use _wenviron instead.

Edited by Brad King

Merge request reports