Re: bin/155886: bc(1) sometimes mangles hexidecimal numbers
The following reply was made to PR bin/155886; it has been noted by GNATS.
From: Dan Strick <mla_strick@att.net>
To: bug-followup@freebsd.org, coloncolonone@googlemail.com, mla_strick@att.net
Cc:
Subject: Re: bin/155886: bc(1) sometimes mangles hexidecimal numbers
Date: Tue, 12 Apr 2011 01:11:57 -0700 (PDT)
> This seems to be somewhat similar to Debian Bug 84995 where one can find
> some explanations: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=84995
I took a look at the Debian bug report. The author of the bc program
explains:
> This is a result of having the number stored in base 10 and then
> using other bases in the fractional values. I can't quote the
> posix document, but I'm sure this is legal behavior.
The behavior may be "legal" (i.e. consistent with POSIX.2?), but it is
sufficiently counterintuitive as to require specific mention on the bc
man page. In other words, this behavior is either a program bug or a
documentation bug. It cannot be neither.
Dan Strick
_______________________________________________
freebsd-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"
討論串 (同標題文章)
完整討論串 (本文為第 3 之 3 篇):