[phobos] getenv, setenv and unsetenv implemented for Windows
dsimcha at gmail.com
Fri Aug 13 12:41:25 PDT 2010
Just as a general reference since I've been meaning to ask for awhile and
this reminded me, do we really still care about supporting '9x/ME? The last
version in this line was released an entire decade ago and hasn't been
supported by Microsoft in 4 years. Also, according to this link (
http://www.w3counter.com/globalstats.php) none of the '9x/ME versions of
Windows even register on the market share meter anymore. I'm not saying we
should go out of our way to cripple '9x/ME support, but I certainly don't
think it's worth any serious effort.
On Fri, Aug 13, 2010 at 3:32 PM, Walter Bright <walter at digitalmars.com>wrote:
> Lars Tandle Kyllingstad wrote:
>> Today, I noticed that the std.process functions setenv() and unsetenv()
>> only have POSIX implementations. So I wrote Windows implementations for
>> You'll also note a new Windows implementation of getEnv() and a new
>> function allEnv().
> Seeing as this is my first foray into Windows API land ever, I thought
>> I'd post it here before incorporating anything into Phobos. Please
>> comment -- in particular I'm curious about whether it is correct to use
>> the UTF-16 functions.
> It is correct to use the "A" functions for Win9x, and the "W" functions for
> all the other Windows versions. To see how to accomplish this, see
> std\file.d and grep for useWfuncs.
> phobos mailing list
> phobos at puremagic.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the phobos