[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Why would MS want to make XML break on UNIX, Perl, Python,


perl eof character

Rick Jelliffe  wrote:
>
> Sure, lets make XML unsuitable for use in UNIX pipes by allowing ^D.
> And for Perl and Python text-processing programs that use standard in and
> expect EOF (^D or ^Z).

On Unix, ^D is only interpreted as an end-of-file signal
when it's typed at a terminal, not when it's stored in a file
or transmitted over a socket or pipe.  Similarly for
^C, ^Z, ^\, ^S, ^Q, and other control characters; these have
no special meaning as far as the file system or stdio
are concerned.

CP/M and MS-DOS on the other hand *do* interpret ^Z as an EOF
character in text files.  CP/M doesn't keep track of file sizes
in bytes, only the number of blocks, so it needs an in-band EOF
indicator.  Some MS-DOS utilities inherited this convention from
CP/M (TYPE, EDLIN.COM) but Windows seems to have abandoned it;
EDIT.COM, NOTEPAD.EXE, and WORDPAD.EXE all have no trouble editing
text files with ^Z's in them.


--Joe English

  jenglish@f...

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.