Opened 11 years ago

Closed 8 years ago

#566 closed defect (fixed)

Cygwin doesn't display -0.0 correctly

Reported by: johnwcowan Owned by: felix winkelmann
Priority: minor Milestone: 4.9.0
Component: unknown Version: 4.8.x
Keywords: Cc:
Estimated difficulty:


(c)2008-2011 The Chicken Team
(c)2000-2007 Felix L. Winkelmann
Version 4.6.7
windows-cygwin-x86 [ manyargs dload ptables ]
compiled 2011-04-13 on LNGNYCL-FDB00M1 (CYGWIN_NT-5.1)

#;1> (define nz (/ -1.0 +inf.0))
#;2> nz

This is probably happening because Chicken uses newlib rather than glibc. -0.0 should be detected as a special case in all Chickens and printed correctly, so as not to depend on the C library.

Change History (8)

comment:1 Changed 11 years ago by felix winkelmann

Owner: set to felix winkelmann
Status: newassigned

I'm not sure if this should be handled at the Scheme level, since inexact arithmetic is so fundamentally tied to the C runtime.

comment:2 Changed 11 years ago by felix winkelmann

Priority: majorminor

comment:3 Changed 11 years ago by felix winkelmann

Resolution: wontfix
Status: assignedclosed

comment:4 Changed 10 years ago by felix winkelmann


Milestone 4.8.0 deleted

comment:5 Changed 9 years ago by johnwcowan

Resolution: wontfix
Status: closedreopened

comment:6 Changed 9 years ago by johnwcowan

Version: 4.6.x4.8.x

I'm reopening this, because there seems no reason not to fix it. Granted that it's Cygwin-specific, still it's a nasty bug. Negative 0.0 should be displayed as -0.0 on all platforms, not just where the C library happens to support it.

comment:7 Changed 9 years ago by sjamaan

It looks like ripping out HAVE_GCVT from Makefile.cygwin fixes this issue. I've asked Felix why it was introduced in the first place (gcvt is deprecated in POSIX)

comment:8 Changed 8 years ago by sjamaan

Resolution: fixed
Status: reopenedclosed

Fixed by 7005002

Note: See TracTickets for help on using tickets.