summaryrefslogtreecommitdiffstats
path: root/ChangeLog
Commit message (Collapse)AuthorAgeFilesLines
...
* * common.mk (revision.h): ignores failure of file2lastrev.yugui2008-12-271-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (process_options): fix to untouch th->mild_compile_error.ko12008-12-271-0/+5
| | | | | | | | [ruby-dev:37621], [ruby-dev:37620] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * iseq.h, iseq.c (rb_iseq_new_main): add a type ISEQ_TYPE_MAIN.ko12008-12-271-0/+11
| | | | | | | | | | | [ruby-dev:37619] * compile.c (rb_dvar_defined, ruby_iseq_compile): ditto. * iseq.c (iseq_data_to_ary, iseq_load): ditto. * compile.c (iseq_compile_each): fix to check ip->compile_data. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb (OpenURI.redirectable?): permit https redirection.akr2008-12-271-0/+5
| | | | | | | patch from Roman Shterenzon. [ruby-core:20485] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (get_errinfo): return th->errinfo valueko12008-12-271-0/+8
| | | | | | | | | | if normal errinfo place (dynamic local viriable) is not found. fixes Bug #732 [ruby-dev:37046]. * bootstraptest/test_proc.rb: add a test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21086 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* man/irb.1: adds -v, -h, -E and -U.yugui2008-12-271-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (vm_call_method, vm_call_cfunc): use original id instead ofko12008-12-271-0/+13
| | | | | | | | | | | | | calling id when NODE_CFUNC or NODE_BMETHOD. fixes Bug #632 [ruby-core:19282]. * vm_eval.c (vm_call0, vm_call_super): ditto. * vm_method.c (rb_add_method, rb_alias): store original id in nd_file field of NODE_METHOD. * test/stringio/test_stringio.rb: add a test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c (Init_VM): create and define TOPLEVEL_BINDING at first.ko12008-12-271-0/+20
| | | | | | | | | | | | | | | | | | * vm.c (vm_set_main_stack, rb_iseq_eval_main): added. * parse.y (rb_parser_compile_file): fix to check parse_in_eval flag. * eval.c (ruby_exec_node): use rb_iseq_eval_main() instead of rb_iseq_eval(). * iseq.c (rb_iseq_new_main), vm_core.h: added. main script (specified by -e or script name) should be run under TOPLEVEL_BINDING using Kernel#eval. Above changes simulate Kernel#eval behaviour. [ruby-dev:37240] * compile.c (make_name_for_block): skip iseq except block type. this fix is needed for [ruby-dev:37240], and also fixes [ruby-dev:35392]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cont.c: rdoc for Fiber. patch by Muhammad Ali.yugui2008-12-271-0/+5
| | | | | | | [ruby-core:20894] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (after_fork): ignores a termination request in thenobu2008-12-261-1/+6
| | | | | | | parent process. [ruby-dev:37447] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/csv.rb: Using a more robust transcoding scheme to producejeg22008-12-261-0/+5
| | | | | | | | ASCII compatible inspect() messages. [ruby-dev:37591] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (fptr_finalize): don't allocate objects if noraise.akr2008-12-261-0/+8
| | | | | | | | | | (finish_writeconv): add noalloc argument to be able to avoid object allocation. (finish_writeconv_arg): introduced again. (finish_writeconv_sync): follow the above change. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/input-method.rb (IRB::StdioInputMethod#initialize):yugui2008-12-261-0/+5
| | | | | | | removed a 'p' for debugging. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21067 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/optparse.rb (OptionParser::List#summarize): gives prioritynobu2008-12-261-0/+8
| | | | | | | | | | to latter switches. [ruby-dev:36692] * lib/optparse.rb (OptionParser#summarize): do not append unnecessary line terminator. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (fptr_finalize): close the IO object even if finish_writeconv orakr2008-12-261-0/+12
| | | | | | | | | | | | | | | flush is failed. (finish_writeconv): don't raise. return errno or exception. (finish_writeconv_arg): removed. (finish_writeconv_sync): follow finish_writeconv change. * transcode.c (rb_econv_make_exception): new function. * include/ruby/encoding.h (rb_econv_make_exception): declared. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21059 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (str_transcode0): set encoding when String#encode wasnaruse2008-12-251-0/+5
| | | | | | given explicit but the same destination and source encoding. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21047 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_s_pipe): unused variable removed.akr2008-12-251-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (sym_ignore): remove useless symbol.naruse2008-12-251-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (pipe_close): removed.akr2008-12-251-0/+6
| | | | | | | | (pipe_yield): defined. (rb_io_s_pipe): use pipe_yield. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * transcode.c (decorate_convpath): show type of escaping fornaruse2008-12-251-0/+5
| | | | | | xml_attr_quote or some conversions. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_initialize): check fd validity. [ruby-dev:36646]akr2008-12-251-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (flush_before_seek): check io_fflush result.akr2008-12-251-0/+14
| | | | | | | | | | | | | | | | (rb_io_check_readable): ditto. (rb_io_flush): ditto. (rb_io_fsync): ditto. (remain_size): ditto. (rb_io_write_nonblock): ditto. (finish_writeconv): ditto. (fptr_finalize): ditto. (io_reopen): ditto. (rb_io_reopen): ditto. (copy_stream_body): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (io_fflush): flush write buffer without write lock inmatz2008-12-251-0/+7
| | | | | | | | finalizers. [ruby-dev:37572] * io.c (rb_io_fptr_finalize): clear write lock before finalizing. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (fptr_finalize): close the IO object even if close(2) is failed.akr2008-12-251-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rdoc/parser.rb (RDoc::Parser.binary?): should read in binary mode.usa2008-12-251-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (vm_method_search): fix control flow bug.ko12008-12-251-0/+5
| | | | | | | | (commited at r20981) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_flush): fsync() after buffer is flushed on win32.usa2008-12-251-0/+5
| | | | | | | | [ruby-core:20043] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (vm_method_search): return rb_cObject if there is noko12008-12-251-0/+7
| | | | | | | | | super class. [ruby-dev:37587] * bootstraptest/test_method.rb: add tests for above. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * proc.c (proc_new): should use proc_dup() if block has Proc.ko12008-12-251-0/+10
| | | | | | | | | | * vm.c (vm_make_proc_from_block): should use rb_cProc for block. * vm.c (vm_make_proc): add an assertion. * bootstraptest/test_proc.rb: add a test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (vm_yield_with_cfunc): check block has Proc.ko12008-12-251-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * template/id.h.tmpl, id.h (ruby_method_ids_check): enclosed in anobu2008-12-241-1/+4
| | | | | | | struct. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * template/id.h.tmpl, id.h (ruby_method_ids): not depend on ifnobu2008-12-241-0/+5
| | | | | | | token are defined as macros. [ruby-dev:37553] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (thread_start_func_2): sets native thread key.nobu2008-12-241-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/readline/test_readline_history.rb: check the encoding thatkouji2008-12-241-0/+5
| | | | | | | is in the Readline::HISTORY. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/readline/test_readline_history.rb: did not check thekouji2008-12-241-0/+5
| | | | | | | encoding that is in the Readline::HISTORY. I will fix it. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * error.c, vm_dump.c: change message by rb_bug().ko12008-12-241-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (iseq_peephole_optimize): fix typo.ko12008-12-241-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm.c (invoke_block_from_c): fix to point right cfp.ko12008-12-241-0/+9
| | | | | | | | | | * vm.c (vm_make_proc, vm_make_proc_from_block), vm_core.h: remove unused parameter cfp. * vm_insnhelper.c, proc.c (proc_new): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * error.c (exc_equal): == method should not raise Exception.ko12008-12-241-0/+7
| | | | | | | | | [ruby-dev:37519] * sample/test.rb: fix test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (vm_call_method): use class of method definedko12008-12-241-0/+13
| | | | | | | | | | | | instead of receiver's class on bmethod. fixes [ruby-core:20786] * bootstraptest/test_method.rb: add a test for above. * vm_insnhelper.c (vm_setup_method): remove unused parameter klass. * vm_insnhelper.h (CALL_METHOD): ditto. * insns.def, vm_eval.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/file2lastrev.rb (get_revisions): fix to ignore end of line.ko12008-12-241-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (HAVE_LONG_LONG, HAVE_OFF_T): revised for autoconfnobu2008-12-241-0/+5
| | | | | | | 2.62 or later. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (OBJDUMP, OBJCOPY): autoconf list is not commanobu2008-12-231-0/+8
| | | | | | | | | | separated. * configure.in (AC_HEADER_STDC, AC_CHECK_HEADERS AC_CHECK_FUNCS): removed duplicated checks. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * misc/ruby-mode.el: added comment to mention newer versionmatz2008-12-231-0/+6
| | | | | | | bundled with Emacs 23 or later. a patch from Phil Hagelberg <phil at hagelb.org> in [ruby-core:20838]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * pack.c (pack_pack): encoding of packed string only from 'm',matz2008-12-231-0/+8
| | | | | | | | | 'M', and 'u' should be US-ASCII. [ruby-dev:37284] * pack.c (pack_pack): encoding of packed string only from 'U' should be UTF-8. also upgrade US-ASCII strings to UTF-8. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/protocol.rb (Net::BufferedIO#rbuf_fill): avoid callingmatz2008-12-231-0/+5
| | | | | | read_nonblock in rescue. use retry instead. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_init_copy): call io_seek only if io_tell succeeds.akr2008-12-231-2/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_external_str_new_with_enc): set ASCII-8BIT ifmatz2008-12-231-0/+5
| | | | | | encoding is US-ASCII and string contains 8bit characters. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_fork): don't propagete an error message if errorakr2008-12-231-0/+5
| | | | | | | buffer not given. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * process.c (rb_fork): propagete an error message from child to parent.akr2008-12-231-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (rb_f_exec): show details of error in child process on exception. (save_redirect_fd): add error message arguments. (run_exec_dup2): ditto. (run_exec_close): ditto. (run_exec_open): ditto. (run_exec_dup2_child): ditto. (run_exec_pgroup): ditto. (run_exec_rlimit): ditto. (rb_run_exec_options): ditto. (rb_exec): ditto. (rb_exec_atfork): ditto. (rb_spawn_internal): ditto. (rb_spawn): ditto. (rb_f_system): follow arguments change. (proc_daemon): ditto. (rb_f_spawn): show details of error in child process on exception. * io.c (popen_exec): add error message arguments. (pipe_open): show details of error in child process on exception. * include/ruby/intern.h (rb_run_exec_options): add error message arguments. (rb_exec): ditto. (rb_fork): ditto. (rb_spawn): ditto. * ext/pty/pty.c (chfunc): add error message arguments. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e