[cmake-developers] [PATCH v5] SystemTools: Teach GetEnv to use correct encoding on Windows

Brad King brad.king at kitware.com
Thu Jul 14 14:39:18 EDT 2016


On 07/13/2016 10:17 PM, Dāvis wrote:
> On Windows getenv (and putenv) uses ANSI codepage so it needs to be encoded
> to internally used encoding (eg. UTF-8). Here we use _wgetenv (and _wputenv)
> instead and encode that.

Thanks.  Based on that I've constructed a revised topic for KWSys:

 http://review.source.kitware.com/21318

-Brad



More information about the cmake-developers mailing list