Well then, I wonder what its doing in XML-Parser.  I can't imagine some valid
XML that would depend on reading CRLF literally, but then, I'm no expert.
Perhaps it's possible to have quoted data in XML files that contains ^Z?  If so,
then maybe the correct change to XML-Parser would be:

        binmode(FILE) if ($^O eq 'Windows);

(or whatever the ID is for Windows),

> -----Original Message-----
> From: Dan Sugalski [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, February 16, 2000 10:02 AM
> To: Jordan Henderson; '[EMAIL PROTECTED]'
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: RE: does binmode() work properly on VMS?
> 
> 
> At 09:41 AM 2/16/00 -0500, Jordan Henderson wrote:
> >I'm wondering if the use of binmode() is really a good idea 
> in any case.
> >
> >It has no effect on Unix systems.  My guess is that on 
> Windows systems it 
> >allows
> >reading '\r' for '\n'.  I guess there's a potential for 
> problems in that case
> >for quoted strings or something.  I guess I would be 
> surprised if XML was
> >dependent on differing whitespace, but I'm no expert here.
> 
> It does two things on Windows:
> 
> 1) It allows reading past a ^Z in a file (which is a good thing :)
> 2) It disables CRLF->LF translation
> 
> Not quite as big a change in behaviour as you get when binmode()ing a 
> milti-index RMS file... :)
> 
>                                       Dan
> 
> --------------------------------------"it's like 
> this"-------------------
> Dan Sugalski                          even samurai
> [EMAIL PROTECTED]                         have teddy bears and even
>                                       teddy bears get drunk
> 

Reply via email to