Skip to content
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

Iterator over ENV leaves extra null terminator in values on windows. #18141

Closed
twadleigh opened this issue Aug 19, 2016 · 0 comments
Closed

Iterator over ENV leaves extra null terminator in values on windows. #18141

twadleigh opened this issue Aug 19, 2016 · 0 comments
Labels
bug Indicates an unexpected problem or unintended behavior system:windows Affects only Windows

Comments

@twadleigh
Copy link
Contributor

A (truncated) dump of ENV:

julia> ENV
Base.EnvHash with 71 entries:
  "=::"                      => "::\\\0"
  "ALLUSERSPROFILE"          => "C:\\ProgramData\0"
  "APPDATA"                  => "C:\\Users\\hw9980\\AppData\\Roaming\0"
  "COMMONPROGRAMFILES"       => "C:\\Program Files\\Common Files\0"
  "COMPUTERNAME"             => "SNC39466\0"
  "COMSPEC"                  => "C:\\WINDOWS\\system32\\cmd.exe\0"
  "ChocolateyInstall"        => "C:\\ProgramData\\chocolatey\0"
  "ChocolateyLastPathUpdate" => "Tue Jul 19 11:05:47 2016\0"
  "CommonProgramFiles(x86)"  => "C:\\Program Files (x86)\\Common Files\0"
  "CommonProgramW6432"       => "C:\\Program Files\\Common Files\0"
twadleigh added a commit to twadleigh/julia that referenced this issue Aug 19, 2016
twadleigh added a commit to twadleigh/julia that referenced this issue Aug 19, 2016
twadleigh added a commit to twadleigh/julia that referenced this issue Aug 19, 2016
twadleigh added a commit to twadleigh/julia that referenced this issue Aug 19, 2016
@JeffBezanson JeffBezanson added bug Indicates an unexpected problem or unintended behavior system:windows Affects only Windows labels Aug 19, 2016
twadleigh added a commit to twadleigh/julia that referenced this issue Aug 20, 2016
twadleigh added a commit to twadleigh/julia that referenced this issue Aug 20, 2016
tkelman pushed a commit that referenced this issue Aug 20, 2016
…18144)

* Eliminate trailing null from iterator over `ENV`.

Fixes #18141.

* Add failing test for #18141.
tkelman pushed a commit that referenced this issue Aug 20, 2016
…18144)

* Eliminate trailing null from iterator over `ENV`.

Fixes #18141.

* Add failing test for #18141.

(cherry picked from commit 03e7c79)
mfasi pushed a commit to mfasi/julia that referenced this issue Sep 5, 2016
…`ENV`. (JuliaLang#18144)

* Eliminate trailing null from iterator over `ENV`.

Fixes JuliaLang#18141.

* Add failing test for JuliaLang#18141.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or unintended behavior system:windows Affects only Windows
Projects
None yet
Development

No branches or pull requests

2 participants