summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * io.c (argf_set_encoding): uses current_file after check if nextnobu2008-02-212-4/+4
| | | | | | | input is available. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (argf_set_encoding): uses current_file after check for nextnobu2008-02-214-5/+13
| | | | | | | input. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c: replace rb_enc_copy by rb_enc_cr_str_copy ornaruse2008-02-212-21/+34
| | | | | | rb_enc_cr_str_exact_copy. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/encoding.h (rb_enc_asciicompat): dummy encoding is notnaruse2008-02-212-1/+6
| | | | | | ascii compatible. [ruby-dev:33878] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (RPATHFLAG): -R option of HP-UX ld is not for runtimenobu2008-02-203-11/+20
| | | | | | | load path. [ruby-list:44600] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_map_errno): exported.nobu2008-02-203-2/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/extconf.rb (rl_event_hook): workaround for nativeusa2008-02-202-1/+7
| | | | | | | | windows. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (rb_enc_associate_index): doesn't clear coderangenaruse2008-02-202-0/+7
| | | | | | when new encoding equals to old one. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_enc_str_copy): added for wrapper for rb_enc_copy.naruse2008-02-202-4/+32
| | | | | | | | | | | | | | this also copy coderange when ptr and len is equal. * string.c (rb_enc_cr_str_copy): added for wrapper for rb_enc_copy. this always copy coderange. * string.c (str_replace_shared): use rb_enc_str_copy. * string.c (str_new3): don't rb_enc_copy because encoding is copied at str_replace_shared. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * instruby.rb (parse_args): added --dir-mode, --script-mode andnobu2008-02-202-34/+83
| | | | | | | | | | | | | | | | | | | | | --cmd-type options. [ruby-dev:33816] * instruby.rb (parse_args): added bin-arch and bin-comm to install type, for compiled files and script files. * instruby.rb (parse_args): deal with make style command line macros, and count as long syle options if prefixed with INSTALL_. * instruby.rb (makedirs): use $dir_mode. [ruby-dev:33805] * instruby.rb (open_for_install): set file mode, which is now permission mode instead of access mode. * instruby.rb (bin-comm): installs scripts with replacing shebang lines. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (open_key_args): set arg->io even if no options passed.usa2008-02-205-12/+20
| | | | | | | | [ruby-dev:33072] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_enc_strlen_cr): get length with coderange scan.naruse2008-02-192-2/+65
| | | | | | * string.c (str_strlen): use rb_enc_strlen_cr. [ruby-dev:33849] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (rb_raise_jump): moved adjustment for control frame.nobu2008-02-192-3/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * gc.c (STACK_LENGTH) [SPARC] : 0x80 offset removed. [ruby-dev:33857]akr2008-02-192-3/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/erb (TestERBCore): reverted.nobu2008-02-192-4/+381
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/readline/readline.c (readline_event): prevent polling. based onnobu2008-02-192-2/+19
| | | | | | | a patch from error errorsson in [ruby-Bugs-17675]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (ruby_exec_node): no thread starts inside iseq compilation.nobu2008-02-194-7/+17
| | | | | | | | | * eval.c (rb_f_raise): skip current control frame. [ruby-core:15589] * insns.def (opt_div): raise as the ordinary method. [ruby-core:15589] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test.akr2008-02-181-0/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use require_relative to require ut_eof and envutil.akr2008-02-184-5/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use require_relative to require marshaltestlib and sentence.akr2008-02-183-3/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15540 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_each_line): fix newline size.akr2008-02-183-1/+11
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add tests.akr2008-02-181-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/node.h (NODE_FL_NEWLINE): renamed from NODE_NEWLINEmatz2008-02-185-6/+11
| | | | | | to denote its a flag. [ruby-core:15529] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb/locale.rb (IRB::Locale#lc2kconv): check ja_JP.EUC-JP as well.akr2008-02-182-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add tests for sub/gsub with hash.akr2008-02-182-1/+20
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* typo fix.akr2008-02-181-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* avoid regexp warnings.akr2008-02-181-10/+11
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (re_warn): defined to restore warnings for /[a-c-e]/, etc.akr2008-02-182-0/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pty/lib/expect.rb (IO#expect): check if peer is closed.nobu2008-02-182-1/+6
| | | | | | | [ruby-Bugs-17940] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test.akr2008-02-181-0/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2008-02-18usa2008-02-171-3/+3
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add tests.akr2008-02-171-0/+20
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_regsub): don't repeat repl twice withakr2008-02-173-1/+7
| | | | | | | "X".sub!(/./, sprintf("\\%c", 255)). git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi.rb (CGI::escapeHTML): use gsub with Hash. [ruby-dev:33828]kazu2008-02-172-1/+11
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (ENC_CODERANGE_AND): fix broken case. [ruby-dev:33826]naruse2008-02-173-8/+16
| | | | | | * string.c (rb_str_times): fix broken case. [ruby-dev:33826] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_prepare_re): add enable_warning parameter.akr2008-02-173-4/+13
| | | | | | | | (rb_reg_adjust_startpos): disable warning by rb_reg_prepare_re. (rb_reg_search): follow rb_reg_prepare_re parameter change. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_regexp.rb: add tests to achieve over 90% testmame2008-02-172-0/+500
| | | | | | | coverage of re.c. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add tests.akr2008-02-171-2/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15522 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test for [ruby-dev:33826]akr2008-02-171-0/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix ML refs (ruby-core# -> ruby-core:)kazu2008-02-171-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (ENC_CODERANGE_AND): added.naruse2008-02-174-3/+19
| | | | | | | | * string.c (rb_str_plus, srb_str_times): keep coderange. * parse.y (STR_NEW0) use rb_usascii_str_new. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (str_strlen): rb_enc_strlen doesn't fail.akr2008-02-172-8/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (str_sublen): use rb_enc_strlen.akr2008-02-172-11/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/{euc_jp.c,gbk.c,iso_8859_1.c,iso_8859_11.c,iso_8859_13.c,naruse2008-02-1714-4/+345
| | | | | | | | | | iso_8859_2.c,iso_8859_6.c,iso_8859_7.c,iso_8859_8.c,iso_8859_9.c, shift_jis.c,windows_1251.c}: add document about encodings. * enc/cp949.c: divided into new file. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (rb_reg_quote): return US-ASCII string consistently.akr2008-02-173-12/+17
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_times): reduce loop overhead.akr2008-02-173-5/+23
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/re.h (struct rmatch_offset): new struct for characterakr2008-02-165-58/+226
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | offsets. (struct rmatch): new struct. (struct RMatch): reference struct rmatch. (RMATCH_REGS): new macro. * re.c (match_alloc): initialize struct rmatch. (pair_byte_cmp): new function. (update_char_offset): update character offsets. (match_init_copy): copy regexp and character offsets. (match_sublen): removed. (match_offset): use update_char_offset. (match_begin): ditto. (match_end): ditto. (rb_reg_search): make character offset updated flag false. (match_size): use RMATCH_REGS. (match_backref_number): ditto. (rb_reg_nth_defined): ditto. (rb_reg_nth_match): ditto. (rb_reg_match_pre): ditto. (rb_reg_match_post): ditto. (rb_reg_match_last): ditto. (match_array): ditto. (match_aref): ditto. (match_values_at): ditto. (match_inspect): ditto. * string.c (rb_str_subpat_set): use RMATCH_REGS. (rb_str_sub_bang): ditto. (str_gsub): ditto. (rb_str_split_m): ditto. (scan_once): ditto. * gc.c (obj_free): free character offsets. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/resource.rb: made version infos confirm to OS spec.usa2008-02-165-17/+22
| | | | | | | | * {bcc32,win32}/Makefile.sub (*.rc): add dependency. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_substr): optimized for UTF-8.naruse2008-02-162-1/+64
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (rb_enc_compatible): check encoding incapable arguments.akr2008-02-162-3/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e