nobu
3ece383660
* marshal.c (class2path, w_unique, w_extended, w_class, w_uclass):
...
deal with non-ascii class path. [ruby-core:24790]
* marshal.c (r_unique, path2class, path2module, obj_alloc_by_path),
(r_object0): ditto.
* variable.c (rb_path_to_class): new encoding-aware function to
get a class from its name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-09 21:55:55 +00:00
nagai
979ac967a9
* ext/tk/extconf.rb (search_tclConfig): last change isn't enough. fixed it.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-09 12:24:55 +00:00
nobu
83c5dfb7ea
* common.mk (ruby.imp): excluded prelude.o to get rid of circular
...
dependency. [ruby-dev:39052]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-09 07:37:22 +00:00
mame
20d6525a6f
* bignum.c (rb_big_cmp, bigsub, big_real_len, bigmul1_normal,
...
bigmul1_balance, big_split): remove BDIGITS() inside of the loops.
same as r24444.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-09 05:55:00 +00:00
naruse
e56bf07b16
New API Encoding#ascii_compatible?.
...
* encoding.c (enc_ascii_compatible_p): added. [ruby-core:24793]
(Init_Encoding): New API Encoding#ascii_compatible?.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-08 23:25:32 +00:00
nobu
28f00681ca
* ext/ripper/eventids2.c (token_to_eventid): added
...
keyword_do_LAMBDA. [ruby-dev:39049]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-08 22:25:11 +00:00
svn
d0e62a5509
* 2009-08-09
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-08 17:11:49 +00:00
yugui
b1c4052fdf
* tool/compile_prelude.rb: fixes a regexp pattern for require.
...
It had matched 'require("foo"('.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-08 17:11:39 +00:00
matz
0ecfb5f625
fix the name in the entry
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-08 05:34:09 +00:00
matz
4307340208
* bignum.c (bigzero_p): removing BDIGITS() inside of the
...
loop. inspired by Hitohiro Kanai's blog entry
<http://d.hatena.ne.jp/CanI/20090807/1249657492 >.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-08 02:47:02 +00:00
nobu
ac2557e09f
* marshal.c (w_symbol r_symlink, r_symbol, r_object0): fix for
...
non-ascii symbols. loading such symbols can cause segfaults in
older versions. [ruby-core:24788]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-07 21:18:33 +00:00
nobu
5414f008d7
* eval_error.c (error_print): removed an extra argument.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 18:25:11 +00:00
nobu
b07df38265
* eval.c (rb_exc_raise, rb_exc_fatal): nil is used to reraise.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 18:22:57 +00:00
knu
b7aa5a41d3
Fix a typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 16:56:12 +00:00
knu
04cad34c2f
* ext/digest/sha2/sha2.c: The ULL suffix is not supported by
...
pre-C99 compilers, so resurrect the ULL() macro to regain
portability. [ruby-dev:39032]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 16:51:37 +00:00
knu
43b2e3be9a
* ext/digest/*/extconf.rb: inttypes.h and unistd.h need not be
...
checked here. [ruby-dev:39032]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 16:36:54 +00:00
svn
eb6c13bd08
* 2009-08-07
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 16:07:18 +00:00
nagai
833b354578
* ext/tk/extconf.rb (search_tclConfig): fix logic bug.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 16:07:11 +00:00
usa
e97f1270b5
* ext/digest/sha2/lib/sha2.eb: should require sha2.so.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 12:18:38 +00:00
usa
2bfa64d0b8
* ext/digest/sha2/sha2.c (*_Final): typos.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 12:12:32 +00:00
knu
7fdaba27ca
* ext/digest/sha2/sha2.h (BYTE_ORDER): Define BYTE_ORDER as
...
necessary. [ruby-dev:39029]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 10:49:05 +00:00
nobu
a809077956
* encoding.c (rb_enc_associate_index): cannot set encoding on
...
special constants.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 07:36:29 +00:00
nobu
a2393c3e53
* encoding.c (valid_encoding_name_p): rejects too long encoding
...
names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 07:26:49 +00:00
nobu
30995c6594
* encoding.c (encoding_data_type): typed data.
...
* encoding.c (enc_capable, rb_enc_get_index): Symbol is encoding
capable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 07:25:13 +00:00
nobu
87c1a07d6a
* encoding.c (rb_enc_get_index): fixed indent.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 07:08:42 +00:00
nobu
efb9097352
* vm_method.c (rb_method_entry_eq): deals with optimized method
...
properly. [ruby-core:24789]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 06:44:10 +00:00
nobu
f86f669cf3
* test/mkmf/base.rb (TestMkmf): was turned into a class, because
...
MiniUnit doesn't complain even if a testcase has no tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 04:30:15 +00:00
nobu
a032b1bdb8
* test/mkmf/base.rb: split from test_sizeof.rb.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 04:14:50 +00:00
nobu
c6ada1e7e0
* lib/mkmf.rb (check_sizeof): added optional compiler option
...
argument. [ruby-core:24785]
* lib/mkmf.rb (create_makefile): suppressed shadowing outer local
variable warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 04:00:38 +00:00
nobu
d04b691b96
* lib/test/unit/testcase.rb (Test::Unit): removes silly TestCase
...
class.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-06 03:05:16 +00:00
knu
d427b8a8ee
* ext/digest/sha2/sha2.[ch]: Update to 1.0 RELEASE which fixes an
...
off-by-one bug in SHA-256 hashing. Reduce differences from
the original while at it. [Bug #1799 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-05 16:40:33 +00:00
svn
c7b5cecb36
* 2009-08-06
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-05 15:13:15 +00:00
knu
20a684739e
* lib/ipaddr.rb (IPAddr#hash): Take account of netmask; submitted
...
by Nobuhiro IMAI in [ruby-dev:39011]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-05 15:13:07 +00:00
nobu
8bc6c71547
* ruby.c (load_file_internal): assumes -x flag if no "ruby" is in
...
the shebang line. [ruby-dev:39015]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-05 10:19:18 +00:00
nobu
cb9038cbaf
* io.c (rb_stdio_set_default_encoding): prototyped.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-05 10:18:21 +00:00
naruse
c6abdf3e0c
* ruby.c (rb_stdio_set_default_encoding): declared.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-05 10:12:31 +00:00
nobu
a2d42dab14
* debug.c (ruby_dummy_gdb_enums): made public. [ruby-dev:39001]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-05 09:46:07 +00:00
matz
da19797648
* range.c (range_eql, range_eq): fixed equality to work for
...
subclasses of Range. a patch from Marc-Andre Lafortune.
[ruby-core:22190]
* test/ruby/test_range.rb: add assertions for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-05 05:01:12 +00:00
nobu
c82826ce5f
* bootstraptest/test_exception.rb: test for [ruby-core:24767].
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-05 04:01:08 +00:00
nobu
6b0ac4ae63
* eval.c (rb_exc_raise, rb_exc_fatal): require exception object.
...
[ruby-core:24767]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-05 03:54:08 +00:00
nobu
0a2b36a99c
* eval.c (rb_longjmp): reset raised flag before fatal error.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-05 03:39:29 +00:00
naruse
d857a1b0d7
Fix test for previous commit.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-05 01:40:15 +00:00
naruse
88c0b8fec9
Fix error message of /.../n with embeded non ASCII-8BIT string.
...
* re.c (rb_reg_preprocess_dregexp): add options to arguments.
* re.c (rb_reg_new_ary): follow above.
* re.c (rb_reg_preprocess_dregexp): change error message when
/.../n has a non escaped non ASCII character in non ASCII-8BIT
script. [ruby-dev:38524]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-05 01:38:36 +00:00
nobu
93b9f2cc5e
* lib/test/unit.rb (Test::Unit.setup_argv): expands paths before
...
requiring. [ruby-dev:39012]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-04 18:28:49 +00:00
mame
528574c2e2
* lib/pp.rb (guard_inspect_key): untrust internal hash to prevent
...
unexpected SecurityError.
* test/ruby/test_object.rb: add a test for [ruby-dev:38982].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24396 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-04 16:44:05 +00:00
nobu
5ea7e7f60b
* lib/rdoc/parser/c.rb: fixed a small error in the documentation.
...
[ruby-core:24744]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-04 15:33:11 +00:00
usa
f00babd1a6
* win32/win32.c (has_redirection): need to execute shell if commandline
...
includes newline. cf. [ruby-core:24560]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-04 13:13:17 +00:00
knu
61c11677c8
* lib/ipaddr.rb (IPAddr#{eql?,hash}): Add IPAddr#{eql?,hash} so
...
that an IPAddr object can be used as a hash key, a set element,
etc.; suggested by Nick Brown <nick@nick-brown.com>.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-04 06:10:42 +00:00
naruse
60ab77a16a
Warn duplicated characters in character class of regexp. [ruby-core:24593]
...
* include/ruby/oniguruma.h (ONIG_SYN_WARN_CC_DUP): defined.
* regparse.h (ScanEnv): add warnings_flag.
* regparse.c (CC_DUP_WARN): defined for warn duplicated characters in
character class of regexp. [ruby-core:24593]
(add_code_range_to_buf): add CC_DUP_WARN.
(next_state_val): add CC_DUP_WARN.
(OnigSyntaxRuby): add ONIG_SYN_WARN_CC_DUP.
(SET_ALL_MULTI_BYTE_RANGE): add env to arguments.
(add_code_range): ditto.
(add_code_range_to_buf): ditto.
(not_code_range_buf): ditto.
(or_code_range_buf): ditto.
(and_code_range1): ditto.
(and_code_range_buf): ditto.
(and_cclass): ditto.
(or_cclass): ditto.
(add_ctype_to_cc_by_range): ditto.
(add_ctype_to_cc): ditto.
(parse_char_class): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-04 04:14:38 +00:00
naruse
38107457a3
* enc/encdb.c (ENC_SET_BASE): fix typo. patch by ujihisa [ruby-dev:39004]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-04 03:42:11 +00:00