From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#6576: documentation `string-to-char' is incorrect Date: Wed, 07 Jul 2010 14:16:28 +0200 Message-ID: References: <83630r934x.fsf@gnu.org> <834ogb8txc.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1278505810 13373 80.91.229.12 (7 Jul 2010 12:30:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 7 Jul 2010 12:30:10 +0000 (UTC) Cc: monkey@sandpframing.com, 6576@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 07 14:30:04 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OWTlL-0002X7-Hx for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Jul 2010 14:30:04 +0200 Original-Received: from localhost ([127.0.0.1]:57881 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWTlK-0001NF-72 for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Jul 2010 08:30:02 -0400 Original-Received: from [140.186.70.92] (port=48630 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWTlB-0001Ko-FO for bug-gnu-emacs@gnu.org; Wed, 07 Jul 2010 08:29:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OWTlA-0004eq-9D for bug-gnu-emacs@gnu.org; Wed, 07 Jul 2010 08:29:53 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43498) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWTlA-0004el-7u for bug-gnu-emacs@gnu.org; Wed, 07 Jul 2010 08:29:52 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OWTYj-0004dD-Qh; Wed, 07 Jul 2010 08:17:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Jul 2010 12:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6576 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6576-submit@debbugs.gnu.org id=B6576.127850499717790 (code B ref 6576); Wed, 07 Jul 2010 12:17:01 +0000 Original-Received: (at 6576) by debbugs.gnu.org; 7 Jul 2010 12:16:37 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWTYL-0004ct-58 for submit@debbugs.gnu.org; Wed, 07 Jul 2010 08:16:37 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWTYI-0004cn-RT for 6576@debbugs.gnu.org; Wed, 07 Jul 2010 08:16:35 -0400 Original-Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 36F7F1C003A9; Wed, 7 Jul 2010 14:16:29 +0200 (CEST) Original-Received: from hase.home (ppp-88-217-107-219.dynamic.mnet-online.de [88.217.107.219]) by mail.mnet-online.de (Postfix) with ESMTP id D1A321C001CA; Wed, 7 Jul 2010 14:16:28 +0200 (CEST) X-Yow: I'm in LOVE with DON KNOTTS!! In-Reply-To: <834ogb8txc.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 07 Jul 2010 13:31:27 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 07 Jul 2010 08:17:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:38285 Archived-At: Eli Zaretskii writes: >> From: Andreas Schwab >> Cc: MON KEY , 6576@debbugs.gnu.org >> Date: Wed, 07 Jul 2010 10:40:00 +0200 >> >> Eli Zaretskii 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. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."