nobu
c26ab1ef1c
* transcode.c (econv_opts): add newline option.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 15:55:58 +00:00
nobu
8761467727
* io.c (validate_enc_binmode, rb_io_extract_modeenc): set newline
...
decorator according to open mode.
* transcode.c (rb_econv_prepare_options): new function, to prepare
econv options with newline flags.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31355 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 15:55:21 +00:00
nobu
3b937bbdc4
* include/ruby/encoding.h (ECONV_NEWLINE_DECORATOR_MASK): add.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31354 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 15:54:14 +00:00
nobu
7140c8f0cd
* transcode.c (econv_init): fix rdoc.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 15:52:35 +00:00
nobu
4c7106c679
* file.c (rb_file_truncate): fix function.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31352 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 15:51:04 +00:00
nobu
fcfc113b04
* include/ruby/win32.h (ftruncate, truncate, ftello, fseeko): non-64
...
versions on mingw are useless because they use int32_t. fixes #4564
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 15:50:09 +00:00
svn
7da3b09e0f
* 2011-04-27
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 15:02:13 +00:00
tadf
91ee771012
* ext/date/date_core.c (dt_lite_set_tmx): should get df value.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31349 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 15:02:10 +00:00
tadf
b3defabde2
* ext/date/lib/date/format.rb (_iso8601): allowed day only civil
...
date. disallowed separatorless day only ordinal date.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-26 13:36:49 +00:00
svn
82c771fe8f
* 2011-04-26
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-25 21:45:40 +00:00
iwamatsu
73868a547f
* ext/openssl/extconf.rb: Should check SSLv2_*method.
...
openssl compiled with "no-ssl2" the extconf don't fail
when running `make' having this compilation errors.
Patched by Laurent Arnoud. fixes #4562 , #4556
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-25 21:45:33 +00:00
arton
333e43e06b
* win32/win32.c (kill): accept 0 only sig is SIGINT #4596
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31345 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-25 12:11:44 +00:00
arton
83e071701b
* win32/win32.c (kill): accept 0 as pid, fixes #4596
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31344 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-25 11:04:40 +00:00
naruse
63f39fcb40
* random.c (random_rand): remove unused variables.
...
* struct.c (rb_struct_define_without_accessor): ditto.
* strftime.c (rb_strftime_with_timespec): ditto.
* sprintf.c: ditto.
* time.c (time_asctime): remove useless GetTimeval().
* thread_pthread.c: cast to (void *) for %p.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-25 07:56:42 +00:00
naruse
7c885222ca
* ext/ripper/lib/ripper/sexp.rb: fix rdoc arround sexp.
...
patched by Sho Hashimoto. fixes #4599
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-25 02:28:49 +00:00
sorah
b5909efd13
* random.c (rb_f_rand, random_s_rand): RDocs for them.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-24 23:25:11 +00:00
mrkn
2aeb3b47ee
* random.c (random_s_rand, Init_Random): Random.rand should behave as
...
Random::DEFAULT.rand rather than Kernel#rand.
* random.c (rand_range, random_rand): rand_range function extracted
from random_rand function.
* random.c (rb_f_rand): accept a Range argument as Random#rand
[ruby-dev:43427] #4605
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31340 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-24 22:27:39 +00:00
tadf
03697bc1f3
* lib/time.rb: require 'date'.
...
* ext/date/lib/date/format.rb: removed require line.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31339 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-24 18:31:47 +00:00
tadf
fd93bad83f
* ext/date/lib/date/format.rb: require 'date'.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31338 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-24 18:09:24 +00:00
tadf
9f103e659e
* ext/date/lib/date/format.rb (_iso8601): added a pattern.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-24 18:07:24 +00:00
naruse
f3551c0476
* ext/date/lib/date/format.rb: require 'date_core.so'.
...
date/format needs methods which are now in date_core.so.
This breaks make rdoc which uses Date._parse from time.rb.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31336 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-24 18:04:47 +00:00
tadf
b7133cc6c7
* ext/date/lib/date/format.rb: fixed a bug of regex.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31335 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-24 17:48:33 +00:00
tadf
2115af3a46
* ext/date/lib/date/format.rb: an adjustment of regex.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31334 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-24 17:13:17 +00:00
tadf
60c7967e12
* ext/date/lib/date/format.rb: omitted to call _parse.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-24 17:00:18 +00:00
svn
0c1d2a0af4
* 2011-04-25
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-24 16:04:35 +00:00
kosaki
8ff8d61961
* string.c (rb_to_id): remove unused variable.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31331 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-24 16:04:31 +00:00
tadf
14491f13d7
* complex.c, rational.c: omitted some method calls.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-24 13:24:02 +00:00
tadf
bedb18f282
* ext/date/date_parse.c (n2i): takes long.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-23 17:59:38 +00:00
tadf
4116d8a3bd
* ext/date/date_parse.c: reverted.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31328 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-23 17:51:42 +00:00
naruse
60aa9c809b
* include/ruby/intern.h: pcc can't use __builtin_constant_p.
...
* vm_exec.c: change condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31327 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-23 17:34:58 +00:00
naruse
c34db58913
* ext/date/date_core.c (leap_p): surpress warning: parentheses.
...
* ext/date/date_core.c (date_s__parse_internal): remove unused
variable "str".
* ext/date/date_parse.c (parse_ddd_cb): use RSTRING_LENINT.
* ext/date/date_strftime.c (date_strftime_with_tmx): remove unused
variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31326 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-23 17:34:55 +00:00
svn
5c0a69a621
* 2011-04-24
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31325 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-23 15:35:45 +00:00
tadf
05b3bd27d8
* ext/date/date_parse.c: removed some unused macros. use strchr()
...
instead of index().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-23 15:35:42 +00:00
svn
37cfdf9f0b
* 2011-04-23
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-23 12:31:19 +00:00
tadf
448e0d6668
* ext/date/date_core.c: replacement of implementation of
...
_parse. [experimental]
* ext/date/date_parse.c: new.
* ext/date/lib/date/format.rb: removed ruby version of _parse.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31322 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-23 12:31:15 +00:00
naruse
d5b4cf7f79
Use Float#finite?.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-22 13:35:43 +00:00
naruse
4e04749516
* array.c (rb_ary_sort_bang): fix rdoc.
...
patched by burningTyger. https://github.com/ruby/ruby/pull/11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31320 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-22 03:05:32 +00:00
naruse
c853e2d86e
* lib/xmlrpc/create.rb (XMLRPC::Create#conv2value):
...
XML-RPC's int is 32bit int, and Fixnum also may be beyond 32bit.
* lib/xmlrpc/create.rb (XMLRPC::Create#conv2value):
XML-RPC doesn't allow Infinity and NaN.
http://www.xmlrpc.com/spec
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-22 02:50:45 +00:00
svn
33883ded8b
* 2011-04-22
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-21 19:17:49 +00:00
tenderlove
8968bd14fa
* ext/psych/parser.c (parse): strings from psych have proper taint
...
markings.
* test/psych/test_tainted.rb: test for string taint
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31317 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-21 19:17:46 +00:00
naruse
0efb462a50
* random.c (rb_f_srand): fix rdoc: srand(0)'s 0 is a seed.
...
[ruby-core:35833] fixes #4590
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-20 16:31:25 +00:00
svn
934c6b4870
* 2011-04-21
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31315 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-20 16:15:39 +00:00
tarui
6825f77323
* win32/win32.c (CreateChild): maximum length of lpCommandLine is
...
32,768 characters, including the Unicode terminating null character.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-20 16:15:35 +00:00
tadf
e8d5304080
* ext/date/date_strptime.c (date__strptime_internal): do not
...
overwrite local variables.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-20 12:34:01 +00:00
naruse
88014987ad
* string.c (rb_str_each_line): check string's length when compare
...
separator and string. [ruby-core:35815] fixes #4586
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-20 05:43:27 +00:00
svn
2cc02aeb50
* 2011-04-20
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-19 15:02:20 +00:00
nobu
d9e6b7d6a5
* misc/ruby-mode.el (ruby-parse-partial): use position of open paren.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-19 15:02:16 +00:00
svn
86576c8f28
* 2011-04-19
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-18 16:08:11 +00:00
arton
580e2f35a8
* test/ruby/test_io.rb (TestIO#test_cross_thread_close_fd):
...
skip cross thread pipe close if windows
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-18 16:08:07 +00:00
svn
e16fb91966
* 2011-04-18
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-18 03:17:05 +00:00