Use newline char as a delimiter in coreclr_env.list (#158) accepted/tizen/unified/20200130.214634 submit/tizen/20200129.055156
author김상욱/Common Platform Lab(SR)/Engineer/삼성전자 <swift.kim@samsung.com>
Wed, 29 Jan 2020 03:17:39 +0000 (12:17 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Wed, 29 Jan 2020 03:17:39 +0000 (12:17 +0900)
NativeLauncher/launcher/dotnet/dotnet_launcher.cc

index ee1e6e3..9a828f3 100644 (file)
@@ -109,12 +109,9 @@ static void setEnvFromFile()
 
        if (inFile) {
                _INFO("coreclr_env.list is found");
-               std::getline(inFile, envList);
 
-               std::istringstream ss(envList);
                std::string token;
-
-               while (std::getline(ss, token, ':')) {
+               while (std::getline(inFile, token, '\n')) {
                        if (!token.empty()) {
                                __envList.push_back(token);
                        }