X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Newsgroups: comp.lang.perl.misc,comp.os.msdos.djgpp Subject: Re: Perldoc error: "Could not create temp file" From: "A. Sinan Unur" <1usa AT llenroc DOT ude DOT invalid> References: Organization: Cornell University Message-ID: User-Agent: Xnews/2006.08.24 Lines: 53 NNTP-Posting-Host: b8f5e528de1f9a41aff581db535af498 X-Complaints-To: abuse AT worldnet DOT att DOT net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1208479637 b8f5e528de1f9a41aff581db535af498 (Fri, 18 Apr 2008 00:47:17 GMT) NNTP-Posting-Date: Fri, 18 Apr 2008 00:47:17 GMT Date: Fri, 18 Apr 2008 00:47:17 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Robbie Hatley" wrote in news:jbednbQ7qIihcJrVnZ2dnUVZ_i2dnZ2d AT giganews DOT com: > > "A. Sinan Unur" wrote: > >> Here is my guess, File::Temp is OK, but Pod::Perldoc only seems >> to check and take care of the shortcomings of Win32. However, the >> same shortcomings exist in DJGPP running on Win32 as well. I did >> look at MSWin_perldoc_tempfile in Perldoc.pm and it looks like >> the DJGPP would need special handling as well. ... > I'll try that, but i'm not hopeful. The error messages show > different random 10-character file names each time I try > running Perldoc. The point I was trying to make wasn't about the actual filename being generated but I was referring to the fact that Windows temp files required special handling. > So perldoc.pm is successfully coming up with > random file names, but they apparently get rejected somewhere. ... > Hmmm... 10 characters... I wonder if something in the DJGPP > version of Perl or perldoc.pm is expecting 8x3 DOS file names? > If so, it may reject 10x3. Actually, Perldoc.pm generates way more than 10 characters: perldoc_perlfunc_t4805fd11_1e43f.txt I don't know where you got 10 from. > How would I go about altering > perldoc.pm to use 8x3 instead of 10x3 temp file names? I used one method in the code I posted: prefix pd, lower 24 bits of time (6 hex digits) and three character extension. I only did that to be on the safe side. Sinan -- A. Sinan Unur <1usa AT llenroc DOT ude DOT invalid> (remove .invalid and reverse each component for email address) comp.lang.perl.misc guidelines on the WWW: http://www.rehabitation.com/clpmisc/