1
0
Fork 0

port setenv call for windows

This commit is contained in:
Wilfried Goesgens 2017-04-07 16:43:26 +02:00
parent 331ff7b724
commit cfa5daec8f
1 changed files with 4 additions and 0 deletions

View File

@ -100,7 +100,11 @@ void* LanguageFeature::prepareIcu(std::string const& binaryPath, std::string con
std::string icu_path = path.substr(0, path.length() - fn.length());
FileUtils::makePathAbsolute(icu_path);
FileUtils::normalizePath(icu_path);
#ifndef _WIN32
setenv("ICU_DATA", icu_path.c_str(), 1);
#else
SetEnvironmentVariable("ICU_DATA", icu_path.c_str());
#endif
}
}