From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Fabrice Popineau Newsgroups: gmane.emacs.devel Subject: Emacs 25.2, win64, env vars Date: Sun, 11 Jun 2017 22:33:13 +0200 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="94eb2c084666c5940b0551b51de0" X-Trace: blaine.gmane.org 1497213223 1147 195.159.176.226 (11 Jun 2017 20:33:43 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 11 Jun 2017 20:33:43 +0000 (UTC) To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jun 11 22:33:38 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dK9YH-0008Rn-Ox for ged-emacs-devel@m.gmane.org; Sun, 11 Jun 2017 22:33:37 +0200 Original-Received: from localhost ([::1]:35106 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dK9YN-0005k6-75 for ged-emacs-devel@m.gmane.org; Sun, 11 Jun 2017 16:33:43 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43691) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dK9YH-0005jz-1D for emacs-devel@gnu.org; Sun, 11 Jun 2017 16:33:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dK9YG-0007vH-7n for emacs-devel@gnu.org; Sun, 11 Jun 2017 16:33:37 -0400 Original-Received: from mail-qt0-x229.google.com ([2607:f8b0:400d:c0d::229]:34022) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dK9YG-0007v7-3P for emacs-devel@gnu.org; Sun, 11 Jun 2017 16:33:36 -0400 Original-Received: by mail-qt0-x229.google.com with SMTP id c10so107752269qtd.1 for ; Sun, 11 Jun 2017 13:33:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=WtHwcRQa6Lwb8n+G7LMCs/g/Pu2+vpyU1ProKwYaTJM=; b=QYAYKnIcvTdRfMHp90xVjGJdq3Fif6QbzIoW3kmjz3u2N/KKnG+ZygkSyFTm+r5l0Q dZMNIW9vvtyB5XpsquBTmupgqf6tMdz7bmjouBnRUA2e8pEY/lLP6hXK+Tr0PyBFEaNe xA0QPwWQIBGoTmwQ+Clq4bGr313jXS1SZhw0pivVT8a0ObO13wCJEV8iZCU0wJ2P1p54 +eXd+ABsXA9TK0ril8WnbFrCyXMJwgI0g3oNt5K841i+n9meM0E0beBBkI9HRMKk6sZP hQxApWCpNHsw07nNaMdpPUu0ODfv4Ssh/tznF3A9KnkJ9OslKCpQKIjgq53ZGqfUjds5 iQ5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=WtHwcRQa6Lwb8n+G7LMCs/g/Pu2+vpyU1ProKwYaTJM=; b=uodLiyU0eN4WMqLBP5XyxjEfgj+93IpuVlejgdgH1KtGjCIt3bBRb1YAUqYJ+UVD5v R8S4bRRZErzECAk/arG4PZXt9cfDUhaKNsfOmd7TlT4X0LLhqX6X2hsNXc6pMYmkX8l5 WaPV5RQfzGOMgNNu+qeEyzS3ykDo8VLqPXuMjS2sjPlkLfHBdSPHnd5p3rgTHer7d8N9 6WuQoZ5FGOMRVSo8DLCo26GpGf9SIYo/zXFtw9Tz8wdj6LCKJqci1WUn611eTGTOpYxU dSpgr0jeQd28omGv48CsDz2Vg/Lh8wwVjXu4fOczX5c7umP7m9dejMYfvT5voNFE9RrY O4xg== X-Gm-Message-State: AKS2vOzabNXB2HuaPsuaFwu8PqpEzjlFAGjwrRB3v89RYr3aTWOm21xJ +i3360w67RhL/oJUwO9uWQzFkiqH3et/ X-Received: by 10.55.141.67 with SMTP id p64mr66153688qkd.164.1497213213969; Sun, 11 Jun 2017 13:33:33 -0700 (PDT) Original-Received: by 10.140.97.55 with HTTP; Sun, 11 Jun 2017 13:33:13 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c0d::229 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:215583 Archived-At: --94eb2c084666c5940b0551b51de0 Content-Type: text/plain; charset="UTF-8" Hi, I might have found a bug in the way Emacs is handling environment variables under Windows. I start Emacs with -Q and I can do the following : (getenv "TEMP") "C:\\Users\\Fabrice\\AppData\\Roaming\\Local\\Temp" (getenv "temp") "C:\\Users\\Fabrice\\AppData\\Roaming\\Local\\Temp" (setenv "TEMP" "c:/Temp/") "c:/Temp/" (getenv "TEMP") "C:\\Users\\Fabrice\\AppData\\Roaming\\Local\\Temp" (getenv "temp") "C:\\Users\\Fabrice\\AppData\\Roaming\\Local\\Temp" (setenv "temp" "c:/Temp/") "c:/Temp/" (getenv "TEMP") "c:/Temp/" (getenv "temp") "c:/Temp/" AFAIK, environment variables are case insensitive under Windows. So there is something that is not taken care of for the case of case insensitive environment variables. I haven't (yet) been able to find where this magic happens however. Any idea about where to look for will be welcome :-) Regards, Fabrice --94eb2c084666c5940b0551b51de0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

I might have found a bug in the way= Emacs is handling environment variables under Windows.

I start Emacs with -Q and I can do the following :

(getenv "TEMP")
"C:\\Users\\Fabrice\\A= ppData\\Roaming\\Local\\Temp"
(getenv "temp")
"C:\\Users\\Fabrice\\AppData\\Roaming\\Local\\Temp"

(setenv "TEMP" "c:/Temp/")
= "c:/Temp/"
(getenv "TEMP")
"C:= \\Users\\Fabrice\\AppData\\Roaming\\Local\\Temp"
(getenv &qu= ot;temp")
"C:\\Users\\Fabrice\\AppData\\Roaming\\Local\= \Temp"

(setenv "temp" "c:/Temp= /")
"c:/Temp/"
(getenv "TEMP")=
"c:/Temp/"
(getenv "temp")
"c:/Temp/"

AFAIK, environment v= ariables are case insensitive under Windows.
So there is somethin= g that is not taken care of for the case of case insensitive environment va= riables.
I haven't (yet) been able to find where this magic h= appens however.

Any idea about where to look f= or will be welcome :-)

Regards,

Fabrice

--94eb2c084666c5940b0551b51de0--