[fpc-pascal] environmentstrings in windows

Vincent Snijders vsnijders at quicknet.nl
Thu Dec 14 21:08:18 CET 2006


Michael Van Canneyt schreef:
> 
> On Thu, 14 Dec 2006, Vincent Snijders wrote:
> 
>> Michael Van Canneyt schreef:
>> In windows it doesn't seem to be allowed either:
>> C:\lazarus>set =test=p
>> De syntaxis van de opdracht is onjuist.
> 
> On the command-line. 
> Have you tried in the 'My Computer' properties, 'System' tab, under 'Advanced' ?
> There is a GUI dialog to set environment variables, probably it allows this.

I tried this. I got no error, but my new variable '=test'  didn't show 
up in the environmnent variables, not in the strings return by 
GetEnnvironmentString.

> 
> 
>>> So code relying on this will not be cross-platform.
>> My problem is code relying in the fact that GetEnvironmentString(1) doesn't
>> return strings that start with '='. Will you fix that? Or must code using
>> GetEnvironmentString be aware that on some platforms these strings can start
>> with =.
> 
> I would have to look at the code. Please enter a bug report, so it won't be 
> forgotten.

http://www.freepascal.org/mantis/view.php?id=7967

Vincent



More information about the fpc-pascal mailing list