[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs 25.2, win64, env vars
From: |
Noam Postavsky |
Subject: |
Re: Emacs 25.2, win64, env vars |
Date: |
Sun, 11 Jun 2017 17:33:37 -0400 |
On Sun, Jun 11, 2017 at 4:33 PM, Fabrice Popineau
<address@hidden> wrote:
> 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.
It looks like there is code for it in callproc.c:
static bool
getenv_internal_1 (const char *var, ptrdiff_t varlen, char **value,
ptrdiff_t *valuelen, Lisp_Object env)
{
for (; CONSP (env); env = XCDR (env))
{
Lisp_Object entry = XCAR (env);
if (STRINGP (entry)
&& SBYTES (entry) >= varlen
#ifdef WINDOWSNT
/* NT environment variables are case insensitive. */
&& ! strnicmp (SSDATA (entry), var, varlen)