Subject: Re: bug#6576: documentation `string-to-char' is incorrect

From: Andreas Schwab <[email-masked]>
Date: Wed, 07 Jul 2010 10:40:00 +0200

Eli Zaretskii <[email-masked]> writes:

>   "Return the Unicode codepoint of the first character of STRING.

This is not correct.  The value is just the internal encoding of the
character.  It's identical to (aref STRING 0) except that it returns 0
for the empty string.

>   Note: eight-bit characters are returned as single-byte values in the
>   range 160 to 255, inclusive."

That depends on the multibyteness of the string.

Andreas.

-- 
Andreas Schwab, [email-masked]
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."