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

Re: Is CDATA "structure"?

  • From: John Cowan <cowan@l...>
  • To: XML Dev <xml-dev@i...>
  • Date: Tue, 20 Jul 1999 10:29:53 -0400

java tty
Nik O wrote:

> <rant original_post_to="Z3950IW">
>   <excerpt>
> ..much of the internet is still constrained by Unix's feeble 7-bit character
> TTY legacy.  This latter issue is echoed in Java's lack of _unsigned_ bytes
> (!), and XML's auto-conversion of CRLF-delimited text records to
> LF-delimited records (yet another legacy/bias from Unix).
>   </excerpt>
>   <question>
> Is there historical basis to the above statement?  It was a deduction based
> upon the old Xenix "text mode" I/O and the probability that most of the
> developers of the XML standard were based in the Unix world.
>   </question>
> </rant>

Java doesn't have unsigned arithmetic values (and type *byte* is
meant to be arithmetic) because they have all kinds of surprising
results if misused: see the relevant sections of _Writing Solid C_.
The purposes served by unsigned bytes are better served by characters;
you can't just cast bytes to characters, though, but need to use
c = b < 0 ? b + 256 : b instead.

The use of LF as newline is Unix, but is also ISO; the character
code was explicitly ambiguous between advance-paper and go-to-new-line.
In the rarely used C1 character set, there are two separate control
characters to disambiguate these functions.  As for "TTY legacy",
real Teletypes (at least models 33/35) want CR/LF, not just LF.

-- 
	John Cowan	http://www.ccil.org/~cowan	cowan@c...
Schlingt dreifach einen Kreis um dies! / Schliesst euer Aug vor heiliger Schau,
Denn er genoss vom Honig-Tau / Und trank die Milch vom Paradies.
			-- Coleridge / Politzer

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)



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.