From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: compute ISBN-10, char-to-int? Date: Thu, 5 Sep 2019 21:03:36 +0200 Message-ID: <20190905190336.GB9015@tuxteam.de> References: <868sr3le7s.fsf@zoho.eu> <20190905064437.GA18252@tuxteam.de> <83a7bi7gzs.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3uo+9/B/ebqu+fSQ" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="65888"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.5.21 (2010-09-15) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 05 21:03:54 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i5x2v-000H1E-84 for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Sep 2019 21:03:53 +0200 Original-Received: from localhost ([::1]:49094 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5x2u-0007TP-5Y for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Sep 2019 15:03:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42017) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5x2j-0007TI-JP for help-gnu-emacs@gnu.org; Thu, 05 Sep 2019 15:03:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i5x2h-0004RV-6E for help-gnu-emacs@gnu.org; Thu, 05 Sep 2019 15:03:41 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]:50636) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i5x2g-0004QX-Ny for help-gnu-emacs@gnu.org; Thu, 05 Sep 2019 15:03:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:To:Date; bh=bnML52oDw0ROBungTRdR2RkmKqMawlNsR2j668SesO0=; b=Fg0pSM8yD9ZBtYJ2VsxC9iRLTEhCTVSyLrNwNJkb634I8R23jMaIfZcvOjYw5NUdwyI0PJEPb2cL2VfsSTIlYQvHuoVzvYHtEjw5y/xxQ9aOkD2MI89AHBBUefN2ZWGrf30f0Bmn/IzO1l0ZpTsAaz7+7eSYE3xiZlaqF+WC1L4Dl47Fi2sN9eqtg9wggMl208BObKrt23N6N0O19EmQzCe+WT6NX+ennRiOHCHxCRe/HjZrbeitWR4wwy8Pb/oCHHqyucMHdvfuD1zIL/FG4KE+OG4Y7FMTH/ZBbtwgqwC152wzMLIE/LdZMZ+VJ3U0TxDw/fRmdg8xnfQWFEICzA==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1i5x2e-0002QC-Ix for help-gnu-emacs@gnu.org; Thu, 05 Sep 2019 21:03:36 +0200 Content-Disposition: inline In-Reply-To: <83a7bi7gzs.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 5.199.139.25 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:121453 Archived-At: --3uo+9/B/ebqu+fSQ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 05, 2019 at 09:08:55PM +0300, Eli Zaretskii wrote: > > Date: Thu, 5 Sep 2019 08:44:37 +0200 > > From: > >=20 > > [...] since chars in Emacs Lisp are simply integers, and since > > encoding is almost-UTF-8 which is basically ASCII [...] >=20 > Actually, encoding is not relevant here. We are not talking about how > characters are stored in buffers and strings, we are talking about the > characters themselves. A character is represented by an integer whose > value is that character's Unicode codepoint. Well, if it's always Unicode code point, then we can make the above "official". Thanks, Eli -- t --3uo+9/B/ebqu+fSQ Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAl1xXAgACgkQBcgs9XrR2kbM0gCeNYJzDgjfj7m7qUbGLm026FsX ObQAn3eUak6eyx+kTGuDzY3m1LAOpQi5 =lK86 -----END PGP SIGNATURE----- --3uo+9/B/ebqu+fSQ--