diff options
author | James McCoy <jamessan@jamessan.com> | 2021-05-18 06:54:24 -0400 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2021-05-18 08:53:08 -0400 |
commit | 88ee095d42e222ec2353b1eaae48a2a9a65b1d9d (patch) | |
tree | eeb88f909c265b85c11a5d3364fd7352120f8373 /runtime/lua/vim/lsp/handlers.lua | |
parent | d250905c69c0a8d2ac99c4ade9cfb574a011faaf (diff) | |
download | rneovim-88ee095d42e222ec2353b1eaae48a2a9a65b1d9d.tar.gz rneovim-88ee095d42e222ec2353b1eaae48a2a9a65b1d9d.tar.bz2 rneovim-88ee095d42e222ec2353b1eaae48a2a9a65b1d9d.zip |
fix(job): Deduplicate env var names on Windows
Windows handles environment variable names case-insensitively (i.e.,
%Path% can be accessed via %PATH%). Since nvim explicitly creates the
environment block for jobs, we need to ensure it doesn't contain
duplicate names with different cases (e.g., both %Path% and %PATH%) as
that can confuse processes using the environment.
`f_environ()` now converts all env var names to upper-case on Windows,
since it does duplicate detection and also provides the base environment
for jobs. Similarly, `create_environment()` converts any env var names
supplied in the job opts to upper-case so they can be compared against
what we get from `f_environ()`.
Closes #14541
Diffstat (limited to 'runtime/lua/vim/lsp/handlers.lua')
0 files changed, 0 insertions, 0 deletions