On 16 Feb 2023, at 19:45, Ben Rudiak-Gould <benrudiak@gmail.com> wrote:


On Thu, Feb 16, 2023 at 8:09 AM Barry <barry@barrys-emacs.org> wrote:
This is valid and does not match your rules. ‘\x9b’ that is the ANSI CSI in 8-bit.
In 7-bit it is ‘\x1b[‘.

Shouldn't that be b‘\x9b’?

No. I can work in unicode internally and only encode to bytes for output.

Barry