Question about os::getenv()
Martin Buchholz
martinrb at google.com
Tue Mar 10 20:30:25 UTC 2015
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/serviceability-dev/attachments/20150310/bd79652b/attachment-0001.html>
More information about the serviceability-dev
mailing list