Hi,

ooops, correcting myself...

Ingo Schwarze wrote on Mon, May 29, 2017 at 04:16:06PM +0200:

> It seems that here, you may need to measure the length of the character
> to insert in bytes and then call something like
> 
>   putbuf(cmd + 1, #bytes, 0);

It isn't that simple.  At this point, only the first byte of the
character has been read, so we don't even know the number of bytes
yet, and the subsequent ones are *not* available in cmd+2.

Implementing "r<non-ASCII>" looks like a major undertaking, in particular
since "r" uses the same state machine that is also used for "@", "F", "T",
"f", "t", and none of those have support for dealing with more than
one byte yet.

So handling multi-byte "r" should probably be treated as a separate
issue.

Yours,
  Ingo

Reply via email to