The story of getenv and friends is very sad.
getenv is (very suprisingly!) under a cloud
http://austingroupbugs.net/view.php?id=188
and the hotspot copy-to-buffer variant of the windows api returns a boolean
instead of a length, not allowing the caller to respond with a properly
resized buffer.  And of course Windows really wants you to use the UTF-16
"W" API.

Reply via email to