usa
603f9304b2
* 2008-01-12
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14999 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-11 22:28:37 +00:00
naruse
7f9c3b1c97
* ruby.c (process_options): -e'script' is locale encoding by default.
...
(load_file): ruby script from stdin is locale encoding by default.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14998 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-11 19:41:22 +00:00
naruse
353a69229d
* ext/nkf/nkf-utf8/nkf.c: fix bug: -m was -m0.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14997 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-11 19:33:37 +00:00
akr
e350fe247a
* string.c (string.c): call rb_str_buf_append to update encoding of
...
str1, even if str2 is empty.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-11 14:26:26 +00:00
nobu
857b3018dd
* proc.c (proc_mark): needs to mark the receiver too. a patch from
...
Chris Heath <chris AT heathens.co.nz> in [ruby-core:14983].
[ruby-core:14885]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14995 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-11 11:20:18 +00:00
drbrain
7e6cf122ef
Remove lib/rdoc/usage.rb
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14994 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-11 09:31:15 +00:00
drbrain
b5417ef56d
Follow namespace change for RDoc/RI [ruby-core:14964]
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-11 09:18:53 +00:00
nobu
1267156698
* string.c (rb_str_append): performance improvement.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14992 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-11 07:55:23 +00:00
akr
0ada40e2b1
update rdoc: force_encoding doesn't accept nil.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14991 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-11 06:03:51 +00:00
nobu
825bfef2ea
* configure.in: AC_TRY_CPP has no FUNCTION-BODY while AC_TRY_COMPILE
...
has.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14990 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-11 03:35:59 +00:00
nobu
1af31107c9
* configure.in: moved broken syscall checks from process.c etc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-11 03:27:46 +00:00
akr
5a1b5f8fe2
add tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-11 03:11:42 +00:00
nobu
82bf2c1ac7
* defines.h (WORDS_BIGENDIAN): honor __BIG_ENDIAN__ than the result of
...
configure.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-11 02:57:38 +00:00
nobu
0521c0e36e
* ChangeLog: commit miss
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-11 02:17:25 +00:00
nobu
8b39fb1045
* lib/rdoc/options.rb ():
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-11 01:24:05 +00:00
naruse
249c08716d
* ext/nkf/nkf-utf8/nkf.c: update to r1.163.
...
* ext/nkf/nkf.c: ASCII's canonical name is US-ASCII.
* ext/nkf/lib/kconv.rb (Kconv.isjis): force_encoding('BINARY').
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-11 01:03:23 +00:00
naruse
9e35ba455d
* encoding (set_base_encoding): must use rb_enc_dummy_p.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-11 00:39:44 +00:00
nobu
78900b98b3
* encoding.c (rb_to_encoding_index, rb_to_encoding): disallow nil.
...
[ruby-dev:33003]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-10 21:13:21 +00:00
matz
d17bcfc802
* thread.c (rb_mutex_unlock): proper error message for unlocking
...
mutex that is not locked. a patch from Yusuke ENDOH
<mame at tsg.ne.jp> in [ruby-dev:33010].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14980 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-10 16:12:32 +00:00
akr
7a360de149
add a test.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-10 14:26:08 +00:00
akr
f478e73f04
make a test locale independent.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14978 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-10 10:35:52 +00:00
matz
6871c34274
* prelude.rb (Mutex::synchronize): capture exception from unlock.
...
[ruby-dev:32935]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-10 09:01:30 +00:00
matz
f309847177
io.c (io_encoding_set): typo fixed
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14976 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-10 06:44:30 +00:00
matz
a4c82312c3
* io.c (io_encoding_set): handle nil for v1.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14975 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-10 06:42:49 +00:00
matz
76b247202a
* io.c (io_encoding_set): IO.pipe("euc-jp", nil) should work as
...
IO.pipe("euc-jp", nil). [ruby-dev:33000]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-10 01:54:43 +00:00
matz
81064a7688
* io.c (rb_io_binmode): should not alter encoding. [ruby-dev:32918]
...
* io.c (io_read_encoding): need not to return ASCII-8BIT for
binary IO.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-09 17:44:13 +00:00
matz
b3f93b1f43
* lib/e2mmap.rb (Exception2MessageMapper::Raise): define fail.
...
[ruby-dev:32854]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14971 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-09 14:23:34 +00:00
kazu
cbf7c9adde
* lib/mathn.rb (Prime#each): returns an enumerator if no block
...
given. [ruby-dev:32815]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-09 13:10:31 +00:00
naruse
ad4fb57a3a
* encoding.c (rb_enc_replicate): replica of dummy is a dummy.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-09 13:06:00 +00:00
gotoyuzo
b04f5e661f
* lib/webrick/httprequest.rb: supprt X-Forwarded-* header fields.
...
WEBrick::HTTPRequest#{host,port,request_uri} is derived having
regards to X-Forwarded-Proto and X-Forwarded-Host.
* lib/webrick/httprequest.rb
(WEBrick::HTTPRequest#server_name?): new method.
(WEBrick::HTTPRequest#remote_ip?): new method.
(WEBrick::HTTPRequest#ssl?): new method.
* string.c (rb_enc_cr_str_buf_cat): fix self appending.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-09 11:37:03 +00:00
eban
53ac21c325
* golf_prelude.rb (Array#to_s): alias to join.
...
* golf_prelude.rb (FalseClass#to_s): return "".
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14967 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-09 09:28:19 +00:00
akr
8786b8a282
* string.c (rb_enc_cr_str_buf_cat): fix self appending.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14966 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-09 08:00:26 +00:00
nobu
d036633dcb
* ruby.c (process_options): give priority command line encoding option
...
to RUBYOPT, and enable -E option in RUBYOPT.
* ruby.c (load_file): deal with encoding option in shebang line if
nothing in command line and RUBYOPT.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14965 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-09 06:54:26 +00:00
usa
ff1cd79d08
* parse.y (yycompile0): remove setting parser->enc because it is set
...
in parser_prepare() by previous change of parser_prepare().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14964 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-09 05:57:29 +00:00
nobu
9874fdbc86
* string.c (rb_enc_cr_str_buf_cat, rb_str_buf_append): deal with self
...
appending.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14963 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-09 05:52:20 +00:00
usa
3f2d1892df
* parse.y (parser_prepare): set parser->enc from lex_input for ripper.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-09 05:46:35 +00:00
gotoyuzo
a5505ab833
* lib/webrick/server.rb (WEBrick::HTTPServer#start):
...
:DoNotReverseLookup option had not been performed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14961 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-09 04:46:55 +00:00
matz
251dec5cf1
* string.c (rb_enc_cr_str_buf_cat): do not recalculate coderange
...
value if it's given from outside.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14960 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-09 04:07:11 +00:00
jeg2
8ed70a5186
* enum.c: Updating the documentation of Enumrable#zip to reflect
...
the recent changes Matz made to the method.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-08 23:42:38 +00:00
naruse
fdeb4b1384
* enc/Makefile.in (BUILTIN_ENCS): UTF-{16,32}{BE,LE} are not builtin.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-08 16:58:31 +00:00
naruse
5cd70fa5e9
* encoding.c (rb_enc_init): UTF-{16,32}{BE,LE} are not builtin.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-08 14:56:50 +00:00
naruse
ed540e8bdf
* encoding.c, Makefile.in, include/ruby/oniguruma.h,
...
enc/Makefile.in: fix rules for UTF-{16,32}{BE,LE}.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14956 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-08 13:35:24 +00:00
nobu
1889c00e07
* win{32,ce}/Makefile.sub: merged.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14955 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-08 11:02:10 +00:00
drbrain
edeeefb7a5
Speed up Marshal load, fix bug with nested classes' methods
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14954 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-08 10:49:19 +00:00
drbrain
3e39ade457
Clean up namespacing of RI's classes
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-08 10:18:41 +00:00
matz
929faf7906
* enum.c (enum_zip): honor length of the receiver, not the
...
shortest length. [ruby-core:14738]
* enum.c (enum_zip): returns array not enumerator for no block
form. [ruby-core:14738]
* enumerator.c (next_ii): do not ignore multiple values yielded.
* array.c (rb_ary_zip): faster version without creating generators.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-08 09:50:01 +00:00
nobu
1309c10332
* set properties.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14951 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-08 09:31:47 +00:00
drbrain
e539dc6080
Replace ri with Ryan Davis' cached ri
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14950 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-08 09:07:31 +00:00
nobu
cc22700b90
* enc/utf_{16,32}{be,le}.c: renamed to match with encoding names.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-08 07:27:53 +00:00
nobu
aab064f0dc
* enc/utf_{16,32}{be,le}.c: renamed to match with encoding names.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-01-08 07:27:43 +00:00