Commit graph

7022 commits

Author SHA1 Message Date
akr
2b2b77d7a7 * rubyio.h (FMODE_WSPLIT, FMODE_WSPLIT_INITIALIZED): new constant.
* io.c (wsplit_p): new function.
  (io_fflush): split writing data by PIPE_BUF if wsplit_p is true in
  multi-threaded mode.
  (io_fwrite): ditto.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-18 01:00:23 +00:00
nobu
2276689595 * ext/io/wait/wait.c: fixed commit miss.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-17 04:50:45 +00:00
nobu
0ede90588e * ext/io/wait/extconf.rb, ext/io/wait/wait.c: Win32 platforms support.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-17 04:47:38 +00:00
nobu
01bf1f1e55 2005-07-17
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8782 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-17 04:47:34 +00:00
ocean
717b322958 fixed document system dependent (case sensitivity is 1.9 feature)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-16 06:25:38 +00:00
ocean
ac19de91a2 document improvement (backported from HEAD : Austin Ziegler's patch)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8778 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-16 06:02:19 +00:00
ocean
e16487938d document fix [ruby-dev:26516] (patch from Kazuhiro NISHIYAMA)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8777 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-16 05:14:23 +00:00
nobu
48ea67b6cd * ext/.document: enabled documents in stringio.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-15 15:01:37 +00:00
nobu
4a994c8454 * lib/rdoc/parsers/parse_c.rb (handle_class_module): handle a
module enclosed in a built-in module.  fixed: [ruby-talk:148239]

* lib/rdoc/parsers/parse_c.rb (find_body): allow macros as methods.

* lib/rdoc/parsers/parse_c.rb (find_call_seq): allow :nodoc: modifier
  in C.  [ruby-core:04572]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-15 15:00:11 +00:00
nobu
3b6bb4cd09 2005-07-16
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-15 15:00:06 +00:00
ocean
dfd99a5782 * bcc32/Makefile.sub (COMMON_HEADERS): ruby_1_8 is using winsock.h.
failed to compile ext/socket on bcc5.6.4. [ruby-dev:26193]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-15 09:12:53 +00:00
gotoyuzo
c7070bdc48 * lib/webrick/server.rb (WEBrick::GenericServer#accept_client):
sockets should be non-blocking mode. [ruby-dev:26405]

* lib/webrick/utils.rb (WEBrick::Utils.set_non_blocking): new method.

* lib/webrick/httprequest.rb (WEBrick::HTTPRequest#read_chunked):
  should call sock.read repeatedly until the preferred size data
  is obtained.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8769 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-14 23:00:22 +00:00
gotoyuzo
f07aefe54f 2005-07-15
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8768 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-14 23:00:17 +00:00
ocean
0661db665e * win32/win32.c (rb_w32_strerror): should return correct message
for ENAMETOOLONG and ENOTEMPTY. (bcc32) [ruby-dev:26533]

* win32/win32.c (rb_w32_strerror): stripped CR LF on the tail.
  (bcc32) [ruby-dev:26533]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-14 09:33:52 +00:00
nobu
a290480f50 2005-07-14
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-13 15:46:39 +00:00
nobu
08e5a3d110 * LEGAL (ext/nkf/nkf-utf8): updated from nkf1.7 to nkf-utf8.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8759 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-13 15:46:37 +00:00
ocean
01a41b7c92 add ML number
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-13 10:43:54 +00:00
ocean
d20bc9f4d2 * win32/win32.c (rb_w32_mkdir): should set EEXIST (not EACCES)
if file or directory already exists. (bcc32)

* win32/win32.c (rb_w32_rmdir): should set ENOTDIR (not EINVAL)
  if it is not directory. (bcc32, win32)

* win32/win32.c (rb_w32_rmdir, rb_w32_unlink): restore
  FILE_ATTRIBUTE_READONLY flag on function failure.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-13 10:40:06 +00:00
nagai
e850d8aced 2005-07-13
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-13 03:47:02 +00:00
nagai
dbc2cc8c85 * ext/tcltklib/tcltklib.c: TclTkLib.do_one_event doesn't work.
* ext/tk/lib/tk.rb: Tk.thread_update is available.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-13 03:46:35 +00:00
nobu
7a8405300c * lib/mkmf.rb: keep curdir unexpanded.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-12 14:33:10 +00:00
nobu
cbbfcf51a3 2005-07-12
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8751 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-12 14:33:05 +00:00
nobu
a7e7d310a9 * regex.c (read_special): fix parsing backslashes following \c in
regexp.  fixed: [ruby-dev:26500]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8749 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-10 23:32:50 +00:00
mneumann
0bc99f869c * lib/xmlrpc/server.rb (XMLRPC::Server): Switch from GServer over to
WEBrick. This makes file lib/xmlrpc/httpserver.rb obsolete (at least it is
		no further used by the XML-RPC library).


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8746 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-10 20:31:48 +00:00
gotoyuzo
94763801f3 * lib/webrick/cgi.rb (WEBrick::CGI::Socket#request_line):
mistook in merging the patch of [ruby-dev:26235] at
  revision 1.4.2.6.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8745 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-10 17:56:16 +00:00
akr
b5c68b60bd * lib/pathname.rb (Pathname#unlink): try Dir.unlink first to
avoid unlink a directory by root.
  cf. [ruby-dev:26237]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-10 15:17:35 +00:00
akr
caf49155c1 2005-07-11
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8742 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-10 15:17:30 +00:00
nobu
a7a1662681 * lib/debug.rb (debug_command): added a deficient format specifier.
fixed: [ruby-core:05419]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-10 03:47:56 +00:00
nobu
8e7586a83e 2005-07-10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8740 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-10 03:47:52 +00:00
suke
251759ba95 2005-07-09
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-09 12:34:52 +00:00
suke
4556ae58dc convert dispid in Ruby and C by INT2NUM and NUM2INT.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-09 12:34:47 +00:00
kou
652b68a186 * lib/rss/rss.rb (RSS::VERSION): 0.1.4 -> 0.1.5.
* test/rss/test_version.rb (RSS::TestVersion#test_version):
  ditto.

* lib/rss/0.9.rb (RSS::Rss::Channel::Item::Category):
  domain attribute of <category> is optional. Thanks to
  Chris Lee <clee@kde.org>.

* test/rss/test_parser.rb (RSS::TestParser#test_category20):
  adjusted test case.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-08 06:51:21 +00:00
kou
bf18d28844 2005-07-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-08 06:51:16 +00:00
nobu
4510093e73 * instruby.rb: expand source library path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-05 14:45:33 +00:00
nobu
30be8467ce * eval.c (rb_thread_save_context): must not switch contexts during
re-allocating stack.  fixed: [ruby-core:05219]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8726 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-05 14:28:00 +00:00
nobu
c79ef69302 * array.c (sort_2): get rid of yet another bcc's bug.
fixed: [ruby-core:05152]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8725 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-05 14:23:38 +00:00
nagai
784214e91a * ext/tk/tkutil.c: fix typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8723 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-05 06:18:52 +00:00
nagai
835a5c1ff9 2005-07-05
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-05 05:56:27 +00:00
nagai
b93372d43c * ext/tcltklib/tcltklib.c: bug fix on treating Unicode strings.
* ext/tcltklib/tcltklib.c: add methods to treat encoding mode.
* ext/tcltklib/MANUAL.eng: add description of TclTkLib#encoding,
  encoding_system, and so on.
* ext/tcltklib/MANUAL.euc: ditto.
* ext/tk/tkutil.c: fail to create a Tcl's list string from an
  array including multiple kind of encoded strings.
* ext/tk/lib/tk.rb: ditto.
* ext/tk/lib/multi-tk.rb: 2nd arg of _{to|from}UTF8 is omissible.
* ext/tk/lib/remote-tk.rb: ditto.
* ext/tk/lib/tk.rb: override TclTkLib#encoding and encoding= to
  use TkCore::INTERP.encoding and encoding=.
* ext/tk/lib/tk.rb: when "require 'tk'" and $KCODE=='NONE', check
  DEFAULT_TK_ENCODING to decide Ruby/Tk's system encoding mode.
* ext/tk/lib/tk/encodedstr.rb: check both of Tk.encoding and
  Tk.encoding_system. Tk.encoding has higher priority.
* ext/tk/lib/tk/optiondb.rb: ditto.
* ext/tk/lib/tk/spinbox.rb: ditto.
* ext/tk/lib/tk/validation.rb: ditto.
* ext/tk/lib/tk/namespace.rb: arguemnts for TclTkIp#_merge_tklist
  should be UTF-8 strings.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8720 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-05 05:55:58 +00:00
matz
52e595426c * missing/erf.c: original erf.c by prof. Okumura is confirmed to
be public domain.  reverted BSD implementation.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-04 04:27:44 +00:00
usa
f1056b2e50 * test/{dbm,gdbm,sdbm}/test_{dbm,gdbm,sdbm}.rb: skip some tests
which using fork on fork-less platforms.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-04 02:18:23 +00:00
usa
02a817ee4c 2005-07-04
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-04 02:18:18 +00:00
nahi
6add2a6a77 * test/wsdl/document/test_rpc.rb: compare formatted time string of
Time objects instead of comparing Time objects itself to avoid
          unintended conflict of usec part.  [ruby-dev:26220]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-03 14:34:03 +00:00
akr
c61dd961dd avoid some race condition
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8709 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-03 09:37:49 +00:00
akr
3e0a75c089 2005-07-03
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-02 17:44:00 +00:00
akr
7b154a9702 doc fix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-02 17:43:59 +00:00
akr
be080b7f9e use CMSG_LEN.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8704 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-02 15:22:11 +00:00
akr
40d07f25a3 * ext/socket/socket.c (unix_send_io, unix_recv_io): support x86-64 and
IA64.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8703 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-02 14:06:19 +00:00
eban
7b32f66c6b * 2005-07-02
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-02 09:36:06 +00:00
akr
9fb5c24339 refine #if condition introduced previously.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2005-07-02 09:13:41 +00:00