summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* * thread.c (recursive_pop): use object ID.nobu2007-12-072-6/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14128 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (flatten): some performance improvements, based on a patchnobu2007-12-072-49/+64
| | | | | | | | from Yusuke ENDOH <mame AT tsg.ne.jp> in [ruby-core:13877]. [ruby-core:13851] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (rb_exec_recursive): use Hash instead of Array fornobu2007-12-072-18/+24
| | | | | | | performance improvement. [ruby-core:13898] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (arg): typo fixed ("!" -> "|") in the ripper code.matz2007-12-072-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14125 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (arg): tUPLUS no longer works as identity operation anymatz2007-12-073-9/+9
| | | | | | more. inspired by [ruby-talk:265532]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14124 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add test for [ruby-dev:32452].akr2007-12-071-0/+13
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* reproduce segv.akr2007-12-061-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14122 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use \xf0 instead of \xfd for valid first byte of a UTF-8 character.akr2007-12-061-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14121 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add ML ref.akr2007-12-061-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14120 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c (rb_enc_precise_mbclen): new function for mbclen withakr2007-12-0610-143/+588
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | validation. * include/ruby/encoding.h (rb_enc_precise_mbclen): declared. (MBCLEN_CHARFOUND): new macro. (MBCLEN_INVALID): new macro. (MBCLEN_NEEDMORE): new macro. * include/ruby/oniguruma.h (OnigEncodingTypeST): replace mbc_enc_len by precise_mbc_enc_len. (ONIGENC_PRECISE_MBC_ENC_LEN): new macro. (ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND): new macro. (ONIGENC_CONSTRUCT_MBCLEN_INVALID): new macro. (ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE): new macro. (ONIGENC_MBCLEN_CHARFOUND): new macro. (ONIGENC_MBCLEN_INVALID): new macro. (ONIGENC_MBCLEN_NEEDMORE): new macro. (ONIGENC_MBC_ENC_LEN): use ONIGENC_PRECISE_MBC_ENC_LEN. * enc/euc_jp.c: validation implemented. * enc/sjis.c: ditto. * enc/utf8.c: ditto. * string.c (rb_str_inspect): use rb_enc_precise_mbclen for invalid encoding. (rb_str_valid_encoding_p): new method String#valid_encoding?. * io.c (rb_io_getc): use rb_enc_precise_mbclen. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14119 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bootstraptest/test_knownbug.rb: new test for block andnobu2007-12-062-8/+19
| | | | | | | | | | define_method. * bootstraptest/test_syntax.rb: moved [ruby-dev:32429] from test_knownbug.rb. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bootstraptest/test_knownbug.rb: test for [ruby-talk:266422].nobu2007-12-061-0/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14117 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * regparse.c (i_apply_case_fold): fix for negative character class. anobu2007-12-053-8/+10
| | | | | | | patch from Yusuke ENDOH <mame AT tsg.ne.jp> in [ruby-core:13884]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/iconv/iconv.c (iconv_s_list): support NetBSD/Citrus iconv.naruse2007-12-053-0/+23
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * thread.c (thread_initialize): fixed typo.nobu2007-12-051-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * proc.c (rb_proc_s_new): call initialize. [ruby-core:13824]nobu2007-12-054-15/+100
| | | | | | | | | | | | * proc.c (rb_proc_location): return file name and line number where the proc is defined. * thread.c (thread_s_new): call initialize. [ruby-core:13835] * thread.c (thread_initialize): split initialize method. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (rb_intern3): fix to changing encoding to default, andnobu2007-12-052-18/+11
| | | | | | | uncommented r13835, which is rare but not impossible. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14108 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * range.c (step_i, range_step): support non-fixnum steps.nobu2007-12-052-16/+31
| | | | | | | [ruby-talk:282100] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14107 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * compile.c (iseq_compile_each): fix typo.ko12007-12-052-1/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14106 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ChangeLog: fix ML number.nobu2007-12-051-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14105 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (yycompile): get rid of tracing while parsing.nobu2007-12-054-24/+39
| | | | | | | | | | [ruby-dev:31351] * thread.c (ruby_suppress_tracing): added a new parameter, which directs to call func always. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14104 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/iconv/iconv.c (iconv_convert): should not set encoding unlessnobu2007-12-042-4/+12
| | | | | | | the target encoding is supported. [ruby-dev:32451] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/json: set properties.nobu2007-12-040-0/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/nkf/lib/kconv.rb (tojis, tosjis, toeuc, toutf8):naruse2007-12-042-4/+9
| | | | | | | set encoding. [ruby-dev:32447] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/json.rb, lib/json/*: moved to ext/json/lib.naruse2007-12-0421-0/+7
| | | | | | | | | | | | | | | -- M trunk/ChangeLog D trunk/lib/json D trunk/lib/json.rb A trunk/ext/json/lib A trunk/ext/json/lib/json A trunk/ext/json/lib/json.rb A trunk/ext/json/extconf.rb git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/iconv/iconv.c (iconv_create): achieve target encoding.nobu2007-12-041-0/+10
| | | | | | | | | | | * ext/iconv/iconv.c (iconv_convert, iconv_finish, iconv_iconv, iconv_conv): set result string encoding. [ruby-dev:32446] * ext/iconv/iconv.c (iconv_initialize, iconv_s_open): set encoding to Iconv instance. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/iconv/iconv.c (iconv_create): achieve target encoding.nobu2007-12-042-26/+44
| | | | | | | | | | | * ext/iconv/iconv.c (iconv_convert, iconv_finish, iconv_iconv, iconv_conv): set result string encoding. [ruby-dev:32446] * ext/iconv/iconv.c (iconv_initialize, iconv_s_open): set encoding to Iconv instance. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test for [ruby-dev:32448].akr2007-12-041-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14097 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (process_options): reverted c flag.nobu2007-12-042-0/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (rb_cstr_to_inum): trailing spaces may exist at sqeezingnobu2007-12-044-4/+12
| | | | | | | preceeding 0s. [ruby-core:13873] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14095 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/win32: set properties.nobu2007-12-030-0/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/Win32API/*: removed or moved to ext/dl/win32.usa2007-12-0313-251/+40
| | | | | | | | * ext/dl/win32/*: new. [ruby-dev:32387] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14093 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix Regexp#inspect document.akr2007-12-021-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* document MatchData#inspect.akr2007-12-021-0/+13
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_tokadd_mbchar): fix for ASCII chars. [ruby-dev:32432]nobu2007-12-022-5/+17
| | | | | | | | * parse.y (parser_parse_string, parser_here_document): prevent false error messages. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (unescape_escaped_nonascii): fix mbclen argument.akr2007-12-022-2/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_tokadd_mbchar): check insufficient multibyte char.nobu2007-12-022-11/+19
| | | | | | | [ruby-dev:32429] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14082 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rss/rss.rb, test/rss/test_version.rb: 0.2.1 -> 0.2.2.kou2007-12-027-9/+22
| | | | | | | | | | | | * lib/rss/maker/itunes.rb: fixed new_itunes_category. * lib/rss/maker/taxonomy.rb: new_taxo_topic -> new_topic because of consistency. * test/rss/test_maker_itunes.rb, test/rss/test_itunes.rb: removed needless UTF-8 characters. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14081 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * insnhelper.ci (vm_callee_setup_arg): fix error message.ko12007-12-023-4/+10
| | | | | | | | [ruby-dev:32430] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14080 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* check Process.kill instead of Process#kill.akr2007-12-021-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* s/unicode/Unicode/ in error messages.akr2007-12-022-13/+81
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14078 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add ML ref.akr2007-12-021-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* eval("\"\xfd".force_encoding("utf-8")) generates garbage in error message.akr2007-12-021-0/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14076 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (regexp): fix /#{}\xa1\xa2/e to be EUC-JP. akr2007-12-023-3/+32
| | | | | | | (reg_fragment_setenc_gen): extracted from reg_compile_gen. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test for [ruby-dev:32404].akr2007-12-011-0/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* (test_time_now_cycle): cut off under micro second.akr2007-12-011-8/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/intern.h (rb_uv_to_utf8): declared.akr2007-12-017-174/+635
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * re.c (rb_reg_preprocess): new function for dynamic regexp with \u{} such as Regexp.new("\\u{6666}"). (rb_reg_prepare_re): preprocess regexp for recompiling. (read_escaped_byte): new function. (unescape_escaped_nonascii): new function. (append_utf8): new function. (unescape_unicode_list): new function. (unescape_unicode_bmp): new function. (unescape_nonascii): new function. (rb_reg_initialize): preprocess regexp. * pack.c (rb_uv_to_utf8): renamed from uv_to_utf8. * parse.y (STR_NEW3): take func instead of has8 and hasmb. (parser_str_new): use default coderange mechanism except for regexp. (parser_tokadd_utf8): copy regexp source as-is. (parser_read_escape): UTF-8 stuff removed. (parser_tokadd_escape): has8bit and hasmb removed. (parser_tokadd_string): fix 8-bit single byte character with \u. (parser_parse_string): has8bit and hasmb removed. (parser_here_document): has8bit and hasmb removed. (parser_yylex): call parser_tokadd_utf8 instead of read_escape for UTF-8 character. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14072 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/xmlrpc/server.rb (XMLRPC::Server#server): Improve signal handling sojeg22007-12-012-3/+9
| | | | | | | | | pressing control-c in the controlling terminal or sending SIGTERM stops the XML-RPC server. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14070 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * encoding.c: rename primary_encoding -> default_external (encoding).matz2007-12-015-19/+23
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/README: remove jcode.rbmatz2007-12-011-1/+0
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e