Fri Aug 8 10:53:52 2008 Tanaka Akira * lib/resolv.rb: randomize source port and transaction id. CVE-2008-1447. * lib/resolv-replace.rb (UDPSocket#bind): don't resolv host if host is "". Mon Aug 4 14:15:58 2008 Nobuyoshi Nakada * lib/webrick/httputils.rb (WEBrick::HTTPUtils#split_header_value): reduce backtrack. based on a fix by Christian Neukirchen . Mon Aug 4 14:10:01 2008 Nobuyoshi Nakada * regex.c (xmalloc, xrealloc, xfree): not to use ruby managed memory. * regex.c (DOUBLE_STACK, re_compile_fastmap0, re_adjust_startpos), (re_search, re_match_exec): check if failed to allocate memory. Mon Aug 4 13:49:36 2008 Nobuyoshi Nakada * bignum.c (rb_big2str0, bigsqr): made interruptible. [ruby-Bugs-20622] Mon Aug 4 13:39:53 2008 Nobuyoshi Nakada * ext/openssl/openssl_missing.h (d2i_of_void): define for older versions. [ruby-dev:35637] Mon Aug 4 12:25:08 2008 NAKAMURA Usaku * numeric.c (check_uint, rb_num2uint, rb_fix2uint): fixed wrong check Mon Aug 11 09:34:52 2008 Yukihiro Matsumoto * ext/dl/dl.c (rb_str_to_ptr): should propagate taint to dlptr. * ext/dl/dl.c (rb_ary_to_ptr): ditto. * ext/dl/sym.c (rb_dlsym_call): should check taint of DLPtrData as well. about 64bit positive value. Mon Aug 4 12:25:08 2008 NAKAMURA Usaku * numeric.c (check_uint, rb_num2uint, rb_fix2uint): strict check. fixed [ruby-dev:33683] Mon Aug 4 12:11:29 2008 Tanaka Akira * gc.c (Init_GC): fix syntax error. Mon Aug 4 12:11:29 2008 Nobuyoshi Nakada * error.c (rb_exc_new3): keeps the given string itself. * eval.c (Init_Proc), gc.c (Init_GC): freeze messages of preallocated special exceptions also. Thu Jul 17 21:37:39 2008 URABE Shyouhei * lib/net/smtp.rb (Net::SMTP::start): revert to avoid RFC2821 violation. [ruby-dev:35487] Thu Jul 17 21:31:46 2008 Tanaka Akira * string.c (rb_str_format_m): make tmp volatile to avoid possible GC problem. Thu Jul 17 21:29:34 2008 Nobuyoshi Nakada * lib/optparse.rb (OptionParser#environment): requires shellwords. [ruby-dev:35466] Thu Jul 17 01:36:02 2008 Yusuke Endoh * ext/zlib/zlib.c (rb_gzfile_set_mtime): fix typo. [ruby-core:17713] Sun Jul 13 00:07:07 2008 Nobuyoshi Nakada * lib/ipaddr.rb (IPAddr#initialize): get rid of ArgumentError in IPAddr#to_range. a patch from okkez in [ruby-dev:35091]. Sun Jul 13 00:02:26 2008 Tanaka Akira * configure.in (erfc): erfc of glibc comes with Debian GNU/Linux Etch on IA64 is broken. erfc(10000.0) aborts. use missing/erf.c instead. http://sources.redhat.com/ml/libc-hacker/2005-08/msg00008.html Thu Jul 10 18:44:01 2008 Nobuyoshi Nakada * file.c (rb_file_s_extname): fix for file name with spaces. [ruby-talk:307404] Thu Jul 10 18:39:17 2008 Nobuyoshi Nakada * lib/net/ftp.rb (Net::FTP#sendport): use divmod. [ruby-core:17557] Thu Jul 10 18:35:07 2008 Kazuhiro NISHIYAMA * ruby.c: Mac OS X needs origargc times of '\0' in origargv. [ruby-dev:35308] Thu Jul 10 13:51:03 2008 Tanaka Akira * include/ruby/ruby.h (POSFIXABLE): use FIXNUM_MAX+1 instead of FIXNUM_MAX to make it possible to convert to double accurately. It assumes FLT_RADIX is 2. fix RubyForge bug #14102. backported from 1.9. Mon Jul 7 16:14:05 2008 Yukihiro Matsumoto * lib/net/smtp.rb (Net::SMTP::start): use 'localhost' instead of 'localhost.localdomain'. [ruby-dev:35333] * lib/net/smtp.rb (Net::SMTP::SMTP.start): ditto. Mon Jul 7 12:07:28 2008 Masaki Suketa * ext/win32ole/win32ole.c: avoid creating Ruby object during GC. thanks to arton . [ruby-dev:35313] * ext/win32ole/tests: add test_win32ole_event.rb, remove testOLEEVENT.rb * ext/win32ole/tests/testWIN32OLE.rb(test_convert_bignum): fix test. Mon Jul 7 12:07:28 2008 Masaki Suketa * gc.c: add rb_during_gc(). based on a patch from arton at [ruby-dev:35313]. * intern.h: ditto. Thu Jul 3 17:15:04 2008 URABE Shyouhei * win32/win32.c: revert r17290, requested by NAKAMURA Usaku Wed Jul 2 19:05:35 2008 Nobuyoshi Nakada * lib/cgi.rb (CGI::QueryExtension.read_multipart): blanks inside double quotes are allowed. [ruby-list:45140] Wed Jul 2 19:01:13 2008 Tanaka Akira * numeric.c (num_coerce): call rb_Float(x) first. don't depend on evaluation order of function arguments. Wed Jul 2 18:55:50 2008 Yukihiro Matsumoto * ext/syslog/syslog.c (syslog_write): syslog operations should be protected from $SAFE level 4. a patch from Keita Yamaguchi . * ext/syslog/syslog.c (mSyslog_close): ditto. * ext/syslog/syslog.c (mSyslog_set_mask): ditto. Wed Jul 2 18:25:17 2008 Tanaka Akira * math.c (domain_check): fix preprocess condition. Wed Jul 2 18:19:45 2008 Nobuyoshi Nakada * lib/tmpdir.rb (@@systmpdir): prior LOCAL_APPDATA if possible, and should be clean. based on a patch from arton at [ruby-dev:35269] Wed Jul 2 18:13:30 2008 Masaki Suketa * ext/win32ole/win32ole.c (date2time_str): fix the overflow in some situation. [ruby-bugs-20793] Wed Jul 2 17:38:01 2008 Nobuyoshi Nakada * ext/iconv/iconv.c (iconv_iconv): fixed backport miss. [ruby-core:17115] Tue Jul 1 15:09:37 2008 Nobuyoshi Nakada * array.c (rb_ary_fill): check if beg is too big. Mon Jun 30 20:34:05 2008 Nobuyoshi Nakada * string.c (str_buf_cat): check for self concatenation. Sun Jun 29 21:38:52 2008 Tanaka Akira * eval.c (rb_obj_respond_to): use RTEST to test the result of respond_to? method. Sun Jun 29 20:40:57 2008 URABE Shyouhei * array.c (rb_ary_fill): (compatibility) do not raise ArgumentError on negative length. This behaviour shall change in a future release. Sun Jun 29 20:06:45 2008 Tanaka Akira * time.c (time_timeval): fix rounding negative float. Sun Jun 29 18:35:23 2008 Nobuyoshi Nakada * test/inlinetest.rb (InlineTest.in_progname): workaround for frozen $0. [ruby-dev:35261] * lib/test/unit/ui/console/testrunner.rb (TestRunner#finished): ditto. Sun Jun 29 18:35:23 2008 Nobuyoshi Nakada * ruby.c (set_arg0, ruby_prog_init): freeze $0. a patch from Keita Yamaguchi . Sun Jun 29 18:32:19 2008 Tanaka Akira * process.c: include sys/resource.h if HAVE_SYS_RESOURCE_H is defined. pointed by TOYOFUKU Chikanobu. [ruby-dev:35258] Sun Jun 29 18:25:03 2008 Yukihiro Matsumoto * variable.c (rb_f_trace_var): should not be allowed at safe level 4. a patch from Keita Yamaguchi . * eval.c (rb_call0): wrong condition to check insecure method. a patch from Keita Yamaguchi . Sun Jun 29 18:24:13 2008 Nobuyoshi Nakada * array.c (rb_ary_fill): not depend on unspecified behavior at integer overflow. reported by Vincenzo Iozzo . Sun Jun 29 18:21:23 2008 Masaki Suketa * ext/win32ole/win32ole.c(ole_invoke): fix memory leak. [ruby-bugs-20792] Sun Jun 29 17:34:11 2008 Akinori MUSHA * eval.c (PUSH_FRAME, PUSH_CLASS): Add volatile to avoid a possible optimization bug on OS X/PPC. This at least makes build with gcc -O1 and `make test' pass. Sun Jun 29 17:23:51 2008 Nobuyoshi Nakada * lib/rdoc/parsers/parse_rb.rb (RDoc#collect_first_comment): skip magic comment. Sun Jun 29 17:21:08 2008 Nobuyoshi Nakada * ext/stringio/stringio.c (strio_each, strio_readlines): IO#each and IO#readlines do not affect $_. [ruby-core:17277] Sun Jun 29 17:18:45 2008 Nobuyoshi Nakada * ext/stringio/stringio.c (strio_readline, strio_each) (strio_readlines): set lastline. [ruby-core:17257] Sun Jun 29 17:10:30 2008 NAKAMURA Usaku * ext/openssl/ossl.h: include winsock.h if USE_WINSOCK2 is not defined. a patch from arton in [ruby-dev:35078] Sun Jun 29 17:07:30 2008 wanabe * util.c (ruby_strtod): ruby_strtod don't allow a trailing decimal point like "7.". [ruby-dev:34835] [ruby-dev:35009] Sun Jun 29 16:56:57 2008 Akinori MUSHA * lib/set.rb (Set#delete_if): Call to_a. (SortedSet#delete_if, TC_SortedSet#test_sortedset): Use super to yield elements in sorted order; [ruby-core:17144] by Arthur Schreiber. (SortedSet#each, SortedSet#each, TC_Set#test_each) (TC_SortedSet#test_sortedset): Return self; [ruby-dev:35002] by Arthur Schreiber. Sun Jun 29 16:49:11 2008 Nobuyoshi Nakada * eval.c (search_method, remove_method, error_print, rb_alias) (rb_eval, rb_rescue2, search_required, Init_eval, rb_thread_create), gc.c (rb_source_filename, Init_stack), io.c (rb_io_getline), parse.y (rb_id2name, rb_parser_free): suppress warnings. Sat Jun 28 19:26:43 2008 URABE Shyouhei * class.c (clone_method): use rb_copy_node_scope. fixed [ruby-list:45102] fixed [ruby-core:17393] Sat Jun 28 19:25:56 2008 Akinori MUSHA * eval.c (rb_copy_node_scope), node.h: Rename from copy_node_scope and export. Fri Jun 27 17:38:21 2008 Akinori MUSHA * ext/zlib/zlib.c (rb_deflate_initialize, Init_zlib): Fix up initialize_copy; [ruby-list:45016], [ruby-list:45018]. Fri Jun 27 17:28:39 2008 NAKAMURA Usaku * io.c (rb_open_file, rb_io_s_sysopen): fmode should be unsigned int. fixed [ruby-dev:34979] Fri Jun 27 17:20:40 2008 NAKAMURA Usaku * win32/win32.h: include ws2tcpip.h. fixed [ruby-Bugs-20528] Fri Jun 27 15:57:05 2008 Nobuyoshi Nakada * ext/iconv/iconv.c (iconv_iconv): fixed backport miss. [ruby-core:17115] Fri Jun 27 15:57:05 2008 Nobuyoshi Nakada * ext/iconv/iconv.c (iconv_iconv): fix for length argument and now allows range. [ruby-core:17092] Tue Jun 24 15:38:52 2008 Masatoshi SEKI * lib/erb.rb (ERB::Compiler::TrimScanner#explicit_trim_line): Fix without strscan problems. [ruby_core:17028]. * test/erb/test_erb.rb (TestERBCoreWOStrScan): Add test class for without strscan. Sun Jun 22 00:09:20 2008 Akinori MUSHA * lib/delegate.rb (DelegateClass, Delegator#respond_to?): respond_to? should now take optional second argument; submitted by Jeremy Kemper in [ruby-core:17045]. Fri Jun 20 18:24:18 2008 Nobuyoshi Nakada * string.c (rb_str_buf_append): should infect. Fri Jun 20 15:52:30 2008 Nobuyoshi Nakada * array.c (rb_ary_store, rb_ary_splice): not depend on unspecified behavior at integer overflow. * string.c (str_buf_cat): ditto. Wed Jun 18 22:25:10 2008 URABE Shyouhei * array.c (ary_new, rb_ary_initialize, rb_ary_store, rb_ary_aplice, rb_ary_times): integer overflows should be checked. based on patches from Drew Yao fixed CVE-2008-2726 * string.c (rb_str_buf_append): fixed unsafe use of alloca, which led memory corruption. based on a patch from Drew Yao fixed CVE-2008-2726 * sprintf.c (rb_str_format): backported from trunk. * intern.h: ditto. Fri Jun 20 01:40:21 2008 Nobuyoshi Nakada * array.c (rb_ary_equal, rb_ary_eql, rb_ary_hash, rb_ary_cmp): Make Array#eql?, #hash, #== and #<=> use rb_protect_inspect() and handle recursive data properly. [ruby-dev:35181] Wed Jun 18 15:20:21 2008 Nobuyoshi Nakada * marshal.c (w_object, marshal_dump, r_object0, marshal_load): search public methods only. [ruby-core:17283] * object.c (convert_type): ditto. * lib/singleton.rb (Singleton#_dump): conversion method should be public. Wed Jun 18 13:19:55 2008 URABE Shyouhei * file.c: fixes to compile on mswin32. Patch from U. Nakamura . [ruby-dev:35127] Tue Jun 17 22:16:44 2008 Nobuyoshi Nakada * configure.in (LIBPATHFLAG, RPATHFLAG): no needs to be quoted, it is done by libpathflag in mkmf.rb. Mon Jun 16 15:43:07 2008 Yukihiro Matsumoto * proc.c (proc_dup): should copy safe_level from src proc properly. a patch from Keita Yamaguchi Sun Jun 15 23:31:10 2008 Nobuyoshi Nakada * ext/zlib/extconf.rb: search zlib1, and regard mswin32 later than VC6 as WIN32. [ruby-core:16984] Sun Jun 15 23:28:15 2008 Nobuyoshi Nakada * marshal.c (w_object, marshal_dump, r_object0, marshal_load): search private methods too. [ruby-dev:34671] * object.c (convert_type): ditto. Sun Jun 15 23:26:50 2008 Akinori MUSHA * numeric.c (flo_divmod): Revert the behavior change; do not suppress an exception when div is NaN or Inf. [ruby-dev:34857] Sun Jun 15 23:24:32 2008 NAKAMURA Usaku * file.c (BUFCHECK): wrong condition. [ruby-core:16921] * file.c (file_expand_buf): shouldn't use buflen for length of string. Sun Jun 15 23:21:22 2008 Akinori MUSHA * marshal.c (r_object0, Init_marshal): Fix the garbled s_call definition; fixes [ruby-dev:34843]. Sun Jun 15 23:19:53 2008 Yukihiro Matsumoto * object.c (rb_cstr_to_dbl): should clear errno before calling strtod(3). [ruby-dev:34834] Sun Jun 15 23:18:15 2008 Yukihiro Matsumoto * marshal.c (marshal_load): should initialize arg.data used for reentrant check. [ruby-dev:34837] Sun Jun 15 23:13:23 2008 Yukihiro Matsumoto * parse.y (top_local_setup): fixed memory leak bug based on a patch from Roger Pack in [ruby-core:16610]. Sun Jun 15 23:16:26 2008 Yukihiro Matsumoto * marshal.c (reentrant_check): check reentrance via callcc. [ruby-dev:34802] Sun Jun 15 23:09:00 2008 NAKAMURA Usaku * sprintf.c (rb_f_sprintf): fixed SEGV on win32 with "% 0e" % 1.0/0.0. Sun Jun 15 23:07:46 2008 NAKAMURA Usaku * process.c (rb_f_system): set last_status when status == -1 because there is no path to set it on win32. this patch is derived from [ruby-core:16787], submitted by Luis Lavena Sun Jun 15 23:02:12 2008 GOTOU Yuuzou * lib/webrick/httpservlet/filehandler.rb: should normalize path name in path_info to prevent script disclosure vulnerability on DOSISH filesystems. (fix: CVE-2008-1891) Note: NTFS/FAT filesystem should not be published by the platforms other than Windows. Pathname interpretation (including short filename) is less than perfect. * lib/webrick/httpservlet/abstract.rb (WEBrick::HTTPServlet::AbstracServlet#redirect_to_directory_uri): should escape the value of Location: header. * lib/webrick/httpservlet/cgi_runner.rb: accept interpreter command line arguments. Sun Jun 15 23:02:12 2008 Nobuyoshi Nakada * file.c (file_expand_path): support for alternative data stream and ignored trailing garbages of NTFS. * file.c (rb_file_s_basename): ditto. * file.c (rb_file_s_extname): ditto. Sun Jun 15 22:53:20 2008 Yukihiro Matsumoto * string.c (rb_str_cat): fixed buffer overrun reported by Christopher Thompson in [ruby-core:16746] Sun Jun 15 22:51:24 2008 Yukihiro Matsumoto * eval.c (is_defined): add NODE_OP_ASGN_{OR,AND}. "defined?(a||=1)" should not operate assignment. [ruby-dev:34645] Sun Jun 15 22:49:45 2008 NAKAMURA Usaku * win32/win32.c (rb_w32_select): backport from trunk. [ruby-talk:300743] Sun Jun 15 22:48:26 2008 Nobuyoshi Nakada * lib/delegate.rb (SimpleDelegator::dup): removed needless argument. [ruby-list:44910] * lib/delegate.rb (clone, dup): keep relationship with the target object. Sun Jun 15 22:46:34 2008 Yukihiro Matsumoto * util.c (ruby_strtod): backported from 1.9. a patch from Satoshi Nakagawa in [ruby-dev:34625]. fixed: [ruby-dev:34623] Sun Jun 15 22:44:25 2008 Yukihiro Matsumoto * struct.c (rb_struct_s_def): to_str should be called only once. [ruby-core:16647] Sun Jun 15 22:42:54 2008 Yukihiro Matsumoto * ext/zlib/zlib.c (gzreader_gets): may cause infinite loop. a patch from Kouya in [ruby-reference-manual:762]. Sun Jun 15 22:34:09 2008 James Edward Gray II Merged 16241 from trunk. * lib/net/telnet.rb: Fixing a bug where line endings would not be properly escaped when the two character ending was broken up into separate TCP packets. Issue reported and patched by Brian Candler. Sun Jun 15 22:31:47 2008 Nobuyoshi Nakada * re.c (rb_reg_search): use local variable. a patch from wanabe in [ruby-dev:34537]. [ruby-dev:34492] Sun Jun 15 22:20:45 2008 Yukihiro Matsumoto * sprintf.c (rb_f_sprintf): should protect temporary string from GC. [ruby-dev:34480] Sun Jun 15 22:18:30 2008 Yukihiro Matsumoto * regex.c (re_search): string might be NULL. [ruby-core:16478] Sun Jun 15 22:16:21 2008 NAKAMURA Usaku * time.c (rb_strftime): check errno to detect strftime(3)'s error. this is workaround for recent version of MSVCRT. [ruby-dev:34456] Sun Jun 15 22:12:07 2008 Akinori MUSHA * lib/yaml/types.rb: Likewise, pass self to YAML::quick_emit; merged from 1.9. * lib/yaml.rb (quick_emit): use combination of object_id and hash to identify repeated object references, since GC will reuse memory of objects during output of YAML. [ruby-Bugs-8548] [ruby-Bugs-3698]; merged from 1.9. Sun Jun 15 22:09:02 2008 Akinori MUSHA * ext/syck/rubyext.c: Node#value defined twice. * lib/yaml/: several method redefinitions causing warnings. Sun Jun 15 22:04:44 2008 Yukihiro Matsumoto * marshal.c (w_object): add volatile to avoid potential GC bug. a patch from Tomoyuki Chikanaga in [ruby-dev:34311]. Sun Jun 15 21:59:22 2008 Yukihiro Matsumoto * re.c (rb_reg_quote): should always copy the quoting string. [ruby-core:16235] Sun Jun 15 21:27:46 2008 Yukihiro Matsumoto * lib/net/pop.rb (Net::POP3::do_finish): clear @n_mails and @n_bytes as well. [ruby-core:16144] Sun Jun 15 21:08:10 2008 Nobuyoshi Nakada * lib/resolv.rb (Resolv::Config.default_config_hash): requires win32/resolv to use Win32::Resolv. [ruby-dev:34138] Sun Jun 15 20:54:07 2008 Akinori MUSHA * parse.y (yycompile): Always prepare a new array for each file's SCRIPT_LINES__ storage, instead of appending source lines every time a file is re-loaded; submitted by Rocky Bernstein in #18517. Sun Jun 15 20:30:01 2008 Nobuyoshi Nakada * lib/resolv.rb (Resolv::Hosts): should not use win32/resolv on cygwin. [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. Sun Jun 15 20:27:59 2008 Nobuyoshi Nakada * misc/ruby-mode.el (ruby-mode): should use `run-mode-hooks' instead of calling `run-hooks' directly to run the mode hook. patch from Chiyuan Zhang in [ruby-core:15915] Sun Jun 15 20:20:59 2008 Nobuyoshi Nakada * numeric.c (fix_coerce): try conversion before type check. [ruby-core:15838] Sun Jun 15 19:56:53 2008 Nobuyoshi Nakada * bignum.c (BIGZEROP): fix for longer Bignum zeros. [ruby-Bugs-17454] Sun Jun 15 19:54:21 2008 Nobuyoshi Nakada * bignum.c (big2str_find_n1): check integer overflow. Sun Jun 15 19:52:20 2008 Tanaka Akira * gc.c (STACK_LENGTH) [SPARC] : 0x80 offset removed. [ruby-dev:33857] Sun Jun 15 19:50:20 2008 Nobuyoshi Nakada * ext/readline/readline.c (readline_event): prevent polling. based on a patch from error errorsson in [ruby-Bugs-17675]. Sun Jun 15 19:44:52 2008 Nobuyoshi Nakada * parse.y (yycompile): clear ruby_eval_tree_begin if parse failed. Sun Jun 15 19:44:52 2008 Nobuyoshi Nakada * parse.y (yycompile): clear ruby_eval_tree_begin too before parse. Sun Jun 15 19:22:21 2008 Nobuyoshi Nakada * ext/pty/lib/expect.rb (IO#expect): check if peer is closed. [ruby-Bugs-17940] Sun Jun 15 19:20:13 2008 Nobuyoshi Nakada * ext/iconv/iconv.c (iconv_convert): check upper bound. a patch from Daniel Luz at [ruby-Bugs-17910]. Sun Jun 15 19:13:46 2008 Nobuyoshi Nakada * configure.in (ftruncate): check if available. * file.c (rb_file_truncate): check if ftruncate instead of truncate. Sun Jun 15 19:02:46 2008 Nobuyoshi Nakada * configure.in (sigsetmask): check when signal semantics is not POSIX. * signal.c (USE_TRAP_MASK): set true if sigprocmask or sigsetmask is available. Sat Jun 14 16:49:41 2008 Nobuyoshi Nakada * lib/timeout.rb (Timeout::timeout): made sensitive to location on the stack. [ruby-core:15458] Fri Jun 13 13:14:31 2008 Yukihiro Matsumoto * ext/dl/ptr.c (dlmem_each_i): typo fixed. a patch from IKOMA Sun Jun 15 21:06:12 2008 Yukihiro Matsumoto * class.c (clone_method): should copy cref as well. [ruby-core:15833] Yoshiki in [ruby-dev:33776]. Fri Jun 13 13:13:23 2008 URABE Shyouhei * gc.c (rb_newobj): prohibit call of rb_newobj() during gc. 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 ]. Fri Jun 13 12:10:13 2008 NARUSE, Yui * lib/benchmark.rb (Job::Benchmark#item): fix typo. Fri Jun 13 12:06:17 2008 Nobuyoshi Nakada * ext/bigdecimal/bigdecimal.c (BigDecimal_to_f): use strtod() for more precision. [ruby-talk:290296] * ext/bigdecimal/bigdecimal.c (BASE_FIG): made constant. * ext/bigdecimal/extconf.rb: ditto. [ruby-dev:33658] Fri Jun 13 12:01:57 2008 Nobuyoshi Nakada * lib/irb.rb (IRB::Irb::eval_input): rescues Interrupt and other than SystemExit and SignalException. [ruby-core:15359] Fri Jun 13 11:57:46 2008 Yukihiro Matsumoto * lib/benchmark.rb (Benchmark::realtime): make Benchmark#realtime a bit faster. a patch from Alexander Dymo in [ruby-core:15337]. Fri Jun 13 11:50:59 2008 Yukihiro Matsumoto * io.c (rb_open_file): should check NUL in path. . * io.c (rb_io_s_popen): ditto. * io.c (rb_io_reopen): ditto. * io.c (next_argv): ditto. * io.c (rb_io_s_foreach): ditto. * io.c (rb_io_s_readlines): ditto. * io.c (rb_io_s_read): ditto. Wed Jun 11 15:23:13 2008 Nobuyoshi Nakada * lib/uri/generic.rb (URI::Generic::inspect): use Kernel#to_s instead object_id with printf. [ruby-dev:33347] Wed Jun 11 15:00:55 2008 Nobuyoshi Nakada * configure.in: Remove wrong assumptions about Cygwin. a patch from Corinna Vinschen in [ruby-Bugs-17018]. Mon Jun 9 18:09:20 2008 Nobuyoshi Nakada * eval.c (eval): check if backtrace is empty. [ruby-core:15040] Sun Jun 8 06:08:26 2008 Nobuyoshi Nakada * eval.c (rb_define_alloc_func, rb_undef_alloc_func): should define/undef on a signleton class. [ruby-core:09959] Sun Jun 8 06:04:41 2008 Nobuyoshi Nakada * time.c (time_arg): use converted object. [ruby-core:14759] Sun Jun 8 06:02:11 2008 Nobuyoshi Nakada * io.c (fptr_finalize): clear errno first. [ruby-talk:284492] Sun Jun 8 05:59:36 2008 Tadayoshi Funaba * lib/date.rb: don't freeze nil even if 1.8 will not be aware of the issue. [ruby-dev:32677] Sun Jun 8 05:54:44 2008 Nobuyoshi Nakada * configure.in (TIMEZONE_VOID): check whether timezone requires zero arguments. [ruby-dev:32631] Sun Jun 8 05:37:10 2008 Nobuyoshi Nakada * parse.y (f_rest_arg): check if duplicated. [ruby-core:14140] Sun Jun 8 05:32:45 2008 Tanaka Akira * gc.c (stack_end_address): use local variable address instead of __builtin_frame_address(0) to avoid SEGV on SunOS 5.11 on x86 with gcc (GCC) 3.4.3 (csl-sol210-3_4-20050802). Sun Jun 8 05:24:19 2008 Nobuyoshi Nakada * configure.in (RUBY_CHECK_VARTYPE): check if a variable is defined and its type. * configure.in (timezone, altzone): check for recent cygwin. * missing/strftime.c (strftime): fix for timezone. [ruby-dev:32536] * lib/mkmf.rb (try_var): should fail for functions. * ext/readline/extconf.rb: should use have_func for functions instead of have_var. Sun Jun 8 05:08:35 2008 Nobuyoshi Nakada * lib/cgi.rb (read_multipart): exclude blanks from header values. [ruby-list:44327] Sun Jun 8 05:02:25 2008 Nobuyoshi Nakada * bignum.c (rb_cstr_to_inum): trailing spaces may exist at sqeezing preceeding 0s. [ruby-core:13873] Sun Jun 8 04:58:05 2008 Nobuyoshi Nakada * eval.c (error_print): put newline unless multiple line message ends with a newline. [ruby-dev:32429] Sun Jun 8 04:55:26 2008 James Edward Gray II Merged 14070 from trunk. * lib/xmlrpc/server.rb (XMLRPC::Server#server): Improve signal handling so pressing control-c in the controlling terminal or sending SIGTERM stops the XML-RPC server. Sun Jun 8 04:49:43 2008 Nobuyoshi Nakada * parse.y (newline_node): set line from outermost node before removing NODE_BEGIN. [ruby-dev:32406] Sun Jun 8 04:37:34 2008 Nobuyoshi Nakada * parse.y (stmt): remove unnecessary NODE_BEGIN. [ruby-core:13814] Sun Jun 8 04:16:35 2008 Nobuyoshi Nakada * eval.c (rb_alias): do not call hook functions until initialization finishes. [ruby-talk:279538] Sun Jun 8 04:14:16 2008 Masaki Suketa * ext/win32ole/win32ole.c (ole_invoke): bug fix. [ruby-talk:279100] Sun Jun 8 03:59:31 2008 NAKAMURA Usaku * ext/curses/extconf.rb: check macro if cannot find func. [ruby-list:44224] Sun Jun 8 03:52:53 2008 Yukihiro Matsumoto * lib/cgi/session.rb (CGI::Session::FileStore::restore): use lockfile for exclusive locks. a patch from . [ruby-dev:32296] Sun Jun 8 03:49:15 2008 Tanaka Akira * missing/isinf.c (isinf): don't define if the macro is defined. Sun Jun 8 03:42:10 2008 Nobuyoshi Nakada * numeric.c (round): fallback definition. * numeric.c (flo_divmod, flo_round): use round() always. [ruby-dev:32269] Sun Jun 8 03:42:10 2008 Nobuyoshi Nakada * numeric.c (flodivmod): work around for infinity. * numeric.c (flo_divmod): work around for platforms have no round(). [ruby-dev:32247] Sun Jun 8 03:42:10 2008 URABE Shyouhei * numeric.c (flo_divmod): round to the nearest integer. [ ruby-Bugs-14540 ] Sun Jun 8 03:28:53 2008 Yukihiro Matsumoto * lib/rexml/encodings/SHIFT-JIS.rb (REXML::Encoding): place -x for nkf conversion. a patch from . [ruby-dev:32183] Sun Jun 8 03:07:19 2008 Nobuyoshi Nakada * lib/optparse.rb (OptionParser::Switch::summarize): fix for long form option with very long argument. a patch from Kobayashi Noritada in [ruby-list:44179]. Sun Jun 8 03:04:38 2008 Nobuyoshi Nakada * numeric.c (fix_pow): returns infinity for 0**-1. [ruby-dev:32084] Sun Jun 8 02:58:19 2008 James Edward Gray II Merged 13781 from trunk. * lib/net/telnet.rb (Net::Telnet#login): Allowing "passphrase" in addition to "password" for Telnet login prompts. [ruby-Bugs-10746] Wed Oct 25 06:46:21 2007 James Edward Gray II Merged 13779 from trunk. * lib/net/telnet.rb (Net::Telnet#login): Making the password prompt pattern case insensitive. [ruby-Bugs-10746] Sun Jun 8 02:55:19 2008 Nobuyoshi Nakada * io.c (rb_io_tell, rb_io_seek): check errno too. [ruby-dev:32093] Sun Jun 8 01:53:50 2008 James Edward Gray II Merged 13767, 13768, 13769, and 13770 from trunk. * lib/xmlrpc/parser.rb (XMLRPC::Convert::dateTime): Fixing a bug that caused time zone conversion to fail for some ISO 8601 date formats. [ruby-Bugs-12677] * lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): Explicitly start the HTTP connection to support keepalive requests. [ruby-Bugs-9353] * lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): Improving the error message for Content-Type check failures. [ruby-core:12163] * lib/xmlrpc/utils.rb (XMLRPC::ParseContentType#parse_content_type): Making Content-Type checks case insensitive. [ruby-Bugs-3367] Sun Jun 8 01:50:07 2008 Nobuyoshi Nakada * marshal.c (r_bytes0): refined length check. [ruby-dev:32059] Sun Jun 8 01:50:07 2008 Nobuyoshi Nakada * marshal.c (r_bytes0): check if source has enough data. [ruby-dev:32054] Sun Jun 8 01:41:19 2008 Tanaka Akira * ext/socket/socket.c (s_accept_nonblock): make accepted fd nonblocking. [ruby-talk:274079] Sun Jun 8 01:36:26 2008 Nobuyoshi Nakada * configure.in (AC_SYS_LARGEFILE): keep results also in command options, to vail out of mismatch. [ruby-list:44114] * mkconfig.rb, lib/mkmf.rb (configuration): add DEFS. Sun Jun 8 01:31:17 2008 Nobuyoshi Nakada * win32/mkexports.rb: deal with __fastcall name decorations. [ruby-list:44111] Sun Jun 8 01:27:06 2008 Nobuyoshi Nakada * {bcc,win}32/mkexports.rb: explicit data. [ruby-list:44108] Sun Jun 8 01:15:50 2008 GOTOU Yuuzou * lib/net/http.rb, lib/open-uri.rb: remove 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. Thu Jun 5 16:21:16 2008 NAKAMURA Usaku * win32/win32.c (make_cmdvector): adjust escaped successive double-quote handling. (merge from trunk) Thu Jun 5 12:26:45 2008 NAKAMURA Usaku * win32/win32.c (init_env): initialize HOME and USER environment variables unless set. [ruby-core:12328] (merge from trunk) * win32/win32.c (NtInitialize, getlogin): ditto. * configure.in, win32/Makefile.sub (LIBS): need to link shell32 library for SH* functions on mswin32 and mingw32. Thu Jun 5 12:22:28 2008 Yukihiro Matsumoto * gc.c (id2ref): valid id should not refer T_VALUE nor T_ICLASS. [ruby-dev:31911] Wed Jun 4 16:41:19 2008 Nobuyoshi Nakada * Makefile.in (ext/extinit.o): use $(OUTFLAG) as well as other objects. [ruby-Bugs-14228] Tue Jun 3 16:15:27 2008 Nobuyoshi Nakada * parse.y (yyerror): limit error message length. [ruby-dev:31848] * regex.c (re_mbc_startpos): separated from re_adjust_startpos. Tue Jun 3 15:45:00 2008 Nobuyoshi Nakada * gc.c (os_obj_of, os_each_obj): hide objects to be finalized. [ruby-dev:31810] Wed Jun 4 19:16:40 2008 Yukihiro Matsumoto * eval.c (remove_method): should not remove undef place holder. [ruby-dev:31817] Tue Jun 3 15:22:47 2008 Nobuyoshi Nakada * process.c (struct rb_exec_arg): proc should be a VALUE. * process.c (rb_f_exec): suppress a warning. * process.c (rb_detach_process): cast for the platforms where size of pointer differs from size of int. * process.c (rb_f_exec, rb_f_system): should not exceptions after fork. [ruby-core:08262] Wed May 21 01:32:56 2008 GOTOU Yuuzou * lib/webrick/httpservlet/filehandler.rb: should normalize path name in path_info to prevent script disclosure vulnerability on DOSISH filesystems. (fix: CVE-2008-1891) Note: NTFS/FAT filesystem should not be published by the platforms other than Windows. Pathname interpretation (including short filename) is less than perfect. * lib/webrick/httpservlet/abstract.rb (WEBrick::HTTPServlet::AbstracServlet#redirect_to_directory_uri): should escape the value of Location: header. * lib/webrick/httpservlet/cgi_runner.rb: accept interpreter command line arguments. Sun May 18 01:57:44 2008 Nobuyoshi Nakada * file.c (isdirsep): backslash is valid path separator on cygwin too. backported from 1.8 HEAD. Sat May 17 23:53:57 2008 Nobuyoshi Nakada * file.c (file_expand_path): fix for short file name on Cygwin. Sat May 17 23:50:29 2008 Nobuyoshi Nakada * file.c (OpenFile): prevent conflict on Windows. * file.c (USE_NTFS): fixed merge miss. Sat May 17 12:36:46 2008 Nobuyoshi Nakada * file.c (file_expand_path): rb_str_set_len is not backported. Sat May 17 12:15:48 2008 Nobuyoshi Nakada * file.c (file_expand_path): support for alternative data stream and ignored trailing garbages of NTFS. * file.c (rb_file_s_basename): ditto. * file.c (rb_file_s_extname): ditto. Sat May 17 10:18:44 2008 Yukihiro Matsumoto * re.c (rb_reg_search): need to free allocated buffer in re_register. Mon Mar 3 23:34:13 2008 GOTOU Yuuzou * lib/webrick/httpservlet/filehandler.rb: should normalize path separators in path_info to prevent directory traversal attacks on DOSISH platforms. reported by Digital Security Research Group [DSECRG-08-026]. * lib/webrick/httpservlet/filehandler.rb: pathnames which have not to be published should be checked case-insensitively. Mon Dec 3 08:13:52 2007 Kouhei Sutou * test/rss/test_taxonomy.rb, test/rss/test_parser_1.0.rb, test/rss/test_image.rb, test/rss/rss-testcase.rb: ensured declaring XML namespaces. Sun Sep 23 21:57:25 2007 GOTOU Yuuzou * lib/net/http.rb: an SSL verification (the server hostname should 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 * 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. Sun Sep 23 07:49:49 2007 Nobuyoshi Nakada * eval.c, intern.h, ext/thread/thread.c: should not free queue while any live threads are waiting. [ruby-dev:30653] Sun Sep 23 06:05:35 2007 Nobuyoshi Nakada * ext/stringio/stringio.c (strio_init): separate from strio_initialize to share with strio_reopen properly. [ruby-Bugs-13919] Sun Sep 23 05:42:35 2007 URABE Shyouhei * lib/rdoc/options.rb (Options::check_diagram): dot -V output changed. [ ruby-Bugs-11978 ], Thanks Florian Frank. Wed Sep 19 11:13:07 2007 Yukihiro Matsumoto * bignum.c (bigtrunc): RBIGNUM(x)->len may be zero. out of bound access. [ruby-dev:31404] Mon Sep 17 05:24:13 2007 Sylvain Joyeux * ext/thread/thread.c (lock_mutex): should take care of threads not waiting any longer; there cases of a thread raising exceptions. [ ruby-Bugs-11901 ] * test/thread/test_thread.rb (test_mutex_exception_handling): test for above. Mon Sep 17 05:01:55 2007 Nobuyoshi Nakada * runruby.rb: fix incomplete backport r12339. Mon Sep 17 04:56:28 2007 Nobuyoshi Nakada * test/thread/test_thread.rb (test_local_barrier), test/thread/lbtest.rb: test for [ruby-dev:30653]. Mon Sep 17 04:52:21 2007 Yukihiro Matsumoto * ruby.c (proc_options): -W should be allowed in RUBYOPT environment variable. [ruby-core:12118] Mon Sep 17 04:37:10 2007 Yukihiro Matsumoto * range.c (range_step): fixed integer overflow. [ruby-dev:31763] Fri Sep 7 17:06:16 2007 Vincent Isambart * eval.c (rb_thread_start_0): should unset time_thread_alive_p. [ruby-talk:257219], [ruby-core:11542], [ruby-dev:31253] Fri Sep 7 16:39:23 2007 Yukihiro Matsumoto * array.c (rb_ary_subseq): need integer overflow check. [ruby-dev:31736] * array.c (rb_ary_splice): ditto. [ruby-dev:31737] * array.c (rb_ary_fill): ditto. [ruby-dev:31738] * string.c (rb_str_splice): integer overflow for length. [ruby-dev:31739] Fri Sep 7 16:33:23 2007 Yukihiro Matsumoto * include/ruby/defines.h (flush_register_windows): call "ta 0x03" even on Linux/Sparc. [ruby-dev:31674] Fri Sep 7 16:09:39 2007 Masaki Suketa * ext/win32ole/win32ole.c (ole_type_progid, reg_enum_key, reg_get_val, ole_wc2mb): fix the bug. Thanks, arton. [ruby-dev:31576] Fri Sep 7 15:50:50 2007 Yukihiro Matsumoto * eval.c (mnew): should preserve noex as safe_level. * eval.c (rb_call0): tighten security check condition.. Fri Sep 7 15:43:43 2007 Nobuyoshi Nakada * ext/tk/tcltklib.c (Init_tcltklib): use rb_set_end_proc(). Fri Sep 7 15:42:07 2007 Nobuyoshi Nakada * process.c (detach_process_watcher): should not pass the pointer to an auto variable to the thread to be created. pointed and fix by KUBO Takehiro [ruby-dev:30618] Fri Sep 7 15:40:47 2007 Nobuyoshi Nakada * sample/test.rb, test/ruby/test_system.rb(valid_syntax?): keep comment lines first. Wed Aug 22 12:40:15 2007 Nobuyoshi Nakada * hash.c (rb_hash_delete_key): delete the entry without calling block. * hash.c (rb_hash_shift): should consider iter_lev too. * hash.c (delete_if_i): use rb_hash_delete_key() so that the block isn't called twice. [ruby-core:11556] Sun Arg 12 03:56:30 2007 Masatoshi SEKI * lib/rinda/tuplespace.rb: fix Rinda::TupleSpace keeper thread bug. the thread is started too early. [ruby-talk:264062] * test/rinda/test_rinda.rb: ditto. Wed Aug 22 12:31:15 2007 Nobuyoshi Nakada * configure.in (ac_cv_func_isinf): set yes also on OpenSolaris. [ruby-Bugs-12859] Wed Aug 22 12:30:42 2007 Nobuyoshi Nakada * lib/rexml/encodings/{ISO-8859-15,CP-1252}.rb: fixed invalid syntax. Wed Aug 22 12:29:36 2007 Tadayoshi Funaba * lib/README: fixed a typo. Wed Aug 22 12:13:54 2007 Nobuyoshi Nakada * ext/extmk.rb (extmake): save all CONFIG values. * ext/extmk.rb (extmake): remove mkmf.log at clean, and extconf.h at distclean, respectively. * ext/extmk.rb: remove rdoc at clean, and installed list file at distclean, respectively. Wed Aug 22 11:49:00 2007 Nobuyoshi Nakada * sprintf.c (rb_f_sprintf): should not check positional number as width. [ruby-core:11838] Wed Aug 22 11:47:11 2007 Nobuyoshi Nakada * bignum.c (rb_big_aref): check for Bignum index range. [ruby-dev:31271] Wed Aug 22 11:41:44 2007 Nobuyoshi Nakada * dln.c (conv_to_posix_path): removed. * ruby.c (rubylib_mangled_path, rubylib_mangled_path2): return VALUE instead of a pointer to static buffer. * ruby.c (push_include_cygwin): fixed buffer overflow. [ruby-dev:31297] * ruby.c (ruby_init_loadpath): not convert built-in paths. Wed Aug 22 11:39:31 2007 Nobuyoshi Nakada * intern.h (is_ruby_native_thread): removed since declared as an int function in ruby.h already. Wed Aug 22 11:00:20 2007 Nobuyoshi Nakada * lib/mkmf.rb (init_mkmf): should remove mkmf.log too. Wed Aug 22 10:57:50 2007 Nobuyoshi Nakada * ext/openssl/ossl_config.c (ossl_config_set_section): do not initialize aggregations with dynamic values. [ruby-talk:259306] Wed Aug 22 10:55:00 2007 Nobuyoshi Nakada * eval.c (get_backtrace): check the result more. [ruby-dev:31261] [ruby-bugs-12398] Wed Aug 22 10:36:15 2007 Nobuyoshi Nakada * bignum.c (rb_big_lshift, rb_big_rshift): separated functions to get rid of infinite recursion. fixed calculation in edge cases. [ruby-dev:31244] * numeric.c (rb_fix_lshift, rb_fix_rshift): ditto. Wed Aug 22 10:29:45 2007 Nobuyoshi Nakada * bignum.c (rb_big_pow): refine overflow check. [ruby-dev:31242] Wed Aug 22 10:26:59 2007 Yukihiro Matsumoto * time.c (time_succ): Time#succ should return a time object in the same timezone mode to the original. [ruby-talk:260256] Wed Aug 22 10:24:00 2007 Yukihiro Matsumoto * numeric.c (fix_pow): integer power calculation: 0**n => 0, 1**n => 1, -1**n => 1 (n: even) / -1 (n: odd). * test/ruby/test_fixnum.rb (TestFixnum::test_pow): update test suite. pow(-3, 2^64) gives NaN when pow(3, 2^64) gives Inf. Wed Aug 22 10:23:01 2007 Yukihiro Matsumoto * lib/base64.rb (Base64::b64encode): should not specify /o option for regular expression. [ruby-dev:31221] Wed Aug 22 10:20:32 2007 Nobuyoshi Nakada * sprintf.c (rb_f_sprintf): more checks for format argument. [ruby-core:11569], [ruby-core:11570], [ruby-core:11571], [ruby-core:11573] Wed Aug 22 10:13:45 2007 pegacorn * ext/digest/digest.c (rb_digest_instance_update, rb_digest_instance_finish, rb_digest_instance_reset, rb_digest_instance_block_length): %s in rb_raise() expects char*. [ruby-dev:31222] * ext/openssl/ossl.h: include ossl_pkcs5.h. [ruby-dev:31231] * ext/openssl/ossl_pkcs5.h: new file for PKCS5. [ruby-dev:31231] * ext/openssl/ossl_x509name.c (ossl_x509name_to_s): use ossl_raise() instead of rb_raise(). [ruby-dev:31222] * ext/sdbm/_sdbm.c: DOSISH platforms need io.h. [ruby-dev:31232] * ext/syck/syck.h: include stdlib.h for malloc() and free(). [ruby-dev:31232] * ext/syck/syck.h (syck_parser_set_input_type): prototype added. [ruby-dev:31231] * win32/win32.c: include mbstring.h for _mbspbrk(). [ruby-dev:31232] * win32.h (rb_w32_getcwd): prototype added. [ruby-dev:31232] Wed Aug 22 10:11:59 2007 Nobuyoshi Nakada * bignum.c (rb_cstr_to_inum): check leading non-digits. [ruby-core:11691] Wed Aug 22 10:07:48 2007 Nobuyoshi Nakada * bignum.c (rb_big_neg): SIGNED_VALUE isn't in 1.8. * bignum.c (bigtrunc): do not empty Bignum. [ruby-dev:31229] Wed Aug 22 10:02:42 2007 Yukihiro Matsumoto * numeric.c (fix_pow): 0**2 should not raise floating point exception. [ruby-dev:31216] Wed Aug 22 10:01:08 2007 Nobuyoshi Nakada * win32/win32.c (CreateChild): enclose command line except for command.com which can not handle quotes. [ruby-talk:258939] Wed Aug 22 09:58:30 2007 Nobuyoshi Nakada * lib/mkmf.rb (link_command, cc_command, cpp_command): do not expand ::CONFIG which is an alias of MAKEFILE_CONFIG. Wed Aug 22 09:55:08 2007 Nobuyoshi Nakada * struct.c (rb_struct_init_copy): disallow changing the size. [ruby-dev:31168] Wed Aug 22 09:54:28 2007 NAKAMURA, Hiroshi * random.c: documentation fix. srand(0) initializes PRNG with '0', not with random_seed. Wed Aug 22 09:53:14 2007 Nobuyoshi Nakada * bcc32/{Makefile.sub,setup.mak}: remove surplus slash from srcdir. Wed Aug 22 09:46:25 2007 Nobuyoshi Nakada * sprintf.c (rb_f_sprintf): sign bit extension should not be done if FPLUS flag is specified. [ruby-list:39224] Wed Aug 22 09:41:56 2007 Yukihiro Matsumoto * array.c (rb_ary_initialize): should call rb_ary_modify() first. [ruby-core:11562] Wed Aug 22 09:40:25 2007 Nobuyoshi Nakada * parse.y (yylex): return non-valid token for an invalid instance/class variable name. a patch from from Yusuke ENDOH . [ruby-dev:31095] Wed Aug 22 09:39:26 2007 Nobuyoshi Nakada * parse.y (dsym): return non-null NODE even if yyerror(). based on a patch from from Yusuke ENDOH . [ruby-dev:31085] Wed Aug 22 09:38:43 2007 Nobuyoshi Nakada * process.c (proc_exec_v, rb_proc_exec): preserve errno. Wed Aug 22 09:00:23 2007 Nobuyoshi Nakada * eval.c (ruby_cleanup): return EXIT_FAILURE if any exceptions occured in at_exit blocks. [ruby-core:11263] Wed Aug 22 08:52:02 2007 Nobuyoshi Nakada * variable.c (rb_path2class): get rid of dangling pointer caused by optimized out value. Wed Aug 22 08:51:20 2007 NAKAMURA Usaku * ext/dl/lib/dl/win32.rb: seems that dl doesn't accept void argument. fixed [ruby-bugs:PR#5489]. Wed Aug 22 08:49:47 2007 Nobuyoshi Nakada * configure.in (darwin): prohibit loading extension libraries to miniruby. Wed Aug 22 08:34:20 2007 Nobuyoshi Nakada * eval.c (rb_kill_thread): renamed in order to get rid of conflict with a BeOS system function. [ruby-core:10830] Wed Aug 22 08:32:32 2007 Nobuyoshi Nakada * process.c (ruby_setreuid, ruby_setregid): rename to get rid of name clash. Wed Aug 22 08:27:53 2007 Shugo Maeda * lib/net/imap.rb (ResponseParser#next_token): fixed error message. (backported from HEAD) * lib/net/imap.rb (ResponseParser#parse_error): fixed the condition not to refer @token.symbol unexpectedly. Thanks, Dick Monahan. (backported from HEAD) Wed Aug 22 08:26:33 2007 Yukihiro Matsumoto * marshal.c (w_extended): erroneous check condition when dump method is defined. [ruby-core:10646] Mon Jun 18 11:29:49 2007 Nobuyoshi Nakada * intern.h, ext/thread/thread.c: moved prototype of rb_thread_status() to get rid of error in C++. [ruby-list:43615] Sun Jun 10 13:47:36 2007 Nobuyoshi Nakada * test/ruby/test_beginendblock.rb (test_should_propagate_signaled): get rid of invoking shell. [ruby-dev:30942] Sat Jun 9 10:40:00 2007 URABE Shyouhei * stable version 1.8.6-p36 released. Fri Jun 8 17:50:17 2007 NAKAMURA Usaku * eval.c (rb_thread_cancel_timer): fix undefined function Wed May 30 05:17:55 2007 Nobuyoshi Nakada * eval.c (rb_eval): get rid of SEGV at ZSUPER in a block [ruby-dev:30836] Wed May 30 04:29:43 2007 Nobuyoshi Nakada * eval.c (thread_timer): timer thread should not receive any signals. submitted by Sylvain Joyeux. [ruby-core:08546] Wed May 30 04:18:37 2007 Nobuyoshi Nakada * eval.c (rb_eval_cmd): just return if no exceptions. [ruby-dev:30820] Tue May 29 11:01:06 2007 Nobuyoshi Nakada * win32/win32.c (rb_w32_opendir): store attributes of the second entries or later too. * win32/win32.c (rb_w32_opendir, rb_w32_readdir): eliminate magic numbers. Thu Jun 7 20:10:51 2007 Nobuyoshi Nakada * eval.c, intern.h, ext/thread/thread.c: should not free queue while any live threads are waiting. [ruby-dev:30653] Thu Jun 7 14:53:46 2007 URABE Shyouhei * eval.c (method_inspect): show proper class name. [ruby-talk:248647], Thanks Calamitas. Sun May 27 05:24:56 2007 URABE Shyouhei * runruby.rb: eliminate uninitialized variable. [ruby-core:11255] Sun May 27 05:19:03 2007 URABE Shyouhei * eval.c (mnew): call of super via a method object should work again. [ruby-talk:248647], Thanks Calamitas. * test/ruby/test_method.rb (TestMethod::test_method_super): test for above fix. Wed May 23 07:29:53 2007 URABE Shyouhei * process.c (proc_exec_v): terminate timer thread in advance. [ruby-dev:30581], Thanks H. Holon. Wed May 23 06:51:46 2007 URABE Shyouhei * lib/cgi.rb (CGI#[]): get rid of exceptions being raised. [ruby-dev:30740], Thanks Kentaro KAWAMOTO. Wed May 23 05:49:49 2007 Nobuyoshi Nakada * ext/extmk.rb, ext/purelib.rb, lib/mkmf.rb, runruby.rb: clear default load path to get rid of load pre-installed extensions/libraries. [ruby-core:11017] Wed May 23 06:14:15 2007 Nobuyoshi Nakada * win32/win32.c (move_to_next_entry): loc also must move forward. [ruby-talk:251987] Wed May 23 05:55:04 2007 NAKAMURA Usaku * win32/win32.c (init_stdhandle): stderr should be without buffering, but mswin32 use buffering when stderr is not connected to tty. Wed May 23 05:35:42 2007 Nobuyoshi Nakada * bignum.c (rb_big_pow): truncate all zero BDIGITs. [ruby-dev:30733] Wed May 23 05:17:33 2007 NAKAMURA Usaku * ext/iconv/iconv.c (iconv_s_conv): rdoc fix. Wed May 23 05:10:02 2007 Nobuyoshi Nakada * eval.c (rb_thread_priority): rdoc fix; the initial value is inherited from the creating thread. [ruby-core:10607] Wed May 23 04:22:57 2007 Nobuyoshi Nakada * dir.c (do_stat, do_lstat, do_opendir): should not warn ENOTDIR. [ruby-talk:248288] Wed May 23 03:50:35 2007 Nobuyoshi Nakada * lib/mkmf.rb (libpathflag): not to append RPATHFLAG to current directory. * lib/mkmf.rb (init_mkmf): add current directory to default library path with highest priority. [ruby-core:10960] * lib/mkmf.rb (LINK_SO): LIBPATH to be placed before DLDFLAGS. Wed May 23 03:33:55 2007 Nobuyoshi Nakada * lib/monitor.rb (ConditionVariable#wait, mon_enter, mon_exit_for_cond): ensures Thread.critical to be false. [ruby-talk:248300] Wed May 23 03:25:13 2007 Nobuyoshi Nakada * util.c (ruby_strtod): exponent is radix 10. [ruby-talk:248272] Wed May 23 03:12:17 2007 Nobuyoshi Nakada * configure.in (LDFLAGS): prepend -L. instead appending it to XLDFLAGS. [ruby-core:10933] * configure.in (Makefile): remove $U for automake from MISSING. [ruby-talk:248171] Wed May 23 02:09:32 2007 Yukihiro Matsumoto * eval.c (rb_yield_0): should not clear state on TAG_NEXT when it's invoked from within lambda body. [ruby-talk:248136] * eval.c (proc_invoke): handle TAG_NEXT which would be caused by next in the lambda body as well. Wed May 23 01:55:49 2007 NAKAMURA Usaku * win32/win32.c (rb_w32_fclose, rb_w32_close): need to save errno before calling original fclose()/close(). Wed May 23 01:42:29 2007 Shugo Maeda * lib/net/imap.rb (disconnect): call shutdown for SSLSocket. Thanks, Technorama Ltd. Wed May 23 01:28:14 2007 Nobuyoshi Nakada * error.c (rb_notimplement), io.c (pipe_open): removed definite articles and UNIX manual section from messages. [ruby-dev:30690] * io.c (pipe_open): raise NotImplementedError for command "-" on platforms where fork(2) is not available. [ruby-dev:30681] Wed May 23 00:03:42 2007 NAKAMURA Usaku * ext/socket/socket.c (s_recv, s_recvfrom): some systems (such as windows) doesn't set fromlen if the socket is connection-oriented. reported by Bram Whillock in [ruby-core:10512] [ruby-Bugs#9061] Sat Mar 24 23:40:29 2007 Nobuyoshi Nakada * node.h (struct rb_thread.locals): explicit as struct. [ruby-core:10585] * eval.c, node.h (enum rb_thread_status, struct rb_thread, rb_curr_thread, rb_main_thread): prefixed. [ruby-core:10586] * file.c (chompdirsep): made an unprefixed name static. * io.c (io_fread): ditto. Tue May 22 23:27:16 2007 Nobuyoshi Nakada * eval.c (ruby_cleanup): exit by SystemExit and SignalException in END block. [ruby-core:10609] * test/ruby/test_beginendblock.rb (test_should_propagate_exit_code): test for exit in END block. [ruby-core:10760] * test/ruby/test_beginendblock.rb (test_should_propagate_signaled): test for signal in END block. Tue May 22 23:14:19 2007 Nobuyoshi Nakada * eval.c (rb_provided): check for extension library if SOEXT is explicitly given. [ruby-dev:30657] Tue May 22 21:29:08 2007 Nobuyoshi Nakada * bignum.c (rb_big2str0): round up for the most significant digit. [ruby-core:10686] Tue May 22 20:53:02 2007 Akinori MUSHA * ext/thread/thread.c (remove_one): Preserve List invariants; submitted by: MenTaLguY in [ruby-core:10598] and [ruby-bugs:PR#9388]. Tue Mar 20 15:37:24 2007 URABE Shyouhei * distruby.rb: Add zip generation. Fri Mar 16 21:48:11 2007 Akinori MUSHA * ext/dl/dl.c (rb_ary2cary): Fix a bug in type validation; submitted by sheepman in [ruby-dev:30554]. Fri Mar 16 18:28:06 2007 Akinori MUSHA * ext/etc/etc.c (etc_getgrgid): Fix a bug in Etc::getgrgid() always returning the (real) group entry of the running process; reported by: UEDA Hiroyuki in [ruby-dev:30586]. Fri Mar 16 16:33:58 2007 Akinori MUSHA * ext/thread/thread.c (unlock_mutex_inner): Make sure that the given mutex is actually owned by the caller; submitted by: Sylvain Joyeux in [ruby-core:10598]. Fri Mar 16 16:21:35 2007 Akinori MUSHA * ext/thread/thread.c (wait_condvar, lock_mutex): Fix a problem in ConditionVariable#wait that occurs when two threads that are trying to access the condition variable are also in concurrence for the given mutex; submitted by: Sylvain Joyeux and MenTaLguY in [ruby-core:10598]. Fri Mar 16 16:17:27 2007 Akinori MUSHA * test/thread/test_thread.rb: Add a test script for the `thread' library. This should result in failure as of now with ext/thread; submitted by: Sylvain Joyeux in [ruby-core:10598]. Wed Mar 14 12:30:00 2007 Shigeo Kobayashi * ext/bigdecimal/bigdecimal.c: BigDecimal("-.31") is now treated as ("-0.31") not as ("0.31"). Tue Mar 13 04:04:04 2007 Akinori MUSHA * stable version 1.8.6 released. Tue Mar 13 02:54:17 2007 Akinori MUSHA * lib/cgi.rb (CGI::header): IIS >= 5.0 does not need the nph assumption any more; submitted by MIYASAKA Masaru in [ruby-dev:30537]. Mon Mar 12 11:07:44 2007 Akinori MUSHA * ext/openssl/ossl_asn1.c (Init_ossl_asn1): Let rdoc know about externally defined modules; submitted by Technorama Ltd. in [ruby-bugs:PR#4704]. * ext/openssl/ossl_bn.c (Init_ossl_bn): Ditto. * ext/openssl/ossl_cipher.c (Init_ossl_cipher): Ditto. * ext/openssl/ossl_digest.c (Init_ossl_digest): Ditto. * ext/openssl/ossl_hmac.c (Init_ossl_hmac): Ditto. * ext/openssl/ossl_pkey.c (Init_ossl_pkey): Ditto. * ext/openssl/ossl_pkey_dh.c (Init_ossl_dh): Ditto. * ext/openssl/ossl_pkey_dsa.c (Init_ossl_dsa): Ditto. * ext/openssl/ossl_pkey_rsa.c (Init_ossl_rsa): Ditto. * ext/openssl/ossl_rand.c (Init_ossl_rand): Ditto. * ext/openssl/ossl_ssl.c (Init_ossl_ssl): Ditto. Mon Mar 12 01:23:50 2007 Akinori MUSHA * ext/dl/sym.c (rb_dlsym_inspect): Use "0x%x" rather for pointers. This might not be very right but it is commonly used in other parts of the code; submitted by sheepman in [ruby-dev:30532]. * ext/dl/ptr.c (rb_dlptr_inspect): Ditto. * ext/dl/lib/dl/import.rb (DL::Importable::Internal::import, DL::Importable::Internal::callback): Avoid race condition for an instance variable; submitted by sheepman in [ruby-dev:30530]. Sun Mar 11 19:04:29 2007 Akinori MUSHA * misc/README: Add a note about ruby-electric.el. * misc/ruby-mode.el (ruby-non-block-do-re): Fix ruby-non-block-do-re. [ruby-core:03719] * misc/inf-ruby.el: Synchronize the comment section with trunk. * misc/README, misc/rdebug.el: Add rdebug.el, Emacs ruby-debug interface based on rubydb3x.el; submitted by Martin Nordholts in [ruby-bugs:PR#9023]. Sun Mar 11 17:51:46 2007 Akinori MUSHA * ext/dl/mkcallback.rb (mkfunc): Make sure that a callback function is found in the function table before trying to call it; submitted by sheepman in [ruby-dev:30524]. Sun Mar 11 17:30:53 2007 Nobuyoshi Nakada * eval.c (error_handle): no message when exiting by signal. * eval.c (ruby_cleanup): re-send signal. [ruby-dev:30516] * eval.c (rb_thread_interrupt): instantiate SignalException. * eval.c (rb_thread_signal_raise): now takes signal number instead of signal name. * intern.h (rb_thread_signal_raise, ruby_default_signal): prototypes. * signal.c (esignal_init): takes a signal number and an optional signal name. * signal.c (interrupt_init): pass SIGINT always. * signal.c (ruby_default_signal): invoke system default signal handler. * signal.c (rb_signal_exec, trap): handle SIGTERM. [ruby-dev:30505] Tue Mar 6 19:03:42 2007 Akinori MUSHA * ext/digest/lib/md5.rb (MD5::new, MD5::md5): Do not modify Digest::MD5. * ext/digest/lib/sha1.rb (SHA1::new, SHA1::sha1): Ditto. * lib/shell/process-controller.rb: fix thread synchronization problem for [ruby-dev:30477]. * ext/digest/lib/md5.rb (MD5::new, MD5::md5): Catch up with Digest's API changes; noted by: Kazuhiro Yoshida in [ruby-dev:30500]. * ext/digest/lib/sha1.rb (SHA1::new, SHA1::sha1): Ditto. * time.c (time_to_s): Back out the format changes; discussed in [ruby-dev:30495]. * ext/tk/sample/irbtkw.rbw: fails to exit process. Mon Mar 5 20:26:10 2007 Akinori MUSHA * time.c (time_to_s): Correct the wrong format which did not really conform to RFC 2822; pointed out by: OHARA Shigeki in [ruby-dev:30487]. Sun Mar 4 23:53:27 2007 Minero Aoki * lib/fileutils.rb (mv): could not move a directory between different filesystems. [ruby-dev:30411] Sun Mar 4 23:46:40 2007 Nobuyoshi Nakada * file.c (rb_file_s_utime): allow nil to set the current time. * lib/fileutils.rb (touch): ditto, and added :mtime and :nocreate options. fixed: [ruby-talk:219037] Sun Mar 4 23:19:00 2007 WATANABE Hirofumi * util.c (push_element): should return a int value. Sun Mar 4 01:06:55 2007 Akinori MUSHA * lib/set.rb (Set#^, Set#&): Correct documentation. Those methods return sets, not arrays; noted by Oliver Frank Wittich . Sat Mar 3 21:41:31 2007 Akinori MUSHA * eval.c (stack_check): Unset inline to fix build with GCC 3.4.6; submitted by: NISHIMATSU Takeshi in [ruby-list:43218]. cf. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24556 Sat Mar 3 19:07:05 2007 Akinori MUSHA * ext/thread/thread.c (push_list): Use ALLOC(). * ext/thread/thread.c (rb_mutex_alloc): Ditto. * ext/thread/thread.c (rb_condvar_alloc): Ditto. Sat Mar 3 18:56:40 2007 Akinori MUSHA * NEWS: Add a note for String#intern. Sat Mar 3 18:36:35 2007 Nobuyoshi Nakada * eval.c (rb_provided): return true only for features loaded from .rb files, and not search actual library type. [ruby-dev:30414] * eval.c (rb_feature_p): check loading_tbl if the given ext is empty. [ruby-dev:30452] * eval.c (rb_feature_p): fix possible buffer overrun. Sat Mar 3 16:30:39 2007 Akinori MUSHA * env.h (SCOPE_CLONE): Introduce a new scope flag to prevent a local_tbl region from getting freed many times; submitted by Chikanaga Tomoyuki in [ruby-dev:30460]. * eval.c (proc_invoke): Ditto. * gc.c (obj_free): Ditto. * parse.y (top_local_setup_gen): Ditto. Sat Mar 3 16:09:27 2007 Akinori MUSHA * object.c (rb_obj_ivar_set): RDoc updated according to a suggestion from Brian Candler . [ruby-core:10469] Sat Mar 3 15:41:33 2007 Nobuyoshi Nakada * parse.y (stmt, arg): should not omit lhs of OP_ASGN1 even if empty. [ruby-dev:30452] Thu Mar 1 04:08:30 2007 Nobuyoshi Nakada * mkconfig.rb (patchlevel): read from version.h. Thu Mar 1 03:42:09 2007 Akinori MUSHA * ext/digest/digest.c (get_digest_base_metadata): Allow inheriting Digest::Base subclasses, which was unintentionally made impossible while restructuring Digest classes. Wed Feb 28 22:10:55 2007 Akinori MUSHA * doc/NEWS-1.8.0: Rename NEWS to NEWS-1.8.0. This is way too old NEWS. * NEWS: Add NEWS, a document file to keep user visible feature changes between releases. * configure.in (ac_cv_func_fcntl): fcntl support for MinGW. * missing/flock.c: workaround for MinGW. * ext/openssl/extconf.rb: no need to check unistd.h and sys/time.h. they are already checked at configure. reported by KOBAYASHI Yasuhiro [ruby-list:43225] * lib/mkmf.rb ($DEFLIBPATH): default library paths ($(topdir), etc) should be the first elements of library paths list. reported by KOBAYASHI Yasuhiro [ruby-list:43225] * test/{dbm,gdbm}/test_{dbm,gdbm}.rb: shouldn't use host_os. use target_os instead. reported by KOBAYASHI Yasuhiro [ruby-list:43225] * mkconfig.rb (RbConfig): add CONFIG['PATCHLEVEL'] * common.mk: new target dist * distruby.rb: new file * configure.in (--enable-auto-image-base): avoid the neccessity to rebase the shared libs as much as possible; submitted by Corinna Vinschen in [ruby-talk:240964]. Wed Feb 28 20:51:32 2007 URABE Shyouhei * pack.c (pack_unpack): properly ignore non-base64 octets such as UTF-8 encoded BOMs; submitted by SOUMA Yutaka to fix [ruby-core:10437] Tue Feb 27 21:50:10 2007 WATANABE Hirofumi * util.c (__crt0_glob_function): use ruby_glob() instead of rb_globi(). * configure.in (ac_cv_func_setrlimit): workaround for djgpp. Tue Feb 27 20:49:19 2007 Akinori MUSHA * lib/base64.rb (Base64::b64encode): Fix documentation; submitted by David Symonds in [ruby-core:10432]. * regex.c (calculate_must_string, slow_search, re_search): Silence warnings regarding char * vs. unsigned char * mismatch; submitted by Lyle Johnson in [ruby-core:10416]. * ext/bigdecimal/bigdecimal.c (BigDecimal_load): Ditto. * ext/digest/sha1/sha1ossl.c (SHA1_Finish): Ditto. * ext/digest/rmd160/rmd160ossl.c (RMD160_Finish): Ditto. * ext/digest/digest.c (rb_digest_base_finish, rb_digest_base_update): Ditto. * ext/nkf/nkf.c (rb_str_resize, rb_nkf_kconv, rb_nkf_guess1, rb_nkf_guess2): Ditto. * ext/thread/thread.c (wait_list_cleanup, rb_mutex_try_lock): Eliminate rb_thread_critical switching where unnecessary; implied by shugo in [ruby-dev:30412]. * ext/thread/thread.c (set_critical): Merge in thread_exclusive_ensure(). * ext/thread/thread.c: Consistently use 0 and 1 for rb_thread_critical values. * ext/thread/thread.c: Use xmalloc()/xfree() instead of malloc()/free(); pointed out by shugo in [ruby-dev:30412]. * lib/test/unit/autorunner.rb (Test::Unit::AutoRunner::initialize): Initialize @workdir properly to silence a warning under -w. Submitted by in [ruby-dev:30400]. Sun Feb 25 02:50:51 2007 Akinori MUSHA * defines.h: Pull the RUBY_MBCHAR_MAXSIZE definition from trunk, which is necessary for dir.c to compile on djgpp and emx. Sat Feb 24 17:04:01 2007 Tadayoshi Funaba * lib/date/format.rb: updated based on date2 4.0.3. Sat Feb 24 17:01:02 2007 Minero Aoki * ext/racc/cparse/cparse.c (cparse_params_mark): remove useless rb_gc_mark. Thanks Tomoyuki Chikanaga. [ruby-dev:30405] Sat Feb 24 16:53:09 2007 NAKAMURA Usaku * signal.c (sighandler): need to tell to be interrupted to main context when handler is installed. * win32/win32.[ch] (rb_win32_interrupted): new function to listen interrupt. * win32/win32.c (set_pioinfo_extra): new function for VC++8 SP1 workaround. [ruby-core:10259] * win32/win32.c (NtInitialize): call above function. Fri Feb 23 13:04:43 2007 Akinori MUSHA * numeric.c (fix_cmp, fix_equal): Remove FIX2LONG() to optimize. suggested in http://t-a-w.blogspot.com/2007/02/making-ruby-faster.html. [ruby-talk:240223] Fri Feb 23 12:47:13 2007 James Edward Gray II * lib/xmlrpc/client.rb (XMLRPC::Client::do_rpc): Make the Content-Length parameter optional for responses in xmlrpc/client.rb; suggested by Daniel Berger and approved by the maintainer. * lib/xmlrpc/create.rb (XMLRPC::Create::conv2value): Add DateTime support to xmlrpc; approved by the maintainer. Mon Feb 19 18:33:30 2007 Akinori MUSHA * ext/socket/socket.c (unix_peeraddr): wrong syscall name in error message for #peeraddr. a patch from Sam Roberts . [ruby-core:10366] Mon Feb 19 18:27:42 2007 Akinori MUSHA * configure.in, defines.h, eval.c (rb_feature_p, rb_provided, load_wait, search_required, rb_require_safe), ext/extmk.rb: Fix a bug where a statically linked extension cannot be autoloaded. [ruby-dev:30023] / [ruby-dev:30239] Thu Feb 15 20:31:07 2007 Akinori MUSHA * lib/uri/ftp.rb: Revert the previous change pending discussion. Fri Feb 16 11:18:21 2007 Eric Hodel * lib/.document: Apply patch for irb, e2mmap and README by Hugh Sasse from [ruby-core:10135] * lib/prettyprint.rb: Suppress RDoc for PrettyPrint test suite. Thu Feb 15 18:10:09 2007 Akinori MUSHA * dir.c (glob_helper): Fix the function declaration. Thu Feb 15 16:55:33 2007 Akinori MUSHA * version.h: Branch off ruby_1_8_6 from ruby_1_8 in preparation for the forthcoming 1.8.6 release. Thu Feb 15 16:44:14 2007 Akinori MUSHA * lib/uri/generic.rb (URI::Generic::userinfo): Considering how `scheme://user:@...', `scheme://:password@...' and `scheme://:@...' are parsed, an empty user name or password should be allowed and represented as it is. Thu Feb 15 11:46:05 2007 KIMURA Koichi * dir.c, win32/win32.c, win32/dir.h, ruby.h, intern.h: Bring encoding aware globbing support in from trunk. Dir.[] and Dir.glob() can now take many patterns in an array. Minor fixes will follow. Thu Feb 15 11:00:26 2007 Akinori MUSHA * lib/uri/generic.rb (URI::Generic::userinfo): should support empty password. [ruby-core:10290] * lib/uri/generic.rb (URI::Generic::set_password): password can be cleared by nil. [ruby-core:10290] * lib/uri/common.rb (escape): regard second string argument as a character set properly. [ruby-dev:27692] * lib/uri/ftp.rb: Attempt to conform to RFC 1738 with regard to relative/absolute paths. * lib/uri: Lovely RDOC patches from mathew (metaATpoboxDOTcom). Thu Feb 15 10:57:38 2007 Tietew > * lib/cgi.rb (CGI::unescapeHTML): invalid decoding for single unescaped ampersand. a patch from Tietew in [ruby-dev:30292]. fixed: [ruby-dev:30289] Thu Feb 15 10:48:40 2007 MenTaLguY * ext/thread/thread.c: Handle interrupted waits correctly. [ruby-bugs:PR#8663] Wed Feb 14 19:22:15 2007 Akinori MUSHA * ext/digest/lib/digest.rb (Digest::self.const_missing): Drop autoloads for sha2 classes in favor of handling in const_missing(), to work around a problem exposed on OS X. Tue Feb 13 02:21:12 2007 Sam Roberts * io.c (rb_f_syscall): Fix buffer overflow with syscall arguments. [ruby-bugs:PR#8541] Sun Feb 11 07:46:45 2007 Akinori MUSHA * lib/cgi.rb (CGI::QueryExtension::read_multipart): Properly parse a quoted-string in a Content-Disposition value. Sun Feb 11 06:27:54 2007 Akinori MUSHA * configure.in, ext/thread/extconf.rb, lib/thread.rb: Add a configure option `--disable-fastthread', to choose the original, pure ruby version of the "thread" library instead of the new, much faster implementation in ext/thread. Sun Feb 11 06:22:20 2007 Akinori MUSHA * ext/Setup: Add thread except for platforms without threads support. Sun Feb 11 06:15:16 2007 Akinori MUSHA * ext/thread/lib/thread.rb: Add a replacement of thread.rb that loads this extension. Sun Feb 11 05:39:47 2007 Akinori MUSHA * lib/thread.rb: Remove an ineffective part of the code. Sun Feb 11 05:32:54 2007 Akinori MUSHA * ext/thread/thread.c (rb_thread_exclusive): Implement Thread.exclusive. Sun Feb 11 05:26:51 2007 Akinori MUSHA * ext/thread/thread.c: Get rid of use of a dummy function. Sun Feb 11 01:45:31 2007 Hidetoshi NAGAI * ext/thread/thread.c (Init_thread): Define missing aliases: Queue#enq and SizedQueue#enq. Sat Feb 10 09:27:35 2007 Masaki Suketa * ext/win32ole/win32ole.c (ole_variant2val): fix compile error on VC++. Sat Feb 10 07:41:52 2007 Masaki Suketa * ext/win32ole/win32ole.c (ole_variant2val): fix the bug when SAFEARRAY pointer is NULL. Sat Feb 10 00:13:11 2007 Hidetoshi NAGAI * ext/tk/lib/tk.rb: fix typo (TkConfigMethod::__confinfo_cmd, __conv_keyonly_opts). Fri Feb 9 20:44:53 2007 Akinori MUSHA * ext/thread: Make style fixes (mostly de-K&R'ism) to match the rest of the source code. * ext/thread: Make USE_MEM_POOLS an extconf option. Fri Feb 9 20:43:01 2007 Akinori MUSHA * ext/thread: Import the "fastthread" implementation by MenTaLguY in the original form. This module is not hooked into the build yet since it needs some style fixes and adjustments. Fri Feb 9 15:46:09 2007 Akinori MUSHA * ext/bigdecimal: Synchronize with trunk. Better function prototypes, removal of a useless method `!=', and document updates. Tue Feb 06 22:06:45 2007 NARUSE, Yui * ext/nkf/nkf-utf8/{nkf.c,utf8tbl.c}: imported nkf 2007-01-28. * Fixed: can't decode MIME encode JIS string. * Fixed: Fullwitdh-halfwidth conversion. * Support DoCoMo's and Softbank's EMOJI * Support CP932, CP5022x, eucJP-ms UDC * Support UTF-32 encoding * Support beyond BMP [ruby-dev:29700] [ruby-dev:29922] [ruby-dev:30144] Wed Jan 31 14:52:09 2007 Yukihiro Matsumoto * eval.c (rb_iterate): need to PUSH_ITER in proper order. [ruby-core:10125] * test/ruby/test_iterator.rb (TestIterator::test_block_given_within_iterator): add new test. [ruby-core:10125] Tue Jan 30 14:58:51 2007 NAKAMURA Usaku * string.c (rb_str_sub_bang): calling rb_str_modify() should be just before actually modifying the string. fixed: [ruby-dev:30211] (originally reported by zunda) Tue Jan 30 12:05:35 2007 Nobuyoshi Nakada * mkconfig.rb: autoconf 2.61 support. [ruby-core:10016] Sat Jan 27 15:20:11 2007 Yukihiro Matsumoto * parse.y (dyna_var_lookup): should not alter dvar->val not to destroy living value. [ruby-core:10076] * parse.y (dyna_init): ditto. Fri Jan 26 12:03:39 2007 Hidetoshi NAGAI * ext/tk/lib/tk.rb (TkConfigMethod#__confinfo_cmd, __conv_keyonly_optkeys): make them private [ruby-dev:30074]. * ext/tk/lib/tk/txtwin_abst.rb: fix typo [ruby-dev:30073]. * ext/tk/lib/tk/canvas.rb (TkCanvas#scan_dragto): lack of an argument. * ext/tk/lib/tk/canvas.rb: clarify the including module name [ruby-dev:30080]. * ext/tk/lib/tk/scrollable.rb: change primary name of modules [ruby-dev:30080]. Wed Jan 24 18:05:39 2007 Yukihiro Matsumoto * misc/ruby-mode.el (ruby-font-lock-syntactic-keywords): fix regexp font-lock bug. [ruby-talk:235758] Tue Jan 23 11:02:33 2007 Yukihiro Matsumoto * lib/webrick/httprequest.rb (WEBrick::HTTPRequest::read_line): Tue Jan 23 18:26:12 2007 Yukihiro Matsumoto * lib/cgi.rb (CGI::QueryExtension::read_multipart): use == instead of ===. [ruby-dev:30176] Tue Jan 23 10:48:17 2007 Yukihiro Matsumoto * hash.c: added documentation for Hash about how it uses eql? and hash methods for the keys. [ruby-core:09995] Mon Jan 22 14:57:25 2007 Yukihiro Matsumoto * ext/socket/socket.c: fix errors in socket sample code. [ruby-core:09992] Sat Jan 13 23:54:48 2007 Masaki Suketa * ext/win32ole/win32ole.c (ole_free, ole_type_free, olemethod_free, olevariable_free, oleparam_free, ole_event_free): fix memory leak. [ruby-core:09846] Fri Jan 12 11:13:55 2007 Nobuyoshi Nakada * ext/etc/etc.c (etc_getpwuid, etc_getgrgid): fix to correctly convert uid/gid from VALUE. (backport of r11521) Wed Jan 10 18:57:57 2007 Minero Aoki * ext/strscan/strscan.c (strscan_do_scan): should set kcode option before match. [ruby-dev:29914] * test/strscan/test_stringscanner.rb: test it. * re.c: export kcode_set_option and kcode_reset_option (with "rb_" prefix). * intern.h: ditto. Tue Jan 9 17:45:17 2007 NAKAMURA Usaku * file.c (rb_find_file): should not call fpath_check() with NULL. fixed: [ruby-core:09867] Tue Jan 9 03:54:38 2007 Yukihiro Matsumoto * string.c (rb_str_upto): String#upto from empty string makes inifinite loop. [ruby-core:09864] Sun Jan 7 12:13:26 2007 Eric Hodel * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser#find_class_comment): Look for class and module comments above rb_define_class and rb_define_module. Patch by Daniel Berger Sun Jan 7 10:32:12 2007 Eric Hodel * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser#handle_constants): Properly handle escaping of : in comments. * test/rdoc/parsers/test_parse_c.rb: Test RDoc::C_Parser#do_classes and Rdoc::C_Parser#find_class_comment. Sun Jan 7 09:33:02 2007 Tadayoshi Funaba * lib/date/format.rb: updated based on date2 4.0.1. Wed Jan 3 11:36:51 2007 Yukihiro Matsumoto * io.c (ruby_dup): start GC on ENOMEM as well. Mon Jan 1 06:13:11 2007 Eric Hodel * lib/rdoc/parsers/c_parser.rb: Make Rdoc accessible. Update constant value information. Mon Jan 1 06:13:11 2007 Eric Hodel * ext/bigdecimal/bigdecimal.c: Update constant comments to provide values for RDoc. Mon Jan 1 06:05:55 2007 Eric Hodel * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser#handle_constansts): Allow RDoc comment to give friendly value for rb_define_const. Patch by Daniel Berger , [ruby-patches-7499]. * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser#handle_constansts): Fix whitespace handling in constant comments. Sun Dec 31 00:31:16 2006 Tadayoshi Funaba * lib/date.rb, lib/date/format.rb: updated based on date2 4.0. Thu Dec 14 18:29:13 2006 Yukihiro Matsumoto * ext/readline/readline.c: NetBSD editline does not have rl_username_completion_function() and rl_completion_matches(). a patch from Takahiro Kambe . [ruby-dev:30008] Thu Dec 14 18:20:43 2006 Yukihiro Matsumoto * lib/irb/locale.rb (IRB::Locale::puts): typo fixed. a patch from NAKAMURA Usaku . [ruby-dev:30012] Mon Dec 11 11:58:36 2006 Akinori MUSHA * ext/digest/sha2/lib/sha2.rb: Moved one level up from under the superfluous subdirectory digest/. Mon Dec 11 11:46:18 2006 Yukihiro Matsumoto * variable.c (rb_define_const): typo fixed. Mon Dec 11 09:36:29 2006 Yukihiro Matsumoto * string.c (rb_str_aset): index double decode problem. [ruby-core:09695] Sat Dec 9 21:39:24 2006 Nobuyoshi Nakada * eval.c (ruby_cleanup): keep the exception till after END blocks. [ruby-core:09675] Sat Dec 9 11:22:00 2006 Yukihiro Matsumoto * lib/irb/locale.rb (IRB::Locale::search_file): ues File.exist? instead of File.exists?. a patch from Yutaka Kanemoto in [ruby-dev:30000]. Thu Dec 7 09:29:02 2006 Yukihiro Matsumoto * lib/weakref.rb (WeakRef::__setobj__): should support marshaling. [ruby-talk:228508] * lib/delegate.rb (Delegator::marshal_load): need to call __setobj__. Wed Dec 6 23:56:14 2006 Nobuyoshi Nakada * Makefile.in, common.mk (NULLCMD): moved for platforms that empty command does not run. fixed: [ruby-dev:29994] Wed Dec 6 17:17:26 2006 WATANABE Hirofumi * configure.in (SITE_DIR): fixed to emtpy RUBY_SITE_LIB in config.h on NetBSD. fixed: [ruby-dev:29358] Tue Dec 5 00:59:05 2006 Yukihiro Matsumoto * misc/ruby-mode.el (ruby-parse-partial): need to parse "/=" as self assignment operator, not regex. [ruby-talk:227324] Mon Dec 4 10:48:03 2006 Yukihiro Matsumoto * ruby.h (OFFT2NUM): use LONG2NUM() if sizeof(long) equals to sizeof(off_t). Mon Dec 4 10:43:46 2006 Yukihiro Matsumoto * parse.y (dyna_init_gen): dvar initialization only if dvar is assigned inner block. [ruby-talk:227402] Mon Dec 4 08:32:49 2006 Shugo Maeda * lib/cgi.rb (CGI::QueryExtension::read_multipart): should quote boundary. JVN#84798830 Sat Dec 2 07:09:04 2006 GOTOU Yuuzou * ext/openssl/ossl_ocsp.c: OpenSSL::OCSP::OSCPError should be subclass of OpenSSL::OpenSSLError. [ruby-dev:29980] Fri Dec 1 17:01:49 2006 NAKAMURA Usaku * gc.c (ruby_init_stack): decrease "stack level too deep" in Windows. merge from trunk. Fri Dec 1 16:31:53 2006 Hidetoshi NAGAI * ext/tk/tcltklib.c: shouldn't run the killed thread at callback. [ruby-talk: 227408] Mon Nov 27 17:18:27 2006 Yukihiro Matsumoto * sprintf.c (rb_f_sprintf): need not to truncate string if no width specifier given for %s. [ruby-dev:29952] Sun Nov 26 16:36:46 2006 URABE Shyouhei * version.h: addition of RUBY_PATCHLEVEL. * version.c: ditto. Fri Nov 24 10:17:51 2006 Yukihiro Matsumoto * bignum.c (bignorm): avoid segmentation. a patch from Hiroyuki Ito . [ruby-list:43012] Thu Nov 23 10:38:40 2006 Yukihiro Matsumoto * eval.c (rb_mod_define_method): set implicit visibility only when it's called for the target class (ruby_cbase). Wed Nov 22 16:00:49 2006 Hidetoshi NAGAI * ext/tk/extconf.rb: support --with-X11/--without-X11 option. * ext/tk/README.tcltklib: add description about --with-X11-* option [ruby-talk:225166] and --with-X11/--without-X11 option. * ext/tk/tkutil/extconf.rb: able to be called manually [ruby-talk:225950]. Wed Nov 15 23:22:54 2006 Nobuyoshi Nakada * file.c (test_grpowned, rb_stat_grpowned): should honor supplementary group IDs. [ruby-core:09546] Thu Nov 9 03:15:22 2006 Yukihiro Matsumoto * eval.c (BEGIN_CALLARGS): ruby_block may be NULL even when ITER_PRE. Tue Nov 7 18:34:34 2006 Akinori MUSHA * ext/digest/lib/digest/hmac.rb: Keep this out of the 1.8 tree until we reach a consensus that HMAC should be put under Digest. Tue Nov 7 18:05:01 2006 Hidetoshi NAGAI * ext/tk/lib/tk/itemconfig.rb: minor bug fix. Mon Nov 6 20:11:20 2006 Kouhei Sutou * lib/rss/0.9.rb (RSS::Rss): removed needless include. Mon Nov 6 15:41:55 2006 Hidetoshi NAGAI * ext/tk/lib/tk/itemconfig.rb: ext/tk/lib/tk/itemconfig.rb: bug fix on 'itemconfiginfo' method, and modify to make it easy to override 'itemconfiginfo' method. * ext/tk/lib/tkextlib/tile/treeview.rb : support Tile 0.7.8. * ext/tk/lib/tkextlib/version.rb : [new] add Tk::Tkextlib_RELEASE_DATE to get the information from scripts. * ext/tk/lib/tk.rb: load 'tkextlib/version.rb', and update RELEASE_DATE * ext/tk/lib/tkextlib/SUPPORT_STATUS: update. * ext/tk/sample/editable_listbox.rb: [new] the listbox with editable items. It's one of the example about usage of Place geometry manager. * ext/tk/sample/tktextio.rb: improve the functions of TkTextIO class. Those are required by 'irbtkw.rbw'. * ext/tk/sample/irbtkw.rbw: [new] IRB on Ruby/Tk. It doesn't need any real console. IRB works on a text widget without I/O blocking. That is, thread switching on IRB will work properly, even if on Windows. Sun Nov 5 19:53:49 2006 Tadayoshi Funaba * lib/date.rb: updated based on date2 3.9.7. Sat Nov 4 13:13:57 2006 Shugo Maeda * lib/net/imap.rb: accept NOMODSEQ. [ruby-core:9002] (backported from HEAD) Fri Nov 3 00:16:37 2006 Yukihiro Matsumoto * ext/socket/socket.c (ruby_getnameinfo__aix): AF_INET6 workaround for AIX. a patch from Yutaka Kanemoto . [ruby-dev:29744] Thu Nov 2 15:43:39 2006 NAKAMURA Usaku * parse.y (primary): should set NODE even when compstmt is NULL. merge from trunk. fixed: [ruby-dev:29732] Thu Nov 2 14:48:30 2006 Akinori MUSHA * lib/set.rb (Set#^): Fix XOR operation against a container that holds duplicate values. [issue: #6444] Wed Nov 1 02:41:38 2006 Akinori MUSHA * ext/digest/lib/digest/hmac.rb (Digest::HMAC::update): Minor optimization. * ext/digest/digest.c (rb_digest_instance_equal): Allow comparing a digest instance with another of a different class. Wed Nov 1 01:05:13 2006 NAKAMURA Usaku * eval.c (rb_call0): fixed bug of zsuper with both of opt and rest. fixed: [ruby-list:42928] * test/ruby/test_super.rb: add tests to check above bug. Tue Oct 31 17:03:21 2006 Yukihiro Matsumoto * time.c (time_dup): duplicate the class of original time. [ruby-core:09357] * lib/time.rb (Time::make_time, Time::rfc2822, Time::httpdate): should respect subclasses. [ruby-core:09357] Mon Oct 30 23:40:52 2006 Nobuyoshi Nakada * Makefile.in (miniruby): add XLDFLAGS. * configure.in (aix): use -bE option for miniruby. [ruby-dev:29698] * dir.c (glob_helper): get rid of possible memory leak. * win32/win32.c (cmdglob, rb_w32_cmdvector, rb_w32_opendir, rb_w32_get_environ): not to use GC before initialization. Mon Oct 30 19:29:20 2006 NAKAMURA Usaku * bignum.c (rb_big2str0): use better approximation. Mon Oct 30 18:35:33 2006 Yukihiro Matsumoto * bignum.c (rb_big2str0): wrong allocation length. a patch from U.Nakamura [ruby-dev:29710] Mon Oct 30 12:34:02 2006 Yukihiro Matsumoto * eval.c (rb_eval): fix commit miss. [ruby-dev:29707] Mon Oct 30 12:20:58 2006 Yukihiro Matsumoto * bignum.c (rb_big2str0): a bug in length adjustment. Mon Oct 30 11:15:40 2006 Yukihiro Matsumoto * sprintf.c (rb_str_format): should preserve leading zero information for negative %b and %x. [ruby-talk:221347] Thu Oct 26 21:05:58 2006 GOTOU Yuuzou * ext/openssl/ossl_pkcs7.c (ossl_pkcs7_verify): should clear error. (fix http://bugs.debian.org/394336) * ext/openssl/ossl_ns_spki.c (ossl_spki_initialize): ditto. Thu Oct 26 15:21:10 2006 NAKAMURA Usaku * ext/digest/digest.c (Init_digest): typo. Wed Oct 25 17:23:28 2006 Akinori MUSHA * ext/digest, test/digest/test_digest.rb: Merge from trunk: - Introduce versioning in Digest::Base API, and prefix C constants with RUBY_ and C type names with rb_ to avoid name clash in writing extensions. - Introduce Digest::Class and Digest::Instance for ease of implementing subclasses and add-ons. - Digest::Instance module requires and assumes that any instance be resettable and clonable. An instance method #new() is added so digest instances work just like digest classes. - The constructor does no longer take an initial string to feed; digest() and hexdigest() now do, instead. This allows digest classes to take their own hashing parameters. - Make some changes to digest() and hexdigest() class methods, which now take extra arguments, which are passed through to the constructor in an internal call. - Add #digest_length/size/length() and #block_length(), - Add the Digest::SHA2 class to wrap up SHA2 variants: SHA256, SHA384 and SHA512, hoping this module would make a decent example of a digest subclass written in Ruby. - Rip BubbleBabble support out of the base class and have a separate module named digest/bubblebabble. - Remove RD documents in favor of newly written and embedded RDoc documentation. Wed Oct 25 08:03:23 2006 Tadayoshi Funaba * lib/date/format.rb: updated based on date2 3.9.6. [ruby-core:09323] Sun Oct 22 14:48:31 2006 Yukihiro Matsumoto * signal.c (ruby_signal): don't set SA_RESTART. a backport from the HEAD. [ruby-talk:220937] [ruby-talk:147220] * signal.c (Init_signal): avoid duplicated installation of SIGCHLD handler. Sun Oct 22 16:47:56 2006 Nobuyoshi Nakada * string.c (rb_str_substr): should be infected with only original string, but not the shared string. fixed: [ruby-core:09152] * string.c (rb_str_new4): keep shared string untainted when orignal string is tainted. fixed: [ruby-dev:29672] Sun Oct 22 05:20:34 2006 URABE Shyouhei * configure.in: alloca is broken; use C_ALLOCA instead. [ruby-dev:29416] Fri Oct 20 10:47:43 2006 NAKAMURA Usaku * lib/mkmf.rb: fixed the bug of handling COMMON_MACROS. Fri Oct 20 08:42:38 2006 Nobuyoshi Nakada * common.mk (NULLCMD): dummy command. * bcc32/Makefile.sub (post-install-*): Borland make cannot ignore command-less double-colon rules. [ruby-dev:29676] Fri Oct 20 00:37:07 2006 Nobuyoshi Nakada * bcc32/Makefile.sub ($(LIBRUBY_SO)): execute pre-link hook. * ext/extmk.rb: workaround for Borland make. Wed Oct 18 23:02:40 2006 Nobuyoshi Nakada * array.c (rb_ary_shift): shorten copy size. fixed: [ruby-list:42907] * signal.c (Init_signal): handle SIGTERM. fixed: [ruby-list:42895] * win32/win32.c (rb_w32_utime): allow NULL to set the current time. [ruby-talk:219248] Wed Oct 18 00:55:33 2006 Nobuyoshi Nakada * parse.y (parser_yylex): use particular enums. [ruby-core:09221] Mon Oct 16 08:30:43 2006 Nobuyoshi Nakada * mkconfig.rb: *OBJS are not needed for extension libraries. * {bcc32,wince,win32}/Makefile.sub (config.status): fixed typo, missing comma. Sun Oct 15 01:03:08 2006 Nobuyoshi Nakada * lib/test/unit/collector/dir.rb (Collector::Dir#collect): append base directory but not prepend. * lib/test/unit/collector/dir.rb (Collector::Dir#collect_file): do not join with dot. fixed: [ruby-core:09179] Sat Oct 14 23:39:50 2006 Yukihiro Matsumoto * parse.y (singleton): no need to re-create NODE_SELF() again. [ruby-core:09177] Sat Oct 14 23:25:31 2006 Yukihiro Matsumoto * parse.y (parser_warning, parser_warn): some error message may contain format specifiers. a patch from Akinori MUSHA . [ruby-dev:29657] * ext/bigdecimal/bigdecimal.c (VpException): ditto. * ext/dl/handle.c (rb_dlhandle_initialize): ditto. * ext/gdbm/gdbm.c (rb_gdbm_fatal): ditto. Sat Oct 14 08:24:45 2006 Akinori MUSHA * ext/digest/lib/digest/hmac: Back out the addition of digest/hmac for now because the API is too premature for a stable branch. Sat Oct 14 00:55:08 2006 Nobuyoshi Nakada * bcc32/Makefile.sub (post-install-ext): no longer needed. * bcc32/configure.bat: get rid of a quirk of Borland make, which sets empty macro in command line to "1". Fri Oct 13 22:50:43 2006 Tadayoshi Funaba * lib/date.rb: updated based on date2 3.9.5. Fri Oct 13 22:33:28 2006 Minero Aoki * lib/fileutils.rb (FileUtils.cp_r): dereference_root=true is default in Ruby 1.8. This line is wrongly removed in last commit. Fri Oct 13 18:19:31 2006 Yukihiro Matsumoto * object.c: Class#inherited RDoc added. a patch from Daniel Berger [ruby-core:08942] Fri Oct 13 02:30:12 2006 Nobuyoshi Nakada * lib/test/unit/collector/dir.rb (Collector::Dir#collect): prepend base directory to load path. * lib/test/unit/collector/dir.rb (Collector::Dir#collect_file): should use the given File-like interface, but not File directly. * test/testunit/collector/test_dir.rb (TestDir::FileSystem): implement File-like methods correctly. Fri Oct 13 01:48:42 2006 Yukihiro Matsumoto * lib/date.rb (Date::self.complete_hash): need to check if g is nil before dereference. [ruby-core:09116] Fri Oct 13 00:34:26 2006 Yukihiro Matsumoto * object.c (rb_mod_cvar_defined): wrong id check. a patch from Mauricio Fernandez . [ruby-core:09158] * object.c (rb_mod_cvar_get): typo fixed. [ruby-core:09168] * object.c (rb_mod_cvar_set): ditto. Wed Oct 11 22:21:41 2006 Akinori MUSHA * ext/digest: Merge from trunk; metadata location changed, Digest::Base#reset() added, Digest::Base#equal() changed, and digest/hmac added with some modifications made for ruby 1.8. Tue Oct 10 17:24:12 2006 NAKAMURA Usaku * {bcc32,win32,wince}/Makefile.sub (config.status): shouldn't use copy command instead of install. use -run install. Tue Oct 10 16:49:16 2006 Akinori MUSHA * ext/digest/digest.c (hexdigest_str_new, bubblebabble_str_new): Perform StringValue() checks properly. * ext/digest/digest.c: Use RSTRING_{PTR,LEN} macros. Tue Oct 10 13:49:53 2006 Akinori MUSHA * ext/digest: Merge from trunk; apply all changes since the initial import, except for the removal of compatibility stub libraries (md5.rb and sha1.rb). Mon Oct 9 23:46:29 2006 Yukihiro Matsumoto * lib/parsedate.rb: documentation patch from Konrad Meyer . [ruby-doc:1238] * lib/open3.rb, lib/ping.rb: ditto. Mon Oct 9 22:56:12 2006 Yukihiro Matsumoto * lib/rexml/encoding.rb (REXML::Encoding::check_encoding): spaces are allowed around equal sign. [ruby-core:09032] * lib/rexml/parsers/baseparser.rb (REXML::Parsers::BaseParser): ditto. Sat Oct 7 23:53:08 2006 Yukihiro Matsumoto * string.c (rb_str_scan): small documentation fix. [ruby-core:09007] Sat Oct 7 23:44:33 2006 Yukihiro Matsumoto * bignum.c (rb_big_rshift): a bug in right shift of negative bignums. [ruby-core:09020] Sat Oct 7 00:27:58 2006 Yukihiro Matsumoto * class.c (rb_include_module): remove unnecessary check. [ruby-talk:218402] Fri Oct 6 04:30:30 2006 Akinori MUSHA * sample/openssl/c_rehash.rb: Use digest/md5 instead of obsolete md5. Wed Oct 4 18:47:25 2006 Hidetoshi NAGAI * ext/tk/lib/tkextlib/*: bugfix and update (see ext/tk/ChangeLog.tkextlib). Wed Oct 4 17:25:14 2006 Yukihiro Matsumoto * eval.c (rb_call): check protected visibility based on real self, not ruby_frame->self. [ruby-talk:217822] Wed Oct 4 08:52:30 2006 Nobuyoshi Nakada * test/optparse/test_getopts.rb: changed the class name of test case to get rid of conflict with test_optparse.rb. Tue Oct 3 23:32:27 2006 Nobuyoshi Nakada * lib/test/unit/testcase.rb (Test::Unit::TestCase.suite): test name must be string. fixed: [ruby-core:08978] Mon Oct 2 23:47:55 2006 Nobuyoshi Nakada * lib/test/unit/autorunner.rb (Test::Unit::AutoRunner::COLLECTORS): base directory should be lower precedence. fixed: [ruby-dev:29622] * lib/test/unit/autorunner.rb (Test::Unit::AutoRunner#options): typo. * lib/test/unit/collector/dir.rb (Test::Unit::Collector::Dir#collect_file): load expanded path. fixed: [ruby-dev:29621] Mon Oct 2 15:49:19 2006 NAKAMURA Usaku * instruby.rb: batfile should be CRLF'ed. Mon Oct 2 01:24:26 2006 Nobuyoshi Nakada * common.mk (test-all): separate directory where running test cases from source tree. * lib/test/unit/autorunner.rb (options): added --basedir, --workdir and --load-path options. * lib/test/unit/collector/dir.rb (recursive_collect, collect_file): base directory support. Sun Oct 1 23:56:52 2006 Nobuyoshi Nakada * Makefile.in, common.mk, ext/extmk.rb, win{32,ce}/Makefile.in: keep LIBRUBY_SO unless need to be removed. Sun Oct 1 23:12:19 2006 Nobuyoshi Nakada * lib/optparse.rb (OptionParser#make_switch): pass arguments directly. Sat Sep 30 15:12:25 2006 Tadayoshi Funaba * lib/date.rb, lib/date/format.rb: updated based on date2 3.9.4. Fri Sep 29 12:11:04 2006 WATANABE Hirofumi * jcode.rb (succ!): call original succ! if $KCODE == 'n'. fixed: [ruby-talk:216845] Fri Sep 29 11:43:40 2006 Nobuyoshi Nakada * lib/mkmf.rb (try_func): revert fallback checking undeclared function. fixed: [ruby-core:08949] Fri Sep 29 09:56:56 2006 Nobuyoshi Nakada * ext/extmk.rb: extout is needed for also clean. fixed: [ruby-core:08944] * lib/optparse.rb (OptionParser::Switch#conv_arg): unsplat by Proc#call if no conversion is given. Thu Sep 28 23:59:31 2006 Nobuyoshi Nakada * node.h (struct thread): declare win32_exception_list on cygwin and win32 regardless if it is implemented. Provisional fix for [ruby-core:08917]. Thu Sep 28 20:53:16 2006 NAKAMURA Usaku * lib/tmpdir.rb: use return value of getdir.call for length. Wed Sep 27 01:04:49 2006 Nobuyoshi Nakada * lib/mkmf.rb (try_func): check function pointer first and macro next. * lib/mkmf.rb (have_type): simplified with typedef and sizeof. Tue Sep 26 23:57:03 2006 Nobuyoshi Nakada * lib/optparse.rb (OptionParser#getopts): use strings as key. fixed: [ruby-dev:29614] Tue Sep 26 15:31:26 2006 NAKAMURA Usaku * {win32,wince}/Makefile.sub (CPP): check predefined value. Tue Sep 26 07:55:16 2006 Yukihiro Matsumoto * array.c (rb_ary_shift): should not move memory region if array body is shared. a patch from Kent Sibilev . [ruby-core:08922] Mon Sep 25 22:26:26 2006 Nobuyoshi Nakada * file.c (rb_path_end): skip root directory. fixed: [ruby-core:08913] * lib/mkmf.rb (init_mkmf): set default $LDFLAGS. Patch by Michal Suchanek . [ruby-talk:216256] Mon Sep 25 08:14:43 2006 Yukihiro Matsumoto * array.c (rb_ary_shift): should clear shifting top element. [ruby-talk:216055] * array.c (rb_ary_shift): avoid creating shared object if array size is small. Mon Sep 25 08:11:35 2006 Yukihiro Matsumoto * random.c (rb_f_rand): RDoc typo fix. a patch from Frederick Cheung . [ruby-talk:216047] Sun Sep 24 22:28:20 2006 Nobuyoshi Nakada * runruby.rb: extension library scripts moved into common directory. Sun Sep 24 14:59:50 2006 Tanaka Akira * node.h (struct thread): ia64 support is broken by sandbox patch. Sun Sep 24 12:11:16 2006 Tadayoshi Funaba * lib/date.rb, lib/date/format.rb: updated based on date2 3.9.3. Sat Sep 23 23:24:57 2006 why the lucky stiff * eval.c (rb_thread_save_context, rb_thread_restore_context): sandbox hook to save and restore sandbox state. * eval.c (thread_no_ensure): added THREAD_NO_ENSURE thread flag. * eval.c (rb_thread_kill_bang): Thread#kill! uses the above flag to circumvent ensure, in order to prevent endless loops. [ruby-core:08768] * eval.c (rb_thread_kill): fix Thread#kill docs, which returns the thread object in all cases. * node.h: expose the rb_jmpbuf_t and rb_thread_t structs, along with the thread flags. used by the sandbox extension. * ruby.h: extern rb_eThreadError, so sandbox can swap it. Sat Sep 23 21:34:15 2006 Yukihiro Matsumoto * lib/cgi.rb (CGI::QueryExtension::read_multipart): CGI content may be empty. a patch from Jamis Buck . Sat Sep 23 08:35:53 2006 Yukihiro Matsumoto * lib/rdoc/ri/ri_options.rb: prevent NameError. [ruby-dev:29597] Sat Sep 23 01:04:20 2006 Tadayoshi Funaba * lib/date.rb, lib/date/format.rb: updated based on date2 3.9.2. Fri Sep 22 02:06:26 2006 Nobuyoshi Nakada * .cvsignore: ignore timestamp files and installed list file. Fri Sep 22 01:36:34 2006 Nobuyoshi Nakada * instruby.rb: include FileUtils unconditionally. Thu Sep 21 22:56:20 2006 Nobuyoshi Nakada * common.mk (no-install): not install rdoc actually. * common.mk (install-doc, no-install-doc): use instruby.rb. * instruby.rb: rdoc installation. * ext/extmk.rb: expand ruby executable names. Thu Sep 21 13:55:07 2006 Yukihiro Matsumoto * ext/etc/etc.c (etc_getpwuid): uid integer should be wraped in uid_t value. [ruby-core:08897] * ext/etc/etc.c (etc_getpwuid): uid_t may be bigger than plain 'int' type. Wed Sep 20 23:17:41 2006 Nobuyoshi Nakada * common.mk (pre-install-doc): create data directory before install. * lib/mkmf.rb (dir_re): fixed typo. * lib/mkmf.rb (install_dirs): remove extra slash. Wed Sep 20 09:53:38 2006 NAKAMURA Usaku * {bcc32,win32,wince}/Makefile.sub (INSTALLED_LIST): need to define this macro to install. Wed Sep 20 09:43:10 2006 Shugo Maeda * lib/net/imap.rb: allow extra spaces in responses. Thanks, Tom Soderlund. (backported from HEAD) Wed Sep 20 09:25:39 2006 Yukihiro Matsumoto * ext/gdbm/gdbm.c: add RDoc documentation. a patch from Peter Adolphs . [ruby-doc:1223] Tue Sep 19 01:28:00 2006 Minero Aoki * lib/fileutils.rb: backport from HEAD (rev 1.71). * lib/fileutils.rb (FileUtils.cp_r): new option :remove_destination. Tue Sep 19 00:42:15 2006 Nobuyoshi Nakada * object.c (rb_obj_ivar_defined, rb_mod_cvar_defined): new methods, Kernel#instance_variable_defined? and Module#class_variable_defined?. [ruby-dev:29587] * lib/date/format.rb (Date::Bag#method_missing): use new method, instance_variable_defined? to check if an instance variable is defined. fixed: [ruby-dev:29554] -- This didn't fix anything. Sun Sep 17 23:44:58 2006 Nobuyoshi Nakada * lib/rdoc/rdoc.rb (RDoc::RDoc#document): scan only files modified after the previous generation. Sun Sep 17 17:42:13 2006 Nobuyoshi Nakada * common.mk (install-doc): reverted. * instruby.rb: stores file name list without destdir prefix. * lib/rdoc/generators/ri_generator.rb: do not chdir twice. Sat Sep 16 23:14:29 2006 Yukihiro Matsumoto * ext/pty/pty.c (establishShell): remove remaining unused line. Sat Sep 16 16:40:44 2006 Nobuyoshi Nakada * Makefile.in, common.in, instruby.rb, ext/extmk.rb, lib/mkmf.rb: use instruby.rb to install extensions instead of ext/extmk.rb. * instruby.rb: store installed list into the file. * ext/dbm/extconf.rb: allow multiple candidates for dbm-type. * ext/io/wait/extconf.rb: suspicious checking_for. * ext/pty/pty.c (establishShell): parent pid is not used. * ext/pty/pty.c (freeDevice): not used. * ext/pty/pty.c (get_device_once): removed garbage right brace. * lib/mkmf.rb (checking_for): improved the messages. Thu Sep 14 16:11:15 2006 Yukihiro Matsumoto * string.c (rb_str_intern): raise SecurityError only when $SAFE level is greater than zero. [ruby-core:08862] * parse.y (rb_interned_p): new function to check if a string is already interned. * object.c (str_to_id): use rb_str_intern(). Wed Sep 13 18:43:05 2006 Yukihiro Matsumoto * README.EXT: English adjustment. [ruby-core:08851] and [ruby-core:08852] Wed Sep 13 18:25:18 2006 Yukihiro Matsumoto * misc/ruby-mode.el (ruby-parse-partial): better here-doc support. a patch from Marshall T. Vandegrift . [ruby-core:08804] Wed Sep 13 16:43:36 2006 Yukihiro Matsumoto * string.c (rb_str_intern): prohibit interning tainted string. Wed Sep 13 01:14:21 2006 Nobuyoshi Nakada * lib/optparse.rb (OptionParser#getopts): works with pre-registered options. [ruby-core:08826] Sun Sep 10 20:27:13 2006 Tadayoshi Funaba * lib/date.rb, lib/date/format.rb: updated based on date2 3.9.1. Tue Jan 10 09:18:03 2006 Nobuyoshi Nakada * eval.c (stack_extend): fixed prototype. * eval.c (rb_require_safe): prevent extension from loading twice. fixed: [ruby-dev:29523] Sat Sep 9 23:50:38 2006 Yukihiro Matsumoto * bignum.c (rb_big_mul0): bignum multiplication without normalization. * bignum.c (rb_big_pow): use rb_big_mul0(). [ruby-dev:29547] Sat Sep 9 14:08:38 2006 Eric Hodel * lib/test/unit/testcase.rb (Test::Unit::TestCase#run): Rescue Exception in Test::Unit::TestCase#run. [ruby-core:08783] Sat Sep 9 04:55:59 2006 Nobuyoshi Nakada * lib/pstore.rb: open all in binary mode, and get rid of the quirk of msvcrt. fixed: [ruby-dev:29518] Sat Sep 9 04:54:42 2006 Nobuyoshi Nakada * Makefile.in, win32/Makefile.sub (MINIRUBY): append MINIRUBYOPT. * mkconfig.rb, ext/extmk.rb, lib/mkmf.rb, win32/mkexports.rb: suppress warnings with $VERBOSE. * ext/extmk.rb: Proc#call does not pass the block in 1.8. * win32/resource.rb: add more info. Fri Sep 8 10:03:59 2006 GOTOU Yuuzou * lib/webrick/cookie.rb (WEBrick::Cookie.parse_set_cookies): new method to parse multiple cookies per Set-Cookie header. Thanks to Aaron Patterson . [ruby-core:08802] Fri Sep 8 08:59:30 2006 Nobuyoshi Nakada * win32/Makefile.sub, win32/configure.bat win32/setup.mak: program name transform. Fri Sep 8 01:33:08 2006 Yukihiro Matsumoto * ruby.h (RSTRING_PTR): add migration macro. * ruby.h (RARRAY_PTR): ditto. Thu Sep 7 23:27:05 2006 Nobuyoshi Nakada * file.c (path_check_0, fpath_check): disable path check on cygwin. [ruby-talk:213074] Wed Sep 06 12:05:19 2006 NARUSE, Yui * ext/nkf/lib/kconv.rb (Kconv::RegexpEucjp): fix regexp for euc-jp [ruby-dev:29344] * ext/nkf/lib/kconv.rb (Kconv::toeuc): remove -m0 [ruby-dev:29505] Tue Sep 5 06:47:22 2006 Nobuyoshi Nakada * time.c (time_to_s): variable declaration after an execution statement. Tue Sep 5 05:56:51 2006 Nobuyoshi Nakada * numeric.c (flo_hash): improve collision. fixed: [ruby-dev:29352] Tue Sep 5 05:49:41 2006 Nobuyoshi Nakada * file.c (path_check_0): check if sticky bit is set on parent directories for executable path. fixed: [ruby-dev:29415] Tue Sep 5 05:03:46 2006 Yukihiro Matsumoto * numeric.c (fix_plus): addition in Fixnum will never overflow long. a patch from Ondrej Bilka . [ruby-core:08794] * numeric.c (fix_minus): ditto. * bignum.c (rb_big_pow): eagerly truncate resulting bignum. [ruby-core:08794] Mon Sep 4 23:15:34 2006 Yukihiro Matsumoto * time.c (time_to_s): make it conform to RFC2822 date format. [ruby-dev:29467] Mon Sep 4 21:43:57 2006 Nobuyoshi Nakada * ext/dbm/extconf.rb: create makefile according to the result of check for dbm header. fixed: [ruby-dev:29445] Mon Sep 4 21:42:35 2006 Tadayoshi Funaba * lib/date.rb, lib/date/format.rb: updated based on date2 3.9. Mon Sep 4 21:14:20 2006 Nobuyoshi Nakada * time.c (time_strftime): include nul character. fixed: [ruby-dev:29422] Mon Sep 4 16:29:33 2006 Yukihiro Matsumoto * lib/cgi.rb (CGI::out): specify -m0 -x option for nkf. [ruby-dev:29284] Mon Sep 4 16:13:23 2006 Yukihiro Matsumoto * io.c (pipe_open): command name should not contain null bytes. [ruby-dev:29421] * process.c (proc_spawn): ditto. * process.c (proc_spawn_n): ditto. * process.c (rb_f_system): ditto. Sun Sep 3 15:32:44 2006 Nobuyoshi Nakada * lib/mkmf.rb: get rid of nil.to_s. Sun Sep 3 06:24:38 2006 Tanaka Akira * ext/socket/socket.c (ruby_connect): sockerrlen should be socklen_t. Sun Sep 3 04:40:42 2006 Tanaka Akira * ext/socket/extconf.rb: check arpa/inet.h for ntohs. * ext/socket/socket.c: include arpa/inet.h if available. Sun Sep 3 02:34:55 2006 Masatoshi SEKI * lib/drb/unix.rb (DRbUNIXSocket#close): don't get path if client mode. [ruby-dev:29417] Sun Sep 3 01:45:17 2006 Masatoshi SEKI * lib/drb/acl.rb (ACLEntry#initialize): examine whether '*' is included before IPAddr.new. [ruby-dev:29406] Sat Sep 2 13:23:01 2006 Tanaka Akira * common.mk (ia64.o): use the compiler driver to assemble ia64.s to use appropriate ABI. Sat Sep 2 03:36:22 2006 Tanaka Akira * common.mk, configure.in, defines.h, eval.c, gc.c, main.c, numeric.c, ruby.h, ia64.s: backport IA64 HP-UX support. Fri Sep 1 13:52:57 2006 Hidetoshi NAGAI * ext/tk/lib/tk/font.rb: TkFont#current_configinfo() doesn't work on Tcl/Tk8.x. Thu Aug 31 12:46:55 2006 why the lucky stiff * eval.c (ruby_init): rename top_cref to ruby_top_cref and export, along with ruby_cref, for use by the sandbox. [ruby-core:08762] * node.h: ditto. Tue Aug 29 19:10:10 2006 Nobuyoshi Nakada * hash.c (rb_hash_s_create): fixed memory leak, based on the patch by Kent Sibilev . fixed: [ruby-talk:211233] Mon Aug 28 11:36:02 2006 Eric Hodel * lib/rdoc/parsers/parse_rb.rb: Fix typo. Submitted by . [ruby-core:08724] Mon Aug 28 07:53:44 2006 Eric Hodel * lib/rdoc/ri/ri_formatter.rb: Don't unescape HTML in HtmlFormatter. Submitted by Kent Sibilev . [ruby-core:08392]. Mon Aug 28 07:25:45 2006 Eric Hodel * file.c (File#size?): Fix documentation submitted by Rick Ohnemus. ruby-Bugs-5529. [ruby-core:08725] Sat Aug 26 08:07:13 2006 Tadayoshi Funaba * lib/date.rb, lib/date/format.rb: updated based on date2 3.8.2. Fri Aug 25 22:32:04 2006 Nobuyoshi Nakada * lib/rexml/source.rb (REXML::IOSource#initialize): encoding have to be set with the accessor. fixed: [ruby-list:42737] Fri Aug 25 17:15:17 2006 Yukihiro Matsumoto * stable version 1.8.5 released. Fri Aug 25 17:02:06 2006 Yukihiro Matsumoto * gc.c (gc_sweep): typo fixed. Tue Aug 22 18:47:51 2006 Yukihiro Matsumoto * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::handle_method): rdoc documents C module methods as instance methods. a patch in [ruby-core:08536]. Sat Aug 19 14:15:02 2006 NAKAMURA Usaku * win32/Makefile.sub (config.status): include winsock2.h instead of winsock.h when --with-winsock2 is specified. fixed: [ruby-dev:29296] Sat Aug 19 11:28:08 2006 Nobuyoshi Nakada * file.c (rb_file_s_rename): use errno if set properly. fixed: [ruby-dev:29293] Sat Aug 19 11:09:23 2006 Yukihiro Matsumoto * parse.y (then): remove semicolon warning. [ruby-dev:29299] Thu Aug 17 19:15:16 2006 Nobuyoshi Nakada * file.c (rb_stat_[rRwWxX]): check for super user. fixed: [ruby-core:08616] Thu Aug 17 14:47:06 2006 Nobuyoshi Nakada * lib/mkmf.rb: added rdoc by Daniel Berger. [ruby-core:08177] Thu Aug 17 00:39:05 2006 Masatoshi SEKI * lib/rinda/ring.rb (do_reply): Fix for RingServer fails to find a TupleSpace when TupleSpace resides in the same ruby process with RingServer. a patch from Kent Sibilev. [ruby-core:08453] Wed Aug 16 11:45:36 2006 Nobuyoshi Nakada * process.c (proc_setuid, proc_setgid, proc_seteuid, proc_setegid): get rid of bogus implementations on Mac OS X. Tue Aug 15 19:10:18 2006 Eric Hodel * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser#find_class_comment): Fix broken class-level documentation. Wed Aug 16 11:09:26 2006 Nobuyoshi Nakada * ruby.c (set_arg0): fill argv other than the first with an empty string instead of NULL. Wed Aug 16 11:08:00 2006 Nobuyoshi Nakada * win32/win32.h: removed an excess macro. fixed: [ruby-dev:29258] Tue Aug 8 23:49:06 2006 Yukihiro Matsumoto * lib/irb/extend-command.rb (IRB::ExtendCommandBundle): pacify RDoc. a patch from Eric Hodel . [ruby-core:08522] Tue Aug 8 11:32:54 2006 NAKAMURA Usaku * Makefile.in, common.mk, configure.in: fix for platforms without rm. patches from Yutaka kanemoto . [ruby-dev:29215] Mon Aug 7 17:56:59 2006 Yukihiro Matsumoto * ext/bigdecimal/bigdecimal.c, ext/digest/rmd160/rmd160ossl.c, ext/digest/sha1/sha1ossl.c, ext/readline/readline.c: move incluion of config.h to pacify AIX. a patch from Yutaka Kanemoto . [ruby-dev:29197] Mon Aug 7 15:55:08 2006 Yukihiro Matsumoto * ext/syck/syck.c (syck_move_tokens): should avoid negative memmove. [ruby-list:42625] Mon Aug 7 14:37:48 2006 Yukihiro Matsumoto * configure.in, common.mk: AIX link issue. a patch from Yutaka Kanemoto . [ruby-dev:29190] * ext/socket/socket.c: AIX socket support. [ruby-dev:29190] Mon Aug 7 12:05:28 2006 Yukihiro Matsumoto * dln.c, eval.c, gc.c, regex.c, ruby.h: shut up AIX alloca warning. a patch from Yutaka Kanemoto . [ruby-dev:29191] Sun Aug 6 20:40:41 2006 Tadayoshi Funaba * lib/date/format.rb (str[fp]time): %[EO]U didn't denote %U. Sat Aug 5 17:07:43 2006 Yukihiro Matsumoto * parse.y (top_local_setup): local_vars[-1] should point ruby_scope itself to protect local_tbl from garbage collection. [ruby-dev:29049] Sat Aug 5 13:54:03 2006 Tadayoshi Funaba * lib/date/format.rb (str[fp]time): "%\n" means "\n". Fri Aug 4 15:21:00 2006 Eric Hodel * lib: Merge RDoc and .document from HEAD. * lib/drb/ssl.rb: Close socket on SSLError [ruby-core:7197] Fri Aug 4 19:13:41 2006 Keiju Ishitsuka * lib/irb/{init.rb,ruby-lex.rb,slex.rb}: can't input '\c' for [ruby-core: 7122]. Fri Aug 4 14:02:14 2006 James Edward Gray II * lib/date/format.rb (__strptime, strftime): allow multi-line patterns in Date#strftime the same as Time#strftime accepts. fixed: [ruby-core:08466] Fri Aug 4 13:56:51 2006 Nobuyoshi Nakada * pack.c (pack_pack): check argument overrun for 'P'. based on a patch by rucila . fixed: [ruby-dev:29182] Tue Aug 1 17:44:03 2006 Nobuyoshi Nakada * win32/win32.c (init_stdhandle): assign standard file handles. Tue Aug 1 12:24:58 2006 Nobuyoshi Nakada * eval.c (Init_Binding): fix old commit miss. Mon Jul 31 17:08:20 2006 NAKAMURA Usaku * win32/win32.c (exit_handler): new function; release winsock and environment work area. * win32/win32.c (NTInitialize): setup exit_handler. * win32/win32.c (StartSockets): use exit_handler. * win32/win32.c (rb_w32_getenv): use GetEnvironmentStrings() instead of GetEnvironmentVariable(), because the latter cannot distinguish wheather a null environment variable exists or not. fixed: [ruby-talk:205123] Mon Jul 31 16:15:13 2006 Tanaka Akira * test/ruby/test_process.rb (TestProcess#test_rlimit_nofile): setrlimit may fail with EINVAL. reported by MIYAMUKO Katsuyuki. [ruby-dev:29174] Mon Jul 31 13:38:22 2006 GOTOU Yuuzou * lib/webrick/httprequest.rb (WEBrick::HTTPReuqest#parse_uri): improve for the value of IPv6 address in the Host: header field. Mon Jul 31 09:22:12 2006 Yukihiro Matsumoto * ruby.h: use ifdef (or defined) for macro constants that may or may not be defined to shut up gcc's -Wundef warnings. [ruby-core:08447] Sun Jul 30 23:26:22 2006 Nobuyoshi Nakada * eval.c (rb_call0): trace call/return of method defined from block. fixed: [ruby-core:08329] * eval.c (rb_trap_eval): make the current thread runnable to deal with exceptions which occurred within the trap. fixed: [ruby-dev:27729] * lib/cgi/session.rb, lib/cgi/session/pstore.rb: suppress warnings. fixed: [ruby-talk:204896] Sat Jul 29 06:12:06 2006 Hidetoshi NAGAI * ext/tk/lib/multi-tk.rb: freeze ip_name for security reason. Sat Jul 29 01:23:52 2006 Yukihiro Matsumoto * lib/logger.rb: improves the amount of documentation that Rdoc picks up when processing logger.rb by moving the require statement back before the comment block. a patch from Hugh Sasse . [ruby-core:08422] Thu Jul 27 22:21:52 2006 Nobuyoshi Nakada * time.c (time_to_s): fixed format mismatch. Thu Jul 27 21:19:54 2006 Yukihiro Matsumoto * math.c (domain_check): a new function to check domain error explicitly for systems that return NaN like FreeBSD. [ruby-core:07019] * math.c (math_acos, math_asin, math_acosh, math_atanh, math_log, math_log10, math_sqrt): use domain_check(). * math.c (math_sqrt): fix documentation flaw. Thu Jul 27 18:12:12 2006 WATANABE Hirofumi * time.c: need to declare time_utc_offset. Thu Jul 27 17:01:01 2006 Yukihiro Matsumoto * io.c (io_close): always calls "close" method of the receiver. [ruby-core:6911] [ruby-core:8112] Thu Jul 27 16:49:01 2006 Yukihiro Matsumoto * time.c (time_to_s): use +0900 style timezone string for local time. [ruby-dev:29143] Thu Jul 27 16:41:15 2006 Yukihiro Matsumoto * ext/openssl/ossl.h: move inclusion point to shut up Solaris compiler. [ruby-core:08114] Wed Jul 26 22:20:59 2006 Yukihiro Matsumoto * configure.in: add support for as and ASFLAGS. [ruby-dev:29138] Wed Jul 26 22:13:45 2006 Minero Aoki * lib/net/http.rb: sync with HEAD (rev 1.132). * lib/net/http.rb (Net::HTTP#post, request_post, request): should set Content-Type: x-www-form-urlencoded by default. * lib/net/http.rb (Net::HTTPHeader#content_type): should return nil when there's no Content-Type. * lib/net/http.rb (Net::HTTPHeader#sub_type): should return nil when there's no sub Content-Type (e.g. "Content-Type: text"). * lib/net/http.rb (Net::HTTPHeader#type_params): wrongly failed when there's no Content-Type. Wed Jul 26 18:35:38 2006 Minero Aoki * ext/strscan/strscan.c: sync with HEAD (rev 1.25). * ext/strscan/strscan.c (strscan_do_scan): StringScanner.new("").scan(//) should return "". [ruby-Bugs:4361] Wed Jul 26 18:14:19 2006 Nobuyoshi Nakada * ext/pty/pty.c (getDevice): retry once after GC on failure. [ruby-core:08282] Wed Jul 26 17:28:16 2006 Nobuyoshi Nakada * sprintf.c (rb_f_sprintf): prepend ".." to %u for negative bignum, but not "-". fixed: [ruby-core:08167] Wed Jul 26 16:39:07 2006 Yukihiro Matsumoto * string.c (rb_str_scan): add string modification check. [ruby-core:7216] Wed Jul 26 16:06:03 2006 Yukihiro Matsumoto * lib/cgi.rb (CGI::QueryExtension::read_multipart): check multipart boundary end. a patch from Fujioka [ruby-dev:28470] Wed Jul 26 01:02:59 2006 Nobuyoshi Nakada * configure.in: suppress warnings by automake 1.8 or later. Tue Jul 25 00:30:06 2006 Eric Hodel * lib/prettyprint.rb: RD to RDoc conversion by Hugh Sasse. Tue Jul 25 14:49:51 2006 NAKAMURA Usaku * lib/mkmf.rb (configuration): typo. Tue Jul 25 13:14:32 2006 Yukihiro Matsumoto * process.c (rb_proc_times): rename hz to hertz to avoid name crash on AIX. [ruby-dev:29126] Mon Jul 24 22:03:40 2006 Nobuyoshi Nakada * eval.c (backtrace): skip frames successive on node and method name. Mon Jul 24 17:55:55 2006 Yukihiro Matsumoto * process.c (rb_f_system): add security check. [ruby-talk:202947] * process.c (rb_f_system): move signal right before fork to avoid signal handler intervention. Mon Jul 24 15:51:52 2006 Tanaka Akira * ext/readline/readline.c (readline_readline): rl_deprep_term_function may be NULL with libedit. reported by Ryan Davis. [ruby-dev:29070] Mon Jul 24 15:19:55 2006 Yukihiro Matsumoto * eval.c (rb_call0): revert last change. [ruby-dev:29112] [ruby-core:08374] Sun Jul 23 22:59:49 2006 Tanaka Akira * test/socket/test_unix.rb: disabled on cygwin. reported by Kouhei Yanagita. [ruby-dev:29080] Fri Jul 21 21:21:08 2006 Nobuyoshi Nakada * eval.c (rb_call0): include funcalled methods in caller list. fixed: [ruby-core:08290] Fri Jul 21 12:11:00 2006 Nobuyoshi Nakada * ext/extmk.rb, lib/mkmf.rb (with_destdir): remove drive letter before prepending destdir on DOSISH. Thu Jul 20 15:07:14 2006 Yukihiro Matsumoto * ruby.h: export classes/modules to implement sandbox. [ruby-core:08283] Thu Jul 20 00:06:29 2006 Keiju Ishitsuka * lib/irb/completion.rb: support for completion of numeric number. [ruby-dev: 29038] Wed Jul 19 23:53:05 2006 Kouhei Sutou * lib/rss/parser.rb, lib/rss/utils.rb: added documents. Tue Jul 18 22:10:13 2006 Yukihiro Matsumoto * process.c (rb_f_system): block SIGCHLD during the process execution, like glibc system(3) does. [ruby-talk:202361] Tue Jul 18 23:12:14 2006 NAKAMURA Usaku * win32/win32.c (open_ifs_socket): should not use plain malloc. * win32/win32.c (rb_w32_opendir): should not use plain realloc. Tue Jul 18 18:05:49 2006 Yukihiro Matsumoto * test/ruby/test_float.rb (TestFloat::test_strtod): update test to conform strtod change. Tue Jul 18 15:49:42 2006 Yukihiro Matsumoto * pack.c (pack_unpack): propagate association array to copied string. [ruby-core:08223] * pack.c (pack_unpack): return referenced string itself if it has same length as specified. a patch from in [ruby-core:08225]. * pack.c (pack_pack): taint 'p' packed strings. Tue Jul 18 14:03:02 2006 Yukihiro Matsumoto * lib/webrick/httpserver.rb (WEBrick::HTTPServer::unmount): remove inpect argument from sprintf. [ruby-dev:29039] Tue Jul 18 10:53:37 2006 Nobuyoshi Nakada * object.c (rb_cstr_to_dbl): limit out-of-range message. * util.c (ruby_strtod): return end pointer even if ERANGE occurred. fixed: [ruby-dev:29041] Mon Jul 18 00:43:05 2006 Nobuyoshi Nakada * util.c (ruby_strtod): stop at dot not followed by digits. fixed: [ruby-dev:29035] Tue Jul 18 00:01:27 2006 Nobuyoshi Nakada * ext/extmk.rb: remove LIBRUBY_SO if static linked extensions exist. Mon Jul 17 23:30:46 2006 Nobuyoshi Nakada * configure.in (rb_cv_msvcrt): defaulted to msvcrt. Workaround for a bug of cygwin 1.5.20. Mon Jul 17 13:43:05 2006 Yukihiro Matsumoto * pack.c (define_swapx): should not use plain malloc. Mon Jul 17 12:58:41 2006 WATANABE Hirofumi * configure.in: should use ac_cv_lib_dl_dlopen=no on MinGW. Sat Jul 15 23:50:12 2006 Nobuyoshi Nakada * eval.c (rb_require_safe): wait for another thread requiring the same feature. fixed: [ruby-core:08229] Sat Jul 15 01:27:13 2006 Nobuyoshi Nakada * dir.c (has_magic): glob names contain alphabets to enable case fold search also for directories. fixed: [ruby-talk:201917] Sat Jul 15 01:09:22 2006 Yukihiro Matsumoto * st.c (malloc): use xmalloc/xcalloc instead of plain malloc/calloc, to detect memory allocation failure. see . * gc.c (rb_memerror): should not raise empty nomem_error. Fri Jul 14 13:08:13 2006 Hidetoshi NAGAI * ext/tk/lib/tk.rb: add methods for new features of latest Tcl/Tk8.5. * ext/tk/lib/tk/namespace.rb: ditto. Fri Jul 14 02:30:12 2006 Yukihiro Matsumoto * lib/monitor.rb: document patch from Hugh Sasse . [ruby-core:08205] Fri Jul 14 01:09:46 2006 Yukihiro Matsumoto * parse.y (then): error in warning action. Fri Jul 14 00:10:15 2006 Yukihiro Matsumoto * array.c (rb_ary_pop): may cause realloc oscillation. a patch from MORITA Naoyuki . [ruby-dev:29028] Thu Jul 13 22:23:56 2006 Hidetoshi NAGAI * ext/tk/lib/tk/composite.rb: improve handling of the classname on the option database for the widget class which includes TkComposite. Thu Jul 13 20:32:19 2006 Kouhei Sutou * lib/rss/parser.rb: updated documents by a patch from Hugh Sasse . [ruby-core:8194] Wed Jul 12 13:54:09 2006 Yukihiro Matsumoto * parse.y (then): we'd like to reserve colon here for the future. warning added. Tue Jul 11 20:58:18 2006 Yukihiro Matsumoto * ruby.h: export rb_cMethod. [ruby-talk:201259] Tue Jul 11 19:13:33 2006 Hidetoshi NAGAI * ext/tk/lib/multi-tk.rb: remove restriction on the class of pseudo-toplevel. Tue Jul 11 18:00:57 2006 Hidetoshi NAGAI * ext/tk/lib/multi-tk.rb: security fix. Tue Jul 11 17:33:39 2006 NAKAMURA Usaku * string.c (rb_str_dump): need to extend len for \b. Mon Jul 10 22:00:00 2006 Shigeo Kobayashi * ext/bigdecimal/bigdecimal.c: Allows '_' to appear within digits. [ruby-dev:28872] * ext/bigdecimal/lib/bigdecimal/util.rb: Bug in to_r reported by [ruby-list:42533] fixed. Mon Jul 10 19:22:19 2006 Tanaka Akira * gc.c (gc_sweep): expand heap earlier. reported by MORITA Naoyuki. [ruby-dev:28960] Mon Jul 10 18:59:34 2006 Hidetoshi NAGAI * ext/tk/lib/tk/font.rb: sorry. mistaken to patch. Mon Jul 10 18:46:52 2006 Hidetoshi NAGAI * ext/tk/tcltklib.c: make SEGV risk lower at exit. * ext/tk/lib/tk.rb: ditto. * ext/tk/lib/multi-tk.rb: fail to call function-style methods on slave interpreters. The strategy (MultiTkIp_PseudoToplevel_Evaluable) to fix the problem is a little tricky. You may have to take care of conflicting with it. * ext/tk/lib/tk.rb: a little change for the pseudo-toplevel strategy. * ext/tk/lib/tk/font.rb: ditto. * ext/tk/lib/tk/msgcat.rb: ditto. * ext/tk/lib/tkextlib/itk/incr_tk.rb: ditto. * ext/tk/sample/demos-en/widget: fail to call function-style methods on sample scripts. To fix it, a strategy which similar to the way on MultiTiIp is used. Please take care when re-write and re-run a demo script on the Widget-Demo code viewer. * ext/tk/sample/demos-jp/widget: ditto. Mon Jul 10 13:58:40 2006 Hidetoshi NAGAI * signal.c (ruby_nativethread_signal, posix_nativethread_signal, sigsend_to_ruby_thread, install_nativethread_sighandler): nativeth