Locators on WIndows have consistently provided executable filenames with ~ unexpanded and with case matching whatever the OS reported. However, executables located by WindowsPathEnvVarLocator are all lower-cased and ~ is expanded. It would probably make sense to get WindowsPathEnvVarLocator consistent with the other locators.

(See #15177 (comment).)