duerst
a95ae9619f
Sat Dec 22 15:54:54 2007 Martin Duerst <duerst@it.aoyama.ac.jp>
...
* test/ruby/test_transcode.rb: Added simple tests for
EUC-JP and Shift_JIS and tests for ASCII-only range
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 09:52:00 +00:00
usa
d9c407981c
* common.mk (version.o): add dependency. [ruby-dev:32680]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 09:21:38 +00:00
naruse
a745e619d2
* ext/nkf/nkf.c (Init_nkf): use rb_ascii_encoding() for
...
rb_nkf_enc_get("US-ASCII").
* if use rb_nkf_enc_get("US-ASCII"), ruby will crash - this is bug?
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 08:49:28 +00:00
usa
bc0963a204
* lib/mkmf.rb ($extmk): fixed broken condition.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 08:39:26 +00:00
naruse
573bd7500b
* ext/nkf/nkf-utf8.c: Update nkf.c rev:1.157.
...
* ext/nkf/nkf.c (rb_nkf_enc_get): replicate proper based encoding.
* ext/nkf/kconv.c (Kconv#kconv, to*): use self.encoding as from_enc
when from_enc isn't given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 08:36:30 +00:00
usa
eff45d2cc8
* lib/mkmf.rb ($extmk): fixed broken condition.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 08:32:53 +00:00
gotoyuzo
40aa32a0d7
* ext/openssl/lib/net/ssl.rb (OpenSSL::SSL::SSLContext.build): removed.
...
* ext/openssl/lib/net/ssl.rb (OpenSSL::SSL::SSLContext#set_params):
new method to set suitable SSL parameters.
* lib/net/pop.rb, lib/net/http.rb, lib/net/imap.rb,
test/openssl/test_ssl.rb: follow above change.
* test/net/http/test_https.rb: refine error case.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14479 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 08:31:53 +00:00
shugo
e875cfa1fe
* lib/net/imap.rb (encode_utf7): accept UTF-8 strings.
...
* lib/net/imap.rb (decode_utf7): return UTF-8 strings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 08:00:04 +00:00
usa
05ac036933
* transcode_data_japanese: typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 06:57:26 +00:00
duerst
54f2734069
Sat Dec 22 15:54:54 2007 Martin Duerst <duerst@it.aoyama.ac.jp>
...
* ChangeLog: Information for last patch got lost, fixed
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 06:54:26 +00:00
usa
c9bf419684
* */Makefile.sub (MFLAGS): define unless defined.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14471 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 06:30:40 +00:00
usa
366b82dde8
* lib/mkmf.rb ($extmk): set true only when under ext/ or tool/.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 06:19:11 +00:00
nobu
aefc34a041
* common.mk (encs, ext/ripper/ripper.c): needs MFLAGS.
...
* configure.in (STRINGIZE): stringizing macro.
* include/ruby/defines.h (STRINGIZE): fallback.
* tool/make-snapshot: new file.
* version.c (ruby_description, ruby_copyright): string constants for
-v option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 06:14:50 +00:00
shugo
482690cdf8
* lib/net/imap.rb (initialize): fixed documentation.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 06:05:14 +00:00
shugo
a7ef0c7303
* lib/net/pop.rb (enable_ssl): use OpenSSL::SSL::SSLContext.build
...
instead of SSLContext.new (default verify mode is now
OpenSSL::SSL::VERIFY_PEER).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 06:03:20 +00:00
tadf
0067dc24d8
* lib/date.rb: shouldn't freeze nil. [ruby-dev:32677]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 05:48:30 +00:00
akr
bcb064eb0f
* regenc.c (onigenc_ascii_is_code_ctype): moved from enc/ascii.c.
...
* regenc.h (onigenc_ascii_is_code_ctype): declared.
* enc/ascii.c: use onigenc_ascii_is_code_ctype.
* enc/us_ascii.c: new file for US-ASCII.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 05:38:33 +00:00
nobu
e11ed98f88
* parse.y (reg_named_capture_assign_iter): allows non-ascii names and
...
get rid of reserved word IDs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 05:30:37 +00:00
ko1
34ff55e82a
* test/ruby/test_float.rb, test_sprintf.rb: fix test place.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 05:19:38 +00:00
ko1
e6f67598e9
* bootstraptest/test_objectspace.rb: skip flozen string.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 05:18:52 +00:00
ko1
dd6ab4f3d5
* array.c (rb_ary_permutation): add volatile to avoid GC problem.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 05:05:30 +00:00
ko1
85143195da
* eval.c (rb_obj_instance_eval): use class of immediate objects.
...
* test/ruby/test_eval.rb: fix a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 02:52:27 +00:00
usa
b507930297
* encoding.c (rb_locale_charmap): win32 support.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 02:37:40 +00:00
drbrain
ccc842878d
Place bin dir before lib dir so gem bin stubs work.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14455 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 02:32:18 +00:00
jim
a07e0b139c
Updated ChangeLog with Rake info.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 02:10:44 +00:00
matz
1d420d7c38
* parse.y (reg_named_capture_assign_iter): just ignore the
...
captures that do not have valid local variable name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 01:36:35 +00:00
ko1
c375b2f420
* tool/insns2vm.rb: moved from lib/vm/instruction.rb.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14451 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 01:34:09 +00:00
matz
c6b8f89c2e
* parse.y (reg_named_capture_assign_iter): captured name should
...
not be reserved word. a patch from Keita Yamaguchi
<keita.yamaguchi AT gmail.com> in [ruby-dev:32675].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 01:32:21 +00:00
matz
d65ae590d0
* eval.c (rb_f_method_name): now __method__ and __callee__ are
...
aliases. [ruby-core:14244]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-22 01:20:57 +00:00
nobu
7f59e105d1
* string.c (rb_str_buf_append): improvement for non-broken coded
...
strings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 23:29:56 +00:00
ko1
5a1cf1c5cb
* bootstraptest/test_fork.rb: skip if fork is not unsupported.
...
* bootstraptest/test_io.rb: skip if require failed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 21:35:08 +00:00
davidflanagan
ac42f7adf9
io.c: fix typo in rdoc comment
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 21:10:55 +00:00
usa
b211ed6460
* parse.y (parser_str_new, rb_intern3): rb_default_encoding() renamed.
...
* ext/nkf/nkf.c (rb_nkf_putchar): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 20:11:17 +00:00
matz
d7cc14d436
* encoding.c (rb_ascii_encoding): renamed from previous
...
rb_default_encoding().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 18:55:30 +00:00
matz
b36c642a85
* re.c (rb_reg_prepare_re): stop ENCODING_NONE warning if the
...
encoding of the str is ASCII-8BIT.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 18:21:41 +00:00
matz
1d41fe84f9
* parse.y (command): block from cmd_brace_block was ignored.
...
[ruby-dev:32644]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 18:02:19 +00:00
matz
2bed2cdc7f
* io.c (io_ungetc): avoid buffer relocation, which might cause
...
serious problem under concurrent situation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 16:54:25 +00:00
akr
b82a05989e
* re.c (ARG_ENCODING_NONE): defined for /.../n option.
...
(REG_ENCODING_NONE): ditto.
(rb_char_to_option_kcode): return ARG_ENCODING_NONE for n.
(rb_reg_prepare_re): warn /ascii/n =~ "non-ascii".
(rb_reg_initialize): set REG_ENCODING_NONE from ARG_ENCODING_NONE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14438 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 16:39:36 +00:00
shugo
47daa2f218
* test/json/test_json_addition.rb (test_core): do not use Time.now
...
because JSON can't hold nsec.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 16:25:53 +00:00
usa
3486311d54
* ext/tk/sample/tkextlib/vu/canvSticker2.rb,
...
ext/tk/sample/demos-{en,jp}/bind.rb: fix typo. [ruby-dev:32668]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 16:11:39 +00:00
matz
3edf43c4cf
ChangeLog: conflict mark removed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 15:59:24 +00:00
matz
389278af97
* sample/test.rb (valid_syntax): force_encoding input script.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 15:57:26 +00:00
usa
fede8b213b
* lib/mkmf.rb (depend_rules): suffixes list broken. fixed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 14:49:56 +00:00
matz
256ddf48c2
* bignum.c (rb_big_mul0): remove unused variable.
...
* bignum.c (bigdivrem): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 11:22:08 +00:00
nobu
7c2ae80d70
* include/ruby/ruby.h (rb_catch_obj, rb_throw_obj): prototyped.
...
* include/ruby/intern.h (rb_fiber_alive_p): prototyped.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14431 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 11:13:53 +00:00
nobu
977eea57a3
* string.c (rb_str_succ): retry increasing until valid char is found.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 11:09:19 +00:00
nobu
5f2e5c07a7
* encoding.c (rb_enc_replicate): now creates first class encoding.
...
* encoding.c (rb_define_dummy_encoding): always based on the default
encoding.
* encoding.c (rb_enc_dummy_p): check if dummy.
* encoding.c (enc_inspect): shows if dummy.
* encoding.c (Init_Encoding): added dummy? method
* include/ruby/encoding.h (ENCODING_INLINE_MAX): increased.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14429 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 11:00:04 +00:00
ko1
91c6c2c170
* io.c: write() should be in blocking region.
...
* bootstraptest/test_io.rb, test_knownbug.rb: move a fixed test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14428 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 09:43:49 +00:00
nagai
59a07a0690
Ruby/Tk :: provisional support on Ruby-VM and Tcl/Tk8.5.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 08:57:35 +00:00
nobu
d66a188c4a
* transcode.c (rb_str_transcode_bang): returns self if no conversion.
...
[ruby-dev:32662]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 08:49:08 +00:00
drbrain
b42179135d
Update to RubyGems 1.0.1, r1581
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 08:45:07 +00:00
ko1
f12cc82e0f
* bootstraptest/pending.rb: renamed from featurebug.rb.
...
This file contains bugs which is known but will not be
fixed in days.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 08:38:16 +00:00
nobu
131d0efb5f
* debug.c (dummy_gdb_enums.various): added ENCODING and CODERANGE
...
constants.
* .gdbinit: use enum constants.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 08:31:24 +00:00
ko1
f40a94a9cd
* bootstraptest/featurebug.rb: added.
...
* bootstraptest/test_knownbug.rb: move a feature bug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 08:29:33 +00:00
ko1
6cbc9ac208
* thread.c (rb_thread_atfork): fix to mark thread object.
...
[ruby-dev:32404]
* bootstraptest/test_knownbug.rb, test_fork.rb: move a fixed test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 08:27:14 +00:00
ko1
5c00dd28c5
* gc.h: extern variable should not be initialized.
...
* thread_pthread.c: add a parameter.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 08:13:39 +00:00
akr
5bb7c8612f
* encoding.c (Init_Encoding): use enc_name as to_s.
...
(enc_inspect): renamed from enc_to_s. add "#" at beginning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 07:52:49 +00:00
naruse
72d638fb2f
* ext/nkf/nkf-utf8/config.h (MIME_DECODE_DEFAULT, X0201_DEFAULT):
...
defined as FALSE. nkf and kconv don't decode MIME encoded string
and don't convert JIS X 0201 Katakana.
* test/nkf/test_kconv.rb: fix tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 07:50:31 +00:00
nobu
e791259e00
* enumerator.c (enumerator_iter_i): adjusted for rb_block_call_func.
...
* include/ruby/ruby.h (rb_block_call_func): function to be called back
as block.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 07:33:31 +00:00
duerst
968eb8beac
Fri Dec 21 16:25:25 2007 Martin Duerst <duerst@it.aoyama.ac.jp>
...
* common.mk, transcode_data_iso_8859.c: renamed to
transcode_data_one_byte.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 07:24:39 +00:00
matz
f1a81f92ca
* ext/bigdecimal/bigdecimal.c (VpMidRound): Round method bug
...
pointed by Ryan Platte fixed(Patch to the patch from "NATORI
Shin"). [ruby-talk:273360]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 07:14:42 +00:00
akr
e667720bd4
* re.c (append_utf8): use rb_utf8_encoding() instead of
...
rb_enc_find("utf-8").
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 07:07:21 +00:00
matz
e48ea0a5f3
* io.c (rb_io_s_read): allow specifying encoding explicitly.
...
* io.c (rb_io_binmode): specifies encoding to ASCII-8BIT (binary).
* io.c (rb_io_s_read): IO should be in binary mode when offset is
specified.
* encoding.c (rb_to_encoding): returns default encoding if no
corresponding encoding found.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 07:02:55 +00:00
nobu
12df6cf7ce
* encoding.c (rb_enc_init): use enc_register_at() directly.
...
* encoding.c (rb_utf8_encoding): returns utf-8 encoding.
* include/ruby/encoding.h (rb_utf8_encoding): prototyped.
* parse.y (UTF8_ENC): uses rb_utf8_encoding().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14410 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 06:59:48 +00:00
shugo
ad89f7e6d2
* lib/net/imap.rb (initialize): accept service name. changed
...
the defalut value of the old style +verify+ argument to true.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14408 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 06:34:03 +00:00
matz
1ee46d76c4
* enumerator.c (enumerator_init_copy): typo fixed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14407 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 06:18:25 +00:00
akr
0972cbc284
* gc.c (rb_garbage_collect): new function for debugging.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 06:16:56 +00:00
nobu
4baea7dd8e
* encoding.c (rb_to_encoding_index): should return error instead of
...
exception even if type is incorrect.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 06:16:02 +00:00
matz
8fa21bc05f
* enumerator.c (enumerator_init_copy): prohibit cloning of
...
generators since Fibers cannot be copied.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 05:59:20 +00:00
akr
0d49e43be2
* io.c (Init_IO): define IO::BINARY even if O_BINARY is not exist.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14403 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 05:47:15 +00:00
matz
668bd7d992
* test/ruby/test_system.rb (TestSystem::valid_syntax): apply
...
ASCII-8BIT encoding explicitly.
* re.c (rb_reg_prepare_re): add encoding name in the message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 05:03:14 +00:00
akr
59dca19910
* re.c: change "character encodings differ" error messages.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 04:54:54 +00:00
nobu
e15390d08d
* encoding.c (rb_enc_find_index): extension libraries have lower case
...
names conventionally.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 04:47:00 +00:00
nobu
ef0706a5bf
* encoding.c (rb_enc_register): set encoding constant.
...
* encoding.c (rb_enc_find_index): replace non-alphanumeric chars with
underscores, so that initialize function can be called.
* ruby.c (proc_options, process_options): finds encoding after
load_path is initialized.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14399 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 04:40:13 +00:00
matz
ad47716266
* io.c (rb_io_external_encoding): should fill delayed
...
initialization for STDIN.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 04:32:53 +00:00
matz
1b27cfcd6c
* io.c (rb_io_external_encoding): new method.
...
* encoding.c (rb_enc_from_encoding): returns Qnil for NULL
encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14397 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 04:26:38 +00:00
akr
8c68d9a152
* encoding.c (rb_locale_charmap): return nil if no locale information.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 04:09:45 +00:00
matz
5a717c35ea
ChangeLog updated
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14393 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 04:05:08 +00:00
matz
3ec3412d83
* string.c (rb_str_chomp_bang): avoid unnecessary loop using
...
rb_enc_prev_char().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 04:03:19 +00:00
akr
923d3ea159
* lib/runit, lib/rubyunit.rb, test/testunit/runit: removed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14391 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 03:56:45 +00:00
matz
bda85cb021
* file.c (Init_File): File.exists? revived.
...
* dir.c (Init_Dir): Dir.exists? again.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14390 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 03:34:26 +00:00
matz
74a0c0cc7e
* io.c (rb_io_mode_enc): set default external encoding if no
...
encoding specified explicitly.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 03:29:54 +00:00
ko1
e613c7cf5f
* compile.c: remove "illegal".
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 03:27:31 +00:00
nobu
9fbc6596cc
* keywords, parse.y (__ENCODING__): represent script encoding.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 03:22:22 +00:00
akr
2b62714866
* string.c (rb_str_is_ascii_only_p): new method ascii_only?.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14383 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 03:18:37 +00:00
akr
f2515d9938
* configure.in: check langinfo.h and locale.h.
...
* encoding.c: use langinfo.h only if available.
* main.c: use locale.h only if available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14382 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 03:03:29 +00:00
matz
7a34e08d84
* test/ruby/test_m17n.rb (TestM17N::test_tr): "invalid mbstring
...
sequence" is not an error to be tested.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 02:56:17 +00:00
akr
0530cf9ff8
* encoding.c: include locale.h
...
(rb_locale_charmap): new method Encoding.locale_charmap for
nl_langinfo(CODESET).
* include/ruby/encoding.h (rb_locale_charmap): declared.
* main.c (main): call setlocale with LC_CTYPE.
* ruby.c (locale_encoding): use rb_locale_charmap.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 02:52:23 +00:00
ko1
685cc0f7c4
add reported.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14379 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 02:49:14 +00:00
ko1
2a564dfb94
* vm.c, vm_dump.c: fix typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14378 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 02:48:14 +00:00
akr
4cf437519f
* regerror.c, string.c, io.c, lib/getoptlong.rb, lib/net/imap.rb,
...
compile.c, sprintf.c, parse.y, ext/win32ole/win32ole.c,
ext/tk/sample/demos-en/entry3.rb, ext/tk/lib/tcltk.rb,
ext/openssl/ossl_bn.c, numeric.c, vm.c,
benchmark/bm_so_meteor_contest.rb, bignum.c, ruby.c: don't "illegal"
for non law violation context.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 02:31:11 +00:00
nobu
817a4e3c83
* common.mk (enc.mk): depends on $(RBCONFIG) instead of rbconfig.rb.
...
* encoding.c (Init_Encoding): ISO-8859-1 is no longer a replica.
* regenc.h (OnigEncodingDefine): names of extension and encoding can
differ.
* enc/Makefile.in: always shared.
* enc/depend (deffile): should not upcase.
* enc/{ascii,euc_jp,sjis,utf8,iso_8859_{1..16}}.c: fix for Init.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 02:23:26 +00:00
akr
d45cfa45ab
* tool/compile_prelude.rb: use erb.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-21 00:27:40 +00:00
matz
bb1719875c
* enumerator.c (enumerator_next): should call next_init() if fiber
...
is dead already. [ruby-dev:32459]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-20 23:33:32 +00:00
gotoyuzo
ec0340b4b6
* ext/openssl/lib/openssl/ssl.rb (OpenSSL::SSL::SSLContext.build):
...
enable CRL checking on default cert store.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-20 16:27:14 +00:00
gotoyuzo
c6920177f3
* lib/net/http.rb (Net::HTTP#connect): use
...
OpenSSL::SSL::SSLContext.build instead of SSLContext.new (default
verify mode is now OpenSSL::SSL::VERIFY_PEER).
* lib/net/https.rb: SSL parameters are defined by attr_accessor.
* test/net/http/test_https.rb: add test for HTTPS features.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14371 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-20 16:21:22 +00:00
gotoyuzo
d86caf3188
* io.c (select_internal): should return original value.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-20 16:12:38 +00:00
matz
cfb91bc2f5
* string.c (tr_trans): wrong encoding check for tree strings.
...
* test/ruby/test_m17n.rb (TestM17N::test_tr_s): "invalid mbstring
sequence" is not an error to be tested.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14369 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-20 15:27:35 +00:00
ko1
5c04ed459b
* lib/net/imap.rb (initialize): the second argument is an option
...
hash now. use SSLContext.build to specify SSL parameters.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14368 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-20 10:41:50 +00:00
ko1
cb7e82a94a
* thread_pthread.c (native_thread_apply_priority): check
...
_POSIX_PRIORITY_SCHEDULING for OpenBSD.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-20 10:14:16 +00:00
ko1
ff3e195746
* configure.in: add libthr for FreeBSD.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14365 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-20 09:35:28 +00:00
ko1
c334a09f7a
* common.mk, *.ci: renamed to *.c.
...
* eval_laod.c: renamed to load.c.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-20 09:29:46 +00:00
drbrain
8289771e32
Import RubyGems 1.0.0, r1575
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-20 08:39:12 +00:00
ko1
40d8543fbd
* proc.c: support Proc#binding.
...
* sample/test.rb: add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-20 08:20:02 +00:00
duerst
1b79b5be82
Thu Dec 20 17:15:15 2007 Martin Duerst <duerst@it.aoyama.ac.jp>
...
* pack.c: Slight change to documentation ('character' ->
'byte (C char)'). [ruby-core:13126], see also [ruby-core:13998].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-20 08:16:43 +00:00
nobu
dc4d4b3923
* common.mk (enc.mk): depends on rbconfig.rb.
...
* regenc.h (OnigEncodingDefine): external encoding definition macro.
* enc/Makefile.in: fix for linking.
* enc/depend, enc/make_encmake.rb: fix for Windows.
* enc/{ascii,euc_jp,sjis,utf8,iso_8859_{1..16}}.c: renamed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-20 08:07:56 +00:00
ko1
be137f3601
* iseq.c (find_line_no): return 0 if not found.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-20 07:44:03 +00:00
ko1
314bef7ef1
* insnhelper.ci, vm.c, vm_core.h: change interface of
...
vm_invoke_block() to specify block ptr. [ruby-talk:266422]
* cont.c, eval_jump.ci, insns.def, proc.c, signal.c, thread.c:
apply above change.
* bootstraptest/test_knownbug.rb: move fixed bug.
* bootstraptest/test_block.rb: ditto. and add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-20 07:07:35 +00:00
nobu
e42fac7c06
* enc/iso_8859_{1..16}.c: renamed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-20 06:47:14 +00:00
ko1
e0dcf23cd5
* insnhelper.ci (vm_expandarray): fix sp increase place.
...
a patch from Yusuke ENDOH <mame AT tsg.ne.jp> in [ruby-dev:32581].
* bootstraptest/test_massign.rb: add a test for above.
* bootstraptest/test_syntax.rb: fix last committed test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-20 01:03:15 +00:00
ko1
bc162c69ea
* bootstraptest/test_syntax.rb: add a test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-20 00:50:13 +00:00
ko1
f5e7602c33
* compile.c (iseq_compile_each/NODE_RETURN): fix stack consistency.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-20 00:46:12 +00:00
matz
9a82a62937
* bignum.c (big2str_orig): access beyond memory region cause crash
...
on interrupt. a patch from Yusuke ENDOH <mame AT tsg.ne.jp> in
[ruby-dev:32651]. [ruby-dev:32641]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-20 00:43:39 +00:00
matz
1c32ff927f
* string.c (rb_str_index): wrong starting position.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-20 00:08:23 +00:00
ko1
5485df3e10
* compile.c (iseq_compile_each): add pop after throw as return.
...
* bootstraptest/test_knownbug.rb, test_syntax.rb: move resolved test.
* vm_core.h, iseq.c, compile.h: add debug output code.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19 21:39:08 +00:00
ko1
10b933295a
* compile.c (iseq_compile_each): remove unused retry entry.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19 19:58:58 +00:00
usa
1541ad6e8c
* */Makefile.sub (DEFS, RM): output to config.status.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19 19:16:32 +00:00
matz
8e8c1d02e0
* common.mk (encs): create encoding directory.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19 18:00:41 +00:00
nobu
c677977267
* enc/iso8859_{1..16}.c: adjust for ruby.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19 17:50:30 +00:00
matz
d874dde282
* string.c (rb_str_each_line): should consider rslen.
...
* string.c (rb_str_buf_append): should propagate encoding.
* string.c (rb_str_each_line): ditto.
* test/ruby/test_m17n.rb (TestM17N::test_str_each_line): should
check encoding as well.
* test/ruby/test_m17n.rb (TestM17N::test_str_each_line): empty
array can not propagate encoding; should not check.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19 17:46:17 +00:00
nobu
42244c17f6
* enc/iso8859_{1..16}.c: imported from Onigiruma 5.9.0.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19 17:28:32 +00:00
nobu
359115948a
* enc/Makefile.in (RM): added.
...
* enc/depend (encs): sort in alpha-numeric order.
* enc/depend (clean, distclean): added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19 17:23:24 +00:00
matz
77629d2cbe
* string.c (rb_str_rindex_m): too much adjustment.
...
* re.c (reg_match_pos): pos adjustment should be based on
characters.
* test/ruby/test_m17n.rb (TestM17N::test_str_insert): test updated
to check negative offset behavior.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19 17:02:29 +00:00
nobu
a927483326
* compile.c (iseq_compile_each): should handle upper level eval iseq
...
from break/next, and COMPILE_ERROR() breaks only one block.
[ruby-dev:31372]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19 16:10:54 +00:00
seki
5e8e08d74e
* test/drb/drbtest.rb (test_07_public_private_protected_missing):
...
followed current Ruby specification.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19 15:11:37 +00:00
nobu
94e82d6c65
* dir.c (dir_inspect, dir_path, dir_tell): check for frozen and closed
...
is not needed. [ruby-dev:32640]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19 14:57:39 +00:00
matz
a329b77348
* string.c (rb_str_rindex): comparison length should be based on
...
bytes, not characters.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19 14:43:37 +00:00
matz
3e212b0484
* string.c (rb_str_chomp_bang): wrong adjust condition.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19 14:38:46 +00:00
matz
1c7f24d5b1
* string.c (str_sublen): adjust position if position is not at the
...
head of a character.
* string.c (rb_str_chomp_bang): check if match start at the head
of a character.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19 14:15:05 +00:00
nobu
474a88f041
* re.c (rb_reg_regsub): should set checked encoding.
...
* string.c (rb_str_sub_bang): applied r14212 too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19 12:42:19 +00:00
usa
4b8ebed41c
* bignum.c (bigmul1): C99ism.
...
* bignum.c (bigdivrem1): need dummy return value.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19 11:40:52 +00:00
naruse
dec6ba8a22
* ext/nkf/nkf-utf8/nkf.c: Updated.
...
* ext/nkf/nkf.c (rb_nkf_enc_get): added.
(find encoding or replicate default encoding)
* ext/nkf/nkf.c (NKF::<ENCODING>): redefine encoding constant.
* ext/nkf/lib/kconv.rb (Kconv::<ENCODING>): redefined as Encoding.
* ext/nkf/lib/kconv.rb: refactoring.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19 10:19:38 +00:00
matz
8acb0fbd4d
* bignum.c (rb_big_mul0): blocking check for bigger numbers.
...
a patch from Yusuke ENDOH <mame AT tsg.ne.jp> in [ruby-dev:32632].
* bignum.c (bigdivrem): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19 10:13:03 +00:00
ko1
860b40fd63
* compile.c (iseq_compile_each): remove "retry" in block.
...
("iter{retry}" cause syntax error)
Currently, "begin; ...; rescue; iter{retry}; end" cause
syntax error too.
* bootstraptest/test_jump.rb: ditto.
* lib/drb/invokemethod.rb: ditto.
* sample/drb/darrayc.rb: ditto.
* sample/test.rb: ditto.
* test/drb/drbtest.rb: ditto.
* test/ruby/test_iterator.rb: ditto.
* sample/test.rb: add a 'test' directory on the SYSTEM test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19 08:46:49 +00:00
ko1
def4a99af2
* bootstraptest/test_knownbug.rb, test_block.rb:
...
move fixed bug.
* bootstraptest/test_m17n.rb: added.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19 08:14:21 +00:00
ko1
9bd91ea3b0
* eval.c (errinfo_place): skip if error is Fixnum. [ruby-dev:32608]
...
* bootstraptest/test_exception.rb, test_known_bug.rb: move fixed bug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19 08:02:03 +00:00
nobu
66417115a2
* parse.y (reg_named_capture_assign_iter): get rid of creating
...
unnecessary ID.
* parse.y (rb_enc_symname2_p): check for non-nul-terminated string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19 07:32:00 +00:00
nobu
26538a2091
* parse.y (reg_named_capture_assign_iter): remove C99 dependency.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19 07:26:37 +00:00
matz
d935298862
fixed an error in ChengeLog entry
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19 06:39:00 +00:00
matz
f00338f430
* insnhelper.ci (vm_yield_with_cfunc): call cfunc with
...
(argv[0], data, argc, argv) to pass all arguments.
* eval.c (loop_i): adapted to new calling convention.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19 06:37:41 +00:00
matz
ac5250098d
* string.c (rb_str_justify): should propagate encoding from pad
...
string too.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19 06:15:35 +00:00
nobu
c3f8c06795
* configure.in (TIMEZONE_VOID): check whether timezone requires zero
...
arguments. [ruby-dev:32631]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19 04:57:46 +00:00
naruse
0cf4378f14
* ext/nkf/nkf.c (NKF::_ENCODING): removed.
...
* ext/nkf/nkf.c (rb_nkf_kconv): renamed to rb_nkf_convert.
* ext/nkf/nkf.c (rb_nkf_convert): set encoding.
* ext/nkf/nkf.c (rb_nkf_guess1): removed.
* ext/nkf/nkf.c (rb_nkf_guess2): renamed to rb_nkf_guess.
* ext/nkf/nkf.c (rb_nkf_guess):
guess method now returns encoding object.
* ext/nkf/nkf-utf8/nkf.c: Update to nkf 2.0.8 2007-12-19.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19 04:29:22 +00:00
nobu
198c092004
* bignum.c (rb_cstr_to_inum): an underscore succeeding after octal
...
prefix is allowed. [ruby-core:14139]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-19 01:52:31 +00:00
matz
ba15fda359
* bignum.c (rb_cstr_to_inum): wrong radix check. a patch from
...
Yusuke ENDOH <mame AT tsg.ne.jp> in [ruby-dev:32628].
* bignum.c (big2str_find_n1): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-18 15:10:37 +00:00
nobu
63fabd365a
* compile.c (iseq_compile_each): fix for segfault. [ruby-dev:31372]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-18 14:53:55 +00:00
gotoyuzo
f2266fe471
* test/net/http/utils.rb: split TestNetHTTPUtils module from
...
test/net/http/test_http.rb. and start HTTP server in each test case.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-18 14:46:52 +00:00
gotoyuzo
a04281ff0e
* lib/webrick/server.rb (WEBrick::GenericServer#accept_client):
...
should rescue Errno::EINVAL from TCPServer#accept. this exception
might occur if the server socket is not in ready to listen.
* lib/webrick/server.rb (WEBrick::GenericServer#accept_client):
don't call TCPServer#close if the :ShutdownSocketWithoutClose is set.
* lib/webrick/config.rb (WEBrick::Config::General): add new parameter
:ShutdownSocketWithoutClose.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-18 14:43:03 +00:00
gotoyuzo
bd67956690
* ext/openssl/lib/openssl/ssl.rb (OpenSSL::SSL::SSLServer#shutdown):
...
new method which calls TCPSocket#shutdown of the underlying socket.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-18 13:57:48 +00:00
gotoyuzo
06591ad6b1
* lib/rss/parser.rb, lib/rss/atom.rb, lib/rss/rss.rb,
...
test/rss/rss-assertions.rb, test/rss/test_atom.rb: use
pack/unpack("m") instead of base64 library.
* lib/webrick/httpproxy.rb: use delete("\n") instead of chomp/chop
because the result of pack("m") might be multi-line.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-18 13:37:10 +00:00
ko1
192ec21adf
* insnhelper.ci, vm.c: rewrite sp manipulation around method/block
...
invocation. [ruby-dev:32547]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-18 13:14:32 +00:00
usa
2364c5e6e7
* dl/win32/lib/win32/sspi.rb: use pack/unpack("m") instead of base64
...
library which was already removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14301 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-18 13:12:56 +00:00
ko1
8394de7bfc
* vm.c (invoke_block): merge 2 stack overflow checks.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14300 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-18 12:11:38 +00:00
ko1
cd84310864
* compile.c, insnhelper.ci, insns.def, object.c, vm.c, vm.h:
...
optimize !@, != method invocation.
* id.c, id.h: ditto.
* bootstraptest/test_syntax.rb: add tests for above.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-18 12:07:51 +00:00
ko1
1f75a4e700
* bootstraptest/test_knownbug.rb: add issues.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-18 11:58:28 +00:00
akr
2d01290cfd
* parse.y (arg tMATCH arg): call reg_named_capture_assign_gen if regexp
...
literal is used.
(reg_named_capture_assign_gen): assign the result of named capture
into local variables.
[ruby-dev:32588]
* re.c: document the assignment by named captures.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-18 11:26:24 +00:00
matz
ec69dddc0d
* string.c (rb_str_splice): propagate encoding.
...
* string.c (rb_str_subpat_set): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-18 09:14:46 +00:00
matz
2521b33ed7
* object.c (rb_obj_freeze): preserve frozen state of immediate
...
values in internal hash table, a la generic_ivar.
* object.c (rb_obj_frozen_p): check immediate values too.
* variable.c (generic_ivar_set): add frozen check fro immediate
values.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14294 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-18 08:28:39 +00:00
nobu
98da73bc96
* transcode.c (rb_str_transcode_bang, rb_str_transcode): set new
...
encoding even if no conversion is done because of 7bit only.
[ruby-dev:32591]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-18 08:04:26 +00:00
nobu
168b9e13ff
* common.mk (encs, ext/ripper/ripper.c): other options must come
...
before MAKEFLAGS in GNU make.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-18 06:44:25 +00:00
drbrain
cbc4bb6b92
Don't call private fail anymore.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-18 06:20:24 +00:00
nobu
346e9e78f0
* common.mk (encs, ext/ripper/ripper.c): pass MAKEFLAGS.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-18 06:17:33 +00:00
matz
2e0e02d358
* parse.y (op_tbl): remove duplication to avoid symbol aliases.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-18 05:50:37 +00:00
matz
a3a6ba9584
* string.c (str_nth): need not to raise out-of-range exception.
...
* test/ruby/test_m17n.rb (TestM17N::test_str_aref_len): removed
debug print.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-18 05:44:30 +00:00
nobu
874b367bdc
* enc/depend: get rid of target expanded as empty for nmake.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-18 05:05:25 +00:00
matz
1281cb00e5
* proc.c (rb_obj_public_method): Object#public_method to retrieve
...
public method object.
* proc.c (rb_mod_public_instance_method): Module#public_instance_method
to retrieve public instance method from class / module.
* proc.c (mnew): visibility check added.
* eval_error.ci (rb_print_undef): add rb_ prefix.
* eval_error.ci (rb_print_undef): add visibility in the error
message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14284 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-17 23:01:50 +00:00
matz
97591e82d9
* lib/ping.rb, lib/readbytes.rb: removed
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-17 21:05:25 +00:00
matz
51b0310930
* lib/Env.rb, lib/base64.rb, lib/importenv.rb, lib/eregex.rb: removed.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14282 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-17 20:58:34 +00:00
nobu
c611b6d0cc
* configure.in (BUILTIN_ENCS): removed.
...
* common.mk (enc.mk): pass BUILTIN_ENCS from command line.
* enc/depend: ditto.
* enc/make_encmake.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-17 17:30:57 +00:00
matz
c9fe9f5850
ChangeLog: typo fixed
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-17 16:53:12 +00:00
matz
1ec5dcdd31
* sprintf.c (rb_str_format): need to clear output buffer to avoid
...
broken encoding compatibility check.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-17 16:50:17 +00:00
nobu
acaa4a431e
* lib/mkmf.rb (depend_rules): inserts ruby to only headers.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-17 16:40:22 +00:00
nobu
bf04c0946f
* parse.y (parser_encode_length): chomp eol style modifiers.
...
* parse.y (parser_magic_comment): ditto.
* parse.y (set_file_encoding): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14277 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-17 16:21:21 +00:00
nobu
6ed9bdd463
* common.mk (encs): added dependencies.
...
* enc/Makefile.in, enc/depend, enc/make_encmake.rb: moved serb code.
* lib/mkmf.rb (depend_rules): now takes content string, not file name.
* win32/enc-setup.mak: overrides default target.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-17 16:15:46 +00:00
matz
ebfcc5d933
* re.c (rb_reg_initialize): raise error if non-Unicode fixed
...
encoding option is specified for regexp literals with \u{}
escapes.
* string.c (rb_str_squeeze_bang): should squeeze multibyte
characters as well.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14275 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-17 16:06:21 +00:00
nobu
bd79a2eb2d
* win32/enc-setup.mak: extracts BUILTIN_ENCOBJS.
...
* tool/compile_prelude.rb: needs srcdir.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14272 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-17 12:41:27 +00:00
gotoyuzo
2a0aa84713
* common.mk (miniprelude.c): add -I$(srcdir).
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-17 12:25:26 +00:00
matz
d6a70c4bb7
* string.c (scan_once): need no encoding compatibility check.
...
it's done inside of re_reg_seach().
* string.c (rb_str_split_m): ditto.
* re.c (rb_reg_regsub): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14269 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-17 09:44:06 +00:00
matz
ea1b9d58b9
* string.c (rb_str_index): check if substring is broken.
...
* string.c (rb_str_rindex): ditto.
* string.c (rb_str_succ): should carry over.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14268 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-17 09:08:27 +00:00
nobu
b2d9f1e9d0
* common.mk (encs): new target to compile external encodings.
...
* enc/Makefile.in: became a serb template.
* enc/make_encmake.rb: creates enc.mk from enc/Makefile.in using serb.
* lib/mkmf.rb (relative_from): moved from ext/extmk.rb.
* lib/mkmf.rb ($extmk): true if under to top source directory, not
only ext.
* lib/mkmf.rb (depend_rules): extracted from create_makefile.
* tool/serb.rb (serb): splitted from tool/compile_prelude.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14267 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-17 08:47:28 +00:00
nobu
5043ab95ed
* configure.in (MAKEFILES): removed enc/Makefile.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14266 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-17 08:32:57 +00:00
nobu
4cf13ffaef
* configure.in (EXTERNAL_ENCOBJS, ENCSOS): removed.
...
* enc/Makefile.in (BUILTIN_ENCS): includes .c suffix.
* enc/depend: splitted from Makefile.in.
* {bcc32,win32,wince}/setup.mak (-encs-): extracts BUILTIN_ENCOBJS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-17 08:17:50 +00:00
akr
33ecb05d51
* string.c (rb_enc_str_asciionly_p): use rb_enc_str_coderange.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-17 08:08:23 +00:00
akr
0d0a8a55fc
* string.c (rb_enc_str_coderange): set ENC_CODERANGE_BROKEN using
...
rb_enc_precise_mbclen.
(rb_str_valid_encoding_p): just check coderange is
ENC_CODERANGE_BROKEN or not.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-17 07:41:21 +00:00
gotoyuzo
d4f5b77d3a
* ext/openssl/lib/openssl/buffering.rb (Buffering#gets): added second
...
optional argument to specify maximum length limit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-17 07:06:16 +00:00
gotoyuzo
1e8c6e2ba4
* lib/webrick/httprequest.rb, lib/webrick/cgi.rb: Request-Line or
...
header fields shold be read with maximum length. [ruby-talk:231745]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-17 07:03:57 +00:00
akr
3f07e548fc
* include/ruby/encoding.h (ENC_CODERANGE_VALID): rename from
...
ENC_CODERANGE_8BIT.
* string.c (rb_enc_str_coderange): follow the renaming.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-17 05:07:37 +00:00
matz
5a41626dea
* string.c (tr_find): wrong condition fixed.
...
* sprintf.c (rb_str_format): check encoding based on result, not
the format string.
* string.c (rb_str_upto): add encoding check.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-17 05:01:47 +00:00
nobu
9cbc37f505
* Makefile.in (RUNRUBY): added RUNRUBYOPT.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-17 03:21:27 +00:00
akr
c392e6e666
* thread_win32.ci (native_thread_create): initialize
...
th->machine_stack_maxsize as rb_gc_stack_maxsize.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-17 02:40:26 +00:00
matz
5c4cf9bfdf
for undefined conversions.
...
* transcode_data_iso_8859.c: Changed from character constants
('\xC2') to integer contants (0xC2) for shorter files and
better readability; eliminated duplicated tables; changed
from -1 offset to actual UNDEF entry (not yet distinguishing
UNDEF and ILLEGAL correctly).
* test/ruby/test_transcode.rb: added a test for UNDEF conversion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-17 01:28:26 +00:00
nobu
b7beb63b0b
* configure.in (BUILTIN_ENCS): removed escapes for OpenBSD.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-16 05:52:01 +00:00
nobu
6ac2742afa
* configure.in (MAKEFILES): should be enc/Makefile, not GNUmakefile.
...
[ruby-dev:32609]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-15 15:36:44 +00:00
akr
c8c709ddfa
* test/openssl/test_pair.rb (SSLPair#ssl_pair): join the thread, even
...
on an error.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-15 15:00:52 +00:00
akr
ba3bb2895f
* test/xmlrpc/webrick_testing.rb: join webrick server thread.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-15 14:51:48 +00:00
nobu
0481de5db5
* configure.in (BUILTIN_ENCS): splitted command line instead of
...
semicolons for Solaris.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-15 13:27:41 +00:00
akr
5fcbf61023
* lib/timeout.rb: join the background thread to make sure it is dead.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14243 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-15 12:39:25 +00:00
nobu
bdce0db7b5
* configure.in (BUILTIN_ENCS): [] needs to be enclosed because of m4.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-15 11:20:50 +00:00
nobu
f2bd108d8d
* configure.in (enc/Makefile): add external encoding objects list.
...
* common.mk (BUILTIN_ENCOBJS): renamed from ENCOBJS.
* Makefile.in (BUILTIN_ENCOBJS): substitued by autoconf.
* enc/Makefile.in: new file to compile external encoding sources.
* encoding.c (rb_enc_find_index): auto-load external encoding objects
as "ext/ENCODING_NAME". [ruby-dev:32606]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-15 09:56:59 +00:00
matz
c5851d1d69
* lib/e2mmap.rb (Exception2MessageMapper::E2MM.Raise): $! no
...
longer modifiable in 1.9.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14237 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-15 06:03:22 +00:00
matz
f2b0dba1cf
* transcode.c (str_transcode, transcode_dispatch): added two-step
...
* trancode.c: some minor formatting fixes
* transcode_data.h, transcode_data_iso_8859.c: Shortened
extremely frequently used macros to shorten file length.
* test/ruby/test_transcode.rb: Fixed name of test class;
added setup method to ensure all necessary encodings exist;
split tests into more test methods; added tests; fixed ordering
of arguments in assert_equal to have expected result first.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-15 05:42:25 +00:00
akr
4f13113945
* vm_core.h (rb_thread_t): new member machine_stack_maxsize and
...
machine_register_stack_maxsize.
* gc.c (rb_gc_stack_maxsize): new global variable for the thread size
of the main thread.
(STACK_LEVEL_MAX): use machine_stack_maxsize of current thread.
(ruby_stack_check): check IA64 register stack.
(ruby_set_stack_size): set rb_gc_stack_maxsize.
(Init_stack): set rb_gc_stack_maxsize.
* thread_pthread.ci (native_thread_create): initialize
th->machine_stack_maxsize and th->machine_register_stack_maxsize.
* vm.c (Init_BareVM): initialize th->machine_stack_maxsize and
th->machine_register_stack_maxsize.
* thread_win32.ci (native_thread_create): initialize
th->machine_stack_maxsize. not tested. just a guess at all.
[ruby-dev:32604]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-15 04:09:24 +00:00
nobu
8063edd4c9
* encoding.c (rb_enc_register, rb_enc_replicate, rb_enc_alias): check
...
if already registered.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-15 03:58:02 +00:00
matz
0f0f79d34b
* lib/rdoc/options.rb (Options::parse): do not access $KCODE any
...
longer. [ruby-core:14079]
* lib/irb/init.rb (IRB::IRB.parse_opts): ditto.
* lib/cgi.rb (CGI::CGI): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-14 17:05:15 +00:00
akr
6deeaf6226
* thread_pthread.ci (native_thread_create): twice the stack size.
...
512KB is not enough to complete test-all on Debian GNU/Linux on
IA64.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14229 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-14 09:20:35 +00:00
matz
11f3462fb7
* io.c (rb_f_p): RDoc update. a patch from murphy <murphy AT rubychan.de>.
...
[ruby-core:14010]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-14 08:38:18 +00:00
matz
269bd16b28
* string.c (rb_str_cmp): encoding aware comparison.
...
* string.c (rb_str_casecmp): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14227 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-14 08:37:39 +00:00
nobu
8b6cb6994c
* common.mk (ruby.imp): fix for circular dependency. a patch from
...
Yutaka Kanemoto <kinpoco AT gmail.com> in [ruby-dev:32590].
* regint.h, st.c, ext/json/ext/generator/generator.c: suppress
warnings on AIX.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-14 04:47:57 +00:00
nobu
e9ac3573f0
* ext/readline/extconf.rb: should use have_func for functions instead
...
of have_var.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-14 03:36:37 +00:00
nobu
3cce5965da
* lib/mkmf.rb (try_var): should fail for functions.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-14 02:54:08 +00:00
nobu
a2ccbc14d9
* configure.in (RUBY_CHECK_VARTYPE): check if a variable is defined
...
and its type.
* configure.in (timezone, altzone): check for recent cygwin.
* missing/strftime.c (strftime): fix for timezone. [ruby-dev:32536]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-14 01:01:42 +00:00
akr
30c5d612c2
* eval.c (rb_protect): restore root_jmpbuf even if proc exits by
...
break such as dbm.delete_if { break }.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-13 23:19:14 +00:00
matz
c958d9a9c6
* string.c (str_nth): direct jump if string is 7bit only. great
...
performance boost for worst case.
* string.c (str_strlen): direct size if string is 7bit only.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-13 18:00:50 +00:00
matz
e0334fb250
* encoding.c (rb_enc_compatible): 1st argument (typically the
...
receiver) would have higher priority in encoding detection.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-13 17:30:54 +00:00
matz
c3b5279d49
* io.c (rb_io_synchronized): should check if initialized.
...
[ruby-dev:32585]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-13 17:06:41 +00:00
matz
7bb3ea6afa
* re.c (rb_reg_initialize): embedded string may override encoding
...
of the regular expression.
* re.c (rb_reg_initialize): fix encoding of regular expression if
embedded string has its own encoding specified.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-13 16:09:53 +00:00
matz
a648fc802b
* encoding.c (rb_enc_compatible): encoding should never fall back
...
to ASCII-8BIT unless both encodings are ASCII-8BIT.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-13 13:44:02 +00:00
akr
9595af4ad5
* string.c (rb_str_shared_replace): make str noembed after free.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-13 11:52:15 +00:00
akr
719841ca37
* eval.c (rb_protect): restore root_jmpbuf to avoid SEGV by
...
'IO.pipe; [].each.next' with gcc version 3.3.5 (Debian 1:3.3.5-13)
on IA64.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-13 11:10:46 +00:00
matz
7987f38467
* string.c (rb_str_succ): should not enter infinite loop for
...
non-ASCII, non-alphanumeric character at the bottom.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-13 09:20:13 +00:00
matz
66bae8ad6d
* string.c (str_gsub): should copy encoding to the result.
...
* sprintf.c (rb_str_format): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-13 09:05:49 +00:00
matz
fb14b7eb05
* string.c (rb_str_split_m): need not to check encoding if regexp
...
is empty.
* string.c (rb_str_justify): associate encoding of original to the
result.
* string.c (rb_str_chomp_bang): need to check encoding of record
separator.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-13 08:28:40 +00:00
nobu
af69c73087
* encoding.c (rb_enc_compatible): should swap encoding indexes too.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-13 08:03:31 +00:00
matz
02501dbe91
* encoding.c (rb_enc_compatible): should not judge compatibility
...
based on rb_enc_asciicompat().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-13 07:44:52 +00:00
matz
266d186bcf
* include/ruby/io.h (MakeOpenFile): fptr->enc should be
...
intialized to zero. [ruby-dev:32569]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-13 04:10:24 +00:00
matz
b754d62f72
* io.c (rb_io_getc): use default external encoding if fptr->enc is
...
not set. [ruby-dev:32565]
* lib/rubygems/package.rb (Gem::TarReader::Entry::rewind): typo fixed.
[ruby-dev:32565]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-12 23:58:58 +00:00
matz
0ca7036682
* io.c (read_all): should associate default external encoding.
...
* io.c (io_read): should NOT associate default external encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-12 23:46:58 +00:00
akr
b92cee1ddb
* re.c, regerror.c, string.c, parse.y, ruby.c, file.c:
...
use capital letter for \xHH notation. [ruby-dev:32511]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-12 14:30:54 +00:00
matz
098ca00175
* io.c (rb_io_mode_enc): allow specifying external encoding in
...
open mode, e.g. open(path, "r:utf-8").
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-12 13:23:07 +00:00
matz
c6fa37e2f0
* eval_method.ci (rb_alias): no need to skip aliasing when new
...
equals to old. [ruby-core:13990]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-12 12:27:39 +00:00
matz
6fd91d288c
* io.c (rb_io_check_readable): set default external encoding to
...
STDIN.
* io.c (io_enc_str): associate encoding to output string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-12 07:39:43 +00:00
matz
91142c95bb
* parse.y (expr): 'not' and '!' should act as conditional
...
expression. [ruby-dev:32548]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-12 03:45:36 +00:00
nobu
ad72efa269
* re.c (rb_reg_regsub): should copy encoding.
...
* string.c (rb_str_sub_bang, str_gsub): should check and copy encoding
to be replaced.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14197 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-12 03:11:44 +00:00
matz
65a30eb3e7
* pack.c (pack_pack): RDoc update. a patch from Gary Wright
...
<radar2002 AT gmail.com>. [ruby-core:13998]
* pack.c (pack_unpack): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-11 14:05:34 +00:00
akr
646f27b822
* encoding.c (rb_enc_ascget): renamed from rb_enc_get_ascii.
...
* include/ruby/encoding.h: follow the renaming.
* re.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-11 07:39:16 +00:00
nobu
7554dd1346
* Makefile.in, */Makefile.sub (CP, MV): added.
...
* common.mk (.y.c): not discard the old target until successfully
created.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-11 07:19:28 +00:00
matz
2db98d937a
* object.c (Init_Object): singleton_method_{added,removed,undefined}
...
hooks should be defined for BasicObject. [ruby-dev:32531]
* eval.c (Init_eval): method_missing should be defined for all
objects; moved to BasicObject.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-11 06:23:21 +00:00
nobu
3609358aac
* test/ruby/test_transcode.rb: added tests from Martin Duerst <duerst
...
AT it.aoyama.ac.jp>. [ruby-dev:32532]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14192 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-11 05:27:52 +00:00
nobu
a153fdb6ed
* transcode.c (transcode_loop): get rid of SEGV at sequence can not be
...
converted.
* transcode.c (rb_str_transcode_bang): copy encoding. [ruby-dev:32532]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-11 04:57:51 +00:00
akr
5802768b40
* encoding.c (rb_enc_get_ascii): add an argument to provide the
...
length of the returned character.
* include/ruby/encoding.h (rb_enc_get_ascii): add the argument.
* re.c (rb_reg_expr_str): modify rb_enc_get_ascii call.
(rb_reg_quote): ditto.
(rb_reg_regsub): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-11 03:08:50 +00:00
akr
9ee1ab0e28
* include/ruby/oniguruma.h (ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE):
...
parenthesize an argument.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-11 00:41:56 +00:00
matz
0dd39db036
* eval.c (rb_method_missing): RDoc update patch from Hugh Sasse
...
<hgs AT dmu.ac.uk>. [ruby-core:12932]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14188 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-10 17:24:52 +00:00
matz
ff7f462bf4
* lib/net/http.rb (Net::HTTP::get): now supports gzip
...
content-encoding. a patch from Hugh Sasse <hgs AT dmu.ac.uk>.
[ruby-core:13451]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-10 16:53:52 +00:00
matz
6bd65de203
* parse.y (shadowing_lvar_gen): no duplicate error for "_".
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14186 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-10 16:22:52 +00:00
knu
d2e596ad04
* array.c (rb_ary_slice_bang): If an invalid range is given, do
...
not raise an exception but return nil just like slice() does.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-10 13:25:39 +00:00
nobu
6d7999c132
* transcode.c (str_transcode): allow non-registered encodings.
...
[ruby-dev:32520]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-10 12:47:55 +00:00
matz
d04f108952
* array.c (rb_ary_slice_bang): should return nil if position out
...
of range. a patch from Akinori MUSHA <knu AT iDaemons.org>.
[ruby-dev:32518]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-10 12:01:45 +00:00
matz
f6a9c859be
* re.c (rb_reg_match): should calculate offset by converted
...
operand. [ruby-cvs:21416]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-10 10:03:48 +00:00
matz
9ab6f563a2
* lib/uri/common.rb (URI::REGEXP::PATTERN): typo in REG_NAME
...
regular expression. a patch from Ueda Satoshi
<s-ueda AT livedoor.jp>. [ruby-dev:32514]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-10 09:31:28 +00:00
nobu
3a3bda73dd
* string.c (rb_str_tmp_new): creates hidden temporary buffer.
...
* transcode.c (transcoding): added a pointer to function to flush.
* transcode.c (transcode_loop): do not use string internal.
[ruby-dev:32512]
* transcode.c (str_transcode): allow Encoding objects.
* transcode_data.h (BYTE_LOOKUP): use actual struct name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-10 08:46:06 +00:00