From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Invalid read syntax for compiled bool vector Date: Tue, 27 Apr 2004 00:01:07 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <85k70cbeil.fsf@junk.nocrew.org> <857jw35hcq.fsf@junk.nocrew.org> <85u0z64onq.fsf@junk.nocrew.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1083017182 9156 80.91.224.253 (26 Apr 2004 22:06:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 26 Apr 2004 22:06:22 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Apr 27 00:06:12 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BIEEu-0001TH-00 for ; Tue, 27 Apr 2004 00:06:12 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BIEEu-0000hP-00 for ; Tue, 27 Apr 2004 00:06:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BIECt-00016M-90 for emacs-devel@quimby.gnus.org; Mon, 26 Apr 2004 18:04:07 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BIECM-00013f-0a for emacs-devel@gnu.org; Mon, 26 Apr 2004 18:03:34 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BIEBp-0000sJ-5t for emacs-devel@gnu.org; Mon, 26 Apr 2004 18:03:33 -0400 Original-Received: from [195.135.220.2] (helo=Cantor.suse.de) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.30) id 1BIEA7-0000C6-EG; Mon, 26 Apr 2004 18:01:15 -0400 Original-Received: from hermes.suse.de (Hermes.suse.de [195.135.221.8]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by Cantor.suse.de (Postfix) with ESMTP id 239C34E4ACC; Tue, 27 Apr 2004 00:01:10 +0200 (CEST) Original-To: Lars Brinkhoff X-Yow: I think I'll do BOTH if I can get RESIDUALS!! In-Reply-To: <85u0z64onq.fsf@junk.nocrew.org> (Lars Brinkhoff's message of "26 Apr 2004 19:47:21 +0200") User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:22195 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22195 Lars Brinkhoff writes: > Andreas Schwab writes: >> Richard Stallman writes: >> > Apparently, you have to bind coding-system-for-write before >> > writing a source file with a literal bool-vector constant in >> > it, or else Emacs will either ask the user for the coding >> > system, or write the file using some default coding system >> > which may not do the right thing. >> > I guess we should change the syntax for bool-vectors so as to put >> > just 4 bits into each character. The question is how to do that >> > in a somewhat compatible way. >> The print syntax could use octal or hexadecimal escapes in the bit str= ing. > > Yes. Since the print syntax for bool-vectors looks like strings, I > would sugggest doing whatever the print syntax for strings does. I have now changed the print syntax to always use octal escapes for non-ascii characters in the bool-vector string. This way the string will always be read as unibyte string, avoiding all coding issues. Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux AG, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany Key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."