nobu
42097d7ac1
* cygwin/GNUmakefile.in (clean-local): should be double-colon.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-24 15:01:06 +00:00
nobu
a4a0080a41
* cygwin/GNUmakefile.in (clean-local): remove def file.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-24 14:40:01 +00:00
nobu
59a1754a64
* common.mk, {bcc,win}32/Makefile.sub (clean-local): remove
...
intermediate files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-24 14:29:51 +00:00
nobu
b676e2671e
* ruby.c (enable_option, disable_option): allow all for all known
...
features.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-23 21:49:15 +00:00
nobu
552badf29f
* debug.c (ruby_set_debug_option): separated ruby_each_words().
...
* util.c (ruby_each_words): extracted from ruby_set_debug_option().
* ruby.c (proc_options): generalized enable/disable options.
* ruby.c (ruby_init_gems): take enabled flag. [ruby-core:14840]
* ruby.c (process_options): added --disable-rubyopt flag.
* include/ruby/util.h (ruby_each_words): prototype.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15590 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-23 21:13:05 +00:00
nobu
b3b3ff29b5
* ruby.c (proc_options): check if argument for -E exists.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-23 20:25:29 +00:00
nobu
f11ac55489
* misc/ruby-style.el (ruby-style-label-indent): fix for labels inside
...
blocks in switch.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15588 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-23 20:09:46 +00:00
nobu
f468e000ce
* debug.c (ruby_debug_print_indent): use length in fprintf.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-23 19:03:32 +00:00
nobu
fe80dd73b9
* util.c (valid_filename): use O_EXCL to get rid of clobbering
...
existing files in race conditions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-23 18:53:00 +00:00
usa
fa222ced64
* ext/win32ole/win32ole.c (ole_init_cp): should return value.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-23 12:36:51 +00:00
naruse
bad85e5202
* follow type.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15584 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-23 11:21:02 +00:00
naruse
c1d3465081
* string.c (str_sublen): removed.
...
* string.c (rb_str_reverse, rb_str_reverse_bang): use
single_byte_optimizable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-23 11:18:07 +00:00
naruse
386aa4c0a1
* string.c (rb_enc_cr_str_copy_for_substr): renamed from
...
rb_enc_cr_str_copy.
* string.c: use rb_enc_cr_str_copy_for_substr and keep coderange.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-23 10:29:13 +00:00
suke
93efbc78bd
* ext/win32ole/win32ole.c (ole_encoding2cp): remove US-ASCII
...
mapping.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-23 09:55:33 +00:00
nobu
23ac9d7035
* 2008-02-23
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-23 02:52:38 +00:00
akr
310735aa4a
* process.c (rlimit_resource_type): new function.
...
(rlimit_resource_value): new function.
(proc_getrlimit): use rlimit_resource_type to accept
symbol and string as resource type.
(proc_setrlimit): use rlimit_resource_type and rlimit_resource_value
to accept symbol and string as resource type and values.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-22 16:12:32 +00:00
naruse
7b218308e0
* fix missing STR_ENC_GET.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15578 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-22 15:02:40 +00:00
naruse
70eea8fd26
* add ascii incompatible case.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15577 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-22 12:56:21 +00:00
naruse
bdb14b5bb6
* string.c (rb_enc_cr_str_copy): check string's coderange is 7bit or
...
valid.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-22 12:15:56 +00:00
nobu
bc2fb51c5e
* bignum.c (BIGZEROP): fix for longer Bignum zeros. [ruby-Bugs-17454]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15575 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-22 10:50:21 +00:00
akr
81fc1cf201
* encoding.c (rb_enc_mbclen): return minlen instead of 1 when
...
a character is not found properly.
* string.c (rb_enc_strlen): round up string length with fixed
multibyte encoding such as UTF-32.
(rb_enc_strlen_cr): ditto.
(rb_str_substr): fix substring with fixed multibyte encoding.
(rb_str_justify): check number of characters.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-22 06:52:54 +00:00
naruse
a532dcafe6
* string.c (rb_str_inspect): string of ascii incompatible encoding
...
should be escaped and returned as US-ASCII encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-22 03:16:52 +00:00
naruse
7a9cf391cd
* string.c (rb_str_substr): copy encoding although empty string.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-22 02:18:23 +00:00
usa
492dde9c09
commit miss. orz
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-22 00:42:52 +00:00
usa
ca3ce9bb9d
sorry, typo.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-22 00:33:27 +00:00
usa
b06fa3d168
* test/ruby/test_m17n.rb: add tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15568 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-22 00:17:42 +00:00
nobu
80e81d283d
* enc/{depend,make_encdb.rb,trans/make_transdb.rb}: sort in alpha-numeric order.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-22 00:07:23 +00:00
naruse
b62df564a6
* string.c (rb_str_times): empty string's coderange is CODERANGE_7BIT.
...
* string.c (rb_str_substr): ditto.
* encoding.c (rb_enc_compatible): empty string is compatible with not
only nonasciicompatible strings. [ruby-dev:33895]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-21 19:54:48 +00:00
duerst
6d5ef97a32
Thu Feb 21 17:15:15 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
...
* transcode.c: Added basic support for passing options to String#encode
via a hash. Currently only one option, with one value, is supported:
invalid: :ignore (dropping invalid byte sequences instead of
producing an error). Option naming is not yet stable!
* test/ruby/test_transcode.rb: Added a single test for invalid: :ignore
option. Not more tests because most data does not yet distinguish
between INVALID and UNKNOWN.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-21 08:42:10 +00:00
matz
ca22f3e168
* io.c (rb_f_putc): invoke stdout method so that redefining putc
...
may take effect. [ruby-talk:291844]
* io.c (rb_f_puts): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-21 07:47:12 +00:00
nobu
b356796f00
* array.c (rb_ary_unshift_m): expands enough for argc. [ruby-dev:33880]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15563 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-21 07:35:29 +00:00
nobu
ce0264b6f5
* io.c (argf_set_encoding): uses current_file after check if next
...
input is available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-21 05:49:42 +00:00
nobu
7f2ca5ba7a
* io.c (argf_set_encoding): uses current_file after check for next
...
input.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-21 05:47:12 +00:00
naruse
3ce61d2a63
* string.c: replace rb_enc_copy by rb_enc_cr_str_copy or
...
rb_enc_cr_str_exact_copy.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15560 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-21 02:42:51 +00:00
naruse
4701476b97
* include/ruby/encoding.h (rb_enc_asciicompat): dummy encoding is not
...
ascii compatible. [ruby-dev:33878]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-21 01:36:50 +00:00
nobu
e16fddf1a9
* configure.in (RPATHFLAG): -R option of HP-UX ld is not for runtime
...
load path. [ruby-list:44600]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-20 15:01:36 +00:00
nobu
99b9eaaa68
* win32/win32.c (rb_w32_map_errno): exported.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15556 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-20 14:55:21 +00:00
usa
5a99317830
* ext/readline/extconf.rb (rl_event_hook): workaround for native
...
windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-20 14:43:39 +00:00
naruse
1e0958098f
* encoding.c (rb_enc_associate_index): doesn't clear coderange
...
when new encoding equals to old one.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-20 10:44:28 +00:00
naruse
492f431a46
* string.c (rb_enc_str_copy): added for wrapper for rb_enc_copy.
...
this also copy coderange when ptr and len is equal.
* string.c (rb_enc_cr_str_copy): added for wrapper for rb_enc_copy.
this always copy coderange.
* string.c (str_replace_shared): use rb_enc_str_copy.
* string.c (str_new3): don't rb_enc_copy because encoding is copied
at str_replace_shared.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-20 10:20:43 +00:00
nobu
96ada56fb9
* instruby.rb (parse_args): added --dir-mode, --script-mode and
...
--cmd-type options. [ruby-dev:33816]
* instruby.rb (parse_args): added bin-arch and bin-comm to install
type, for compiled files and script files.
* instruby.rb (parse_args): deal with make style command line macros,
and count as long syle options if prefixed with INSTALL_.
* instruby.rb (makedirs): use $dir_mode. [ruby-dev:33805]
* instruby.rb (open_for_install): set file mode, which is now
permission mode instead of access mode.
* instruby.rb (bin-comm): installs scripts with replacing shebang
lines.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-20 04:08:54 +00:00
usa
f761aacdd8
* io.c (open_key_args): set arg->io even if no options passed.
...
[ruby-dev:33072]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-20 01:09:21 +00:00
naruse
f1c975b87a
* string.c (rb_enc_strlen_cr): get length with coderange scan.
...
* string.c (str_strlen): use rb_enc_strlen_cr. [ruby-dev:33849]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15550 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-19 12:18:03 +00:00
nobu
e4021207fb
* eval.c (rb_raise_jump): moved adjustment for control frame.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15549 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-19 11:49:51 +00:00
akr
fec2c12c29
* gc.c (STACK_LENGTH) [SPARC] : 0x80 offset removed. [ruby-dev:33857]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15548 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-19 09:37:10 +00:00
nobu
5f1284ca8d
* test/erb (TestERBCore): reverted.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-19 06:24:36 +00:00
nobu
8a9bd6a5c6
* ext/readline/readline.c (readline_event): prevent polling. based on
...
a patch from error errorsson in [ruby-Bugs-17675].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-19 05:27:35 +00:00
nobu
b81a66d1ef
* eval.c (ruby_exec_node): no thread starts inside iseq compilation.
...
* eval.c (rb_f_raise): skip current control frame. [ruby-core:15589]
* insns.def (opt_div): raise as the ordinary method. [ruby-core:15589]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-19 02:14:14 +00:00
akr
390adf6112
add a test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15543 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-18 08:16:10 +00:00
akr
1d2e4d830c
use require_relative to require ut_eof and envutil.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-02-18 08:09:05 +00:00