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 10:40:00 +0200 Message-ID: References: <83630r934x.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 1278493204 1942 80.91.229.12 (7 Jul 2010 09:00:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 7 Jul 2010 09:00:04 +0000 (UTC) Cc: MON KEY , 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 11:00:02 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 1OWQU5-0004Dm-DB for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Jul 2010 11:00:01 +0200 Original-Received: from localhost ([127.0.0.1]:56084 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWQU4-0005om-Cy for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Jul 2010 05:00:00 -0400 Original-Received: from [140.186.70.92] (port=59765 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWQTx-0005oh-62 for bug-gnu-emacs@gnu.org; Wed, 07 Jul 2010 04:59:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OWQTv-0006K3-S0 for bug-gnu-emacs@gnu.org; Wed, 07 Jul 2010 04:59:53 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45082) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWQTv-0006Jn-Qj for bug-gnu-emacs@gnu.org; Wed, 07 Jul 2010 04:59:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OWQBi-0002bR-2t; Wed, 07 Jul 2010 04:41:02 -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 08:41:02 +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.12784920079992 (code B ref 6576); Wed, 07 Jul 2010 08:41:02 +0000 Original-Received: (at 6576) by debbugs.gnu.org; 7 Jul 2010 08:40:07 +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 1OWQAp-0002b7-Ab for submit@debbugs.gnu.org; Wed, 07 Jul 2010 04:40:07 -0400 Original-Received: from mail-out.m-online.net ([212.18.0.9]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWQAm-0002ai-Sz for 6576@debbugs.gnu.org; Wed, 07 Jul 2010 04:40:05 -0400 Original-Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id BB7D41C15585; Wed, 7 Jul 2010 10:40:01 +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 3308A1C0046E; Wed, 7 Jul 2010 10:40:01 +0200 (CEST) X-Yow: Hey, I LIKE that POINT!! In-Reply-To: <83630r934x.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 07 Jul 2010 10:12:30 +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 04:41:02 -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:38280 Archived-At: 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. 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, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."