Re: getenv

new topic     » goto parent     » topic index » view thread      » older message » newer message

Jeremy Cowgar wrote:
> 
> Kenneth Rhodes wrote:
> > 
> > If the problem is under Windows, shouldn't that
> > be where the fix is applied?
> >
> 
> Yes, that would be ideal, but I do think that is possible. Windows does not
> provide the means (that I can find) to tell if an environment variable is set
> with an empty value or unset. For both of those cases, it returns the same
> value.
> 
> So, we have two options. #1 dumb down the Linux version so that Euphoria is
> consistent or document that getenv() works differently on Windows and Linux
> (which is not my favorite option).
>  
> Maybe someone else knows a function call we can make in the win/dos api?
> 
> --
> Jeremy Cowgar
> <a href="http://jeremy.cowgar.com">http://jeremy.cowgar.com</a>


Once again, I'm probably talking over my head here...

I do understand the simplicity of "dumbing down" the Linux version
of Euphoria, its the easiest way out-- at least as far as cross-platform
consistency.  However, it strikes me as fundamentally wrong to throw away,
ignore, or mis-report information which might be useful.

So is it really that difficult to document the deficient functioning
of Windows? blink

Can cross-platform consistency be achieved by a platform contingent
routine?  Or did we drop platform()?


Ken Rhodes
Folding at Home: http://folding.stanford.edu/
100% MicroSoft Free
SuSE Linux 10.3
No AdWare, SpyWare, or Viruses!
Life is Good,  smile

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu