-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #18141, eliminating null in value when iterating over ENV
.
#18144
Conversation
Could you add a test that would have failed without this fix? |
@tkelman, will do. |
|
||
# Test for #18141 | ||
for (k, v) in ENV | ||
@test v[end] != '\0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder whether it's possible to have this happen from outside of Julia?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't follow.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could anyone have this be the case in their pre-existing environment, or would our getenv always be reading based on null-termination?
…`ENV`. (JuliaLang#18144) * Eliminate trailing null from iterator over `ENV`. Fixes JuliaLang#18141. * Add failing test for JuliaLang#18141.
Fixes #18141.