[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

case query



Why is Shift-A not the same as Uppercase A and/or why does having control
bits reverse the sense of what is Uppercase/capital?

This is, why does

(si:code-upper-case-p (char-code #\Control-Shift-A))

   give NIL,
   but 

(si:code-upper-case-p (char-code #\Control-A))

   give T?


Moreover, if we chase it down a little farther, we get the following:

(char-code #\Control-A)        ==> 65
(char-code #\a)		       ==> 97

Yet:
(char-code #\Control-Shift-A)  ==> 97
(char-code #\A)		       ==> 65

which seems very inconistent (at least to me).

NICHAEL