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

Re: Gag me with a blunt …

  • From: John Cowan <jcowan@r...>
  • To: "HUGHES,MARK (Non-HP-FtCollins,ex1)" <mark_hughes@n...>
  • Date: Mon, 19 Mar 2001 13:03:41 -0500

ascii blunt
HUGHES,MARK (Non-HP-FtCollins,ex1) wrote:


>> From: John Cowan [mailto:cowan@m...]
>> Absolutely right.  The ASCII/Unicode analogue of 0x15 is 0x0a (LINE
>> FEED), and the ASCII/Unicode analogue of 0x25 is 0x85 (NEW LINE).  So
>> when there is an 0x25 in EBCDIC data, it is correctly converted to
>> 0x85.
> 
>   So, why did they choose not to use 0x0D (CR) for 0x25/0x85, since
> that's the semantically-closest character?  Do they also have a
> CR-equivalent character that isn't being mentioned here,

Yes.  EBCDIC has distinct CR, LF, and NEL characters.  But so does
extended ASCII -- the 0x80-0x9F control characters were pre-existing
and not introduced by Unicode.

In any event, it is not clear that CR is closer to NEL than LF is.
CR, LF, CR+LF, and NEL are all used by different environments.

> and is useful
> information lost by converting 0x25 to 0x0D?

Roundtrippability.  EBCDIC CR corresponds to ASCII CR, and ditto for
LF and NEL.  But the *conventions of use* of these characters differ
among the various systems.

>   No matter how big they are, one company's platform-specific problems
> should not be used to drive the rest of the industry.  I should think
> that would be self-evident.

Why should Apple's CR-only line ending, which is unique to the Mac,
be accepted (as it is), and IBM's NEL-only line ending, which is
shared by various big-iron systems, not be?
 
>   Now, if IBM wants to submit NEL and other Unicode 3.0 whitespace
> support as a change for XML 1.1 or further, more power to 'em.  But
> changing XML 1.0 for their vanity is not a Thing Which Should Happen.

The proposed change would create 1.0.1, and it is not a matter of
vanity, but interoperability.


-- 
There is / one art             || John Cowan <jcowan@r...>
no more / no less              || http://www.reutershealth.com
to do / all things             || http://www.ccil.org/~cowan
with art- / lessness           \\ -- Piet Hein


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.