summaryrefslogtreecommitdiff
path: root/ext
AgeCommit message (Collapse)Author
2008-05-11* configure.in (MINIRUBY): should not include extension library path.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-10* ext/tk/lib/tk/pack.rb, ext/tk/lib/tk/grid.rb: fix serious bug on thenagai
last commit. It fails to do pack/grid without options. * ext/tk/lib/tk.rb: add TkWindow#grid_anchor, grid_column, grid_row. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-10* ext/tk/lib/tk/pack.rb, ext/tk/lib/tk/grid.rb: increase parameternagai
patterns of configure method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-09* ext/tk/lib/tk/wm.rb: methods of Tk::Wm_for_General module cannotnagai
pass the given block to methods of Tk::Wm module. * ext/tk/lib/tk/grid.rb: lack of module-method definitions. * ext/tk/lib/tkextlib/tile.rb: lack of autoload definitions. * ext/tk/lib/tkextlib/tile/tnotebook.rb: cannot use kanji (not UTF-8) characters for headings. * ext/tk/tcltklib.c: maybe a little more stable about @encoding value of TclTkIp object. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-06* ext/zlib/zlib.c (gzreader_gets): may cause infinite loop.matz
a patch from Kouya <kouyataifu4 at gmail.com> in [ruby-reference-manual:762]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-03* ext/tk/lib/tkextlib/tile.rb, ext/tk/lib/tkextlib/tile/style.rb, nagai
ext/tk/sample/ttk_wrapper.rb: improve treating and control themes. add Tk::Tile.themes and Tk::Tile.set_theme(theme). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-02* ext/dbm/dbm.c (Init_dbm): defines DBM::VERSION even whenmatz
DB_VERSION_STRING is not available. [ruby-dev:34569] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-24* lib/net/pop.rb: backported from 1.9. bug#19003kazu
* ext/openssl/lib/openssl/ssl.rb: set_params; backported from 1.9. bug#19552, [ruby-dev:34402] * ext/openssl/ossl_ssl.c: ditto. * test/openssl/test_ssl.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-24* ext/tk/sample/ttk_wrapper.rb: should show usage when no script is given.nagai
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-20* ext/openssl/ossl_ssl.c: initialize session class.technorama
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-18* ext/syck/rubyext.c (syck_genericresolver_node_import): shouldknu
not set instance variable "@kind" before initializing it. [ruby-dev:32677] * ext/syck/rubyext.c (syck_resolver_initialize, syck_resolver_detect_implicit, syck_emitter_emit): remove unused variables. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-18* ext/syck/rubyext.c: Node#value defined twice.knu
* lib/yaml/: several method redefinitions causing warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-17* ext/tk/lib/tk.rb, ext/tk/lib/tk/scrollbar.rb, ext/tk/lib/tk/scale.rb:nagai
improve unknonw-option check when create a widget. * ext/tk/lib/tkextlib/blt/unix_dnd.rb, ext/tk/lib/tkextlib/blt/ted.rb, ext/tk/lib/tkextlib/treectrl/tktreectrl.rb: bug fix on 'cget'. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-15* ext/syck/rubyext.c (rb_syck_mktime): Avoid buffer overflow.knu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-15* ext/tk/lib/tk/menuspec.rb: option check will fail when nagai
TkConfigMethod.__IGNORE_UNKNOWN_CONFIGURE_OPTION__ is true. * ext/tk/lib/tk/palette.rb: bug fix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-15* rubyio.h (rb_io_t): renamed from OpenFile.nobu
* ruby.h (struct RHash), file.c, gc.c, io.c, ext/dl/dl.c, ext/io/wait/wait.c, ext/pty/pty.c, ext/readline/readline.c, ext/socket/socket.c: ditto. * win32/win32.h: removed workaround for OpenFile. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-14* ext/tk/lib/tk/text.rb: typo. call a wrong method.nagai
* ext/tk/lib/tk/itemconfig.rb: ditto. * ext/tk/sample/ttk_wrapper.rb: bug fix. * ext/tk/sample/tktextio.rb: add binding for 'Ctrl-u' at console mode. * ext/tk/lib/tk.rb, ext/tk/lib/tk/itemfont.rb, ext/tk/lib/font.rb: support __IGNORE_UNKNOWN_CONFIGURE_OPTION__ about font options. * ext/tk/lib/tkextlib/iwidgets/scrolledcanvas.rb, ext/tk/lib/tkextlib/iwidgets/scrolledlistbox.rb, ext/tk/lib/tkextlib/iwidgets/scrolledtext.rb: bug fix. * ext/tk/lib/tkextlib/tile/tpaned.rb: improve TPaned#add. * ext/tk/lib/tk/timer.rb: add TkTimer#at_end(proc) to register the procedure which called at end of the timer. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@16020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-11* ext/tk/lib/tkextlib/tile.rb, ext/tk/lib/tkextlib/tile/style.rb, nagai
ext/tk/sample/tkextlib/tile/demo.rb: previous patch is not complete. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-11* ext/tk/lib/tkextlib/tile.rb:nagai
__define_LoadImages_proc_for_compatibility__! do nothing when the Tcl command exists. * ext/tk/lib/tkextlib/tile/style.rb: __define_wrapper_proc_for_compatibility__! do nothing when the Tcl command exists. * ext/tk/sample/tkextlib/tile/demo.rb: don't create 'step' theme if it already exists. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-09* ext/tk/tcltklib.c: SEGV when tcltk-stubs is enabled.nagai
* ext/tk/tcltklib.c: avoid error on a shared object. * ext/tk/extconf.rb: support --with-tcltkversion * ext/tk/README.tcltklib: add document about --with-tcltkversion * ext/tk/sample/demos-jp/widget, ext/tk/sample/demos-en/widget, ext/tk/sample/demos-jp/style.rb, ext/tk/sample/demos-en/style.rb, ext/tk/sample/demos-jp/bind.rb, ext/tk/sample/demos-en/bind.rb: bug fix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15943 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-09* enumerator.c, inits.c (rb_call_inits), ruby.h, intern.h,knu
ext/enumerator, common.mk (OBJS, enumerator.$(OBJEXT)): Make the enumerator module built-in, * enumerator.c: New method: Enumerable::Enumerator#with_index. * enum.c (enum_each_with_index): Enumerable#each_with_index now returns an enumerator instead of raising an exception if no block is given. Enumerable#enum_with_index, formerly defined in the enumerator module, is kept as an alias to each_with_index for backward compatibility. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15934 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-29* ext/tk/tcltklib.c: rb_hash_lookup has not been backported yet.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-29* ext/tk/lib/tk/ttk_selector.rb: forget to add.nagai
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-29* ext/tk/sample/ttk_wrapper.rb: minor bug fix.nagai
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15851 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-29* ext/tk/*: full update Ruby/Tk to support Ruby(1.9|1.8) and Tc/Tk8.5.nagai
* ext/tk/lib/tkextlib/tile.rb: [incompatible] remove TileWidgets' instate/state/identify method to avoid the conflict with standard widget options. Those methods are renamed to ttk_instate/ttk_state/ ttk_identify (tile_instate/tile_state/tile_identify are available too). Although I don't recommend, if you realy need old methods, please define "Tk::USE_OBSOLETE_TILE_STATE_METHOD = true" before "require 'tkextlib/tile'". * ext/tk/lib/tkextlib/tile.rb: "Tk::Tile::__Import_Tile_Widgets__!" is obsolete. It outputs warning. To control default widget set, use "Tk.default_widget_set = :Ttk". * ext/tk/lib/tk.rb: __IGNORE_UNKNOWN_CONFIGURE_OPTION__ method and __set_IGNORE_UNKNOWN_CONFIGURE_OPTION__!(mode) method are defind as module methods of TkConfigMethod. It may help users to wrap old Ruby/Tk scripts (use standard widgets) to force to use Ttk widgets. Ttk widgets don't have some options of standard widgets which are control the view of widgets. When set ignore-mode true, configure method tries to ignoure such unknown options with no exception. Of course, it may raise other troubles on the GUI design. So, those are a little danger methods. * ext/tk/lib/tk/itemconfig.rb: __IGNORE_UNKNOWN_CONFIGURE_OPTION__ method and __set_IGNORE_UNKNOWN_CONFIGURE_OPTION__!(mode) method are defind as module methods of TkItemConfigMethod as the same purpose as TkConfigMethod's ones. * ext/tk/sample/ttk_wrapper.rb: A new example. This is a tool for wrapping old Ruby/Tk scripts (which use standard widgets) to use Ttk (Tile) widgets as default. * ext/tk/sample/tkextlib/tile/demo.rb: use ttk_instate/ttk_state method instead of instate/state method. * ext/tk/lib/tk/root, ext/tk/lib/tk/namespace.rb, ext/tk/lib/tk/text.rb, ext/tk/lib/tkextlib/*: some 'instance_eval's are replaced to "instance_exec(self)". * ext/tk/lib/tk/event.rb: bug fix on KEY_TBL and PROC_TBL (?x is not a character code on Ruby1.9). * ext/tk/lib/tk/variable.rb: support new style of operation argument on Tcl/Tk's 'trace' command for variables. * ext/tk/sample/demos-jp/widget, ext/tk/sample/demos-en/widget: bug fix * ext/tk/sammple/demos-jp/textpeer.rb, ext/tk/sammple/demos-en/textpeer.rb: new widget demo. * ext/tk/tcltklib.c: decrase SEGV troubles (probably) * ext/tk/lib/tk.rb: remove Thread.critical access if Ruby1.9 * ext/tk/lib/tk/multi-tk.rb: support Ruby1.9 (probably) * ext/tk/lib/tkextlib/tile.rb: add method to define Tcl/Tk command to make Tcl/Tk theme sources (based on different version of Tile extension) available. (Tk::Tile::__define_LoadImages_proc_for_comaptibility__) * ext/tk/lib/tk.rb, ext/tk/lib/tk/wm.rb: support dockable frames (Tcl/Tk8.5 feature). 'wm' command can treat many kinds of widgets as toplevel widgets. * ext/tk/lib/tkextlib/tile/style.rb: ditto. (Tk::Tile::Style.__define_wrapper_proc_for_compatibility__) * ext/tk/lib/tk/font.rb: add actual_hash and metrics_hash to get properties as a hash. metrics_hash method returns a boolean value for 'fixed' option. But metrics method returns numeric value (0 or 1) for 'fixed' option, because of backward compatibility. * ext/tk/lib/tk/timer.rb: somtimes fail to set callback procedure. * ext/tk/lib/tk.rb: add Tk.sleep and Tk.wakeup method. Tk.sleep doesn't block the eventloop. It will be better to use the method in event callbacks. * ext/tk/sample/tksleep_sample.rb: sample script about Tk.sleep. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15849 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-23* ext/tk/sample/demos-jp/widget, ext/tk/sample/demos-jp/bind.rb, nagai
ext/tk/sample/demos-en/widget, ext/tk/sample/demos-en/bind.rb: fix bug. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-21* lib/resolv.rb (Resolv::Hosts): should not use win32/resolv on cygwin.nobu
[ruby-dev:29945], [ruby-dev:34095] * lib/win32/registry.rb (Win32::Registry.expand_environ): try upcased name too for cygwin. [ruby-dev:29945] * lib/win32/resolv.rb (Win32::Resolv.get_hosts_path): use expand_path. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-03-21* lib/ipaddr.rb: Say that I am the current maintainer.knu
* lib/set.rb: Ditto. * lib/shellwords.rb: Ditto. * ext/syslog/syslog.txt: Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-26* ext/openssl/ossl_pkey_{ec,dh,dsa,rsa}.c: Remove useless warnings.technorama
* ext/openssl/ossl_asn1.c: Simplify code. * ext/openssl/ossl_ssl_session.c Fix compiler warnings. Undefine #id if SSL_SESSION_get_id is not supported. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-25Mon Feb 25 17:30:29 2008 Technorama Ltd. <[email protected]>technorama
* ext/openssl/digest.c ext/openssl/lib/openssl/digest.rb: Commit patch #9280 from Akinori MUSHA. Simplify the OpenSSL::Digest class and make use of the existing Digest framework. Enhance performance. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-19* ext/readline/readline.c (readline_event): prevent polling. based onnobu
a patch from error errorsson in [ruby-Bugs-17675]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-18* ext/pty/lib/expect.rb (IO#expect): check if peer is closed.nobu
[ruby-Bugs-17940] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-15* ext/iconv/iconv.c (iconv_convert): check upper bound. a patch fromnobu
Daniel Luz at [ruby-Bugs-17910]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-14* ext/dl/ptr.c (dlmem_each_i): typo fixed. a patch from IKOMAmatz
Yoshiki <[email protected]> in [ruby-dev:33776]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-11* gc.c (rb_newobj): prohibit call of rb_newobj() during gc.shyouhei
Submitted by Sylvain Joyeux [ruby-core:12099]. * ext/dl/ptr.c: do not use LONG2NUM() inside dlptr_free(). Slightly modified fix bassed on a patch by Sylvain Joyeux [ruby-core:12099] [ ruby-bugs-11859 ] [ ruby-bugs-11882 ] [ ruby-patches-13151 ]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-09* ext/bigdecimal/extconf.rb: simplified the condition.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-09* ext/bigdecimal/bigdecimal.c (BigDecimal_to_f): use strtod() for morenobu
precision. [ruby-talk:290296] * ext/bigdecimal/bigdecimal.c (BASE_FIG): made constant. * ext/bigdecimal/extconf.rb: ditto. [ruby-dev:33658] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@15415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-27* ext/openssl/ossl_ssl.c: Only show a warning if the default technorama
DH callback is actually used. * ext/openssl/ossl_rand.c: New method: random_add(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@14726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-14* ext/readline/extconf.rb: should use have_func for functions insteadnobu
of have_var. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@14225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-28* ext/extmk.rb (extract_makefile): use dldflags instead of DLDFLAGS tonobu
get rid of mixing $LDFLAGS and $ARCH_FLAG. * lib/mkmf.rb (configuration): ditto. * lib/mkmf.rb (create_makefile): support for extensions which has no shared object. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@14041 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-17ext/win32ole/win32ole.c (ole_invoke): bug fix. [ruby-talk:279100]suke
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-16* ext/iconv/iconv.c (iconv_iconv): also instance method needs to benobu
qualified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-16* ext/iconv/iconv.c (Document-class): moved the simplest example tonobu
the top. * ext/iconv/iconv.c (iconv_s_iconv): Document-method: needs class prefix for class method. [ruby-core:13542] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13947 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-15 * ext/curses/extconf.rb: check macro if cannot find func.usa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-23rescue Errno::EWOULDBLOCK as well as Errno::EAGAIN in sample code in rdoc.akr
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-15 * ext/openssl/lib/openssl/buffering.rb (read, readpartial): revertusa
r12496. handling EOF is a little differnt in ruby 1.8 and ruby 1.9. [ruby-dev:31979] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-14* ext/socket/socket.c (s_accept_nonblock): make accepted fdakr
nonblocking. [ruby-talk:274079] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-10-08* lib/net/http.rb, lib/open-uri.rb: removegotoyuzo
Net::HTTP#enable_post_connection_check. [ruby-dev:31960] * lib/net/imap.rb: hostname should be verified against server's indentity as persented in the server's certificate. [ruby-dev:31960] * ext/openssl/lib/net/telnets.rb, ext/openssl/lib/net/ftptls.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-26* ext/extmk.rb (extmake), lib/mkmf.rb (configuration): top_srcdirnobu
should not prefixed with DESTDIR. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-09-23* lib/net/http.rb: an SSL verification (the server hostname shouldgotoyuzo
be matched with its certificate's commonName) is added. this verification can be skipped by "Net::HTTP#enable_post_connection_check=(false)". suggested by Chris Clark <cclark at isecpartners.com> * lib/net/open-uri.rb: use Net::HTTP#enable_post_connection_check to perform SSL post connection check. * ext/openssl/lib/openssl/ssl.c (OpenSSL::SSL::SSLSocket#post_connection_check): refine error message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@13500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e