Summary

Cygwin doesn't display -0.0 correctly

Metadata

Description

CHICKEN (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 0.0

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.

Changes and comments

[2011-04-27 12:14:04 UTC] felix changed status from new to assigned

[2011-04-27 12:14:04 UTC] felix set owner to felix

[2011-04-27 12:14:04 UTC] felix changed milestone from 4.7.0 to 4.8.0

[2011-04-27 12:14:04 UTC] felix wrote:

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

[2011-05-02 12:50:05 UTC] felix changed priority from major to minor

[2011-05-02 14:08:13 UTC] felix changed status from assigned to closed

[2011-05-02 14:08:13 UTC] felix set resolution to wontfix

[2012-09-24 21:47:48 UTC] felix wrote:

Milestone 4.8.0 deleted

[2012-09-24 21:47:48 UTC] felix changed milestone from 4.8.0 to 4.9.0

[2013-11-03 20:13:44 UTC] johnwcowan changed status from closed to reopened

[2013-11-03 20:13:44 UTC] johnwcowan removed resolution wontfix

[2013-11-03 20:25:55 UTC] johnwcowan changed version from 4.6.x to 4.8.x

[2013-11-03 20:25:55 UTC] johnwcowan wrote:

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.

[2013-11-17 17:05:52 UTC] sjamaan wrote:

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)

[2013-12-01 15:16:58 UTC] sjamaan changed status from reopened to closed

[2013-12-01 15:16:58 UTC] sjamaan set resolution to fixed

[2013-12-01 15:16:58 UTC] sjamaan wrote:

Fixed by 7005002