In article <[EMAIL PROTECTED]>, Benjamin Riefenstahl <[EMAIL PROTECTED]> writes:
>>  but we must set 4 for XXX-with-signature. 

> Really?  I thought XXX-with-signature just adds 2 additional bytes,
> regardless how long the string is.  That should be covered by "+
> CONVERSION_BUFFER_EXTRA_ROOM" (== 256) in encoding_buffer_size() and
> similar extra space in other places.  I may be missing something, of
> course.

Those extra 256 bytes were for internal use only, for
instance, to produce some error message of CCL program.
But, as it's too much to require 4 times bigger output
buffer for UTF-16 encoding, I documented those extra 256
bytes in the docstring of define-ccl-prgoram, and changed
ccl-encode-mule-utf-16le/be-with-signature to require only 2
times bigger output buffer.

---
Ken'ichi HANDA
[EMAIL PROTECTED]


_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to