From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#67540: 29.1; Emacs on Windows incorrectly capitalizes some environment variables Date: Fri, 01 Dec 2023 09:14:09 +0200 Message-ID: <835y1ibdj2.fsf@gnu.org> References: <4447B955-7BC6-4641-B65D-F674D796B86E@boostpro.com> <2bbe9442-489d-f35e-8379-37326278798a@gmail.com> <83cyvr66z9.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27304"; mail-complaints-to="usenet@ciao.gmane.io" Cc: jporterbugs@gmail.com, 67540@debbugs.gnu.org To: Dave Abrahams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 01 08:15:07 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r8xjv-0006td-Nl for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Dec 2023 08:15:07 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r8xjl-0002XY-CM; Fri, 01 Dec 2023 02:14:57 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r8xjj-0002Ws-RA for bug-gnu-emacs@gnu.org; Fri, 01 Dec 2023 02:14:55 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r8xjh-0003mI-Rx for bug-gnu-emacs@gnu.org; Fri, 01 Dec 2023 02:14:55 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1r8xjq-0002Ds-DM for bug-gnu-emacs@gnu.org; Fri, 01 Dec 2023 02:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Dec 2023 07:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67540 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Original-Received: via spool by 67540-submit@debbugs.gnu.org id=B67540.17014148728486 (code B ref 67540); Fri, 01 Dec 2023 07:15:02 +0000 Original-Received: (at 67540) by debbugs.gnu.org; 1 Dec 2023 07:14:32 +0000 Original-Received: from localhost ([127.0.0.1]:55004 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r8xjL-0002Cn-QW for submit@debbugs.gnu.org; Fri, 01 Dec 2023 02:14:32 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35888) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1r8xjK-0002CW-3G for 67540@debbugs.gnu.org; Fri, 01 Dec 2023 02:14:30 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r8xj5-0002Te-Vs; Fri, 01 Dec 2023 02:14:15 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=TqUMfp6st38a2LdxPHT8YCr9G9eQMWEHbIpM+QjbqDI=; b=PHedXygAumjz aVi1SQT8ZPKnwYqlIYsiXY+dt+pruORAeTtY0WOwFKxKYyhD36OekpRECLkDb1oDqgD3Dt+lFODvE /JP7uiFHCAxYWiW1nhiaTQC38AbrGjeyoQytJns/9OChVrYPsElDmpCvDxssxoddUWM+wVBuGzcWi SZeJ0vhTX2q+HFAFiy5Llt/YWsv0ZwBKpsq4gWgh69cky+b9pN5daKu7xA9JpW6DuYyFPTufGemsD dMR0AOkYULDaqi2xc1EpWjdPMGcOd8RmsBzKtURt2cyyND5a2Zru4QPqSOGAYybcBoQNSWmHyU5aC UzbpW0meyCu5p5/n6CmYaA==; In-Reply-To: (message from Dave Abrahams on Thu, 30 Nov 2023 16:13:03 -0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:275307 Archived-At: > From: Dave Abrahams > Date: Thu, 30 Nov 2023 16:13:03 -0800 > Cc: Jim Porter , > 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.