delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/11/12/06:48:20

From: "Tim Van Holder" <notme AT spamproofemail DOT com>
Subject: Re: DJGPP environment variable and windows XP (I'm sorry...)
Date: Mon, 12 Nov 2001 11:52:16 +0100
Newsgroups: comp.os.msdos.djgpp
Organization: Anubex N.V.
Message-ID: <pan.2001.11.12.11.52.15.871.5675@spamproofemail.com>
References: <%opH7.14434$4W DOT 127518 AT typhoon DOT mw DOT mediaone DOT net> <3BEE6A2A DOT 7014BF77 AT phekda DOT freeserve DOT co DOT uk> <wExH7.15327$4W DOT 139433 AT typhoon DOT mw DOT mediaone DOT net>
User-Agent: Pan/0.10.0 (Unix)
Mime-Version: 1.0
X-Comment-To: "Jeremiah Zanin" <jzanin AT cs DOT unm DOT edu>
X-No-Productlinks: Yes
Lines: 32
NNTP-Posting-Host: 194.78.64.238
X-Trace: 1005562527 reader0.news.skynet.be 21080 194.78.64.238
X-Complaints-To: abuse AT skynet DOT be
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

In a burst of inspiration, "Jeremiah Zanin" <jzanin AT cs DOT unm DOT edu> wrote this
on Sun, 11 Nov 2001 17:26:04 +0100:

> The problem is that somehow the environment variable that gcc gets is
> *different* than the one reported by the "set" command.  If I run
> "command.com" instead of "cmd.exe" then the DJGPP environment variable
> is set to "D:\DJGPP\DJGPP.ENV" (the old one) but when I run the "set"
> command gcc still gives the same message and the environment variable
> resets to "D:\DJGPP\DJGPP.ENV", which is strange.  I have the win2k
> fixes btw.  I think what's happening is that when the subprocesses are
> spawned (through "command.com" and not "cmd.exe"), they are getting a
> set of environment variables from somewhere which I haven't found in
> XP...I'll keep digging.

That is normal behaviour - NT/2K/XP use the command.com environment when
running DOS apps (hence the fact that it resizes the console and removes
the scrollbar).  So naturally you get the command.com environment.
What's odd is that they differ.  From what I can tell under 2K, it does
change envvars that have long file names to their SFN equivalent for
command.com, but that's not what happens here.  It also seems to truncate
long envvars, but again, that's not what happens here.
If you upgraded to XP from a previous version of Windows, it might be
that it picked up the old setting.  You could try running msconfig.exe
(still exists in XP), but I'm not sure if that still has the environment
tab  under XP.
Otherwise, run regedit.exe and Edit/Search for keys that have D:\DJGPP.
Unless you feel comfortable changing the registry yourself, don't do
anything with the keys you find (if any); simply post a list here.

BTW - you don't need to reboot after changing the environment from the
system properties.  Just open a new console and it will have the new
environment settings.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019