Re: K&R Exercise 6-2



On Fri, 29 Aug 2008 13:17:54 GMT, spambait@xxxxxxxxxx (Doug Miller)
wrote:

In article <16OdnWCI1MoDaCrVnZ2dnUVZ_q_inZ2d@xxxxxxxxxxxxx>, pfiland@xxxxxxxxxxxxxx wrote:

However, the definition of "alphabetical order" according to strcmp,
isn't exactly the same on different character sets.

In ASCII, a variable name like "A6A", comes before "ABA".
In EBCDIC, a variable name like "A6A", comes after "ABA".

Also uppercase letters come before lower case in ASCII,
but not in EBCDIC.

More specifically,
EBCDIC: a..z < A..Z < 0..9
ASCII: 0..9 < A..Z < a..z

Having been one who programmed on an EBCDIC machine, I wonder which
machines might still be using EBCDIC, given the ubiquity of ASCII?


.



Relevant Pages