From: SourceForge.net <no...@so...> - 2007-12-14 22:37:42
|
Bugs item #1602539, was opened at 2006-11-24 16:53 Message generated for change (Comment added) made by hobbs You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1602539&group_id=10894 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 36. File System Group: obsolete: 8.5a6 Status: Open Resolution: None Priority: 8 Private: No Submitted By: Andy Goth (andygoth) Assigned to: Vince Darley (vincentdarley) Summary: [glob] adds stray NUL to end of mounted VFS directory names Initial Comment: % binary scan [glob -type d tclkit] c* out; set out 116 99 108 107 105 116 % binary scan [glob -type d *] c* out; set out 116 99 108 107 105 116 0 On Windows this has the effect of truncating the string if passed to puts. I haven't seen this in Linux. % puts <[glob -type d *]> <tclkit.exe% (the % is the next prompt; the newline never printed) ---------------------------------------------------------------------- >Comment By: Jeffrey Hobbs (hobbs) Date: 2007-12-14 14:37 Message: Logged In: YES user_id=72656 Originator: NO I'm not reproducing this on 8.5.0-rc and tclvfs head on XP: C:\build\vfs>make shell % package require vfs::zip 1.0 % vfs::zip::Mount C:/temp/lame.zip t filea2d970 % cd t % glob -type d * ACM misc html % puts <[glob -type d *]> <ACM misc html> % binary scan [glob -type d *] c* out ; set out 65 67 77 32 109 105 115 99 32 104 116 109 108 % info patch 8.5.0 ---------------------------------------------------------------------- Comment By: Andy Goth (andygoth) Date: 2006-11-30 16:08 Message: Logged In: YES user_id=8653 Originator: YES "I haven't seen this in Linux." I refer to the truncation, not the bug as a whole. In plain terms, the NUL happens regardless of operating system. I tested on both Windows and Linux operating systems and on both x86 and x86_64 architectures. The bug does not appear to be present in 8.4. ---------------------------------------------------------------------- Comment By: Don Porter (dgp) Date: 2006-11-28 09:54 Message: Logged In: YES user_id=80530 Originator: NO looks like I'm on the trail of a different (possibly related) bug then. When I know more I'll open a separate report. ---------------------------------------------------------------------- Comment By: Jeffrey Hobbs (hobbs) Date: 2006-11-28 09:51 Message: Logged In: YES user_id=72656 Originator: NO It repros for me in 8.5 head, but not 8.4.14 head. ---------------------------------------------------------------------- Comment By: Don Porter (dgp) Date: 2006-11-28 06:57 Message: Logged In: YES user_id=80530 Originator: NO Is this flaw seen only in the 8.5 development sources, or is it present in 8.4.14 as well? ---------------------------------------------------------------------- Comment By: Don Porter (dgp) Date: 2006-11-27 07:31 Message: Logged In: YES user_id=80530 Originator: NO I tried to duplicate this with trofs to gather more data, and [glob -type d $pattern] doesn't work at all with it. Don't know yet where that places the flaw(s). ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1602539&group_id=10894 |