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 (<a href="http://www.w3counter.com/globalstats.php">http://www.w3counter.com/globalstats.php</a>) 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.<br>
<br><div class="gmail_quote">On Fri, Aug 13, 2010 at 3:32 PM, Walter Bright <span dir="ltr"><<a href="mailto:walter@digitalmars.com">walter@digitalmars.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im"><br>
<br>
Lars Tandle Kyllingstad wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Today, I noticed that the std.process functions setenv() and unsetenv()<br>
only have POSIX implementations. So I wrote Windows implementations for<br>
them:<br>
<br>
<a href="http://github.com/kyllingstad/ltk/blob/master/ltk/system.d" target="_blank">http://github.com/kyllingstad/ltk/blob/master/ltk/system.d</a><br>
<br>
You'll also note a new Windows implementation of getEnv() and a new<br>
function allEnv().<br>
<br>
</blockquote>
<br></div>
Great!<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Seeing as this is my first foray into Windows API land ever, I thought<br>
I'd post it here before incorporating anything into Phobos. Please<br>
comment -- in particular I'm curious about whether it is correct to use<br>
the UTF-16 functions.<br>
<br>
<br>
</blockquote>
<br></div>
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.<div><div></div><div class="h5">
<br>
_______________________________________________<br>
phobos mailing list<br>
<a href="mailto:phobos@puremagic.com" target="_blank">phobos@puremagic.com</a><br>
<a href="http://lists.puremagic.com/mailman/listinfo/phobos" target="_blank">http://lists.puremagic.com/mailman/listinfo/phobos</a><br>
</div></div></blockquote></div><br>