For Programmers: Free Programming Magazines  


Home > Archive > Tcl > July 2004 > temporary file names









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author temporary file names
Bob Techentin

2004-07-30, 8:56 pm

I've just documented (and I'm in the process of fixing) an iwidgets
bug caused by a non-existent temp directory. I reported bug 1000891
on iwidgets canvasprintbox, which tries to create a temporary file in
"/tmp," which doen't work on Windows.

I see that there is a full featured tempfile function in
tcllib::fileutil, but I don't want to make iwidgets dependent on
tcllib, so I'm working on a patch to incorporate some smarter code
into the canvasprintbox.

But it seems to me that the real problem is that the core file command
doesn't have 'tempfile' or 'tempname'. It strikes me as pretty
straightforward to wrap a call to tmpnam(), so I'm working on a TIP to
go with a patch that I submitted last w.

Bob
--
Bob Techentin techentin.robert@NOSPAMmayo.edu
Mayo Foundation (507) 538-5495
200 First St. SW FAX (507) 284-9171
Rochester MN, 55901 USA http://www.mayo.edu/sppdg/



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com