In article <[EMAIL PROTECTED]>, Stefan Monnier <[EMAIL PROTECTED]> writes:
>> If a multibyte string is given to mac-code-convert-string, >> and the string is made mutlibyte by string-to-multibyte from >> the raw-byte sequence (ex. inserting a file by raw-text in a >> mutlibyte buffer and extracting a string by >> buffer-substring), using Fstring_as_unibyte is correct. > Indeed, but sadly so. In order to make it clear that the multibyte string > is expected to only contain single-byte chars (including eight-bit-* chars), > a comment is in order. I agree. >> Please note that we don't have Fstring_to_unibyte because it >> should work the same way as Fstring_as_unibyte. > Actually no. string-to-unibyte should signal an error if it encounters > a non-ascii non-eight-bit-* char. Ah, hmmm, you are right. I remember to implement it in emacs-unicode. --- Kenichi Handa [EMAIL PROTECTED] _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel