From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: adamsonj@email.unc.edu (Joel J. Adamson) Newsgroups: gmane.lisp.guile.bugs Subject: Re: [bug #31893] ice-9 format produces control characters and non-printable characters for numeric output Date: Sun, 19 Dec 2010 21:55:41 -0500 Message-ID: References: <20101215-155834.sv67324.84770@savannah.gnu.org> <20101219-115143.sv20118.32047@savannah.gnu.org> <20101219-121435.sv20118.81757@savannah.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: dough.gmane.org 1292823888 5619 80.91.229.12 (20 Dec 2010 05:44:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 20 Dec 2010 05:44:48 +0000 (UTC) Cc: bug-guile@gnu.org To: Andy Wingo Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Mon Dec 20 06:44:44 2010 Return-path: Envelope-to: guile-bugs@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 1PUYY6-0000vU-KD for guile-bugs@m.gmane.org; Mon, 20 Dec 2010 06:44:42 +0100 Original-Received: from localhost ([127.0.0.1]:51078 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUYY6-0002KM-45 for guile-bugs@m.gmane.org; Mon, 20 Dec 2010 00:44:42 -0500 Original-Received: from [140.186.70.92] (port=43985 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUVuc-0008Th-HU for bug-guile@gnu.org; Sun, 19 Dec 2010 21:55:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PUVub-0005hQ-5z for bug-guile@gnu.org; Sun, 19 Dec 2010 21:55:46 -0500 Original-Received: from mxip1i.isis.unc.edu ([152.2.0.74]:62868) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PUVub-0005hC-3f for bug-guile@gnu.org; Sun, 19 Dec 2010 21:55:45 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEAMtUDk2sGgRa/2dsb2JhbAClIrMZiGeFSgSEZYYcgws X-IronPort-AV: E=Sophos;i="4.60,199,1291611600"; d="scan'208";a="61364504" Original-Received: from mr2a.isis.unc.edu (HELO smtp.unc.edu) ([172.26.4.90]) by mxip1o.isis.unc.edu with ESMTP; 19 Dec 2010 21:55:43 -0500 Original-Received: from edna.email.unc.edu (cpe-066-026-056-166.nc.res.rr.com [66.26.56.166]) (authenticated bits=0) by smtp.unc.edu (8.14.4/8.14.3) with ESMTP id oBK2tfph007986 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Sun, 19 Dec 2010 21:55:42 -0500 (EST) In-Reply-To: <20101219-121435.sv20118.81757@savannah.gnu.org> (Andy Wingo's message of "Sun, 19 Dec 2010 12:14:35 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Mailman-Approved-At: Mon, 20 Dec 2010 00:44:32 -0500 X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:4924 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Andy Wingo writes: > Actually I think this problem is less exciting. This is exactly what I was hoping for! > Your format was: > > ~9,8,,,0g > > So you are specifying a width of 9 chars, 8 mantissa digits, and an > "overflow character" of zero, which also has the effect of making the > width a hard limit. Also note that your overflow char is > (integer->char 0), not # -- the nul byte, indeed a control character. This makes sense. Using just "~f " fixed some of the output, but not all. I will work more with the format strings. Thanks, Joel =2D-=20 Joel J. Adamson -- http://www.unc.edu/~adamsonj University of North Carolina at Chapel Hill CB #3280, Coker Hall Chapel Hill, NC 27599-3280 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.16 (GNU/Linux) iEYEARECAAYFAk0Oxa0ACgkQdjuynxXap4RxBwCfZPVx3jcBa3lqVItcWe9AVKpW jHEAnRgk8TX/Ua6pLihmri1xgFngqA/7 =QXBa -----END PGP SIGNATURE----- --=-=-=--