From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Towards a cleaner build Date: Fri, 17 May 2019 12:13:14 +0200 Message-ID: References: <83sgtdbhxj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="96654"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 17 13:01:19 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hRac2-000P0q-R6 for ged-emacs-devel@m.gmane.org; Fri, 17 May 2019 13:01:18 +0200 Original-Received: from localhost ([127.0.0.1]:46399 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRac1-0000A2-LZ for ged-emacs-devel@m.gmane.org; Fri, 17 May 2019 07:01:17 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:50366) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hRa7A-0007Ti-Mr for emacs-devel@gnu.org; Fri, 17 May 2019 06:29:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hRZrb-0006Dj-Ux for emacs-devel@gnu.org; Fri, 17 May 2019 06:13:20 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:60776) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hRZrb-0006D1-O8; Fri, 17 May 2019 06:13:19 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hRZrW-0001iX-OL; Fri, 17 May 2019 12:13:17 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEXr4cx2Ty7gzqnKsW/6 9ukUCAS1mkLHqkO/o0WriUXw6NQGAACldq9pAAACR0lEQVQ4jX3Tv2/aQBQH8AsgETxxIFd1J/eM SGCyfUmI6RIlN7E50lVCmdrBCWsr9bJWSI67BaxIdbugFCmSNw8Mlf+53p1/AZH6XcB87r3jns6g dctEgiBgee4Djwe0Hth+pAgYx2AryDDwuee/BgBq6DjgcMvMQRjiLEhGP/Qz+J0mH9LkUypCqQuX 9aCAv4sC0s0Ufq6AQlpA6m7BBkI1mdEsecVAgAuh5c5gFm1RwhPfUYNR3irZAdqx1NegUpW6NN2U cFhWyBN0TwtoFpAdLTxQb3JgOdxkKy2zrm7SBHL4JmAsKzauPVc1HUM+khyGGWhz/JR2kQfh8oXd V5BOsREt3Gh+sA8fsWM+G0w/rWDBl1v0EXTJmjxbco8S3k1q68maxC0oplBBgtZE5EpMUb0uW7mh 2SBkQogFI3s4aUu44/AG62sJEHZ4nV5AZCNFtjIobGyDZhuOzn+4eE/bwodVBXBsnVwgx22QxhZo Zj3ESCe1H9eE9MhlCaoG3SVa1eL+yR64mtiT8HbkUkCzAjQyDYRXCrniS3698LE7EmD0c8QMhlH8 R1nH4xx6WIuiL0eMfWW4ZuggHjczaIQRdmx0BBeM8Qs/VMzmvS+B8lvSqQ0gZN+7oY30R3F9BIiR Tu0BXIystx3+frQzeGjw18bRwvNIw5EmvrePfU8CyTKJeZR4BZS+twMiwnLwdkDICvS9GYfgfzDZ blVCT+5apYC7oXhQKgA5eEP5EK8EAqBIEP/Km+Pt2PzoZxzOvCp++Rn4/wDs8pW0CUFOUgAAAABJ RU5ErkJggg== In-Reply-To: <83sgtdbhxj.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 17 May 2019 11:31:52 +0300") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 80.91.231.51 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:236643 Archived-At: Eli Zaretskii writes: > The question is not whether the original strings are unibyte, the > question is does > > (setq foo "[\000-\037\177-\377]") > > produce a unibyte or a multibyte string, including after processing by > the Lisp reader (and when this file is byte-compiled). Let's see... I put this in ps-print.el: (defun ps-test () (let ((string1 "[\000-\037\177-\377]") (string2 "[\000-\037\177-\237]")) (message "%s %s\n%s %s" (multibyte-string-p string1) string1 (multibyte-string-p string2) string2))) (ps-test) =3D> "nil [^@-^_^?-\377] nil [^@-^_^?-\237]" (load "~/src/emacs/trunk/lisp/ps-print.el") (ps-test) =3D> "nil [^@-^_^?-\377] nil [^@-^_^?-\237]" (byte-compile-file "~/src/emacs/trunk/lisp/ps-print.el") (load "~/src/emacs/trunk/lisp/ps-print.elc") (ps-test) "nil [^@-^_^?-\377] nil [^@-^_^?-\237]" ps-test is a compiled Lisp function in =E2=80=98ps-print.el=E2=80=99. (ps-test) So they do seem to be unibyte no matter how I load/eval the function, unless I did something wrong here. > But for making this future-proof, I'd add an assertion there, or maybe > add a test to verify this stays that way, come what may. OK; I'll remove and add an assertion. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no