akr
1e7f2caa1f
add test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25846 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-18 13:02:28 +00:00
akr
4c6eda226a
* io.c (fill_cbuf): extracted from more_char.
...
(io_shift_cbuf): fix memmove condition.
(read_all): use fill_cbuf directly to avoid ECONV_AFTER_OUTPUT.
[ruby-dev:39708]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25845 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-18 13:02:14 +00:00
nobu
817f503001
* thread.c (rb_thread_atfork_internal): reinitialize global lock
...
at fork to get rid of deadlock. based on the patch from Hongli
Lai in [ruby-core:26783]. [ruby-core:23572]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-18 09:39:59 +00:00
nobu
a000201fee
* thread.c (rb_thread_atfork_internal): reinitialize global lock
...
at fork to get rid of deadlock. based on the patch from Hongli
Lai in [ruby-core:26783]. [ruby-core:26361]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25843 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-18 09:25:46 +00:00
nobu
748fe216c2
* thread.c (rb_thread_atfork_internal): reinitialize global lock
...
at fork to get rid of deadlock. based on the patch from Hongli
Lai in [ruby-core:26783]. [ruby-core:26361]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25842 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-18 09:25:11 +00:00
nobu
e8c17f1a59
* thread.c (terminate_atfork_i): all mutex locks by other threads
...
have been abandoned at fork.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-18 08:48:24 +00:00
usa
4bfd133993
* file.c (file_path_convert): delay getting filesystem encoding
...
while really needed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-18 06:28:19 +00:00
naruse
a7db2c1efd
* encoding.c (enc_set_default_encoding): reset filesytem
...
encoding because on resetting default_external because
Unix's filesystem encoding depends on default_external.
* encoding.c (enc_set_filesystem_encoding): added.
* ruby.c (process_options): don't call rb_filesystem_encoding
because filesystem encoding is reset when default_external
is reset.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-18 03:38:20 +00:00
takano32
a1c4d60560
* math.c (math_gamma): fix incorrect comparison expression.
...
see also [ruby-dev:39709] [Bug #2381 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25836 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-18 03:06:32 +00:00
naruse
6c2373ea67
* io.c (rb_scan_open_args): move path encoding conversion
...
for filesystem encoding of Mac OS X.
* file.c (file_path_convert): added for convert encoding
of file path.
* file.c (rb_get_path_check): add file_path_convert.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-18 02:41:25 +00:00
nobu
20492556c9
* test/ruby/test_undef.rb: eol-style.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25834 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-18 01:46:53 +00:00
nobu
612b74343e
* string.c (str_utf8_nth): no count_utf8_lead_bytes_with_word
...
optimization for short string. [ruby-core:26787]
* string.c (str_utf8_offset): str_utf8_nth never return NULL.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25833 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-18 01:17:11 +00:00
shugo
4e073fbb93
forgot to add test_undef.rb in the previous revision.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25832 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-18 01:14:54 +00:00
shugo
63c3b2d283
* vm_method.c (rb_undef): should raise TypeError if klass is nil.
...
1.instance_eval { undef to_s } causes SEGV before this fix.
* test/ruby/test_undef.rb: new tests for undef.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-18 01:13:54 +00:00
nobu
e43c0bde53
* string.c (str_utf8_nth): fixed overrun. [ruby-core:26787]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-17 23:41:44 +00:00
nobu
9325910037
* test/ruby/test_m17n.rb: get rid of empty string interpolations
...
confusing ruby-mode.el.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-17 23:41:09 +00:00
svn
8d84e28c0e
* 2009-11-18
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-17 22:52:05 +00:00
akr
cde9a50b75
* io.c (parse_mode_enc): fix invalid access.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-17 22:52:02 +00:00
shugo
86d46b5459
* vm_method.c (rb_alias): should raise TypeError if klass is nil.
...
1.instance_eval { alias to_string to_s } causes SEGV before this
fix.
* test/ruby/test_alias.rb (test_special_const_alias): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-17 14:53:32 +00:00
akr
10b7e0e4ad
rdoc update.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-17 13:24:53 +00:00
akr
85bf0a2eb6
unused argument removed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-17 13:24:44 +00:00
nobu
b8f78637c5
* enc/trans/big5-uao-tbl.rb: eol-style.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-17 09:04:58 +00:00
duerst
e0436c54c2
* enc/big5.c, enc/trans/big5.trans, enc/trans/big5-uao-tbl.rb,
...
test/ruby/test-transcode.rb: Added Encoding 'Big5-UAO' and transcoding
for it (from Tatsuya Mizuno) (see Bug #1784 )
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25822 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-17 08:56:11 +00:00
nobu
fab47c96c5
* ksvndifftest/date/test_date_parse.rb: use UTF-8 literals.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25821 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-17 08:18:52 +00:00
nobu
bf5ae9cfdd
* test/ruby/test_dir_m17n.rb, test/yaml/test*.rb: eol-style.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25820 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-17 08:16:34 +00:00
nobu
9e68d0dc03
* insns.def (opt_case_dispatch): runtime value cannot be used as
...
an element initializer.
* vm_insnhelper.c (opt_case_dispatch_i): gets rid of type-punning
calls.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25818 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-17 07:26:26 +00:00
svn
5a8c6a5c93
* 2009-11-17
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-16 17:27:07 +00:00
tenderlove
8f90252c52
Adding yaml tests [ruby-core:26732]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-16 17:27:05 +00:00
akr
31ee9fd966
add tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25803 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-16 13:45:59 +00:00
shugo
3dc8a69df7
* vm_insnhelper.c (vm_call_method): protected singleton methods of
...
an object should not be able to called from other instances of the
class of the object. [ruby-core:26761]
* vm_eval.c (rb_method_call_status): ditto.
* test/ruby/test_module.rb (test_protected_singleton_method): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-16 07:01:44 +00:00
wanabe
98cf9c43fa
* io.c (read_all): shift read buffer if exception occured.
...
pointed out in [ruby-dev:39702].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-16 05:06:16 +00:00
ryan
ca7b32630c
Rolled out last change
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-16 04:02:20 +00:00
ryan
36ed53ff93
Minor cleanup to improve hash use
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-16 03:01:59 +00:00
akr
8c3f13f98d
fix previous change.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-15 23:57:00 +00:00
wanabe
d8a754cc12
* io.c (read_all): don't call io_shift_cbuf until bufffering enough or
...
econv_finished. [ruby-dev:39696]
* io.c (more_char): don't call clear_readconv to read buffer after
econv_finished.
* io.c (appendline, rb_io_each_codepoint): clear readconv when done.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-15 23:11:26 +00:00
akr
5f221c31ed
add a test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-15 17:58:14 +00:00
akr
e88009f40e
add tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-15 17:14:43 +00:00
akr
453890a972
tests refined.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-15 17:11:54 +00:00
mame
9ea0bed1a3
* include/ruby/ruby.h (rb_classext_t): annotate @internal.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-15 16:59:31 +00:00
akr
1aba3f9d76
* encoding.c (rb_filesystem_encindex): use default external encoding
...
instead of locale encoding in Unix.
* ruby.c (process_options): delay inifilesystem encoding
initialization after default external encoding initialization.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-15 16:37:38 +00:00
akr
43bd807c43
add tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25780 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-15 16:24:45 +00:00
svn
f5936bc835
* 2009-11-16
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-15 15:10:52 +00:00
mame
31c0e3385f
* thread.c (thread_cleanup_func): delete locking_mutex when thread
...
object become dummy because of fork. [ruby-core:26744]
[ruby-core:26745]
* bootstraptest/test_thread.rb: add a test for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-15 15:10:49 +00:00
mame
4a761c3209
* class.c (rb_mod_init_copy): fix memory leak of Class#dup.
...
[ruby-dev:39687]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-14 12:56:16 +00:00
nobu
85ca612b13
* configure.in (--with-opt-dir): ignore and suppress a warning.
...
[ruby-dev:39684]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-14 08:09:41 +00:00
nobu
de13a30d32
* hash.c (ruby_setenv): get rid of crash in Solaris 8 and 10.
...
[ruby-core:26668]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25766 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-14 07:43:26 +00:00
marcandre
c07e7d167d
* ext/bigdecimal/bigdecimal.c (BigDecimalCmp): Fix comparisons [ruby-core:26646]
...
* test/bigdecimal/test_bigdecimal.rb (class): Fix and improve tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-14 00:17:07 +00:00
nagai
d71eab14fb
* ext/tk/lib/tk/variable.rb (TkVariable::coerce): fix bug on a numeric value.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-13 19:11:32 +00:00
svn
9a875d3aa1
* 2009-11-14
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25755 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-13 18:36:41 +00:00
nagai
cbad6bc357
* ext/tk/lib/tk/variable.rb: TkVariable#*(other) and /(other) have a
...
bug on handling of the "other" value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-11-13 18:36:38 +00:00