Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sprintf() will not throw exception when passed the format of single %…
… character before a '\n' or '\0'. Test Script: {{{ require 'test/unit/assertions.rb' include Test::Unit::Assertions assert_equal("%", sprintf("%", "")) assert_equal("foo%", sprintf("foo%", "")) assert_equal("%\n", sprintf("%\n", "")) assert_equal("%\n.3f", sprintf("%\n.3f", 1.2)) assert_equal("%\x00.3f", sprintf("%\0.3f", 1.2)) assert_raise(ArgumentError){ sprintf("% ", "") } puts :ok }}} git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4928 23306eb0-4c56-4727-a40e-e92c0eb68959
- Loading branch information