medley icon indicating copy to clipboard operation
medley copied to clipboard

(CHARCODE "^X") implementation differs from IRM documentation

Open MattHeffron opened this issue 2 years ago • 0 comments

Describe the bug IRM (section 2.5) states that the ^ prefix on a character clears the 7th bit (64), but the implementation clears both the 6th and 7th bits (96).

To Reproduce Steps to reproduce the behavior:

  1. In any sysout, in an Interlisp EXEC:
  2. (LIST (CHARCODE "^A") (CHARCODE "^a"))
  3. Returns: (1 1)

Expected behavior This is not what the documentation implies would happen, but it is what I expected to happen. (All control characters are in the 0-31 range.) The documentation implies that ^a corresponds to ! (charcode = 33).

Additional context This seems to be just a documentation issue, as the implementation is correct, IMHO.

MattHeffron avatar Jan 07 '24 00:01 MattHeffron