bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #31893] ice-9 format produces control characters and non-printable


From: Andy Wingo
Subject: [bug #31893] ice-9 format produces control characters and non-printable characters for numeric output
Date: Sun, 19 Dec 2010 12:14:35 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-us) AppleWebKit/531.2+ (KHTML, like Gecko) Safari/531.2+ Epiphany/2.30.2

Update of bug #31893 (project guile):

                  Status:                    None => Invalid                
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #2:

Actually I think this problem is less exciting. 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.

In this case the width of the whole thing will always be more than 9
characters, so we always splat in the overflow char, which is #nul -- leading
to the result given in my first comment.

In the future for debugging these things, don't print to the terminal --
print to a string instead. That will be clearer.

Cheers,

Andy

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?31893>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]