X-Debbugs-CC: monnier@iro.umontreal.ca Two patches attached: Patch 1: bindat (str, strz): Reject multibyte input strings * lisp/emacs-lisp/bindat.el (str) (strz): Signal an error if the user attempts to pack a multibyte string. * test/lisp/emacs-lisp/bindat-tests.el (str) (strz): Add tests. Patch 2: bindat (str, strz): Convert to unibyte when packing * lisp/emacs-lisp/bindat.el (str) (strz): Allow callers to pack a multibyte string if it only contains ASCII and `eight-bit' characters. * doc/lispref/processes.texi (Bindat Types): Update documentation. * test/lisp/emacs-lisp/bindat-tests.el (str) (strz): Update tests.