nobu
114f01bd9d
* parse.y (yylex): should dispatch scan-event even when follows
...
just after delayed-token. [ruby-dev:37855] [Bug #1071 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-16 14:58:27 +00:00
tadf
aa3c6d4dd2
* lib/date/format.rb: reverted.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-16 13:20:50 +00:00
naruse
5e4f23d600
* lib/date/format.rb: suppressed a warning.
...
* lib/irb/ruby-lex.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-16 12:32:35 +00:00
naruse
066b30245b
rescue Encoding::ConverterNotFoundError.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-16 06:31:31 +00:00
naruse
2ac5cdd07a
* lib/csv.rb: Change magic comment to US-ASCII in order to
...
make literals as US-ASCII.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-16 06:31:13 +00:00
nobu
95c5a63d2d
* regparse.c: commit miss again.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-16 02:20:00 +00:00
nobu
2a8ff72f30
* regparse.c: commit miss.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-16 02:15:13 +00:00
nobu
2318bef1de
* regparse.c (parse_char_class, parse_exp, parse_branch),
...
(parse_subexp): fixed memory leak. a patch from Ralf Junker
<ralfjunker AT gmx.de> at [ruby-core:24921].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-16 01:45:18 +00:00
nobu
cd48eb8fd5
* vm.c (vm_backtrace_each, vm_backtrace_push),
...
vm_eval.c (print_backtrace), vm_dump.c (bugreport_backtrace):
rb_backtrace_iter_func now takes VALUE as file and method names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-16 01:38:32 +00:00
nobu
232836ea5a
* vm_dump.c (bugreport_backtrace): rb_backtrace_iter_func now
...
takes VALUE as file and method names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-16 00:47:40 +00:00
ko1
a174dbcd4f
* vm_insnhelper.c (opt_eq_func): fix optimization bug. This issue
...
was found out and debugged with Takuto Hayashi at Security and
Programming camp 2009.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-15 18:18:07 +00:00
naruse
c0ec326b7b
* regparse.c (add_ctype_to_cc_by_range): fix the first
...
character bigger than sb_out was dropped.
* test/ruby/test_regexp.rb (TestRegexp#test_posix_bracket):
add tests for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-15 16:27:13 +00:00
svn
c6fcb8ab9a
* 2009-08-16
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-15 16:01:44 +00:00
naruse
249697855e
\d, \s and \w are now non Unicode class. [ruby-dev:39026]
...
* include/ruby/oniguruma.h
(ONIGENC_CTYPE_SPECIAL_MASK): added.
(ONIGENC_CTYPE_D): ditto.
(ONIGENC_CTYPE_S): ditto.
(ONIGENC_CTYPE_W): ditto.
* regparse.c: \d, \s and \w are now non Unicode class.
[ruby-dev:39026]
(fetch_token_in_cc): use ONIGENC_CTYPE_[DSW] for \d/\s/\w.
(fetch_token): ditto.
(add_ctype_to_cc): add routines for ONIGENC_CTYPE_[DSW].
(parse_exp): ditto.
* test/ruby/test_regexp.rb (TestRegexp#test_char_class):
add tests for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-15 16:01:33 +00:00
svn
fefb793f65
* 2009-08-15
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-15 01:40:31 +00:00
nobu
f93bdaed62
* parse.y (fname, string_dvar, sym, dsym, f_arglist): removed
...
duplications.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-15 01:40:10 +00:00
nobu
19b24f499b
* include/ruby/ruby.h (rb_check_safe_str): deprecated.
...
* ext/openssl/ossl_x509store.c (ossl_x509store_add_{file,path}):
replaced deprecated funtion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-14 11:03:22 +00:00
naruse
4155811dc1
* re.c (rb_reg_preprocess_dregexp): change Exception class to
...
RegexpError.
* test/ruby/test_m17n.rb (test_regexp_usascii): follow above.
* test/ruby/test_m17n.rb (test_regexp_embed): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-14 09:05:44 +00:00
naruse
2b91cbbf11
* enc/Makefile.in (MKDIRS): revert r24525.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-14 08:20:13 +00:00
nobu
69f1e595bf
* ext/digest/lib/digest/hmac.rb (Digest::HMAC#initialize): faster
...
code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-14 07:28:26 +00:00
nobu
0ff3bf4f44
* configure.in (rubyhdrdir): fixed typo. [ruby-dev:39079]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24536 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-14 05:31:39 +00:00
matz
ace43dc721
* doc/ChangeLog-1.8.0: add forgotten entry contributed by
...
TAKAHASHI Kaoru. [ruby-dev:39065]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24533 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-13 15:30:57 +00:00
svn
9cfb62700d
* 2009-08-14
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24532 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-13 15:21:43 +00:00
matz
eadc3604c0
* lib/delegate.rb (Delegator#method_missing): __FILE__ may contain
...
multi-byte characters. a patch from Kenta Murata in [ruby-dev:39066].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-13 15:21:32 +00:00
wanabe
c8909ba601
* vm.c (vm_exec): returning from lambda runs ensure section.
...
[Bug #1729 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24530 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-13 12:06:14 +00:00
nobu
c29206461f
* configure.in (RUBY_CHECK_SIZEOF): set cross_compiling to yes
...
only when AC_COMPUTE_INT, and inverted the arguments.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-13 09:40:12 +00:00
nobu
c9e7e6617b
* configure.in (RUBY_CHECK_SIZEOF): use AC_COMPUTE_INT instead of
...
_AC_COMPUTE_INT_COMPILE with cross compiling, since its arguments
have been changed at autoconf 2.64.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-13 09:22:12 +00:00
nobu
72072e6343
* insns.def (opt_case_dispatch): suppressed a warning.
...
* vm_insnhelper.c (opt_case_dispatch_i): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-13 07:31:23 +00:00
knu
117c384560
Oops, my finger slipped.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-13 07:30:41 +00:00
nobu
24c783e95e
* configure.in, Makefile.in (MAKEDIRS): used MKDIR_P instead of
...
as_mkdir_p. [ruby-dev:39063]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-13 07:20:16 +00:00
knu
5aff5e79b8
Merge changes from ruby_1_8 except for the post-1.8.7 part.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-13 07:12:47 +00:00
nobu
3711c63b6a
* regenc.c (onigenc_strlen_null, onigenc_str_bytelen_null): fixed
...
infinite loop for wide encodings. reported by Ralf Junker at
[ruby-core:24892]. [ruby-core:24904]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24521 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-13 06:37:39 +00:00
svn
579edea3c9
* 2009-08-13
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-13 03:03:29 +00:00
matz
f7020b1b42
revert r24507. [ruby-dev:39073]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-13 03:03:20 +00:00
usa
54b61b8da5
* ChangeLog: typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-12 12:10:33 +00:00
usa
f73eaeb3a6
* ext/socket/extconf.rb: if ipv6 is enabled, the version of Windows
...
most be XP or later.
[ruby-core:24601]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-12 12:10:10 +00:00
usa
87bb97ceb5
* common.mk (yes-test-knownbug): use RUNRUBY instead of MINIRUBY.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24516 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-12 07:00:37 +00:00
naruse
054770068a
* class.c (rb_define_module_id_under): fix the name.
...
* class.c (rb_define_module_under): fix for prevvious changes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24515 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-12 06:54:45 +00:00
nobu
be245c09e6
* test/ruby/test_marshal.rb (test_class_nonascii): test for non-ascii name class.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24514 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-12 06:34:59 +00:00
nobu
31f4a82942
* class.c (rb_define_class_id_under, rb_define_module_id_under):
...
new functions to define a nested class/module with non-ascii
name.
* struct.c (make_struct): use name with encoding.
* struct.c (inspect_struct): ditto. [ruby-core:24849]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-12 06:32:21 +00:00
nobu
c00428ed9e
* test/ruby/test_struct.rb (test_inspect): use assert_match.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-12 06:15:30 +00:00
ko1
8e8e34319b
* insns.def, vm.c, vm_insnhelper.c, vm_insnhelper.h: check
...
definition of (classes)#=== for case/when optimization.
Fix Bug #1376 [ruby-core:23190].
* string.c (Init_String), bignum.c (Init_Bignum),
numeric.c (Init_Numeric): define String#===, Symbol#===,
Bignum#===, Fixnum#===, Float#=== as same as (classes)#==.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-12 05:55:06 +00:00
usa
56e69d7109
* win32/win32.c (readdir_internal): free old temporary filename.
...
[ruby-core:24820]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-12 05:16:56 +00:00
nobu
265bd9e661
* string.c (rb_str_new_frozen): must not change encoding of frozen
...
shared string. [ruby-dev:39068]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-12 04:00:03 +00:00
nobu
df9f513387
* configure.in (rb_cv_broken_crypt): needs more checks.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-12 02:52:00 +00:00
matz
5703c1756c
* sprintf.c (rb_str_format): should preserve format encoding
...
before raising CompatibilityError. [ruby-list:46274]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24507 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-11 23:53:21 +00:00
naruse
e666111955
* encoding.c (rb_enc_compatible): If a string is empty and
...
other's encoding is US-ASCII, returns the empty string's encoding.
[ruby-list:46274]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-11 22:52:39 +00:00
naruse
8b83fc2704
* encoding.c (is_data_encoding): fix condition.
...
* encoding.c (enc_capable): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-11 22:39:54 +00:00
svn
9a28cb243c
* 2009-08-12
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-11 15:07:00 +00:00
nobu
d26cfd565d
* test/ruby/test_rubyoptions.rb (test_shebang): fix for new behavior.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24501 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-08-11 15:06:51 +00:00