[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#562497: texlive-font-utils: epstopdf --filter: Cannot open standard input



Norbert Preining schrieb am Freitag, den 25. Dezember 2009:

> On Do, 24 Dez 2009, Roland Rosenfeld wrote:
> > -open(IN, '<', $InputFilename) or error "Cannot open",
> > +open(IN, "<$InputFilename") or error "Cannot open",
> 
> That did it fix for you?

Yes.

> If yes, then I would count that as a bug in *perl*, as the 3
> argument way of calling open is the one recommended/documented, see
> 	man perlio
> or any other.

I know, that this is recommended.  But maybe there is some kind of
"magic" which supports stdin?  If --filter is used, $InputFilename is
set to "-", maybe 
 open(IN, '<-')
works while
 open(IN, '<', '-')
is not supported?

At least "perldoc -f open" mentions only the first one:

               In the 2-arguments (and 1-argument) form opening '-' opens
               STDIN and opening '>-' opens STDOUT.

while there is no word about a similar mechanism with the 3-arguments
call of open().

Tschoeeee

        Roland



Reply to: