Skip Menu |

This queue is for tickets about the OpenFrame CPAN distribution.

Report information
The Basics
Id: 363
Status: open
Priority: 0/
Queue: OpenFrame

People
Owner: Nobody in particular
Requestors: johanl [...] bahnhof.se
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.09
Fixed in: (no value)



Subject: Images read as text files on Windows
Downloaded OpenFrame and tried the Hangman examples on my w2k system. The hangman images are garbled. It seems the files are opened and read as text instead of binary on Windows (as opposed to Unix where a file is a file). I patched the Slot::Images file to include a binmode($fh); statement before the file is slurped. That seemed to fix my immediate problem, but after having spent all of five minutes in total with the code I'm sure you can see any other gotchas at other places in the code if they exist :) "perldoc -f binmode" states that it: "Arranges for FILEHANDLE to be read or written in "binary" or "text" mode on systems where the run-time libraries distinguish between binary and text files. If FILEHANDLE is an expression," so including it should work on any platform. /J
[guest - Sat Mar 16 13:57:29 2002]: Show quoted text
> Downloaded OpenFrame and tried the Hangman examples on
my w2k system. Show quoted text
> > The hangman images are garbled. It seems the files are
opened and read Show quoted text
> as text instead of binary on Windows (as opposed to Unix
where a Show quoted text
> file is a file). >
Gah! Thanks for that, we tested on just about every platform we could think of, but don't have a win32 box available to us. I'll insert binmodes whereever there is a need. Cheers, James.