From noreply at rubyforge.org Mon Jan 15 00:14:43 2007 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Mon, 15 Jan 2007 00:14:43 -0500 (EST) Subject: [Win32utils-devel] [ win32utils-Bugs-7837 ] windows-pr error in declaration of NetWkstaSetInfo Message-ID: <20070115051443.E3642524232E@rubyforge.org> Bugs item #7837, was opened at 2007-01-15 00:14 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=7837&group_id=85 Category: None Group: Code Status: Open Resolution: None Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: windows-pr error in declaration of NetWkstaSetInfo Initial Comment: While installing windows-pr 0.6.2, I got the following error from RDoc: lib/windows/network_management.rb:422:30: Couldn't find NetWkstaSetInfo. Assuming it's a module Looking closer, I found that its definition: 422: def NetWkstaSetInfo.call(server, level, buf, error) 423: NetWkstaSetInfo.call(server, level, buf, error) == NERR_Success 424: end has an extra .call in the function name. This has two side effects (other than RDoc errors): 1) the standard function syntax of NetWkstaSetInfo(a, b, c, d) won't work, (which should raise alarm bells for any users) and 2) any attempt to use NetWkstaSetInfo.call(...) will almost certainly be infinitely recursive and trigger a stack overflow. PS As of this writing, there's no Rubyforge Category for windows-pr, so I can't assign this bug to the right type. Please fix this too. Thanks, Richard ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=7837&group_id=85 From noreply at rubyforge.org Mon Jan 15 09:04:18 2007 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Mon, 15 Jan 2007 09:04:18 -0500 (EST) Subject: [Win32utils-devel] [ win32utils-Bugs-7837 ] windows-pr error in declaration of NetWkstaSetInfo Message-ID: <20070115140418.BDBCD524110B@rubyforge.org> Bugs item #7837, was opened at 2007-01-14 22:14 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=7837&group_id=85 >Category: windows-pr Group: Code >Status: Closed >Resolution: Accepted Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: windows-pr error in declaration of NetWkstaSetInfo Initial Comment: While installing windows-pr 0.6.2, I got the following error from RDoc: lib/windows/network_management.rb:422:30: Couldn't find NetWkstaSetInfo. Assuming it's a module Looking closer, I found that its definition: 422: def NetWkstaSetInfo.call(server, level, buf, error) 423: NetWkstaSetInfo.call(server, level, buf, error) == NERR_Success 424: end has an extra .call in the function name. This has two side effects (other than RDoc errors): 1) the standard function syntax of NetWkstaSetInfo(a, b, c, d) won't work, (which should raise alarm bells for any users) and 2) any attempt to use NetWkstaSetInfo.call(...) will almost certainly be infinitely recursive and trigger a stack overflow. PS As of this writing, there's no Rubyforge Category for windows-pr, so I can't assign this bug to the right type. Please fix this too. Thanks, Richard ---------------------------------------------------------------------- >Comment By: Daniel Berger (djberg96) Date: 2007-01-15 07:04 Message: Thanks Richard. I've fixed it in CVS and added a 'windows-pr' bug category as well. This fix will be part of the 0.6.3 release. Regards, Dan ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=7837&group_id=85 From noreply at rubyforge.org Sun Jan 21 03:51:23 2007 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Sun, 21 Jan 2007 03:51:23 -0500 (EST) Subject: [Win32utils-devel] [ win32utils-Bugs-8039 ] Cannot send data that includes a binary 0 Message-ID: <20070121085123.918BE52417F2@rubyforge.org> Bugs item #8039, was opened at 2007-01-21 01:51 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=8039&group_id=85 Category: win32-pipe Group: Code Status: Open Resolution: None Priority: 3 Submitted By: David Koontz (dkoontz) Assigned to: Nobody (None) Summary: Cannot send data that includes a binary 0 Initial Comment: In pipe.c on lines 262 and 278, the size of the buffer to be written to the named pipe is calculated using strlen(ptr->chBuf). If you want to send data such as [0].pack("I") the strlen will report a size of zero. Instead I believe calling the Ruby string's size/length method would give a correct value. I have verified that this can work by using the Win32API lib to wrap the appropriate Win32 calls and passing in my packed data with the string.size as the buffer size. ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=8039&group_id=85 From noreply at rubyforge.org Tue Jan 23 21:07:11 2007 From: noreply at rubyforge.org (noreply at rubyforge.org) Date: Tue, 23 Jan 2007 21:07:11 -0500 (EST) Subject: [Win32utils-devel] [ win32utils-Bugs-8039 ] Cannot send data that includes a binary 0 Message-ID: <20070124020711.9CB625241C2A@rubyforge.org> Bugs item #8039, was opened at 2007-01-21 01:51 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=8039&group_id=85 Category: win32-pipe Group: Code Status: Open Resolution: None Priority: 3 Submitted By: David Koontz (dkoontz) >Assigned to: Daniel Berger (djberg96) Summary: Cannot send data that includes a binary 0 Initial Comment: In pipe.c on lines 262 and 278, the size of the buffer to be written to the named pipe is calculated using strlen(ptr->chBuf). If you want to send data such as [0].pack("I") the strlen will report a size of zero. Instead I believe calling the Ruby string's size/length method would give a correct value. I have verified that this can work by using the Win32API lib to wrap the appropriate Win32 calls and passing in my packed data with the string.size as the buffer size. ---------------------------------------------------------------------- >Comment By: Daniel Berger (djberg96) Date: 2007-01-23 19:07 Message: That sounds like a plan. This package needs to be refactored in general, so I'll add that to the list. Thanks, Dan ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=8039&group_id=85