bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#67540: 29.1; Emacs on Windows incorrectly capitalizes some environme


From: Eli Zaretskii
Subject: bug#67540: 29.1; Emacs on Windows incorrectly capitalizes some environment variables
Date: Fri, 01 Dec 2023 09:14:09 +0200

> From: Dave Abrahams <dave@boostpro.com>
> Date: Thu, 30 Nov 2023 16:13:03 -0800
> Cc: Jim Porter <jporterbugs@gmail.com>,
>  67540@debbugs.gnu.org
> 
>  It might be nice for Emacs to preserve the case of any existing 
>  environment variables on MS-Windows to be on the safe side though...
> 
>  That's impossible in practice: we'd need to "fix" every single Lisp
>  program and every place in the Emacs C code that compare against
>  "PATH" case-sensitively.  And what about user confusion, for those of
>  us who mostly work on Unix, but sometimes need to work on Windows?
> 
> I don't think this is that hard to fix without breaking anybody.  Simply 
> maintain a mapping of in-Emacs
> upcased environment variable names to the lowercased counterparts from which 
> they came, and
> map back when setting up a process environment.

This will not work reliably, because many programs invoked by Emacs as
sub-processes are ported Unix and GNU/Linux programs, and those expect
PATH, not Path in the environment.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]