[#20036] Re: Roundoff problem with Float and Marshal — matz@... (Yukihiro Matsumoto)

まつもと ゆきひろです

16 messages 2003/04/18
[#20045] Re: Roundoff problem with Float and Marshal — nobu.nakada@... 2003/04/20

なかだです。

[#20063] Re: Roundoff problem with Float and Marshal — matz@... (Yukihiro Matsumoto) 2003/04/22

まつもと ゆきひろです

[#20097] jcode.rb — akira yamada / やまだあきら <akira@...>

25 messages 2003/04/26
[#20098] Re: jcode.rb — matz@... (Yukihiro Matsumoto) 2003/04/27

まつもと ゆきひろです

[#20105] Re: jcode.rb — WATANABE Hirofumi <eban@...> 2003/04/28

わたなべです。

[#20108] Re: jcode.rb — matz@... (Yukihiro Matsumoto) 2003/04/28

まつもと ゆきひろです

[ruby-dev:20031] Re: Possible bug?

From: nobu.nakada@...
Date: 2003-04-18 11:41:48 UTC
List: ruby-dev #20031
なかだです。

At Fri, 18 Apr 2003 18:02:05 +0900,
U.Nakamura <usa@osb.att.ne.jp> wrote:
> こんにちは、なかむら(う)です。
> 英語がつらくなって来たのでdevに振ります。

あ、行き違いに。

> In message "Re: Possible bug?"
>     on Apr.18,2003 16:52:21, <usa@osb.att.ne.jp> wrote:
> | (1) Some platforms have the correct (set null at the end of buffer)
> |     (v)snprintf. It's OK.
> | (2) Some platforms don't have (v)snprintf. Ruby uses missing/vsnprintf.c.
> |     It's OK.
> | (3) Win32 platforms have _(v)snprintf, and they are broken.
> |     Your patch totally fix the problem, I agree.
> | (4) I doubt some other platforms exist. The platforms have the wrong
> |     (v)snprintf just like win32's _(v)snprintf.
> | 
> | If (4) is right, we should fix all (v)snprintf call at all.
> | I am anxious about it, and this is that I want to say previous mail.
> 
> とか書いてみたものの、MSVCRTとbcc32以外で同様の問題を持つプラ
> ットフォームは発見できませんでした。

あとはmingwですね。これは意図的なのか気づいていないのか、NULLター
ミネートされていない(_がつかない)vsnprintf()になってます。

> で、[ruby-talk:69678]のパッチを採用するかどうかですけど、これ
> じゃなくてmissing/vsnprintf.cを使うというのはどうでしょうか?

doubleが扱えないのは、とくに問題にはならないのかな?

-- 
--- 僕の前にBugはない。
--- 僕の後ろにBugはできる。
    中田 伸悦

In This Thread