delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2008/04/17/21:00:10

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: <zd6dnbRZ8J5AdJvVnZ2dnUVZ_rignZ2d AT giganews DOT com> <Xns9A8321CB0C79asu1cornelledu AT 127 DOT 0 DOT 0 DOT 1> <YNqdnXMJMcgtkJrVnZ2dnUVZ_qOknZ2d AT giganews DOT com> <Xns9A836B4AECDF7asu1cornelledu AT 127 DOT 0 DOT 0 DOT 1> <CuSdnZLhluU2BZrVnZ2dnUVZ_oaonZ2d AT giganews DOT com> <Xns9A83A037AEAF7asu1cornelledu AT 127 DOT 0 DOT 0 DOT 1> <jbednbQ7qIihcJrVnZ2dnUVZ_i2dnZ2d AT giganews DOT com>
Organization: Cornell University
Message-ID: <Xns9A83D37731059asu1cornelledu@127.0.0.1>
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" <see DOT my DOT signature AT for DOT my DOT email DOT address> 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019