summaryrefslogtreecommitdiff
path: root/ext
AgeCommit message (Collapse)Author
2008-06-30* ext/syslog/syslog.c (syslog_write): syslog operations should bematz
protected from $SAFE level 4. a patch from Keita Yamaguchi <keita.yamaguchi at gmail.com>. * ext/syslog/syslog.c (mSyslog_close): ditto. * ext/syslog/syslog.c (mSyslog_set_mask): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-28* ext/win32ole/win32ole.c (date2time_str): fix the overflow insuke
some situation. [ruby-bugs-20793] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17641 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-27* ext/win32ole/win32ole.c : check String encoding whensuke
converting String to VT_BSTR in OLE. * test/win32ole/test_win32ole.rb : ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-24* ext/win32ole/win32ole.c(ole_invoke): fix memory leak.suke
[ruby-bugs-20792] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-24 * ext/io/wait/extconf.rb: check sys/socket.h for cygwin.usa
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-24 * ext/socket/socket.c (init_sock): socket is binmode on platformsusa
which support binmode. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-22* ext/readline/extconf.rb (have_readline_func): readline on Mac OS Xnobu
needs headers to detect some functions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-20* ext/bigdecimal/lib/bigdecimal/jacobian.rb (Jacobian::dfdxi):matz
typo fixed (raize -> raise). [ruby-list:45101] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19* ext/json/ext/parser/parser.rl, ext/json/ext/parser/parser.c: JSONmame
text SHALL be encoded in Unicode. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19* ext/extmk.rb (extmake): check if compile before showing message.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19* ext/etc/etc.c (Init_etc): define constant aliases Etc::Passwdmatz
and Etc::Group. [ruby-dev:35150] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-19* ext/tk/lib/tkextlib/tile/treeview.rb: cannot configure tags.nagai
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-18* ext/etc/etc.c (etc_passwd, etc_group): fixed rdoc. a patch fromnobu
okkez <okkez000 AT gmail.com> in [ruby-dev:35141]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-17* ext/tk/lib/multi-tk.rb: cannot access class variable from singleton method.nagai
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-16* ext/syck/rubyext.c: add encoding header.naruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-16* ext/tk/sample/demos-jp/toolber.rb, ext/tk/sample/demos-en/toolber.rb:nagai
fail to back a tear-off marker when reattach the toolbar. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-16* ext/tk/tcltklib.c: SEGV when exit.nagai
* ext/tk/lib/tk.rb: add a check for safety to Tk.exit. * ext/tk/sample/irbtkw.rbw: freezes when receives SIGINT. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-16* ext/stringio/stringio.c (strio_each, strio_readlines): IO#each andnobu
IO#readlines do not affect $_. [ruby-core:17277] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17366 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-15* ext/stringio/stringio.c (strio_readline, strio_each)nobu
(strio_readlines): set lastline. [ruby-core:17257] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-15* ext/syck/rubyext.c (yaml_org_handler): associate encoding.naruse
* ext/syck/rubyext.c (syck_genericresolver_node_import): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-14* ext/stringio/stringio.c (strio_sysread): should not raise at emptynobu
read. a patch from Arthur Schreiber at [ruby-core:17245]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-12* ext/tk/tcltklib.c: [trial patch] On some environments, it givesnagai
better responce about callbacks across threads. But on the other environments, it has no effect. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-11* ext/stringio/stringio.c (strio_init): rewind when reopened.mame
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-11* ext/tk: check proper conditions. [ruby-dev:35047]nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-10* 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/lib/tk.rb, ext/tk/lib/multi-tk.rb, ext/tk/lib/remote-tk.rb: not work on $SAFE==4 * ext/tk/lib/multi-tk.rb: Object#methods returns Symbols on Ruby1.9. * ext/tk/lib/tk/timer.rb: add TkTimer#at_end(proc) to register the procedure which called at end of the timer. * 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/*: treat __IGNORE_UNKNOWN_CONFIGURE_OPTION__ * 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/tk/text.rb: typo. call a wrong method. * ext/tk/lib/tk/itemconfig.rb: ditto. * ext/tk/lib/tk.rb, ext/tk/lib/tk/itemconfig.rb, ext/tk/lib/tk/canvas.rb: support alias names of option keys. * ext/tk/lib/tk/grid.rb: lack of module-method definitions. * ext/tk/lib/tk/pack.rb, ext/tk/lib/tk/grid.rb: increase supported parameter patterns of configure method. * ext/tk/lib/tk.rb: add TkWindow#grid_anchor, grid_column, grid_row. * ext/tk/lib/tk/wm.rb: methods of Tk::Wm_for_General module cannot pass the given block to methods of Tk::Wm module. * ext/tk/lib/tk/wm.rb: Wm#overrideredirect overwrites arguemnt to an invalid value. * ext/tk/lib/tk.rb: fix memory (object) leak bug. * ext/tk/tcltklib.c, ext/tk/tkutil/tkutil.c: fix memory leak. * ext/tk/sample/demos-jp/aniwave.rb, ext/tk/sample/demos-en/aniwave.rb: bug fix. * ext/tk/lib/tkextlib/blt/component.rb, ext/tk/lib/tkextlib/tile/tentry.rb, ext/tk/lib/tkextlib/tile/treeview.rb: ditto. * ext/tk/lib/tkextlib/tile/tpaned.rb: improve TPaned#add. * 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. * ext/tk/sample/ttk_wrapper.rb: ditto. * ext/tk/sample/ttk_wrapper.rb: support "if __FILE__ == $0" idiom. * ext/tk/sample/tktextio.rb: add binding for 'Ctrl-u' at console mode. * ext/tk/lib/tkextlib/tile.rb, ext/tk/lib/tkextlib/tile/style.rb, ext/tk/sample/ttk_wrapper.rb: improve treating and control themes. add Tk::Tile.themes and Tk::Tile.set_theme(theme). * 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/lib/tkextlib/tkDND/shape.rb: wrong package name. * ext/tk/tkutil/tkutil.c: improve handling callback-subst-keys. Now, support longnam-keys (e.g. '%CTT' on tkdnd-2.0; however, still not support tkdnd-2.0 on tkextlib), and symbols of parameters (e.g. :widget=>'%W', :keycode=>'%k', '%x'=>:x, '%X'=>:root_x, and so on; those are attributes of event object). It means that Ruby/Tk accepts not only "widget.bind(ev, '%W', '%k', ...){|w, k, ...| ... }", but also "widget.bind(ev, :widget, :keycode, ...){|w, k, ...| ... }". It is potentially incompatible, when user passes symbols to the arguments of the callback block (the block receives the symbols as strings). I think that is very rare case (probably, used by Ruby/Tk experts only). When causes such trouble, please give strings instead of such symbol parameters (e.g. call Symbol#to_s method). * ext/tk/lib/tk/event.rb, ext/tk/lib/tk/validation.rb, ext/tk/lib/tkextlib/blt/treeview.rb, ext/tk/lib/tkextlib/winico/winico.rb: ditto. * ext/tk/tkutil/tkutil.c: strings are available on subst_tables on TkUtil::CallbackSubst class (it is useful on Ruby 1.9). * ext/tk/lib/tk/spinbox.rb, ext/tk/lib/tkextlib/iwidgets/hierarchy.rb, ext/tk/lib/tkextlib/iwidgets/spinner.rb, ext/tk/lib/tkextlib/iwidgets/entryfield.rb, ext/tk/lib/tkextlib/iwidgets/calendar.rb, ext/tk/lib/tkextlib/blt/dragdrop.rb, ext/tk/lib/tkextlib/tkDND/tkdnd.rb, ext/tk/lib/tkextlib/treectrl/tktreectrl.rb, ext/tk/lib/tkextlib/tktable/tktable.rb: disable code piece became unnecessary by reason of the changes of ext/tk/tkutil/tkutil.c. * ext/tk/lib/tk.rb, ext/tk/lib/multi-tk.rb: change strategy to define the constant WITH_ENCODING. * ext/tk/lib/tk.rb: fix bug on Tk::Encoding.tk_encoding_names. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-10* ext/extmk.rb: negate default of --without-ext if --with-ext isnobu
given. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-10* ext/extmk.rb: negate default of --without-ext.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-10* ext/io/wait/wait.c (FIONREAD_POSSIBLE_P): suppress warnings.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-09* ext/socket/socket.c: constified.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17055 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-08* ext/zlib/zlib.c (rb_deflate_init_copy): Copy buffers as well.knu
[ruby-list:45018] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-08* array.c, bignum.c, cont.c, dir.c, dln.c, encoding.c, enumerator.c,ko1
enumerator.c (enumerator_allocate), eval_jump.c, file.c, hash.c, io.c, load.c, pack.c, proc.c, random.c, re.c, ruby.c, st.c, string.c, thread.c, thread_pthread.c, time.c, util.c, variable.c, vm.c, gc.c: allocated memory objects by xmalloc (ruby_xmalloc) should be freed by xfree (ruby_xfree). * ext/curses/curses.c, ext/dbm/dbm.c, ext/digest/digest.c, ext/gdbm/gdbm.c, ext/json/ext/parser/parser.c, ext/json/ext/parser/unicode.c, ext/openssl/ossl_cipher.c, ext/openssl/ossl_hmac.c, ext/openssl/ossl_pkey_ec.c, ext/sdbm/init.c, ext/strscan/strscan.c, ext/zlib/zlib.c: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-07* ext/zlib/zlib.c (rb_deflate_initialize, Init_zlib): Fix upknu
initialize_copy; [ruby-list:45016]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16875 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-06 * win32/Makefile.sub (COMMON_HEADERS): include ws2tcpip.h.usa
* ext/socket/addrinfo.h (addrinfo, getaddrinfo, getnameinfo, freehostent, freeaddrinfo): undef before define because these are macros in some versions of Windows SDK. merged from ruby_1_8. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-06* ext/iconv/iconv.c (iconv_iconv): no needs to initialize with Qnilnobu
before rb_scan_args call. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16852 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-05* ext/openssl/ossl_ssl_session.c (ossl_ssl_session_initialize):knu
Add a null check for ssl; submitted by akira yamada in [ruby-dev:34950]. * ext/openssl/ossl_ssl.c (Init_ossl_ssl): Define OP_NO_TICKET if SSL_OP_NO_TICKET is present; submitted by akira yamada in [ruby-dev:34944]. * test/openssl/test_ssl.rb (OpenSSL#test_server_session): Add a workaround for the case where OpenSSL is configured with --enable-tlsext; submitted by akira yamada in [ruby-dev:34944]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-05* ext/iconv/iconv.c (iconv_create): find encoding without options.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-04* ext/zlib/zlib.c (rb_gzfile_set_mtime): fix typo.mame
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-04* ext/iconv/iconv.c (iconv_iconv): fix for length argument and nownobu
allows range. [ruby-core:17092] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-03* ext/strscan/strscan.c (strscan_scan_full, strscan_search_full): fixmame
document. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-06-03* ext/strscan/strscan.c (strscan_exist_p): fix document.mame
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-29* ext/openssl/ossl_bn.c (ossl_bn_s_rand, ossl_bn_s_pseudo_rand):knu
Int should be enough here. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16692 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-29* ext/openssl/ossl_bn.c (ossl_bn_s_rand, ossl_bn_s_pseudo_rand),knu
ext/openssl/ossl_pkey_dh.c (ossl_dh_s_generate) (ossl_dh_initialize), ext/openssl/ossl_pkey_dsa.c (ossl_dsa_s_generate), ext/openssl/ossl_rand.c (ossl_rand_bytes) (ossl_rand_pseudo_bytes, ossl_rand_egd_bytes), ext/openssl/ossl_x509store.c (ossl_x509stctx_set_error): Do not use FIX2INT() without checking the value type. Use NUM2INT() instead; found by akr in [ruby-dev:34890]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-29* ext/zlib/extconf.rb: search zlib1, and regard mswin32 later than VC6nobu
as WIN32. [ruby-core:16984] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-28* ext/purelib.rb: get rid of recent feature. [ruby-dev:34864]nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-27* ext/stringio/stringio.c (strio_each_char, Init_stringio): Addknu
StringIO#{each_char,chars}. (Init_stringio): Fix StringIO#bytes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16635 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-27* ext/stringio/stringio.c (strio_each_byte): Return self insteadknu
of nil as the rdoc says. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-21* ext/nkf/nkf-utf8/nkf.c (nkf_str_caseeql): added.naruse
* ext/nkf/nkf-utf8/nkf.c (nkf_enc_find_index): use nkf_str_caseeql. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-21* ext/nkf/nkf-utf8/nkf.c (nkf_enc_find_index):naruse
use strcasecmp. [ruby-dev:34787] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-20* ext/nkf/nkf-utf8/nkf.c (rb_nkf_convert) (nkf_enc_without_bom):naruse
reverted. nkf-utf8/nkf.c should be independent of ruby. * ext/nkf/nkf.c (options): moved from nkf-utf8/nkf.c. override nkf's original settings for Unicode BOM. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-20* ext/nkf/nkf.c (rb_nkf_convert), ext/nkf/nkf-utf8/nkf.cnobu
(nkf_enc_without_bom): BOM is not a part of encodings. * ext/nkf/nkf.c (Init_nkf), ext/nkf/nkf-utf8/nkf.c (options): UTF-{16,32} without endian have no sense. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e