Community
Participate
Working Groups
In org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/spawner/EnvironmentReader::getEnvVars(), environment variables which contains '\n' are parsed as separate lines. Example: P, S, 1, =, \, [, \, 0, 3, 3, ], 0, ;, \, w, \, 0, 0, 7, \n, \, 0, 3, 3, [, 3, 2, m, \, ], \, u, @, \, h, , \, [, \, 0, 3, 3, [, 3, 3, m, \, w, \, 0, 3, 3, [, 0, m, \, ], \n, $, , results in two phony environment variables named "\033[32..." and "$ " being defined. A proposed patch is attached.
Created attachment 24139 [details] Restore environment variables which contain embedded new line(s).
You are right. I modify the patch to check for prev_key == null && prev_value == null. Just to be on the safe side. CDT supports so many weird platforms.
Thanks, Alain!
Thanks, the patch is in the head. Please let me know if it agrees with you, by fliping the state of the PR to verify The PR is mark 30RC2 not sure if it will make the cut for 30RC1
Looks good, Alain. Thanks!