>> The problem is that by passing `output' to decode-coding-string you >> clearly consider `output' to be a sequence of bytes. But to >> construct `output' you use pieces of `string' so you have to make >> sure that `string' is also a sequence of bytes. Assuming `string' >> comes from the TeX process, you can do that by making sure that that >> process's output coding system is `binary' (or `raw-text' if you >> want EOL-conversion).
> I already mentioned that this _is_ exactly what we do already: the > problem is that some TeX systems are set up to quote _some_ bytes from > utf-8 in the ^^xx hexadecimal notation, and let some bytes through > unchanged. I'm not sure I understand. What I meant above is not "make sure the TeX process only outputs binary", but really set the `process-coding-system' of the TeX process such that its output coding-system is `raw-text' or `binary'. This *should* (aka "module bugs") encusre that the strings passed to the process filter are unibyte. If the string goes through a buffer instead of being processed directly from the process filter, then you should also ensure that this buffer is unibyte. Stefan _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel