From: Shugo Maeda Date: 2010-10-12T17:48:39+09:00 Subject: [ruby-dev:42366] [Ruby 1.9-Bug#3933][Assigned] TestIO_M17N#test_ungetc_intがエラーになる Bug #3933: TestIO_M17N#test_ungetc_intがエラーになる http://redmine.ruby-lang.org/issues/show/3933 起票者: Shugo Maeda ステータス: Assigned, 優先度: Normal 担当者: Yui NARUSE, カテゴリ: M17N, Target version: 1.9.x ruby -v: ruby 1.9.3dev (2010-10-12 trunk 29450) [i686-linux] 前田です。 手元の環境で、TestIO_M17N#test_ungetc_intがエラーになるようです。 $ ruby-trunk -v test/ruby/test_io_m17n.rb -n /ungetc_int/ ruby 1.9.3dev (2010-10-12 trunk 29450) [i686-linux] test/ruby/test_io_m17n.rb:1451: warning: assigned but unused variable - un Test run options: --seed 47369 --name "/ungetc_int/" Loaded suite test/ruby/test_io_m17n Started E Finished in 0.006128 seconds. 1) Error: test_ungetc_int(TestIO_M17N): TypeError: can't convert Bignum into String test/ruby/test_io_m17n.rb:425:in `ungetc' test/ruby/test_io_m17n.rb:425:in `block (2 levels) in test_ungetc_int' test/ruby/test_io_m17n.rb:424:in `open' test/ruby/test_io_m17n.rb:424:in `block in test_ungetc_int' test/ruby/test_io_m17n.rb:17:in `block (2 levels) in with_tmpdir' test/ruby/test_io_m17n.rb:16:in `chdir' test/ruby/test_io_m17n.rb:16:in `block in with_tmpdir' 1 tests, 0 assertions, 0 failures, 1 errors, 0 skips Test run options: --seed 47369 --name "/ungetc_int/" r29448を見ると、SIZEOF_LONG > SIZEOF_INTの時だけBignumの処理を追加している ようなのですが、これはなぜでしょうか。 ---------------------------------------- http://redmine.ruby-lang.org