yugui
58740ef881
* encoding.c (rb_enc_set_default_external): default_internal can be
...
nil, but default_external cannot.
* encoding.c (rb_set_default_internal): adds rdoc.
* encoding.c (enc_find): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-12 10:35:39 +00:00
yugui
63a534194c
* common.mk (run, runruby, parse, gdb, gdb-ruby): you can also run
...
other scripts than $(srcdir)/test.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-12 10:35:31 +00:00
kouji
74ea7d93c1
* ext/readline/readline.c (readline_readline): changed the message
...
of IOError to 'closed stdin' from 'stdin closed' if stdin was
closed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20663 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-12 10:17:01 +00:00
kouji
cfb8e8301e
* ext/readline/readline.c: used the ExportStringValue macro
...
instead of the OutputStringValue macro. removed the
OutputStringValue macro.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-12 10:04:42 +00:00
knu
1757d80076
- Remove doc/NEWS when we have doc/NEWS-1.9.1.
...
- Add NEWS for keeping changes since 1.9.1.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-12 09:46:28 +00:00
knu
cef2867e66
Add historical NEWS files for the record.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-12 09:42:26 +00:00
nobu
303c28d49b
* parse.y (yycompile0): ruby_eval_tree_begin is always 0 when
...
ruby_eval_tree is 0.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-12 07:23:24 +00:00
yugui
aa06e69000
* encoding.c (enc_get_default_encoding): removed.
...
Generalizing rb_default_{external,internal}_encoding seems to be
difficult.
default_external cannot be NULL even before detected. [ruby-dev:37390]
* encoding.c (rb_default_external_encoding): has its own
implementation again.
* encoding.c (rb_default_internal_encoding): ditto.
* gem_prelude.rb: added notice.
* ruby.c (rubylib_mangled_path, rubylib_mangled_path2): uses locale
encoding but not ASCII-8BIT.
* ruby.c (process_options): refers less to default_external.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-12 05:25:39 +00:00
nobu
d7f67b4970
* load.c (rb_feature_p): load path must be expanded.
...
[ruby-dev:37388]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20655 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-12 02:00:55 +00:00
nobu
1eeeb00a0a
* configure.in (rb_version): greps only the line that defines version.
...
* version.h (RUBY_VERSION_CODE, RUBY_RELEASE_CODE): removed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-12 01:28:10 +00:00
nobu
8e3bf17b03
* complex.c, rational.c: do not use RUBY_VERSION_CODE.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20653 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-12 01:20:57 +00:00
nobu
1a5acb464d
properties.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-12 01:20:04 +00:00
nobu
dab7d5d8e3
* string.c (rb_string_value_ptr, rb_to_id): do not use a side
...
effect expression in RSTRING_PTR.
* string.c (rb_str_split_m): simplified the argument of
RSTRING_LEN.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-12 01:19:23 +00:00
svn
279363b615
* 2008-12-12
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11 15:11:18 +00:00
tadf
0d7f4ad828
do not pass -infinity.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20647 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11 15:11:14 +00:00
tadf
50c1da22df
* lib/cmath.rb (sqrt): should pass nan or infinity to the original
...
method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11 14:49:54 +00:00
kou
876e1b87e7
* lib/rss/maker.rb, lib/rss/maker/0.9.rb, lib/rss/maker/base.rb:
...
RSS::Maker.[] returns a maker class corresponds to passed version.
* test/rss/test_maker_*.rb: add tests for RSS::Maker.[].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20643 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11 12:06:26 +00:00
kou
7ff55ae6bb
* ChangeLog: add missing 'Nobuyoshi Nakada'.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11 12:03:51 +00:00
knu
9f37bc558c
Remove things that have been backported to the ruby_1_8 branch. [trunk-only]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20639 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11 11:25:49 +00:00
knu
566e7da773
Elaborate with Range#include?.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11 11:09:02 +00:00
nobu
e5f1572583
* encoding.c (rb_enc_aliases_enc_i): skips default internal.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20633 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11 11:05:21 +00:00
akr
cbc6a104b2
* lib/test/unit/assertions.rb: extracted from lib/test/unit.rb.
...
lib/test/unit/testcase.rb: ditto.
at asakusa.rb. [ruby-core:20014]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20632 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11 10:40:24 +00:00
akr
240378856b
* test/ruby/test_io.rb (test_dup_many): extracted from test_dup.
...
test in ruby subprocess. at asakusa.rb. [ruby-dev:35648]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20630 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11 10:25:05 +00:00
akr
120ab4b826
* lib/pathname.rb (Pathname#=~): undefed. at asakusa.rb.
...
[ruby-core:19690]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20629 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11 10:21:14 +00:00
matz
3060c7438d
* re.c (reg_enc_error): raise EncodingCompatibilityError for
...
encoding incompatibility. [ruby-core:18600]
* re.c (rb_reg_prepare_enc): more consistent error message.
[ruby-core:18611]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20626 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11 04:40:08 +00:00
nobu
28d1621d10
* encoding.c (enc_set_default_encoding): allowed to set default
...
encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11 04:36:20 +00:00
nobu
31c163e4c8
* encoding.c (rb_enc_set_default_internal): defines internal
...
encoding as nil.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20624 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11 04:17:10 +00:00
nobu
84b5d04bed
* encoding.c (rb_locale_encoding): removed Encoding::LOCALE.
...
* encoding.c (rb_enc_set_default_external): ditto.
* encoding.c (rb_enc_set_default_internal): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11 02:51:46 +00:00
nobu
36eed7bdfb
* include/ruby/st.h (size_t): needs stddef.h or stdlib.h.
...
[ruby-core:20339]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20622 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11 02:11:09 +00:00
matz
8249d674fd
* test/ruby/test_bignum.rb (TestBignum#test_convert): remove
...
platform dependent call of Process.wait. coverage should be
accomplished by other method. [ruby-dev:36062]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20621 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11 01:26:59 +00:00
matz
bc53f80b37
* lib/rexml/document.rb (REXML::Document#write): require
...
rexml/formatters/transitive if transitive flag is on. a patch
from akira yamada in [ruby-dev:36230]. fix #553
* lib/rexml/element.rb (REXML::Element#write): ditto.
* lib/rexml/formatters/transitive.rb (REXML::Formatters::Transitive#write_element):
add hack for IE. [ruby-dev:36230]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20620 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-11 01:20:23 +00:00
matz
54a722bd42
* math.c (domain_check): should not raise EDOM exception for NaN
...
value if operand is also NaN. affects acos, asin, acosh, atanh,
log, log2, log10, sqrt, gamma, lgamma. [ruby-dev:37357]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-10 18:00:51 +00:00
akr
3266ec1658
* lib/open3.rb (Open3.pipeline_start): return an array of threads if a
...
block is not given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20618 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-10 17:24:42 +00:00
akr
b314ab3e44
rdoc update.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20617 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-10 17:18:31 +00:00
matz
82c719c337
* ext/bigdecimal/bigdecimal.c (BigDecimal_round): should be round
...
to integer. [ruby-dev:37355]
* ext/bigdecimal/bigdecimal.c (BigDecimal_divmod): division should
be integer. [incompatible] [ruby-dev:37355]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20616 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-10 16:54:43 +00:00
matz
bd4d9e9a35
* thread.c (rb_mutex_unlock): shut up warning. a patch from
...
Kazuhiro NISHIYAMA in [ruby-dev:37345]. fix #846
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20615 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-10 16:30:40 +00:00
tadf
2c91d4ea9c
added ml ref.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20614 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-10 15:01:57 +00:00
svn
f335104b93
* 2008-12-11
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-10 15:00:18 +00:00
tadf
32bc841571
* complex.c: avoided warnings on cpp.
...
* rational.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-10 15:00:13 +00:00
kou
1e5fbe04f6
* lib/rss/maker.rb (RSS::Maker.[]): add.
...
Suggested by Akinori MUSHA. Thanks!!! [ruby-dev:37210]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-10 12:34:09 +00:00
knu
820c409ce9
* enumerator.c (enumerator_rewind): If the enclosed object
...
responds to a "rewind" method, call it; cf. [ruby-dev:37268]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20607 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-10 03:58:56 +00:00
knu
1ed799937b
* enumerator.c (enumerator_next): Fix a typo: s/rewinded/rewound/.
...
* lib/prime.rb (Prime::OldCompatibility#each): Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20604 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-10 03:49:48 +00:00
naruse
d433a70b5d
* re.c (rb_reg_initialize): raise RegexpError when encoding
...
is dummy encoding. [ruby-dev:37091]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-10 02:29:05 +00:00
svn
e8da366e04
* 2008-12-10
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-09 16:29:18 +00:00
usa
a091c9e18f
* common.mk (win32.obj): depend on headers.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-09 16:29:08 +00:00
duerst
a28fdecda7
* enc/trans/single_byte.trans, cp850-tbl.rb, cp852-tbl.rb,
...
cp855-tbl.rb, koi8-r-tbl.rb, koi8-u-tbl.rb, tis-620-tbl.rb:
new single-byte transcodings (from Yoshihiro Kambayashi)
* test/ruby/test_transcode.rb: added tests for the above
(from Yoshihiro Kambayashi), small cosmetic fixes
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-09 09:39:25 +00:00
nobu
9e8367ad46
* vm_core.h: removed trailing garbage spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-09 07:17:10 +00:00
nobu
001d393019
* id.h, include/ruby/{intern,oniguruma}.h, regenc.h, regparse.h,
...
template/*.tmpl: removed trailing garbage spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20596 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-09 07:14:13 +00:00
nobu
b2e82f2dfb
* ext/curses/curses.c: removed trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-09 04:46:54 +00:00
nobu
7f36764938
* ext/curses/curses.c: made indentation consistent.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-12-09 04:42:51 +00:00