| 55 | } |
| 56 | |
| 57 | static std::vector<std::string> getUtf8EnvironmentVariables() { |
| 58 | // build our own new environments |
| 59 | auto env_strs = GetEnvironmentStringsW(); |
| 60 | vector<string> utf8Environ; |
| 61 | for (auto penv = env_strs; *penv; penv += wcslen(penv) + 1) { |
| 62 | utf8Environ.emplace_back(utf8Codec.to_bytes(penv)); |
| 63 | } |
| 64 | FreeEnvironmentStringsW(env_strs); |
| 65 | return utf8Environ; |
| 66 | } |
| 67 | |
| 68 | BackendServer::BackendServer(PipeServer* pipeServer, const Json::Value& info) : |
| 69 | pipeServer_{pipeServer}, |