[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

From: Andreas Schwab
Subject: bug#6576: documentation `string-to-char' is incorrect
Date: Wed, 07 Jul 2010 14:16:28 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

>> From: Andreas Schwab <address@hidden>
>> Cc: MON KEY <address@hidden>,  address@hidden
>> Date: Wed, 07 Jul 2010 10:40:00 +0200
>> Eli Zaretskii <address@hidden> 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.
> Which is Unicode, AFAIK.

No, it is an extension of Unicode.  Eight-bit characters, for example,
are not part of Unicode.

>> >   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.
> Eight-bit characters are defined as such only in multibyte strings.

That makes it even more incorrect.  For multibyte strings you'll get the
internal encoding, which is not in the range 160 to 255.


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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]