apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 40764] - apr_get_env calls with zero-length values should not return APR_ENOENT on Windows
Date Mon, 06 Nov 2006 15:29:43 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40764>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40764





------- Additional Comments From wrowe@apache.org  2006-11-06 07:29 -------
You realize zero in this case means the the MS API isn't correctly
requisitioning the space for a trailing NULL on the empty string?

I was going to ask if we can avoid the test for NULL and special
casing it, but apparently we would have to add the cycles to increment
the returned size by 1 (with or without a test) so the special case
looks as optimial as we can hope for.

Did you have a chance to look at the unix behavior on any variety
of unix platforms to see if there is at least a conformant subset?
At least the test will let users verify proper behavior, thank you 
for that addition as well.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Mime
View raw message