Page 1 of 1

[BUG] Installer "string too long" with blank env-vars

Posted: Tue Nov 29, 2011 11:19 pm
by chris
When trying to set a variable to an existing - but empty - env-var it causes Installer to abort with a "string too long" error.

Eg, save the following code and execute it with Installer:

Code: Select all

(set #test
	(getenv "envtest")
)

(message #test)
now type the following in the Shell:

Code: Select all

setenv envtest ""
Try running the script again and it will abort with the aforementioned error.

Re: [BUG] Installer "string too long" with blank env-vars

Posted: Wed Nov 30, 2011 11:36 am
by tonyw
This looks like an installer problem.
I'll ask about it, it sounds vaguely familiar.

Re: [BUG] Installer "string too long" with blank env-vars

Posted: Thu Dec 01, 2011 2:04 am
by tonyw
OK, there WAS a problem with IDOS->SetVar() a long time ago, that was fixed.

However, your report has shown up a problem with IDOS->GetVar() reading an empty string and that has now been fixed so that it returns zero rather than (-1). Hopefully the new version of DOS will be released soon, fixing the problem.

Re: [BUG] Installer "string too long" with blank env-vars

Posted: Thu Dec 01, 2011 11:13 pm
by chris
tonyw wrote:OK, there WAS a problem with IDOS->SetVar() a long time ago, that was fixed.

However, your report has shown up a problem with IDOS->GetVar() reading an empty string and that has now been fixed so that it returns zero rather than (-1). Hopefully the new version of DOS will be released soon, fixing the problem.
Thanks mate, so it wasn't Installer after all!