aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_meta.lua
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2021-05-18 06:54:24 -0400
committerJames McCoy <jamessan@jamessan.com>2021-05-18 08:53:08 -0400
commit88ee095d42e222ec2353b1eaae48a2a9a65b1d9d (patch)
treeeeb88f909c265b85c11a5d3364fd7352120f8373 /runtime/lua/vim/_meta.lua
parentd250905c69c0a8d2ac99c4ade9cfb574a011faaf (diff)
downloadrneovim-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/_meta.lua')
0 files changed, 0 insertions, 0 deletions