[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-serviceability-dev
Subject:    Re: Question about os::getenv()
From:       Martin Buchholz <martinrb () google ! com>
Date:       2015-03-10 20:30:25
Message-ID: CA+kOe0_wSFuueYhmJ3mj5sGxRdxi4V_9o9W7cS_T8OWs2b+5fw () mail ! gmail ! com
[Download RAW message or body]

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.

[Attachment #3 (text/html)]

<div dir="ltr"><div class="gmail_extra">The story of getenv and friends is very \
sad.</div><div class="gmail_extra">getenv is (very suprisingly!) under a \
cloud</div><div class="gmail_extra"><a \
href="http://austingroupbugs.net/view.php?id=188">http://austingroupbugs.net/view.php?id=188</a><br></div><div \
class="gmail_extra">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 \
&quot;W&quot; API.</div></div>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic