medley
medley copied to clipboard
(CHARCODE "^X") implementation differs from IRM documentation
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:
- In any sysout, in an Interlisp EXEC:
- (LIST (CHARCODE "^A") (CHARCODE "^a"))
- 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.