Re: K&R Exercise 6-2



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

--
Regards,
Doug Miller (alphageek-at-milmac-dot-com)

Join the UseNet Improvement Project: killfile Google Groups.
http://www.improve-usenet.org

Get a copy of my NEW AND IMPROVED TrollFilter for NewsProxy/Nfilter
by sending email to autoresponder at filterinfo-at-milmac-dot-com
You must use your REAL email address to get a response.

Download Nfilter at http://www.milmac.com/np-120.exe

.



Relevant Pages

  • Re: K&R Exercise 6-2
    ... isn't exactly the same on different character sets. ... Also uppercase letters come before lower case in ASCII, ... Having been one who programmed on an EBCDIC machine, ...
    (comp.lang.c)
  • [OT] character sets (Re: How to show special "table chars" in shell)
    ... > refered to ASCII values 128-255. ... > NLS support). ... The boxed characters are specific to some character sets, ... of the word "common" ...
    (comp.unix.shell)
  • Re: Simple high-ascii character encoding
    ... *any* of the character sets of which ASCII is a subset ... it makes no sense to speak of "extended ASCII ... a given character may appear in two different character sets ... > ASCII code. ...
    (comp.infosystems.www.authoring.html)
  • Re: Case conversion functions
    ... Which character sets are supported by the various implementations ... AFAIK all accomodated the 7 bit ASCII set (at least as ... declare what charset/translation is used. ...
    (comp.lang.forth)
  • Re: [Full-disclosure] [WEB SECURITY] Re: noise about full-width encoding bypass?
    ... decompose various character sets like those containing your full-width single ... Unicode normalization forms in use. ... characters into their ASCII equivalents. ...
    (Full-Disclosure)