aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* * string.c (rb_str_check_dummy_enc): new function to check dummymatz2008-10-292-3/+22
| | | | | | | | | encoding. * string.c (rb_str_upcase_bang): case conversion functions should not be applicable to strings in dummy encoding. [ruby-dev:36985] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20046 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_rewind): should reset fptr->readconv if it'smatz2008-10-293-9/+34
| | | | | | | | | | | available. * io.c (more_char): clear readconv at EOF. * test/ruby/test_file.rb: should not read after EOF. use rewind instead. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_splice): remove redundant check.mame2008-10-292-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20044 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_cmp): fix condition which always returned truemame2008-10-292-1/+6
| | | | | | | because ENCODING_GET returns unsigned long. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20043 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-10-30svn2008-10-291-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20036 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_array (test_permutation): add a test that replacesmame2008-10-292-0/+10
| | | | | | | array during permutation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20035 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_sort_bang): replacing array during sort brokemame2008-10-292-2/+11
| | | | | | | invariant of array. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * revert the previous wrong commit; sorry.mame2008-10-292-11/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_sort_bang): replacing array during sort brokemame2008-10-292-2/+11
| | | | | | | invariant of array. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/webrick/utils.rb (start_server): provide a reference to log ofmame2008-10-298-140/+157
| | | | | | | | | | | | webrick. * test/webrick/test_httpproxy.rb, test/webrick/test_httpauth.rb, test/webrick/test_cgi.rb, test/webrick/test_httpserver.rb, test/webrick/test_server.rb, test/webrick/test_filehandler.rb: use webrick log as an assertion message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_array.rb (test_pack): use utf-8.nobu2008-10-292-4/+4
| | | | | | | * test/ruby/test_pack.rb (test_pack_U): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20022 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * pack.c (pack_pack): set encoding from packing string and UTF-8 fornobu2008-10-292-0/+11
| | | | | | | "U". [ruby-core:19590] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20021 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * complex.c (imp1, imp2): should declare type.takano322008-10-292-2/+7
| | | | | | | [BUG] at IA-64 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * common.mk (revision.h): have to be updated daily or by non-trivialnobu2008-10-292-1/+6
| | | | | | | commits. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * README, README.ja: Update the portability section.knu2008-10-293-5/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20018 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (rb_cv_lib_xpg4_needed): Drop legacy FreeBSDknu2008-10-292-15/+7
| | | | | | | | | support regarding libxpg4. Those old versions of FreeBSD shipped with the library don't have a working pthread library anyway. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (dln-a-out): cannot make shared library nor work withnobu2008-10-292-1/+15
| | | | | | | ELF. [ruby-core:19571] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_open): shouldn't seek here.usa2008-10-292-5/+10
| | | | | | | | | * win32/win32.c (rb_w32_write): write to the end of the file when FAPPEND is specified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20014 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (load_file_internal): use ASCII-8BIT to prevent conversion.nobu2008-10-292-3/+6
| | | | | | | [ruby-core:19579] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (load_file_internal): cache common interned IDs.nobu2008-10-292-3/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20012 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * complex.c: uses macro in declarations.tadf2008-10-282-17/+31
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20011 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_open): need to seek to the end of the file whenusa2008-10-282-1/+8
| | | | | | | | O_APPEND is specified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20008 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* inserted a newline.tadf2008-10-281-1/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-10-29svn2008-10-281-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * math.c (rb_math_{atan2,cos,cosh,hypot,log,sin,sinh,sqrt}): added.tadf2008-10-283-28/+65
| | | | | | | | * complex.c: follows the above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20005 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/nkf-utf8/nkf.c (kanji_convert): output unicode chars.naruse2008-10-282-3/+28
| | | | | | | | | [ruby-dev:36957] * ext/nkf/nkf-utf8/nkf.c (numchar_getc): increase buffer size. reported and patched at [ruby-dev:36957] by mame. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_proc.rb: filled all patterns for testingyugui2008-10-282-0/+202
| | | | | | | vm_yield_setup_args. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20003 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* typo.tadf2008-10-281-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * complex.c: continues to support canonicalization *unofficially*tadf2008-10-287-3136/+44
| | | | | | | | | | | | | for an odd library mathn for the time being (only 1.9.x). since grand mathn is must be very very special library for us. * rational.c: ditto. * ext/mathn/*/*: follow the above changes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_yylex): check EOF explicitly.mame2008-10-282-11/+15
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20000 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_require.rb (test_require_too_long_filename): too longusa2008-10-281-5/+9
| | | | | | | commandline may be rejected by OS. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_io_m17n.rb (test_getc_invalid3): should set binmode if enc isusa2008-10-281-1/+1
| | | | | | | not compatible with ASCII. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (extract_binmode): new function to extract binmode/textmodeusa2008-10-282-12/+36
| | | | | | | | | | | | options from hash. * io.c (rb_io_extract_modeenc): use above function. * io.c (rb_io_s_pipe): recognize binmode/textmode options. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_io.rb (test_sysopen): should specify the mode of IO::for_fdusa2008-10-281-1/+7
| | | | | | | if F_GETFL is not available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (make_readconv): now can specify the size of cbuf.usa2008-10-282-6/+13
| | | | | | | | | * io.c (read_all, appendline, io_getc, rb_io_ungetc): follow above change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_pipe_exec): internal fds should be alwaysusa2008-10-282-3/+7
| | | | | | | | binmode. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_io.rb (test_copy_stream, test_copy_stream_socket): skip someusa2008-10-281-50/+80
| | | | | | | | | | tests if there isn't IO#nonblock=. * test/ruby/test_io.rb (test_close_on_exec): skip if there isn't IO#close_on_exec=. * test/ruby/test_io.rb (test_bytes, test_readbyte): depend on binmode. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_file.rb (test_*_extended_file): forgot to set mode.usa2008-10-281-13/+13
| | | | | | | | * test/ruby/test_file.rb (test_para_gets_extended_file): output file sould be binmode. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/make-snapshot.rb: merged from ruby_1_9_1.yugui2008-10-282-4/+11
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* merged r19975 and r19978 from ruby_1_9_1 into trunk.yugui2008-10-284-4/+13
| | | | | | | | | * gem_prelude.rb: considers --program-suffix and prefix configure options. * lib/rubygems/defaults.rb: ditto. * test/rubygems/test_gem.rb (@default_dir_re): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/make-snapshot: use String#bytesize.nobu2008-10-282-2/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_file.rb (test_*_extended_file): test in default/text/binaryusa2008-10-281-32/+46
| | | | | | | mode. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_file.rb (test_each_char_extended_file,usa2008-10-281-0/+16
| | | | | | | test_getbyte_extended_file): add tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_argf.rb (test_readpartial2): readpartial works just likeusa2008-10-281-0/+2
| | | | | | | binmode, so input of it should be binmode'ed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test_cgi_multipart.rb (_prepare): tempfile should be binmode.usa2008-10-281-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bootstraptest/test_thread.rb: ignore some exceptions.usa2008-10-282-1/+10
| | | | | | | | [ruby-dev:36951] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19973 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-10-28svn2008-10-281-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/Makefile.sub (RUNRUBY): now ruby requires something fromusa2008-10-282-1/+6
| | | | | | | | gem_prelude, so need to set library path. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (vm_yield_setup_args): supports optional parameters.yugui2008-10-273-96/+318
| | | | | | | | | | | | | | Fixed [ruby-core:19503]. * vm_insnhelper.c (vm_yield_setup_block_args): a new function. extracted from vm_yield_setup_args. * vm_insnhelper.c (vm_yield_setup_block_args_complex): ditto. * test/ruby/test_proc.rb: added tests for arguments on a Proc from Kernel#proc called. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/mathn/complex/complex.c: no need to define rb_cComplex becauseusa2008-10-273-0/+12
| | | | | | | | | | | it's already defined at $(srcdir)/complex.c. * ext/mathn/rational/rational.c: no need to define rb_cRational because it's already defined at $(srcdir)/rational.c. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e