Environment variable set by VALUE BIF not seen by syssearchpath() - Windows
Brought to you by:
rexx
Under Windows Regina sets the environment variable by calling the Win32 function SetEnvironmentVariable() and reads the environment variable using GetEnvironmentVariable().
regutil uses getenv() which doesn't see a change to an environment variable using SetEnvironmentVariable().
grep search of the .c files for "getenv(" shows
regfilesys.c: rpath = getenv(pathname);
regini.c: strcpy(result->strptr, getenv("USERPROFILE") );
regini.c: strcpy(result->strptr, getenv("HOME"));
regscreenux.c: tgetent(tcent, getenv("TERM"));
regscreenux.c: char * mycolumns = getenv("COLUMNS"), * mylines = getenv("LINES");
Good point. They probably all need to be changed in case any of those are set by VALUE BIF.
Changes made to other functions that call getenv() as noted above; except regscreenux.c, which is Unix only.