[#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:20029] Re: Possible bug?

From: "U.Nakamura" <usa@...>
Date: 2003-04-18 09:02:05 UTC
List: ruby-dev #20029
こんにちは、なかむら(う)です。
英語がつらくなって来たので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以外で同様の問題を持つプラ
ットフォームは発見できませんでした。
というわけで、「全部対応しろ」という主張は取り下げます。
お騒がせしてごめんなさい。

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


それでは。
-- 
U.Nakamura <usa@osb.att.ne.jp>



In This Thread

Prev Next