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

A forum for general AmigaOS 4.x support questions that are not platform-specific
Post Reply
chris
Posts: 552
Joined: Sat Jun 18, 2011 11:05 am
Contact:

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

Post 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.
User avatar
tonyw
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 1438
Joined: Wed Mar 09, 2011 1:36 pm
Location: Sydney, Australia

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

Post by tonyw »

This looks like an installer problem.
I'll ask about it, it sounds vaguely familiar.
cheers
tony
User avatar
tonyw
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 1438
Joined: Wed Mar 09, 2011 1:36 pm
Location: Sydney, Australia

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

Post 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.
cheers
tony
chris
Posts: 552
Joined: Sat Jun 18, 2011 11:05 am
Contact:

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

Post 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!
Post Reply