GNU logs - #67540, boring messages


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#67540: 29.1; Emacs on Windows incorrectly capitalizes some environment  variables
Resent-From: Dave Abrahams <dave@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 30 Nov 2023 02:31:02 +0000
Resent-Message-ID: <handler.67540.B.170131140222540 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 67540
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 67540 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.170131140222540
          (code B ref -1); Thu, 30 Nov 2023 02:31:02 +0000
Received: (at submit) by debbugs.gnu.org; 30 Nov 2023 02:30:02 +0000
Received: from localhost ([127.0.0.1]:51896 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1r8WoT-0005ql-6r
	for submit <at> debbugs.gnu.org; Wed, 29 Nov 2023 21:30:02 -0500
Received: from lists.gnu.org ([2001:470:142::17]:60114)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dave@HIDDEN>) id 1r8WoQ-0005qS-FB
 for submit <at> debbugs.gnu.org; Wed, 29 Nov 2023 21:29:59 -0500
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 <dave@HIDDEN>) id 1r8WoB-0007td-RY
 for bug-gnu-emacs@HIDDEN; Wed, 29 Nov 2023 21:29:44 -0500
Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <dave@HIDDEN>) id 1r8Wo9-0001rW-Em
 for bug-gnu-emacs@HIDDEN; Wed, 29 Nov 2023 21:29:43 -0500
Received: by mail-pl1-x62f.google.com with SMTP id
 d9443c01a7336-1cfcc9b3b5cso4985055ad.0
 for <bug-gnu-emacs@HIDDEN>; Wed, 29 Nov 2023 18:29:40 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=boostpro-com.20230601.gappssmtp.com; s=20230601; t=1701311379; x=1701916179;
 darn=gnu.org; 
 h=to:date:message-id:subject:mime-version:content-transfer-encoding
 :from:from:to:cc:subject:date:message-id:reply-to;
 bh=AtwwaU6SBZT07y0uwOuy9ze6icht9l6zB3y+UXxzGKY=;
 b=bIfjigly66HbSbJRo8ua4QaR6H/d5iU9Gbov0fpq/ycxbxkOjfT+OSX/z18Looe8sJ
 QnrIJrm7D6ouKsnQNKUJst7iIAKsbw0OKKXZ4DAajNrqvjr6SNeusxaOjq5ikzTrpEEH
 CpKetpe4FyFg7fvOxtAGgL6t1MMW94rInbeg8Hij0vpkEbPmBHT7dP9gC3hoOer1jOHp
 JAzrfwd1Hn1T5dTF+jO0qPZEWMZviWiYa+Qp7zKZUb2lB+/xEl4LyzZVV5Cavhb4259y
 HciqIIV2nZWWYa4bQ6RCFNwxUnYx0tcIkpZiy01YuvoucaZdb3OYqyf05WCb2wCK4v1E
 lZRA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1701311379; x=1701916179;
 h=to:date:message-id:subject:mime-version:content-transfer-encoding
 :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=AtwwaU6SBZT07y0uwOuy9ze6icht9l6zB3y+UXxzGKY=;
 b=VHAN48Jgw6SaIwIW+rEq3/ieaNxdD5AUeM89lnDEPFM1YuCdTxqL4gdBT9yBdVfap8
 PbsNM9GRplD3SSh3rh8hWLtEZj/fO/e+CqcX4708qZdGurTkFAHcwPuFxfgpFnLsHEBW
 GKu2LhQ9kcK2aYLnYa9wdlqt+vTIJojKfCnH52w9TwT462BDPzvHc4Liy1ySQhGtnuRv
 zF8RYrVwkSAVhHnIBVk9JMQ+gi6DMKcTGG2sVW0KpcKAOuVt+Jk4zKwcxK0aOH7gzNSW
 UhRuSyQRVPmh8z36H+Hqzd+c1w9M4slLXWgceAnVEHaGtmEE/X58zpQQ0aF+ohraTwUa
 V/hg==
X-Gm-Message-State: AOJu0YxDkZEyIlzNDrGmsRUpX7PrWkY50JqNLzL6Jhv2oFu98qL0iifJ
 ccHVmMAJWj4Zik1AmxVYOHsF9NB2uFu3VoM87dTZtw==
X-Google-Smtp-Source: AGHT+IGmf2iX6yhW1bXuy4AskhMgkoturlrEwK5Ftct9SAZK0nMLAy9RhGKUAstrQ543WoFAnAPA5A==
X-Received: by 2002:a17:902:dac4:b0:1cf:f353:6e47 with SMTP id
 q4-20020a170902dac400b001cff3536e47mr9823550plx.20.1701311378656; 
 Wed, 29 Nov 2023 18:29:38 -0800 (PST)
Received: from smtpclient.apple
 (69-209-31-205.lightspeed.sntcca.sbcglobal.net. [69.209.31.205])
 by smtp.gmail.com with ESMTPSA id
 b18-20020a170902d51200b001c452f827casm62604plg.257.2023.11.29.18.29.37
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
 Wed, 29 Nov 2023 18:29:38 -0800 (PST)
From: Dave Abrahams <dave@HIDDEN>
Content-Type: text/plain;
	charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.200.91.1.1\))
Message-Id: <4447B955-7BC6-4641-B65D-F674D796B86E@HIDDEN>
Date: Wed, 29 Nov 2023 18:29:26 -0800
X-Mailer: Apple Mail (2.3774.200.91.1.1)
Received-SPF: none client-ip=2607:f8b0:4864:20::62f;
 envelope-from=dave@HIDDEN; helo=mail-pl1-x62f.google.com
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)



emacs -Q
M-! set

Now issue the "set" command from a CMD shell. Notice that the "Path"
environment variable has been renamed to "PATH" in Emacs.  This renaming
interferes with some tools operating correctly e.g. the swift compiler
(see https://swift.org).

I notice that the "ComSpec" variable is getting the same treatment

I am able to work around the problem as follows:

(defun unsetenv (var-name)
  (let ((current-prefix-arg '(4)))
	(funcall-interactively 'setenv var-name nil)))

(when (eq system-type 'windows-nt)
  (dolist (v '("Path" "ComSpec"))
          (let ((x (getenv v)))
               (unsetenv (upcase v))
               (setenv v x))))


In GNU Emacs 29.1 (build 2, x86_64-w64-mingw32) of 2023-08-02 built on
AVALON
Windowing system distributor 'Microsoft Corp.', version 10.0.22621
System Description: Microsoft Windows 10 Pro (v10.0.2009.22621.2715)

Configured using:
'configure --with-modules --without-dbus --with-native-compilation=3Daot
--without-compress-install --with-tree-sitter CFLAGS=3D-O2'

Configured features:
ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP
NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XPM ZLIB

(NATIVE_COMP present but libgccjit not available)

Important settings:
  value of $LANG: ENU
  locale-coding-system: cp1252

Major mode: Dired by name

Minor modes in effect:
  magit-wip-initial-backup-mode: t
  magit-wip-before-change-mode: t
  magit-wip-after-apply-mode: t
  magit-wip-after-save-mode: t
  global-git-commit-mode: t
  shell-dirtrack-mode: t
  server-mode: t
  ws-butler-global-mode: t
  ws-butler-mode: t
  global-auto-revert-mode: t
  savehist-mode: t
  delete-selection-mode: t
  override-global-mode: t
  straight-use-package-mode: t
  straight-package-neutering-mode: t
  straight-symlink-emulation-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  buffer-read-only: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
c:/Users/dave/.emacs.d.default/straight/build/transient/transient hides =
c:/Program Files/Emacs/emacs-29.1/share/emacs/29.1/lisp/transient
c:/Users/dave/.emacs.d.default/straight/build/use-package/use-package =
hides c:/Program =
Files/Emacs/emacs-29.1/share/emacs/29.1/lisp/use-package/use-package
=
c:/Users/dave/.emacs.d.default/straight/build/use-package/use-package-lint=
 hides c:/Program =
Files/Emacs/emacs-29.1/share/emacs/29.1/lisp/use-package/use-package-lint
=
c:/Users/dave/.emacs.d.default/straight/build/use-package/use-package-jump=
 hides c:/Program =
Files/Emacs/emacs-29.1/share/emacs/29.1/lisp/use-package/use-package-jump
=
c:/Users/dave/.emacs.d.default/straight/build/use-package/use-package-ensu=
re hides c:/Program =
Files/Emacs/emacs-29.1/share/emacs/29.1/lisp/use-package/use-package-ensur=
e
=
c:/Users/dave/.emacs.d.default/straight/build/use-package/use-package-dimi=
nish hides c:/Program =
Files/Emacs/emacs-29.1/share/emacs/29.1/lisp/use-package/use-package-dimin=
ish
=
c:/Users/dave/.emacs.d.default/straight/build/use-package/use-package-deli=
ght hides c:/Program =
Files/Emacs/emacs-29.1/share/emacs/29.1/lisp/use-package/use-package-delig=
ht
=
c:/Users/dave/.emacs.d.default/straight/build/use-package/use-package-core=
 hides c:/Program =
Files/Emacs/emacs-29.1/share/emacs/29.1/lisp/use-package/use-package-core
=
c:/Users/dave/.emacs.d.default/straight/build/use-package/use-package-bind=
-key hides c:/Program =
Files/Emacs/emacs-29.1/share/emacs/29.1/lisp/use-package/use-package-bind-=
key
c:/Users/dave/.emacs.d.default/straight/build/bind-key/bind-key hides =
c:/Program =
Files/Emacs/emacs-29.1/share/emacs/29.1/lisp/use-package/bind-key
c:/Users/dave/.emacs.d.default/straight/build/seq/seq hides c:/Program =
Files/Emacs/emacs-29.1/share/emacs/29.1/lisp/emacs-lisp/seq
c:/Users/dave/.emacs.d.default/straight/build/let-alist/let-alist hides =
c:/Program =
Files/Emacs/emacs-29.1/share/emacs/29.1/lisp/emacs-lisp/let-alist

Features:
(shadow sort mail-extr emacsbug cl-print debug backtrace shortdoc
help-fns radix-tree magit-extras magit-submodule magit-blame magit-stash
magit-reflog magit-bisect magit-push magit-pull magit-fetch magit-clone
magit-remote magit-commit magit-sequence magit-notes magit-worktree
magit-tag magit-merge magit-branch magit-reset magit-files magit-refs
magit-status magit magit-repos magit-apply sh-script smie treesit
executable swift-mode swift-mode-imenu swift-mode-repl
swift-mode-font-lock swift-mode-standard-types swift-mode-fill
swift-mode-beginning-of-defun swift-mode-indent swift-mode-lexer
find-file-in-repository dired-aux ffap misearch multi-isearch vc-git
vc-dispatcher jka-compr pcase dwa-init editorconfig-generate-autoloads
editorconfig-autoloads noccur noccur-autoloads focus focus-autoloads
darkroom face-remap darkroom-autoloads org-modern org-modern-autoloads
poly-org org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro
org-src ob-comint org-pcomplete org-list org-footnote org-faces
org-entities noutline outline ob-emacs-lisp ob-core ob-eval org-cycle
org-table ol org-fold org-fold-core org-keys oc org-loaddefs cal-menu
calendar cal-loaddefs org-version org-compat org-macs polymode poly-lock
polymode-base polymode-weave polymode-export polymode-compat advice
polymode-methods polymode-core polymode-classes eieio-custom wid-edit
eieio-base color poly-org-autoloads poly-markdown-autoloads
markdown-mode-autoloads polymode-autoloads
find-file-in-repository-autoloads magit-imerge-autoloads magit-wip
magit-log which-func magit-diff smerge-mode diff git-commit log-edit
message sendmail yank-media puny dired dired-loaddefs rfc822 mml mml-sec
epa derived epg rfc6068 epg-config gnus-util time-date mm-decode
mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 mm-util
ietf-drums mail-prsvr mailabbrev mail-utils gmm-utils mailheader
pcvs-util add-log magit-core magit-autorevert magit-margin
magit-transient magit-process with-editor comp comp-cstr warnings icons
shell pcomplete server magit-mode transient magit-git magit-base
magit-section format-spec cursor-sensor crm compat magit-autoloads
magit-section-autoloads git-commit-autoloads with-editor-autoloads
transient-autoloads compat-autoloads dwa-progmodes yaml-mode
yaml-mode-autoloads tide tide-lv thingatpt imenu flycheck find-func s
dash etags fileloop generator xref tide-autoloads flycheck-autoloads
let-alist-autoloads pkg-info-autoloads epl-autoloads s-autoloads
dash-autoloads typescript-mode rx cc-mode cc-fonts cc-guess cc-menus
cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs
typescript-mode-autoloads swift-mode-autoloads seq-autoloads
dwa-global-config compile text-property-search comint ansi-osc
ansi-color ring skeleton modus-operandi-tinted-theme modus-themes
modus-themes-autoloads use-package-bind-key ws-butler
ws-butler-autoloads use-package-diminish diminish diminish-autoloads
ediff ediff-merg ediff-mult ediff-wind ediff-diff ediff-help ediff-init
ediff-util diff-mode descr-text package browse-url url url-proxy
url-privacy url-expand url-methods url-history url-cookie
generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse
auth-source eieio eieio-core password-cache json map url-vars finder-inf
ido autorevert filenotify savehist delsel cus-load use-package-core
dwa-global-keybindings edmacro kmacro bind-key easy-mmode dwa-folding
dwa-compile project byte-opt dwa-buffers dwa-navigation
use-package-autoloads bind-key-autoloads files-x straight-autoloads
cl-seq cl-extra help-mode straight subr-x cl-macs cl-loaddefs cl-lib
bytecomp byte-compile chemacs gv rmc iso-transl tooltip cconv eldoc
paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode
mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars
term/common-win tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode lisp-mode prog-mode register
page tab-bar menu-bar rfn-eshadow isearch easymenu timer select
scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors
frame minibuffer nadvice seq simple cl-generic indonesian philippine
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese composite emoji-zwj charscript
charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure
cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp
files window text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget keymap hashtable-print-readable backquote
threads w32notify w32 lcms2 multi-tty make-network-process
native-compile emacs)

Memory information:
((conses 16 557582 44793)
(symbols 48 31897 0)
(strings 32 115342 4566)
(string-bytes 1 3994014)
(vectors 16 67230)
(vector-slots 8 1455375 78880)
(floats 8 356 751)
(intervals 56 18883 2260)
(buffers 984 33))




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Dave Abrahams <dave@HIDDEN>
Subject: bug#67540: Acknowledgement (29.1; Emacs on Windows incorrectly
 capitalizes some environment  variables)
Message-ID: <handler.67540.B.170131140222540.ack <at> debbugs.gnu.org>
References: <4447B955-7BC6-4641-B65D-F674D796B86E@HIDDEN>
X-Gnu-PR-Message: ack 67540
X-Gnu-PR-Package: emacs
Reply-To: 67540 <at> debbugs.gnu.org
Date: Thu, 30 Nov 2023 02:31:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 67540 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
67540: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D67540
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#67540: 29.1; Emacs on Windows incorrectly capitalizes some environment variables
Resent-From: Jim Porter <jporterbugs@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 30 Nov 2023 03:44:01 +0000
Resent-Message-ID: <handler.67540.B67540.170131578631192 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 67540
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Dave Abrahams <dave@HIDDEN>, 67540 <at> debbugs.gnu.org
Received: via spool by 67540-submit <at> debbugs.gnu.org id=B67540.170131578631192
          (code B ref 67540); Thu, 30 Nov 2023 03:44:01 +0000
Received: (at 67540) by debbugs.gnu.org; 30 Nov 2023 03:43:06 +0000
Received: from localhost ([127.0.0.1]:51950 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1r8XxC-000870-DW
	for submit <at> debbugs.gnu.org; Wed, 29 Nov 2023 22:43:06 -0500
Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]:48240)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <jporterbugs@HIDDEN>) id 1r8XxA-00086V-9N
 for 67540 <at> debbugs.gnu.org; Wed, 29 Nov 2023 22:43:05 -0500
Received: by mail-pl1-x636.google.com with SMTP id
 d9443c01a7336-1cfcc9b3b5cso5340025ad.0
 for <67540 <at> debbugs.gnu.org>; Wed, 29 Nov 2023 19:42:56 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1701315770; x=1701920570; darn=debbugs.gnu.org;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:to:subject:mime-version:date:message-id:from:to:cc
 :subject:date:message-id:reply-to;
 bh=FfF2STYIb5wlieDnt1wNwVyRKUXX2IN7OxQ8lxr0x1s=;
 b=FG3C5iLcn6nLgcoks+2jA1/BGcN5+UYPE1IvzgbkR7rMa0OydGPlSl/6T6eSRSHd4Q
 b7qsu+t2Fev2MXzARcHC9vxyEiCfnuWUcquJy0GuCPtAkmHIJ+JnCyrKOYDLxuXvtN5/
 ecrvy42P+8EWBXf6urwwjlznih8Of1wUG6ZVSQVt9PMBMxelQDyEqpGqkl0ZkwLyPiPo
 LsB8QKu4HBxGt/yCLLUIccSCanHpOAkjtDr1qSqPSBeqvosbt2i3WVGBz5+mdeHWz0tv
 yhadWVETTEvXfqEKCtbUUc+WFJEOFwmFbJmMn5/NSm6Qn1jjjoz1826Z0Z4o2MqwNXB3
 X/Ag==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1701315770; x=1701920570;
 h=content-transfer-encoding:in-reply-to:from:content-language
 :references:to:subject:mime-version:date:message-id
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=FfF2STYIb5wlieDnt1wNwVyRKUXX2IN7OxQ8lxr0x1s=;
 b=VNnthZuHGnIMBJxGdkaV+9TEKU0qxUu02JQedew08FtLZtfMdtUz1VlqIJc5lFcG3a
 ZAsDSiquyDQRhODee9ShFchVzqn3BNYfh3ZwV7L1+NtHntEAtj2xD8I+6HdHGtcaKnZI
 6sh/2TNcJ6QtIZ0/tLYTtTo0TrQvE0kpNPCbEbUuNNUcQ6XES15Tem8VOIy46pXVg50c
 TsLAaIa0eDXBvgOuAJSfoOHMwMQtz/SHwoOJi5Yu3JOVnrglk3PdF7w85zSoQRws1Hq2
 6hPNFiikqcWHA6e3uAeYuztQT4ciBntDSwSaYNaiibVUalOVXJbWG/S3jNI5qvGiaTJD
 2ztw==
X-Gm-Message-State: AOJu0YwNg1JvWjfGc9qtcZHfwbNVKfdCFYdspnQ93d3lG8PVacsTXMNw
 j+66eiYeiL06mJARRYjNB3o=
X-Google-Smtp-Source: AGHT+IHCFEmvdZekqDZnbeS41D9KlWNHHKoYly4ME/CbiZFTVScK+OoATkTIigcKVM4FNwSxkrQq7w==
X-Received: by 2002:a17:903:32c8:b0:1cf:b12a:a9eb with SMTP id
 i8-20020a17090332c800b001cfb12aa9ebmr22551105plr.19.1701315770108; 
 Wed, 29 Nov 2023 19:42:50 -0800 (PST)
Received: from [192.168.1.2] (076-168-148-233.res.spectrum.com.
 [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id
 u23-20020a170902a61700b001cf6d5a034dsm144587plq.209.2023.11.29.19.42.48
 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128);
 Wed, 29 Nov 2023 19:42:49 -0800 (PST)
Message-ID: <2bbe9442-489d-f35e-8379-37326278798a@HIDDEN>
Date: Wed, 29 Nov 2023 19:42:46 -0800
MIME-Version: 1.0
References: <4447B955-7BC6-4641-B65D-F674D796B86E@HIDDEN>
Content-Language: en-US
From: Jim Porter <jporterbugs@HIDDEN>
In-Reply-To: <4447B955-7BC6-4641-B65D-F674D796B86E@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 11/29/2023 6:29 PM, Dave Abrahams wrote:
> Now issue the "set" command from a CMD shell. Notice that the "Path"
> environment variable has been renamed to "PATH" in Emacs.  This renaming
> interferes with some tools operating correctly e.g. the swift compiler
> (see https://swift.org).

This sounds like there's a bug in the Swift compiler. Environment 
variables on MS-Windows are case-insensitive: 
<https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/getenv-wgetenv?view=msvc-170>. 
That documentation just covers 'getenv' (and 'wgetenv'), but I'm 
reasonably certain the same applies to the Win32 APIs as well.

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...




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#67540: 29.1; Emacs on Windows incorrectly capitalizes some environment  variables
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Thu, 30 Nov 2023 07:12:02 +0000
Resent-Message-ID: <handler.67540.B67540.17013282692281 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 67540
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Dave Abrahams <dave@HIDDEN>
Cc: 67540 <at> debbugs.gnu.org
Received: via spool by 67540-submit <at> debbugs.gnu.org id=B67540.17013282692281
          (code B ref 67540); Thu, 30 Nov 2023 07:12:02 +0000
Received: (at 67540) by debbugs.gnu.org; 30 Nov 2023 07:11:09 +0000
Received: from localhost ([127.0.0.1]:52095 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1r8bCX-0000ah-4B
	for submit <at> debbugs.gnu.org; Thu, 30 Nov 2023 02:11:09 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:59760)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>)
 id 1r8bCU-0000a2-2Z; Thu, 30 Nov 2023 02:11:07 -0500
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 <eliz@HIDDEN>)
 id 1r8bCG-0000P3-0h; Thu, 30 Nov 2023 02:10:52 -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=/YaZFL+mYilW+OQCtUJb7gw5BucbHew28t4QS/Z+aPo=; b=li0TlY3JYQLQ
 QKm/VE40jff9AhXK+TtnySLwUMTkksFWQjGcV4TyU+1HofvcrdCPCaqgok479K3p7XbZcFoLP/jZY
 QG8Qum+hgzdqjnRGoE8xMYhPrI4yuPUPq+4dT7+AxoXw62OIzkc5Nruv+L/k28ZmuCP7KkzKWqox0
 gLrfDFGFk66iYsgKclyFTePPilLZFn3iADg5TpdqwCpqun4XroTl2H2zMYs1AjWc4tJYOS8XlWFFq
 6hLng14yOPUsu1os4W5O4lFqJ0dfo2gqjf+L+oQX5IVU462Zq0vS8YKuvwVNaZ2Zszk4tavTTsbZ2
 FZsGk4KgmPdDNfwu9fdGig==;
Date: Thu, 30 Nov 2023 09:10:43 +0200
Message-Id: <83fs0n67ik.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <4447B955-7BC6-4641-B65D-F674D796B86E@HIDDEN> (message from
 Dave Abrahams on Wed, 29 Nov 2023 18:29:26 -0800)
References: <4447B955-7BC6-4641-B65D-F674D796B86E@HIDDEN>
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

tags 67540 wontfix
thanks

> From: Dave Abrahams <dave@HIDDEN>
> Date: Wed, 29 Nov 2023 18:29:26 -0800
> 
> 
> 
> emacs -Q
> M-! set
> 
> Now issue the "set" command from a CMD shell. Notice that the "Path"
> environment variable has been renamed to "PATH" in Emacs.  This renaming
> interferes with some tools operating correctly e.g. the swift compiler
> (see https://swift.org).

You are saying that the swift compiler doesn't recognize "PATH"?  If
so, it's a bug in the swift compiler, since look up of environment
variables by cmd.exe at least is case-insensitive on Windows, and I
have yet to see a Windows program which doesn't do the same.  I
suggest reporting a bug against swift.

We cannot avoid up-casing Path and ComSpec in Emacs because that would
break many places in Emacs that assume they are spelled in CAPS.
(Obviously, PATH is much more critical than COMSPEC, but still.)  And
Emacs Lisp programs don't compare these variables case-insensitively.

So if swift and some other programs must have Path and not PATH, my
suggestion is to perform the letter-case changes when you invoke those
programs, and them alone, as doing that globally in Emacs will cause
problems elsewhere.




Message received at control <at> debbugs.gnu.org:


Received: (at control) by debbugs.gnu.org; 30 Nov 2023 07:11:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 30 02:11:09 2023
Received: from localhost ([127.0.0.1]:52097 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1r8bCX-0000am-HM
	for submit <at> debbugs.gnu.org; Thu, 30 Nov 2023 02:11:09 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:59760)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>)
 id 1r8bCU-0000a2-2Z; Thu, 30 Nov 2023 02:11:07 -0500
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 <eliz@HIDDEN>)
 id 1r8bCG-0000P3-0h; Thu, 30 Nov 2023 02:10:52 -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=/YaZFL+mYilW+OQCtUJb7gw5BucbHew28t4QS/Z+aPo=; b=li0TlY3JYQLQ
 QKm/VE40jff9AhXK+TtnySLwUMTkksFWQjGcV4TyU+1HofvcrdCPCaqgok479K3p7XbZcFoLP/jZY
 QG8Qum+hgzdqjnRGoE8xMYhPrI4yuPUPq+4dT7+AxoXw62OIzkc5Nruv+L/k28ZmuCP7KkzKWqox0
 gLrfDFGFk66iYsgKclyFTePPilLZFn3iADg5TpdqwCpqun4XroTl2H2zMYs1AjWc4tJYOS8XlWFFq
 6hLng14yOPUsu1os4W5O4lFqJ0dfo2gqjf+L+oQX5IVU462Zq0vS8YKuvwVNaZ2Zszk4tavTTsbZ2
 FZsGk4KgmPdDNfwu9fdGig==;
Date: Thu, 30 Nov 2023 09:10:43 +0200
Message-Id: <83fs0n67ik.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Dave Abrahams <dave@HIDDEN>
In-Reply-To: <4447B955-7BC6-4641-B65D-F674D796B86E@HIDDEN> (message from
 Dave Abrahams on Wed, 29 Nov 2023 18:29:26 -0800)
Subject: Re: bug#67540: 29.1;
 Emacs on Windows incorrectly capitalizes some environment  variables
References: <4447B955-7BC6-4641-B65D-F674D796B86E@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: control
Cc: 67540 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

tags 67540 wontfix
thanks

> From: Dave Abrahams <dave@HIDDEN>
> Date: Wed, 29 Nov 2023 18:29:26 -0800
> 
> 
> 
> emacs -Q
> M-! set
> 
> Now issue the "set" command from a CMD shell. Notice that the "Path"
> environment variable has been renamed to "PATH" in Emacs.  This renaming
> interferes with some tools operating correctly e.g. the swift compiler
> (see https://swift.org).

You are saying that the swift compiler doesn't recognize "PATH"?  If
so, it's a bug in the swift compiler, since look up of environment
variables by cmd.exe at least is case-insensitive on Windows, and I
have yet to see a Windows program which doesn't do the same.  I
suggest reporting a bug against swift.

We cannot avoid up-casing Path and ComSpec in Emacs because that would
break many places in Emacs that assume they are spelled in CAPS.
(Obviously, PATH is much more critical than COMSPEC, but still.)  And
Emacs Lisp programs don't compare these variables case-insensitively.

So if swift and some other programs must have Path and not PATH, my
suggestion is to perform the letter-case changes when you invoke those
programs, and them alone, as doing that globally in Emacs will cause
problems elsewhere.





Last modified: Thu, 30 Nov 2023 07:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.