Re: Script OK on RO... but fails on PC nsPerl

[email protected] (Philip Perry) Sun, 7 Jul 2002 23:14:29 +0000 (GMT)
Newsgroups perl.riscos
Message-ID <[email protected]>
Hello All,

On Sun 07 Jul, Richard Proctor wrote:
> 
> On Sun 07 Jul, Philip Perry wrote:
> > On Sat 06 Jul, Richard Proctor wrote:
> > > 
> > > On Fri 05 Jul, Philip Perry wrote:
> > > > Hello All,
> > > > 
> > > > I'm having a problem with processing an Windows Outlook Express '.dbx'
> > > > file.
> > > > 
> > > > The script I've written to cut down the file to plain text works a treat
> > > > on the RISC OS port of Perl5.... but when I run it on the nsPerl port
> > > > installed on my friends PC it appears to choke on bytes containing the
> > > > value 0x1A. If these bytes are removed in a text editor, all then goes
> > > > well on the PC.
> > > > 
> > > 
> > > The problems is with windows treating text and binary files differently.
> > > 
> > > If you make the input Binary then it will work.
> > 
> > Hello All,
> > Thanks Richard for your reply,
> > 
> > Sorry to be such a dunce on this topic but how do I go about making the
> > input binary?
> > 
> 
> In my reply yesterday I had added the necesary line to your program...
> 
> add:
> 
> binmode INFILE;
> 
> after opening the file, you can leave it in for all systems, under Riscos
> this is in effect a no-op.
> 
> Richard

Sorry, never scrolled down to the script! Feeling slightly foolish...

Best regards, Philip.


-- 
Philip Perry, [email protected]
http://www.pjperry.freeuk.com/