Ok, will do. On Sun, May 20, 2018, 17:06 Eli Zaretskii wrote: > > From: joaotavora@gmail.com (João Távora) > > Date: Sun, 20 May 2018 16:43:59 +0100 > > Cc: Eli Zaretskii , monnier@iro.umontreal.ca, > vibhavp@gmail.com, > > emacs-devel@gnu.org > > > > > - I think `string-bytes' isn't guaranteed to return the number of > > > UTF-8 bytes. Rather you should encode the string explicitly to a > > > unibyte string using `encode-coding-string', and then use > > > `no-conversion' for the process coding systems. > > > > > I think Eli has already answered this authoritatively. > > Note that my response did assume you will bind coding-system-for-write > to utf-8 around the call to process-send-string, because relying on it > being so by default is asking for trouble. >