Subject: tcl, netbsd-68k, bug?
To: Peter Seebach <seebs@solon.com>
From: Bruce Albrecht <Bruce.Albrecht@seag.fingerhut.com>
List: current-users
Date: 02/21/1996 14:25:54
Peter Seebach writes:
> I noticed that the IO and file tests failed with some frequency. Has
> anyone gotten this working, and is there anything obvious?
It's because Tcl expects the size returned by stat to be 32 bits, but
NetBSD returns 64 bits. Here's a patch:
diff tclUnixAZ.c /cdrom/tcl/tcl7.4p1
689c689
< sprintf(interp->result, sizeof(statBuf.st_size)==8 ? "%qd" : "%ld", statBuf.st_size);
---
> sprintf(interp->result, "%ld", statBuf.st_size);